Skip to content

Instantly share code, notes, and snippets.

@darwin
darwin / gist:102187
Created April 26, 2009 22:03
How to achieve Terminal.app setup as seen on Visor screenshots
here is my ~/.profile:
http://dl.getdropbox.com/u/559047/dot_profile
@darwin
darwin / lottery.rb
Created September 27, 2010 19:15
The first crash reports lottery for TotalFinder
#!/usr/bin/env ruby
# http://blog.binaryage.com/winners-crash-reports-lottery
require 'rubygems'
require 'gmail'
unless ENV["GMAIL_PASSWORD"] then
puts "setenv GMAIL_PASSWORD pls!"
exit 1
@Marak
Marak / hack.sh
Created March 31, 2012 22:30 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@StevenClontz
StevenClontz / comic.html
Created February 12, 2013 22:15
Mockup of an HTML template representing an XKCD (or some other) comic
<div id="comic">
<div class="panel">
<div class="caption">
One lazy morning
</div>
<div class="actor actor-left cueball"></div>
<div class="actor actor-right cueball"></div>
<div class="actor-text actor-left">
I had an idea today
</div>
@pepe
pepe / index.html
Last active December 13, 2015 17:08
Those days cmx.io
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1">
<label t="translate(0,346)">
<tspan x="0" y="0em">Those days</tspan>
</label>
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59">
@JohnLBevan
JohnLBevan / index.html
Last active December 13, 2015 17:38 — forked from darwin/index.html
Harlem Shake XKCD Style (thanks to cmx.io)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<script type="text/javascript">
<!--
var frame2 = true;
var vis = {};
@reinvented
reinvented / index.html
Created June 29, 2013 18:48
Oliver thinks his devices may be betraying him!
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
@mfikes
mfikes / scljs.md
Last active December 29, 2015 10:47
State of ClojureScript

If you look at the 2014 State of ClojureScript survey, these are the top items for What has been most frustrating for you in your use of CLJS?, and my take on work done in these areas is below. It is nothing short of amazing, IMHO.

Therefore I urge you to do the current survey.

  1. Difficulty using ClojureScript REPL: The Node.js REPL was added, as well as a Nashorn REPL, as well as a lot of new "ease-of-use" stuff baked into all base REPLs (doc, pst, etc.). Additionally, a few new ClojureScript REPLs (Ambly, Replete, Planck) rely heavily on new stuff in ClojureScript.
  2. Difficulty debugging generated JavaScript: Source map capability was essentially extended to all REPLs with stack traces automatically being mapped. The
@oleganza
oleganza / impulse_review.md
Last active January 23, 2016 06:24
Impulse Review

(That's my attempt to understand what problem Impulse solves and how. I am not a designer/developer of this scheme.)

Problem

Regular Bitcoin transactions are not guaranteed until mined sufficiently deep in the blockchain. Unconfirmed transactions can be observed nearly instantly, but they cannot be trusted (could drop out because of insufficient fees, or double-spent).

Impulse Overview

@taylorSando
taylorSando / pr-opts.cljs
Created February 8, 2016 15:07
A way to have better function output using pr-str
;; Using defonce, because in a reloaded workflow, only want this to run once
;; Changes the default printing of the javascript source code of a function to just the function name.
;; Changes instances of dollar sign to dot, and underscores to hyphens.
;; cljs$core$pr_str would be cljs.core.pr-str instead
(defonce
ugly-pr-opts-hack
(set!
cljs.core/pr-opts
(let [old-pr-opts (cljs.core/pr-opts) ]
(fn []