Skip to content

Instantly share code, notes, and snippets.

View alvin-milton's full-sized avatar
🤠
yee haw

Alvin Milton alvin-milton

🤠
yee haw
  • New York
View GitHub Profile
@alvin-milton
alvin-milton / .htaccess
Created April 8, 2019 19:11 — forked from schilke/.htaccess
Extend .htaccess (with Cachify directives) for better Caching/Compression
# To make sure
mod_gzip_on Yes
# Optional
AddDefaultCharset UTF-8
# BEGIN ADD MIME TYPES
<IfModule mod_mime.c>
AddType text/css .css
AddType text/x-component .htc
@alvin-milton
alvin-milton / package.json
Created May 9, 2018 15:58 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@alvin-milton
alvin-milton / ultimate-ut-cheat-sheet.md
Created January 27, 2017 05:20 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@alvin-milton
alvin-milton / index.html
Created November 21, 2016 20:41 — forked from anonymous/index.html
Post Landing page tech
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<pre>
===================
var i = 1;
for (i; i <= 100; i++) {
if ((i % 3 === 0) && (i % 5 === 0)) {
console.log('fizzbuzz');
} else if (i % 5 === 0) {
console.log('buzz');
} else if (i % 3 === 0) {
console.log('fizz');
} else {