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
| /* | |
| highlight v3 !! Modified by Jon Raasch (http://jonraasch.com) to fix IE6 bug !! | |
| Highlights arbitrary terms. | |
| <http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html> | |
| MIT license. |
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 | |
| """html2text: Turn HTML into equivalent Markdown-structured text.""" | |
| __version__ = "2.35" | |
| __author__ = "Aaron Swartz ([email protected])" | |
| __copyright__ = "(C) 2004-2008 Aaron Swartz. GNU GPL 3." | |
| __contributors__ = ["Martin 'Joey' Schulze", "Ricardo Reyes"] | |
| # TODO: | |
| # Support decoded entities with unifiable. | |
| # Relative URL resolution |
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> | |
| <title>events</title> | |
| <meta charset="UTF-8"> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.1.7/underscore-min.js"></script> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.5.3/backbone-min.js"></script> | |
| <script> |
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
| from glob import glob | |
| import os | |
| files = glob('*.txt') | |
| for file in files: | |
| os.rename( file, 'brad_' + file ) | |
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
| from collections import Counter | |
| text = open('Texts.txt').read().decode('utf-8') | |
| lines = text.splitlines() | |
| besemah = [] | |
| for line in lines: | |
| if line.startswith('\\tx') and line.strip() != '\\tx': | |
| besemah.append(line) |
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
| /* Scaled-down Backbone.js demonstration | |
| * By Jacob Oscarson (http://twitter.com/jacob414), 2010 | |
| * MIT Licenced, see http://www.opensource.org/licenses/mit-license.php */ | |
| $(function() { | |
| window.ulog = function(msg) { $('#log').append($('<div>'+msg+'</div>')); } | |
| // Faking a little bit of Backbone.sync functionallity | |
| Backbone.sync = function(method, model, succeeded) { | |
| ulog('<strong>'+method + ":</strong> " + model.get('label')); | |
| if(typeof model.cid != 'undefined') { |
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 | |
| """ | |
| [email protected] | |
| Do Whatever the Fuck You Want To License | |
| http://sam.zoy.org/wtfpl/ | |
| letters - cat some UTF-8 text to this script, and | |
| it will output the unicode name of the characters in the text, if |
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
| <html> | |
| <head> | |
| <title>Swimlane using d3.js</title> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
| <script type="text/javascript" src="randomData.js"></script> | |
| <style> | |
| .chart { | |
| // shape-rendering: crispEdges; | |
| } |
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> | |
| <title>image</title> | |
| <link rel=stylesheet href=style.css /> | |
| <meta charset="utf-8"/> | |
| </head> | |
| <body> | |
| <p><label>Add image<input type="file" id="input"/></label></p> | |
| <p><input type=text placeholder="add caption" id=caption /><button id=add_caption>add caption</button><button id=save>save</button></p> |
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 | |
| """ | |
| [email protected] | |
| Do Whatever the Fuck You Want To License | |
| http://sam.zoy.org/wtfpl/ | |
| letters - cat some UTF-8 text to this script, and |