I hereby claim:
- I am mmcclimon on github.
- I am mmcclimon (https://keybase.io/mmcclimon) on keybase.
- I have a public key whose fingerprint is 0E5B F7AB D4E2 E18C 2E97 724A 2AD7 BC42 D5DC 1BA7
To claim this, I am signing this object:
sub sieve { | |
my $limit = shift || 1000; | |
my @list = map {$_ = 1} 0..$limit; | |
for my $i (2..sqrt($limit)) { | |
if ($list[$i]) { | |
for (my $j = $i**2; $j < @list; $j += $i) { | |
$list[$j] = 0; | |
} | |
} | |
} |
eval eval '"'. | |
('['^'+').("\["^ | |
( ')')).('`'|')').("\`"| ( | |
( '.'))).('['^'/').('{'^'[') . | |
( '\\').'"'.('`'|'-').('`'|'/'). ( | |
( '[')^'(').('['^'/').('{'^"\[").( ( | |
( '`'))|'/').('`'|'&').('{'^('[')).( ( | |
( '['))^'/').('`'|'(').('`'|('%')).( ( | |
( '`'))|'-').'\\'.'\\'.('`'|'.').('['^ ( |
# variables for git info in prompt | |
bGIT_PROMPT_OPEN='' | |
bGIT_PROMPT_MIDDLE='' | |
bGIT_PROMPT_CLOSE='' | |
bGIT_CURRENT_BRANCH='' | |
bGIT_CURRENT_SHA1='' | |
bGIT_CURRENT_STATUS='' | |
set_ps1_vars() { | |
local gitdir=`git rev-parse --git-dir 2> /dev/null` |
#!/usr/bin/env python | |
#!/usr/bin/env ruby | |
# take your pick! | |
def gcd(a, b): | |
# greatest common divisor...Euclidian algorithm | |
while b != 0: | |
tmp = b | |
b = a % tmp | |
a = tmp |
#!/bin/bash | |
############################ | |
# CONFIG: Change these as necessary | |
############################ | |
# pandoc | |
PANDOC_CMD="pandoc" | |
PANDOC_OPTS="-s --latex-engine=xelatex" | |
# latexmk |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> | |
</head> | |
<body> | |
<p>This is the text. You'll need to make sure jQuery is loaded. When | |
you highlight some text we use some JavaScript to grab it and update | |
the tweet button.</p> |
#!/usr/bin/env ruby | |
class Object | |
# The following are falsy: false, nil, 0, "", and empty arrays/hashes. | |
# Anything else falls is truthy. This emulates Perl's truthiness. | |
def truthy? | |
if self.nil? | |
return false | |
elsif self.is_a? Fixnum | |
return self != 0 |
I hereby claim:
To claim this, I am signing this object:
\documentclass[12pt]{article} | |
\usepackage[margin=1in,headheight=.5in]{geometry} | |
\usepackage{fontspec} | |
\usepackage{titlesec} | |
\usepackage{array} | |
\defaultfontfeatures{Mapping=tex-text,Scale=MatchUppercase,% | |
SmallCapsFeatures={LetterSpace=5.0,Letters = SmallCaps}} | |
\setmainfont[Numbers={OldStyle}]{Minion Pro} | |
\titleformat*{\section}{\large} |
let b:mto_open_tag = "<?php " | |
let b:mto_close_tag = "?>" | |
" Stolen from https://stackoverflow.com/a/1534347/1824895 | |
function! s:get_visual_selection() | |
normal! gv"zy | |
return @z | |
endfunction | |
function! s:_one_arg(prompt, php_func_name, add_dollar=0) |