Skip to content

Instantly share code, notes, and snippets.

Shannon Thrasher shanimal

Block or report user

Report or block shanimal

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
shanimal / js-testing-playground.html
Created Nov 18, 2016 — forked from calvinf/js-testing-playground.html
JavaScript Testing Playground (Mocha, Chai, and $script)
View js-testing-playground.html
<!doctype html>
<html lang="en">
<meta charset="UTF-8">
<title>JavaScript Testing Playground</title>
<link href="" rel="stylesheet" />
*, *:before, *:after {
shanimal / SecretNumber.js
Last active Sep 24, 2016
Pick any number. Add the digits. Repeat until there is only one digit in your number. Multiply that by 5. Multiply that by 2. Subtract 2. Your number is 8.
View SecretNumber.js
* Pick any number.
* Add the digits.
* Repeat until there is only one digit in your number.
* Multiply that by 5.
* Multiply that by 2.
* Subtract 2.
* Take the last digit in this number
* Your number is 8.
View gist:d975416e6e85116bd2a90a43d2401d6a
/* this code will execute only once */
$('#myParentElement a.myClass').editable().click();
View parseURIData.js
* parseURIData(;
* @param search
* @returns {*}
module.exports = function (search) {
var result = {};
return result;
shanimal / LoanCalculator.hbs
Created Nov 12, 2015
Notes for a Generic Component Based Application
View LoanCalculator.hbs
* Keep blocks used by exclusively by ComponentLoanCalculator inside this file and prefix them with ComponentLoanCalculator
* When designing your partials, assume the container will control margins, dimensions and positioning.
* Assume a generic 5-10px padding for components (defined in the theme .component)
* For information on breakpoint see the scss file
* for angular apps use square brackets for binding [[myVar]] (because curly brackets are used by handlebars)
* Document this document vigilantly
{{#partial "ComponentLoanCalculator"}}
<div class="component LoanCalculator [[breakpoint]]">
View gist:47befdc5fbea80831399
var system = require('system');
var args = system.args;
var env = system.env;
var os = system.os;
console.log(os.architecture); // '64bit/32bit'
console.log('os',; // 'mac/windows'
console.log('version',os.version); // '10.9 (Mavericks)/7'
View gist:a336a967d9e9d8a8f7d8
input[type='checkbox'] {
@include checkbox-input;
&:checked {
background-color: transparent;
&:before {
View test.json
"rules": {
"Address_ZipCode": {
"minlength": 5,
"maxlength": 5,
"regex": "^[\\+0-9]*$",
"number": true,
"required": true
"Phone": {
shanimal / xss_ex
Last active Jan 2, 2016
simple xss example
View xss_ex
alert('Im a script located on gist.github via rawgithub and I\'ve been injected into this demo @' + document.location.origin)
alert('I have full access to JS to do things like read your cookies... Check this out... ' + document.cookie);
alert('I can also access the websites API to change your password or steal your credit card number');
alert('XSS can be used for Eve-ill');
View jsbin.iSoxEKU.css
body {
font-family:helvetica, arial
.content {
margin:0 auto;
background-color: #EEE;
You can’t perform that action at this time.