Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| $(window).load(function(){ | |
| $().hatchShow(); | |
| }); | |
| jQuery.fn.hatchShow = function(){ | |
| $('.hsjs').css('display','inner-block').css('white-space','pre').each(function(){ | |
| var t = $(this); | |
| t.wrap("<span class='hatchshow_temp' style='display:block'>"); | |
| var pw = t.parent().width(); |
| /* | |
| * Minimal classList shim for IE 9 | |
| * By Devon Govett | |
| * MIT LICENSE | |
| */ | |
| if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') { | |
| Object.defineProperty(HTMLElement.prototype, 'classList', { | |
| get: function() { |
| /* | |
| * This work is free. You can redistribute it and/or modify it under the | |
| * terms of the Do What The Fuck You Want To Public License, Version 2, | |
| * as published by Sam Hocevar. See the COPYING file for more details. | |
| */ | |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { |
| !function ($) { | |
| "use strict"; // jshint ;_; | |
| var BGCover = function (element, options) { | |
| this.$element = $(element); | |
| this.options = options; | |
| this.init(); | |
| } |
| /* | |
| * RIFFWAVE.js v0.03 - Audio encoder for HTML5 <audio> elements. | |
| * Copyleft 2011 by Pedro Ladaria <pedro.ladaria at Gmail dot com> | |
| * | |
| * Public Domain | |
| * | |
| * Changelog: | |
| * | |
| * 0.01 - First release | |
| * 0.02 - New faster base64 encoding |
| <?php | |
| // Let's see those errors! | |
| error_reporting(1); | |
| // Give it some time! | |
| set_time_limit(80); | |
| // File ext(types) to check! | |
| $check_files = array( |
| #!/bin/bash | |
| stash() { | |
| # check if we have uncommited changes to stash | |
| git status --porcelain | grep "^." >/dev/null; | |
| if [ $? -eq 0 ] | |
| then | |
| if git stash save -u "git-update on `date`"; | |
| then |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| $ = jQuery | |
| queues = {} | |
| running = false | |
| queue = (name) -> | |
| name = 'default' if name is true | |
| queues[name] or= [] | |
| next = (name) -> |
| # coding=UTF-8 | |
| from __future__ import division | |
| import nltk | |
| from collections import Counter | |
| # This is a simple tool for adding automatic hashtags into an article title | |
| # Created by Shlomi Babluki | |
| # Sep, 2013 |