Col1 | Col2 |
---|---|
× one | |
* two | |
* two |
View iworld_v4.hs
This file contains 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 System.IO.Unsafe | |
data CWorld = CWorld { | |
cin :: String, | |
cout :: String | |
} | |
newtype CWIO a = CWIO { unCWIO :: CWorld -> (a, CWorld) } |
View gist:840b2d90090623f60339
This file contains 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
/** | |
* @license AngularJS v1.3.0-beta.18 | |
* (c) 2010-2014 Google, Inc. http://angularjs.org | |
* License: MIT | |
*/ | |
(function(window, document, undefined) {'use strict'; | |
/** | |
* @description | |
* |
View butterfly.js
This file contains 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
/** | |
* Parses an escaped url query string into key-value pairs. | |
* @returns {Object.<string,boolean|Array>} | |
*/ | |
function parseKeyValubue(/**string*/keyValue) { | |
var obj = {}, key_value, key; | |
forEach((keyValue || "").split('&'), function(keyValue) { | |
if ( keyValue ) { | |
key_value = keyValue.replace(/\+/g,'%20').split('='); | |
key = tryDecodeURIComponent(key_value[0]); |
View gist:08cdc0f04aed17921eaf
This file contains 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
<?php | |
$ip = '2001:df0:1e::'; | |
$ip2 = '2001:df0:1f::'; | |
$prefix_len = 48; | |
/** | |
* dtr_pton | |
* |
View tabletest.md
View polymer-50-shades-of-dom.html
This file contains 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
<!-- | |
HOWTO do kinky stuff with Polymer and jQuery | |
Read this is you went through https://www.polymer-project.org/1.0/docs/devguide/local-dom.html | |
and you're still not sure how to play with jQuery inside Polymer components. | |
--> | |
<link rel="import" href="/components/polymer/polymer.html"> | |
<dom-module id="my-component"> |
View macking_packing_story.md
Thinking in Maps | Thinking in Packages | Thinking in Stories | |
---|---|---|---|
Use it for | solving hard problems | absorbing new information fast, when "deep" understanding is not needed | explaining stuff |
exploring new problems or even new domains | having easily communicable information at hand | selling | |
out-of-the-box non-linear reasoning | giving easy to follow instructions | convincing | |
making sense of LARGE amounts of highly distilled information | first-phase of learning something new, if speed matters more than deeper understanding | manipulating people | |
learning new and complicated stuff | small volumes of information | ||
exploring an un-familiar domain | un-distilled information that needs to be conveyed in i |
View amazon_cats.json
This file contains 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
{ | |
"digital goods": { | |
"keywords": "", | |
"subcats": { | |
"Software": { | |
"keywords": "Software, Software Downloads, Tax Software, TurboTax, Microsoft Office, Security Software, Antivirus Software, Operating Systems, Windows 7, Windows 8, Windows, Photo Editing, Symantec, Norton, Linux" | |
} | |
} | |
}, | |
"physical goods": { |
View zero2hero-ubuntu16.sh
This file contains 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 sh | |
sudo apt-get update -y | |
# C compilers and stuff | |
sudo apt-get install -y build-essential | |
# unzip | |
sudo apt-get install -y unzip |
View bash-powerline.sh
This file contains 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 bash | |
__powerline() { | |
# Unicode symbols | |
readonly PS_SYMBOL_DARWIN='' | |
readonly PS_SYMBOL_LINUX='$' | |
readonly PS_SYMBOL_OTHER='%' | |
readonly GIT_BRANCH_SYMBOL='⑂ ' | |
readonly GIT_BRANCH_CHANGED_SYMBOL='+' |
OlderNewer