Skip to content

Instantly share code, notes, and snippets.

View cmbirk's full-sized avatar

Chris Birk cmbirk

View GitHub Profile
@yuya-takeyama
yuya-takeyama / 1.travis.yml
Created December 19, 2011 17:33
Travis CI PHP
language: php
php:
- 5.3
- 5.4
@mjangda
mjangda / implode-in.php
Created January 20, 2012 06:33
How to generate an IN list that can be passed into a $wpdb call
<?php
$meta_keys = array( 'abc', 'def' );
$meta_keys_in = sprintf( "'%s'", implode( "','", array_map( 'esc_sql', $meta_keys ) ) );
@junosuarez
junosuarez / gist:6181848
Created August 8, 2013 05:57
notes from SF Open Legislation Hack Night, 2013.08.07
what's the easiest way to be able to observe areas of change - and proposed change - of machine readable code?
way to model and capture legislative behavior and change management on bodies of legislation as a service.
respect for line numbers, section numbers, section references, range references
don't just model legislation as a living document, but capture the actual bills for amending said legislation
also capture change process for the bills
(basically like working in a feature branch)
@krusynth
krusynth / annotator-madison.js
Created January 9, 2014 19:06
Using binding to add parameters to a function
Annotator.Plugin.Madison = function(element, options){
this.options = options;
}
$.extend(Annotator.Plugin.Madison.prototype, new Annotator.Plugin(), {
events: {},
options: {},
pluginInit: function(){
this.annotator.viewer.addField({
load: load_fn.bind(this, user)
@travismillerweb
travismillerweb / scroll-shadow.css
Created September 23, 2013 18:57
CSS - Google Scroll Shadow
/*
Gmail/Google Reader Sidebar Scroll Shadows
-------------------------------------------
Neat effect that mimics the scroll shadows that appear in the GOogle sitde bar and visually cues users to scroll up or down depending on their position.
Credit goes to Lea Verou for this awesome find.
Source:
Lea's Talk: http://www.youtube.com/watch?v=3ikye7Qc7Ak
Code Source: http://lea.verou.me/more-css-secrets/#slide9
@krusynth
krusynth / books.md
Last active June 15, 2021 16:56
A list of useful books to improve your skills

Recommended Books

A list of useful books to improve your skills

Recommendations from others are noted in (parentheses). The rest are my personal recommendations.

Programming

Building your core

  • The Pragmatic Programmer - Hunt & Thomas
@schmurfy
schmurfy / gist:3199254
Created July 29, 2012 14:33
Install pandoc Mac OS X 10.8
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew
@konklone
konklone / ssl.rules
Last active August 8, 2023 08:39
nginx TLS / SSL configuration options for konklone.com
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@rajraj
rajraj / es.sh
Created January 3, 2012 20:07 — forked from aaronshaf/es.sh
Install ElasticSearch on CentOS 6
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.i686 -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"