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
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
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;
-- Then change column name of your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;
(function(win, doc, undefined) { | |
// sanity check - is it a decent browser | |
if('addEventListener' in win && 'localStorage' in win && 'querySelector' in doc) { | |
// https://gist.github.com/scottjehl/5406853 | |
var injectref = doc.getElementsByTagName('script')[0], | |
loadCSS = function(href) { | |
var fontslink = doc.createElement('link'); |
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type text/html; | |
access_log /dev/stdout; | |
sendfile on; | |
keepalive_timeout 65; |
module _ from "underscore"; | |
import _ from "underscore"; | |
import module _ from "underscore"; | |
import {each, map, find} from "underscore"; | |
import "underscore"; | |
import default _ from "underscore"; | |
const _ = System.import("underscore"); | |
import "underscore" as _; | |
import {_} from "underscore"; | |
import {each as forEach} from "underscore"; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<script type="text/javascript"> | |
(function (css_href) { | |
"use strict"; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); | |
} else if (el.attachEvent) { | |
el.attachEvent("on" + ev, callback); |
var css_href_array = []; | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var styleTags = document.getElementsByClassName('js-style'); | |
function getBrowser() { | |
var myAgent = navigator.userAgent.toLowerCase(); | |
if( myAgent.indexOf('msie') != -1 && parseInt(myAgent.split('msie')[1]) == 8 ){ | |
return 'ie8'; |