Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
View index.html
<html lang="en">
<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">
View tokenize.rb
require 'wuclan/models/tweet/tweet_token'
require 'wukong/encoding'
module Wuclan::Models
Tweet.class_eval do
def string_for_tokenizing
# simpleminded test for non-latin script: don't bother if > 20 entities
return if (text.count('&') > 20)
# skip default message from early days
return if (text =~ /just setting up my twttr/);
# return decoded, whitespace-flattened text
View gist:456067
diff --git a/datasrc/ b/datasrc/
index 7fe8f9b..988550d 100755
--- a/datasrc/
+++ b/datasrc/
@@ -233,6 +233,7 @@ image_particles = Image("particles", "particles.png")
image_game = Image("game", "game.png")
image_browseicons = Image("browseicons", "browse_icons.png")
image_emoticons = Image("emoticons", "emoticons.png")
+image_demobuttons = Image("demobuttons", "demo_buttons.png")
View hello_world.js
print("Hello World!");
cookbooks / gist:731502
Created December 7, 2010 05:24
Grit clone example
View gist:731502
# Since Git is well structured, Grit uses a method missing (Grit::Git#method_missing) to 'systematically' execute Git commands:
require 'grit'
include Grit
gritty ='/tmp/filling-in')
gritty.clone({:quiet => false, :verbose => true, :progress => true, :branch => '37s'}, "git://", "/tmp/cc-aws2")
# => "Initialized empty Git repository in /tmp/cc-aws2/.git/\n"
# => 10
remy / gist:804414
Created January 31, 2011 17:24
Simple CSS parser
View gist:804414
function parseCSS(str) {
function trim(str) {
return (str||'').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
var i, j, k,
split = '}',
cur_key = '',
css = str.replace(/\t*/g, '').replace(/\s{2}/, ' ').replace(/[\n|\r]/g, ' ').replace(/\/\*.*?\*\//g, '').split(split),
mdeiters / response.json
Created July 23, 2011 01:40
response from the coderwall api
View response.json
millisami / compiled-theme.html
Created December 14, 2011 05:08
Fumblr with Tumblr theme file
View compiled-theme.html
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lte-ie8"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lte-ie8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lte-ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>Nepal on Rails</title>
bguthrie / coderwall_badge_markup.html
Created January 9, 2012 22:47
An example of Coderwall badge integration.
View coderwall_badge_markup.html
<!-- Add these tags to the HEAD section of your page. -->
<link href="" media="all" rel="stylesheet" type="text/css">
<script src=""></script>
<!-- You also need to place a container where you'd like the Coderwall badges to render. -->
<section class="coderwall" data-coderwall-username="(your username)" data-coderwall-orientation="(vertical or horizontal)"></section>
cobbweb / fonts.css
Created February 3, 2012 05:02
Open Sans
View fonts.css
Open Sans
@font-face {
font-family: 'OpenSans';
src: url('../fonts/OpenSans-Light-webfont.eot');
src: url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/OpenSans-Light-webfont.woff') format('woff'),
url('../fonts/OpenSans-Light-webfont.ttf') format('truetype'),