This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'rake-pipeline-web-filters' | |
APPNAME = 'Digiex' | |
Encoding.default_external = Encoding::UTF_8 | |
Encoding.default_internal = Encoding::UTF_8 | |
WebFilters = Rake::Pipeline::Web::Filters | |
class HandlebarsFilter < Rake::Pipeline::Filter | |
def initialize(&block) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debugging EmberJS and EmberData: | |
Log router transitions: | |
window.App = Ember.Application.create({ | |
LOG_TRANSITIONS: true, | |
}); | |
Log object bindings: | |
Ember.LOG_BINDINGS = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ajax: function (url, type, hash, cache) { | |
var adapter = this; | |
function rsvp(resolve, reject, url, type, hash, cache, adapter) { | |
if (!!cache) { | |
hash.localCache = true; | |
hash.cacheTTL = 12; // in hours. | |
hash.cacheKey = 'ApplicAd-DataCache-' + url; | |
} | |
hash = hash || {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-clean'), | |
concat = require('gulp-concat'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-clean'), | |
concat = require('gulp-concat'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Rx = require('rx'); | |
var Promise = require('bluebird'); | |
function getPromiseByNum(num) { | |
if (num < 2) { | |
return Promise.resolve(num); | |
} else { | |
return Promise.reject(num); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = require('path'); | |
var http2 = require('http2'); | |
var connect = require('connect'); | |
var app = connect(); | |
var Builder = require("systemjs-builder"); | |
/** | |
* Get the config from our config.js file that JSPM sets up for us. | |
* */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'jquery'; // import a module without any import bindings | |
import $ from 'jquery'; // import the default export of a module | |
import { $ } from 'jquery'; // import a named export of a module | |
import { $ as jQuery } from 'jquery'; // import a named export to a different name | |
export var x = 42; // export a named variable | |
export function foo() {}; // export a named function | |
export default 42; // export the default export | |
export default function foo() {}; // export the default export as a function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
defaultJSExtensions: true, | |
transpiler: "babel", | |
babelOptions: { | |
"optional": [ | |
"es7.objectRestSpread", | |
"es7.decorators", | |
"es7.classProperties", | |
"runtime" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var EventEmitter = require('events').EventEmitter; | |
var path = require('path'); | |
var fs = require('fs'); | |
var exec = require('child_process').exec; | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { | |
timeout = null; |
OlderNewer