Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
#!/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
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
// ==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==
@skopp
skopp / dabblet.css
Created January 30, 2013 03:06 — forked from davidmerrique/dabblet.css
Paper Stack
/**
* Paper Stack
*/
* { box-sizing: border-box; }
a { text-decoration: none; color: #AC190C; }
body {
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
background: url("http://subtlepatterns.com/patterns/wood_pattern.png");
background-color: #fff;
@skopp
skopp / gister.sh
Created January 18, 2013 22:53 — forked from weakish/README.md
#!/bin/sh
### a command line tool to access https://gist.github.com
## by Jakukyo Friel <weakish@gmail.com> and licensed under GPL v2
## Ref:
# github API: https://develop.github.com/v3/
# gist API: https://developer.github.com/v3/gists/
# pygist: https://github.com/mattikus/pygist
@skopp
skopp / README.md
Created January 18, 2013 21:23 — forked from oodavid/README.md
php git site deployment

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

anonymous
anonymous / index.coffee
Created January 18, 2013 14:42
Kodepad Gist Share by fkadev on http://koding.com Author: http://fkadev.koding.com
# Your awesome Koding App Code
{nickname} = KD.whoami().profile
class MainView extends JView
constructor:->
super
@header = new KDHeaderView
type: "big"
@max-mapper
max-mapper / horse.js
Created January 15, 2013 21:18
horse.js
var loader = new game.THREE.JSONLoader( true )
loader.load( "/horse.js", function( geometry ) {
window.horseGeometry = horseGeometry = geometry
})
function Horse() {
this.radius = 600
this.theta = 0
this.duration = 1000
this.keyframes = 15
@drublic
drublic / rem-fallback.less
Last active March 28, 2020 23:57
Fallback rem-mixin in Sass and LESS
@main-font-size: 16px;
.x-rem (@property, @value) {
// This is a workaround, inspired by https://github.com/borodean/less-properties
@px-fallback: @value * @main-font-size;
-: ~`(function () { return ';@{property}: @{px-fallback}'; }())`;
-: ~`(function () { return ';@{property}: @{value}rem'; }())`;
}