Skip to content

Instantly share code, notes, and snippets.

Chase Adams chaseadamsio

Block or report user

Report or block chaseadamsio

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
View state.js
self.bold = function(state) {
// 0 || 'off' = off
// 1 || 'on' = on
View k.js
/*jshint multistr:true */
var text = "Lorem ipsum Kat sit amet, KrisKris adipiscing elit. Vestibulum Kite consectetur lorem, KKris aliquam turpis Kilts nec. Nam vel mattis."
var myName = "Kris";
var hits = [];
var count = 0;
for (var i=0; i<= text.length; i++)
chaseadamsio / handlebars-debugger.js
Created Feb 10, 2014
A snippets helper for debugging handlebars. Appends debug to all templates so you don't have to type it in yourself, and when a template is rendered, the context is logged in the console.
View handlebars-debugger.js
var scriptsNodeList = document.getElementsByTagName('script'),
debugSet = false,
templates, scripts;
// convert node list to array
scripts =;
templates = scripts.filter(function(script) {
return script.type === 'text/x-handlebars-template';
View Markdown.sublime-preferences
"color_scheme": "Packages/github-sublime-theme/GitHub.tmTheme",
chaseadamsio /
Last active Aug 29, 2015
What would your code to complete the following challenge look like?

Write some code that prints the following to the browser console, using just ONE string and the existing variables to produce the correct format:

"Old Faithful" at Yellowstone National Park\n Average eruption height today: 145\n Number of eruptions: 4\n

View gist:1ea9031b43329210602a
# Make that Command Prompt look good
gitstatus='$(__git_ps1 " %s")'
View Flatland.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<key>Ansi 0 Color</key>
<key>Blue Component</key>
<key>Green Component</key>
chaseadamsio / changelog.sublime-snippet
Created Aug 15, 2014
A CHANGELOG snippet for all the content you'd type every time. Tabbing takes you to the next placeholder.
View changelog.sublime-snippet
## ${1:Release Version}
### Added
### Deprecated
chaseadamsio / FlatLand.itermcolors
Created Sep 4, 2014
Flatland color scheme for iTerm2
View FlatLand.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<key>Ansi 0 Color</key>
<key>Blue Component</key>
<key>Green Component</key>
View minimalQueryParser.js
* Usage:
* var q = new QueryParser();
var QueryParser = function(option) {
var config = option || {};
var queriesMap = {};
var queryString = config.queryString !== undefined ? config.queryString :;
return {
You can’t perform that action at this time.