Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
@skopp
skopp / DATABASE
Created July 28, 2013 06:15 — forked from FND/DATABASE
# INT = integer
# STR = string
# () = set
# [] = list
# == USERS ==
#
# users = () # usernames -- XXX: use list?
# users
# enum = INT
@skopp
skopp / _config.yml
Last active December 20, 2015 07:59 — forked from seraphyn/_config.yml
# Google Plus Profile
# Hidden: No visible button, just add author information to search results
googleplus_user: 112735778092864419421
googleplus_hidden: yes
googleplus_profile_display: block
googleplus_post_display: block
googleplus_post_amount: 10
# Google Api Console
google_api_key: AIzaSyCqR5_JXEJlRpJJmjLwiRxNR2M5xyxEOBI
@skopp
skopp / repo.py
Created July 28, 2013 06:05 — forked from FND/repo.py
"""
generate HTML overview of a GitHub user's repositories
results are sent to STDOUT
Usage:
$ python repo.py <username>
"""
@skopp
skopp / index.html
Created July 28, 2013 06:02 — forked from FND/index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cork - virtual pinboard</title>
<link rel="stylesheet" type="text/css" href="styles/main.css">
<link rel="stylesheet" type="text/css" href="styles/jquery.ui.css">
</head>
curl -s http://USER:PASS@pinboard.in/export/
require 'pinboard'
require 'json'
pinboard = Pinboard::Client.new token: 'your:api:token'
readability = JSON.parse(File.read('path/to/your/readability/JSON/file'))
readability.each |article| do
pinboard.add({
:url => article['article__url'],
God.watch do |w|
w.uid = "git"
w.gid = "git"
w.name = "camo"
w.pid_file = "/data/camo/tmp/camo.pid"
w.interval = 30.seconds
w.env = {
"PORT" => '8080',
"CAMO_KEY" => '0x24FEEDFACEDEADBEEFCAFE'
class MainView extends JView
constructor:->
super
@terminal = new KDView
cssClass: "terminal"
@terminal.$().css
width: "100%"
height: 300
var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('a.gist').map(function(n, a) {
a = $(a);
var href = a.attr('href');
var gistPrefix = 'http://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('p.gist').map(function(n, p) {
p = $(p);