Skip to content

Instantly share code, notes, and snippets.

Chris Saylor cjsaylor

Block or report user

Report or block cjsaylor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# Some things taken from here
# Set the colours you can use

Keybase proof

I hereby claim:

  • I am cjsaylor on github.
  • I am cjsaylor ( on keybase.
  • I have a public key whose fingerprint is F626 B810 0C5D 5A96 294A E24E 9F35 46F7 FA81 2DC5

To claim this, I am signing this object:

View scrolltab_example.js
hoverin: function() {
$(this).stop().animate({width: '200px'}, 500);
hoverout: function() {
$(this).stop().animate({width: '50px'}, 500);
classname: 'scrolltab-content',
title: 'Content'
cjsaylor / qr_bookmarklet.js
Created Nov 17, 2010
QR Bookmarklet that opens an external window with the QR code of either selected text or the current URL
View qr_bookmarklet.js
javascript:(function() {''+encodeURIComponent(getSelection().toString() || window.location.href)+'&chld=H|0', 'QR Window','location=0,status=0,scrollbars=0,toolbar=0,menubar=0,directories=0,resizable=0,width=250,height=250');
View g_chart_example.php
$data = array(
'labels' => array(
array('string' => 'Sample'),
array('number' => 'Piston 1'),
array('number' => 'Piston 2')
'data' => array(
array('S1', 74.01, 74.03),
cjsaylor / .htaccess
Created Jun 15, 2011
Subdomain vhost_alias
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
<rewrite rules here>
cjsaylor /
Created Apr 1, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
cjsaylor / gist:3246834
Created Aug 3, 2012 — forked from fxsjy/gist:3244607
Simple Memcached server in Javascript with 100 lines of code
View gist:3246834
/* Simple Memcached in Javascript
* @Author: Sun, Junyi
* @Email:
* @Date: 2012-8-3
var net = require('net');
var store = {}
function handle_header(header,crlf_len){
var tup = header.split(" ")
View application_bootstrap.php
use \Zumba\Symbiosis\Plugin\PluginManager;
// Somewhere in your application bootstrap, load your plugins
'/path/to/your/plugin/directory', // Path to where you stored your plugins
'YourApp\Plugin' // namespace defined in your plugins (see example above)
cjsaylor / app.js
Created Oct 17, 2012
Bootstrap Modal with Remote Source
View app.js
$(document).ready(function() {
$(document).on('.ajaxModal', 'click', function(event) {
$.get($(this).attr('href'), function(response) {
$('<div class="modal hide fade">' + response + '</div>').modal();
You can’t perform that action at this time.