Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
@skopp
skopp / gem_list.sh
Last active December 22, 2015 14:29
View gem_list.sh
$ gem list
*** LOCAL GEMS ***
actionpack (3.2.8)
activemodel (3.2.8)
activesupport (3.2.8)
addressable (2.2.8)
bigdecimal (1.2.0)
builder (3.0.4)
View Python_test2.py
import re
import glob
import os
import sys
import fnmatch
def ConvertToLLT_19nm_Seal(addr_orig):
my_str1 = addr_orig
my_str1_length = len(my_str1)
@skopp
skopp / serialize.pl
Created September 1, 2013 07:10
yaml serialize perl
View serialize.pl
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
use Benchmark::Serialize qw( cmpthese );
my @benchmark = (); # package names of benchmarks to run
my $iterations = -1; # integer
@skopp
skopp / syck.pm
Created September 1, 2013 07:06
why the lucky stiff - syck
View syck.pm
package JSON::Syck;
use strict;
use YAML::Syck ();
$JSON::Syck::VERSION = '0.13';
*Load = \&YAML::Syck::LoadJSON;
*Dump = \&YAML::Syck::DumpJSON;
$JSON::Syck::ImplicitTyping = 1;
View gist:6344668

Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.

Ruby

View tinyc.c
/* file: "tinyc.c" */
/* Copyright (C) 2001 by Marc Feeley, All Rights Reserved. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* This is a compiler for the Tiny-C language. Tiny-C is a
@skopp
skopp / README.md
Created August 24, 2013 17:40 — forked from mbostock/.block
View README.md

Run like so:

node gist-clone-all.js username

You'll want to replace "username" with your own username.

This script clones using the push URL, so you should probably be the owner of the gists. You could also use this to clone someone else's gists, but in that case you may wish to edit the code to use gist_pull_url instead.