quick version of the chart posted in this tweet from @CondorOptions.
To see it live, go here.
quick version of the chart posted in this tweet from @CondorOptions.
To see it live, go here.
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
global start | |
section .text | |
start: | |
push dword msg.len | |
push dword msg | |
push dword 1 | |
mov eax, 4 |
#!/usr/bin/env python | |
''' | |
This code is adapted from the consensus best practice python Twitter feed | |
consumer that's been floating around for a while now on StackOverflow etc. | |
My only addition to speak of is TenminWriter. (A "tenmin" is ten minutes | |
worth of stream. It's just a convenient chunk; you might want to make it | |
shorter or longer.) | |
THERE ARE BUGS HERE. THIS IS BARELY TESTED. DO NOT TRUST IT. |
# | |
# Playing around with CIE Lab colors in R | |
# | |
# load library that provides colorRampPalette | |
library(grDevices) | |
# define function for plotting colors | |
plotColors = function(palette, n=10) { | |
colors = palette(n) |
"%<-%" <- function(x,y) call("<-",substitute(x),substitute(y)) | |
returm <- function(x) call("return",substitute(x)) | |
exec <- quote | |
join <- function(ss,sep) { | |
res <- "" | |
for (s in ss) { | |
res <- paste(res,s,sep=sep) | |
} | |
res |
library("quantmod") | |
# we're pulling the Google VIX index (VXGOG) but this also works for VXAPL, VXGS etc. | |
# see http://www.cboe.com/micro/equityvix/introduction.aspx | |
url <- "http://www.cboe.com/publish/ScheduledTask/mktdata/datahouse/VXGOGDailyPrices.csv" | |
symb = read.csv(url,header=FALSE, stringsAsFactors=F) | |
symb <- symb[-1,] | |
colnames(symb) <- c(symb[1,]) | |
symb <- symb[-1,] |
(ns overtone.examples.internal-sequencer | |
(:use [overtone.live])) | |
;; A fully server-side sample sequencer. | |
;; ===================================== | |
;; This example demonstrates some of the benefits of moving all synth | |
;; triggers inside the server itself. For example, it allows you to | |
;; modify the synthesis with *immediate* effect (rather than waiting for | |
;; the next bar/chunk to be scheduled) and you can use a global pulse to |
import random, sys | |
NONWORD = "\n" | |
STARTKEY = NONWORD, NONWORD | |
MAXGEN=1000 | |
class MarkovChainer(object): | |
def __init__(self): | |
self.state = dict() |