Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am hannaliebl on github.
  • I am hannaliebl (https://keybase.io/hannaliebl) on keybase.
  • I have a public key ASCTk7Zf0cg_7IdfwtEJj061p7nsXQO9Sta64jmYAeJwxwo

To claim this, I am signing this object:

@hannaliebl
hannaliebl / gulp-angular-skeleton-gulpfile-annotated.js
Last active May 12, 2017 06:31
Gulp Angular Skeleton Annotated Gulpfile
//two main tasks are 'gulp watch' and 'gulp build'
//dependencies:
var gulp = require('gulp');
//to use in conjunction with chrome plugin:
livereload = require('gulp-livereload');
//for css:
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = reqwuire('gulp-minify-css'),
@hannaliebl
hannaliebl / closure.js
Created July 26, 2014 06:33
Clarissa's closure example exercise solution
function makeCounter () {
var counter = 0;
var commands = [];
return function (str) {
if (str === "inc") {
counter = counter + 1;
commands.push("inc");
return counter;
} else if (str === "dec") {
counter = counter - 1;
@hannaliebl
hannaliebl / fizzbuzz.js
Created November 8, 2013 18:17
Solutions to the Fizzbuzz problem, so far in two languages. Both of them take a user-inputted number and then return the Fizzbuzz solution up until that number.
$(function () {
var user_number = prompt('Enter a number!');
for (var index = 1; index <= user_number; index += 1) {
if (index % 3 === 0 && index % 5 === 0) {
document.write('fizzbuzz' + '<br />');
} else if (index % 3 === 0) {
document.write('fizz' + '<br />');
} else if (index % 5 === 0) {
document.write('buzz' + '<br />')
} else {