Skip to content

Instantly share code, notes, and snippets.

@ehimsi
ehimsi / jquery.deferred.promise.js
Created Apr 17, 2019 — forked from pbojinov/jquery.deferred.promise.js
simple jQuery Deferred example
View jquery.deferred.promise.js
function getData() {
var deferred = $.Deferred();
$.ajax({
'url': 'http://google.com',
'success': function(data) {
deferred.resolve('yay');
},
'error': function(error) {
deferred.reject('boo');
View gulp-angular-skeleton-gulpfile-annotated.js
//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'),
You can’t perform that action at this time.