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
Knowing that mentality, | |
taking straightforwardness as basic, | |
taking the real mind as the Way, | |
practicing martial arts in the broadest sense, | |
thinking correctly, clearly, and comprehensively, | |
taking emptiness as the Way, | |
you see the Way as emptiness. | |
In emptiness there is good but no evil. | |
Wisdom exists, logic exists, the Way exists, mind is empty. |
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
import System.Random (getStdGen, randomR) | |
import Data.MultiSet (fromList, toOccurList) | |
import Data.List (maximum) | |
import Data.Function (on) | |
import Data.List (sortBy) | |
import Graphics.Google.Chart | |
import Hledger.Cli.Utils (openBrowserOn) | |
step xs g = (newItem : xs, newG) | |
where (i, newG) = pick (length xs) g |
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
But even if TextMate 2 drops from the sky fully-formed and marveled | |
at by all, Emacs will still be there, waiting. It will be there when | |
the icecaps melt and the cities drown, when humanity destroys itself | |
in fire and zombies, when the roaches finally achieve sentience, take | |
over, and begin using computers themselves — at which point its | |
various Ctrl-Meta key-chords will seem not merely satisfyingly | |
ergonomic for the typical arthropod, but also direct evidence for the | |
universe’s Intelligent Design by some six-legged, multi-jointed | |
God. |
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> | |
<body> | |
<script> | |
var d = new Date() | |
var date = d.getDate() | |
if ( date > 20 ) { | |
alert("the month is almost over") | |
} |
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> | |
<body> | |
<script> | |
var str = "the quick brown fox" | |
var french = str.replace("the", "le") | |
alert(french) | |
</script> | |
</body> |
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> | |
<body> | |
<script> | |
var person = prompt("What's your name?","Grace Hopper"); | |
if ( person!=null ) { | |
x = "Hi " + person + "!"; | |
alert( x ); | |
} | |
</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
var person = prompt("Your name?"); | |
if ( person!=null ) { | |
x = "Hi " + person + "!"; | |
alert( x ); | |
} |
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
/* | |
* This simulation demos using the routing table to send packets between chips. | |
* The NW, SE, and SW chips are all sending a packet to every core on the NE chip. | |
* On receiving a packet, the core simply prints an acknowledgement. | |
*/ | |
#include "spin1_api.h" | |
#define NORTH 3 | |
#define SOUTH 2 |
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
#!/bin/bash | |
# download the code | |
wget https://gist.github.com/BinRoot/8157165/raw/9109a51173b76c4e233fd00165fb25e62b249aa5/spell.hs | |
# download big.txt | |
wget http://norvig.com/big.txt | |
# run the code | |
runhaskell spell |
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
-- Author: BinRoot | |
-- Todo: dmenu, animations | |
import XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Layout.NoBorders (smartBorders) | |
import XMonad.Hooks.FadeInactive (fadeInactiveLogHook) | |
import XMonad.Hooks.ManageDocks (manageDocks) | |
import XMonad.Hooks.SetWMName (setWMName) | |
import XMonad.Layout.Spacing (smartSpacing) |