Recommendations from others are noted in (parentheses). The rest are my personal recommendations.
- The Pragmatic Programmer - Hunt & Thomas
language: php | |
php: | |
- 5.3 | |
- 5.4 |
<?php | |
$meta_keys = array( 'abc', 'def' ); | |
$meta_keys_in = sprintf( "'%s'", implode( "','", array_map( 'esc_sql', $meta_keys ) ) ); |
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) |
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) |
/* | |
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 | |
# 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 |
# 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 { |
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 |
# | |
# 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)" |