brew update
brew install pyenv
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
<html> | |
<style> | |
body { | |
margin: 0; | |
padding 0; | |
} | |
</style> | |
<body> | |
<script> |
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
ffmpeg -i out.ogv -s 160x128 -pix_fmt rgb24 -ss 62.6 -t 3 -r 5 -loop 0 -f gif out.gif | |
convert -loop 0 -layers Optimize out.gif outopt.gif |
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
(function($) { | |
// My micro jQuery templating engine | |
// Include this script before your closing </body> tag. | |
// Usage: | |
// | |
// <section data-html="content"></section> | |
// | |
// This will load <html/content.html> into <section> |
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
// you can make a construct for those | |
// times you want to ignore exceptions: | |
// here's the closure that can ignore things | |
def ignoring = { Class<? extends Throwable> catchMe, Closure callMe -> | |
try { | |
callMe.call() | |
} catch(e) { | |
if (!e.class.isAssignableFrom(catchMe)) { | |
throw e |
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
public class SimpleEchoServer implements Runnable { | |
private int port; | |
private LinkedList<Socket> openClients = new LinkedList<Socket>(); | |
private boolean cleaningUp = false; | |
public SimpleEchoServer(int port) { | |
this.port = port; | |
} | |
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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
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 macros | |
macro eval(s: string): expr = | |
result = parseStmt($s) | |
eval("echo 5") |
OlderNewer