[ Launch: unit circle ] 5216371 by amundo[ Launch: unit circle ] 5210686 by enjalot
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
| HTMLAudioElement.prototype.playClip = function(startTime, stopTime) { | |
| var video = this; | |
| var playTime = stopTime - startTime; | |
| this.currentTime = startTime; | |
| setTimeout(function(){ video.pause() }, playTime * 1000); | |
| this.play(); | |
| } |
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 unicodedata | |
| >>> unicodedata.name(u"\u026c\u02bc") | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| TypeError: need a single Unicode character as parameter | |
| >>> unicodedata.name(u"\u026c") | |
| 'LATIN SMALL LETTER L WITH BELT' | |
| >>> unicodedata.name(u"\u02bc") | |
| 'MODIFIER LETTER APOSTROPHE' |
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
| initialize: function(){ | |
| _.bindAll(this, 'sentenceKeyup', 'transliterate', 'createOnEnter' ); | |
| sentences.bind('add', this.addOne, this); | |
| sentences.bind('reset', this.addAll, this); | |
| sentences.bind('all', this.render, this); | |
| sentences.fetch(); |
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
| window.show = function(o){ return JSON.stringify(o, null,2)} | |
| app = {}; | |
| app.Word = Backbone.Model.extend({ | |
| }) | |
| app.Words = Backbone.Collection.extend({ | |
| model: app.Word, |
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
| Emoji cheat sheet | |
| Emoji emoticons are supported on Campfire, GitHub, Basecamp, Turntable.fm, and Teambox. | |
| However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. | |
| ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard. | |
| People | |
| :bowtie: | |
| :smile: |
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
| TextCollection = Backbone.Collection.extend({ | |
| model: Text, | |
| localStorage: new Backbone.LocalStorage('textCollection') // i only want to persist here | |
| }) | |
| Text = Backbone.Model.extend({ | |
| initialize: function(options){ | |
| this.set('sentenceCollection', new SentenceCollection()) | |
| } | |
| }) |
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
| #!/usr/bin/env python | |
| from collections import Counter | |
| """ | |
| If the median frequency of the letters in a word is 2, | |
| there's a good chance it's reduplicated | |
| This code is released into the public domain. | |
| Please use it for good not evil kthx. |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>OMG Particles!</title> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script> | |
| <style type="text/css"> | |
| body { | |
| background: #222; |
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
| var Metadata = function(){ | |
| this.files = []; | |
| this.load = function(){ | |
| //console.log('this.load…'); | |
| $.getJSON( | |
| "metadata.json", | |
| this.store |