Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
// ==UserScript==
// @name MOUSTACHE CHAT
// @author Robert Lemon
// @version 0.1
// @namespace http://rlemon.com
// @description Makes the chat all moustachy
// @include http://chat.stackexchange.com/rooms/*
// @include http://chat.stackoverflow.com/rooms/*
// ==/UserScript==
require 'connection_pool'
require 'redis'
require 'metriks'
class RedisClientWrapper
def initialize(options)
@options = options.delete(:pool)
@pool = ConnectionPool.new(@options) do
::Redis.new(options)
end
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# gmail2opera.py
# Copyright (c) 2010 Kevin Chabowski
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
This is a story all about how
HTML5 got flipped, turned upside down.
Now i'd like to take a minute. Just site right there,
I'll tell you why you should be using Adobe AIR.
In some dark basement, fat and unshaved, gaming:
That's where I spent most of my days.
Camping out newbs, and pretending to be cool,
in the chatrooms talkin trash to some random dude.
@scottksmith95
scottksmith95 / index.html
Last active December 14, 2015 00:39
How to use the coderbits profile widget on your website or blog
<!-- Include the following CSS and Javascript in your page -->
<link href="https://coderbits.com/content/widget/coderbits.css" media="all" rel="stylesheet" type="text/css">
<script src="https://coderbits.com/content/widget/coderbits.js"></script>
<!-- Place the following in the page where you want the widget to render and set your username -->
<section id="coderbits" data-coderbits-username="<your username>"></section>
/*
We write the language of love
No ECMAScript and I would die.
That last commit was, full of bugs,
I wouldn't roll it back for any other guy!
High, is what you were. I know the feeling.
God I hate, jQuery Fans!
Never gonna make it work
@skopp
skopp / index.coffee
Last active December 14, 2015 02:49 — forked from anonymous/index.coffee
KDapp Sample (Really!!) code gist
# WOW! This is inception!!!
{KDView} = KD.classes
{KDSplitView} = KD.classes
{KDInputView} = KD.classes
{KDModalView} = KD.classes
{KDButtonView} = KD.classes
{KDHeaderView} = KD.classes
{KDOnOffSwitch} = KD.classes
{KDListItemView} = KD.classes
@skopp
skopp / gfm.rb
Created March 2, 2013 13:35 — forked from mojombo/gfm.rb
require 'digest/md5'
def gfm(text)
# Extract pre blocks
extractions = {}
text.gsub!(%r{<pre>.*?</pre>}m) do |match|
md5 = Digest::MD5.hexdigest(match)
extractions[md5] = match
"{gfm-extraction-#{md5}}"
end
@max-mapper
max-mapper / readme.md
Last active December 14, 2015 14:58
js 'pagelet' concept

pagelet

tries to provide a way to use NPM to distribute web components with as little abstraction as possible

  • uses plain index.js, style.css, index.html etc
  • works in multiple environments

example (intentionally verbose)

consider a module called 'simple-button':

@avaris
avaris / neighbors.py
Last active December 14, 2015 21:09
Pelican: prev/next article plugin.
from pelican import signals
"""
Neighbor Articles Plugin for Pelican
====================================
Adds ``next_article`` (newer) and ``prev_article`` (older) variables
to the articles context
Usage: