Skip to content

Instantly share code, notes, and snippets.

View hellatan's full-sized avatar

dale tan hellatan

View GitHub Profile
@hellatan
hellatan / randomizerLength.js
Last active August 29, 2015 13:56
Create a randomized string with a designated length
function randomizer(multiplier, iterations, maxLength) {
var storage = "";
var truncated = "";
var multiplier;
var iterations;
var maxNumLength;
var args = arguments;
var argsLength = args.length;
@hellatan
hellatan / createElementSelectors.js
Last active August 29, 2015 13:57
Creates jQuery element selectors
/**
* Creates a new property on an object
* http://jsfiddle.net/hellatan/AQPQ7/
*
* @param {object} obj The object with the property to update/create
* @param {string} [key] The key to check for to create new property
* @param {string} [newKey] The new key to create
* @returns {Object}
*
* @example
@hellatan
hellatan / branchesExample.json
Last active August 29, 2015 13:57
Delete a list of branches from the remote and/or locally
{
"branches": ["branch-1", "branch-2", "branch-3"]
}
@hellatan
hellatan / SassMeister-input.scss
Created April 19, 2014 20:31
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
@mixin media-query() {
@media only screen {
@content;
}
}
@hellatan
hellatan / SassMeister-input.scss
Created April 19, 2014 20:34
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
.class-1 {
display: block;
&.is-last {
margin: 0;
@hellatan
hellatan / SassMeister-input.scss
Created April 19, 2014 20:53
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
%holder {
color: green;
&:hover {
color: red;
}
}
@hellatan
hellatan / deleteRemoteBranches.js
Last active August 29, 2015 14:03
Delete remote branches (typical context is github for me)
#!/usr/bin/env node
//DO NOT PUT "use strict" HERE OR THE LOGGER WILL NOT BE ABLE TO LOG ERROR
/*
1. node.js must be installed
2. added +x to this script
3. put this script anywhere, but run the shell command from within the desired repository
*/
@hellatan
hellatan / SassMeister-input.scss
Created August 30, 2015 18:05
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
html {
box-sizing: border-box;
}
*,
*::before,
@hellatan
hellatan / SassMeister-input.scss
Created October 9, 2015 20:58
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
%application-header {
text-transform: uppercase;
font-family: "helvetica";
line-height: 1;
}
@hellatan
hellatan / SassMeister-input.scss
Last active October 9, 2015 21:08
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
%application-header {
text-transform: uppercase;
font-family: "helvetica";
line-height: 1;
}