Skip to content

Instantly share code, notes, and snippets.

@uknick
uknick / blank.html
Created August 15, 2017 15:51
blank app
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script>
var app = {
@uknick
uknick / gulpfile.js
Created August 7, 2017 11:11
gulp with babel auto-watcher
const gulp = require('gulp');
const babel = require('gulp-babel');
// default task set to auto-watch.
gulp.task('default', function () {
gulp.watch('js/*', ['babel']);
});
// babel task
gulp.task('babel', function () {
@uknick
uknick / gulpfile.js
Created August 7, 2017 10:18
gulp setup.
var
//modules
gulp = require('gulp'),
// css modules
sass = require('gulp-sass'),
postcss = require('gulp-postcss'),
assets = require('postcss-assets'),
autoprefixer = require('autoprefixer'),
mqpacker = require('css-mqpacker'),
cssnano = require('cssnano');
function fizz(i){
var divBy3 = i % 3 === 0;
var divBy5 = i % 5 === 0;
if (divBy3 && divBy5) {
return "fizzBuzz";
} else if (divBy3) {
return "fizz";
} else if (divBy5){
@uknick
uknick / gist:5452024
Created April 24, 2013 13:14
Yahoo weather API stuff. You'll need the zWeatherFeed jquery plugin - http://www.zazar.net/developers/jquery/zweatherfeed/
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
<style>
.weatherDesc {display:none;}