Each of these commands will run an ad hoc http static file server in your current (or specified) directory. Use this power wisely.
Python 2.x
$ python -m SimpleHTTPServer 8000
CREATE EXTENSION tablefunc; | |
CREATE TABLE sales(year int, month int, qty int); | |
INSERT INTO sales VALUES(2007, 1, 1000); | |
INSERT INTO sales VALUES(2007, 2, 1500); | |
INSERT INTO sales VALUES(2007, 7, 500); | |
INSERT INTO sales VALUES(2007, 11, 1500); | |
INSERT INTO sales VALUES(2007, 12, 2000); | |
INSERT INTO sales VALUES(2008, 1, 1000); | |
INSERT INTO sales VALUES(2009, 5, 2500); |
Each of these commands will run an ad hoc http static file server in your current (or specified) directory. Use this power wisely.
Python 2.x
$ python -m SimpleHTTPServer 8000
require 'git' | |
module Jekyll | |
class GitActivityTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
end | |
def render(context) |
LOCAL lnLvl, lcStack | |
lnLvl= PROGRAM( -1 ) | |
lcStack = "" | |
FOR k= 1 TO lnLvl | |
lcStack = lcStack + PROGRAM( k )+ CHR( 13 ) | |
ENDFOR | |
WAIT WINDOW lcStack | |
RETURN |
ygktraffic -rt -from:ygktraffic -deevideo -thank -thanks -follow -nailaj -keeliesmama |
#ygkc -rt -vieiraflytrap -wizfrenzy_03 -whiglive -989thedrive -983flyfm -instantfollowback -nailaj -ckws* -brenda_slomka -matt_bisson -robert_kiley -ottotrader -"Not tweeting or streaming" -InstantFollowBack -from:YGKRTs -nalaj |
It’s interesting to see what designs and features others have come up with. Link to Jekyll-powered blogs and other sites here.
#!/bin/bash | |
# First install 't', the Twitter command line client: https://github.com/sferik/t#readme | |
# This is a Ruby gem and if you are on Mac OS X or any flavour of *nix you're probably got Ruby. | |
# Next ensure you have 'curl' installed (on Mac OS X you probably do) | |
# Given these two prerequisites then... | |
# Step 1: Grab the latest #ygk fluff filter from Gist #4297661 in raw form |
// assuming jQuery for its extend method. | |
// Calling program does this, and passes-in the options | |
var options = { validate: true, name: "bar" }; | |
function myThing ( options ) { | |
// Internally your program does this | |
var empty = {} | |
var defaults = { validate: false, limit: 5, name: "foo" }; |
c={} | |
e="someMethod"; | |
preProcessPost =function(c,e) { | |
var e1=e+"Pre",e2=e+"Process",e3=e+"Post"; | |
c[e]=function(o){ | |
if (this[e1](o)) { | |
this[e2](o); | |
this[e3](o); | |
} | |
}; |