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
/** | |
* Setup images sprite having high resolution variant for retina displays. | |
* | |
* It will create class names for all available icons. | |
* | |
* This uses custom function to prefix selectors from array. To get it working you will need to include following snippet in your config.rb | |
* | |
* module Sass::Script::Functions | |
* def prefix_each(array, prefix) | |
* return Sass::Script::String.new array.to_a.map{|item| prefix.value + item.value}.join(", ") |
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
/*jslint node:true*/ | |
/*global describe, it, before*/ | |
/** | |
* Example of channel REST service specification | |
* | |
* To get it running call in folder where you have put test_channel.js | |
* npm install -g mocha # if you have not installed mocha in your environment already | |
* npm install expect.js | |
* mocha test_channel.js |
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
/** | |
* Simple server expanding esi:include tags from local html files. | |
* Very usefull to test your static pages before uploading to Akamai. | |
* | |
* $ npm install express | |
* | |
* Now you are ready to run preview server: | |
* | |
* $ node esi-server.js | |
* |
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
#!/usr/bin/env node | |
var exec = require('child_process').exec, | |
mkdirp = require('mkdirp'), | |
projectPath = __dirname + '/../..', | |
targetPath = __dirname + '/../../target/assets'; | |
// Task execution helpers | |
// ---------------------- |
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
#!/usr/bin/env node | |
var server = require('./test-server'), | |
child_process = require('child_process'), | |
port = server.port; | |
console.log(''); | |
console.log('------------------------------------------------------------------------'); | |
console.log('Running jasmine tests in phantomjs'); |
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
;; Define various js test/linting compilation errrors matchers. You can say, | |
;; which you want to consider on matching output from compilation, by | |
;; customizing compilation-error-regexp-alist variable. | |
;; | |
;; (setq compilation-error-regexp-alist (list 'jstestdriver 'jslint-file 'jslint-line)) | |
;; | |
;; If you are using desktop.el, you may want to keep compilation customizations | |
;; in your project deskto file | |
;; | |
;; (add-to-list 'desktop-globals-to-save 'compilation-search-path) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* Mouse wheel polyfill inspired by cross-browser example on mdn wiki. | |
* | |
* It supports relatively modern browsers, which already support addEventListener and Array forEach methods. | |
* Effectively it is targeting webkit based browsers. I didn't have opportunity to test it on old Firefox. | |
* Method addEventListener is supported in IE9, which already supports wheel event. I guess one could combine | |
* it with polyfill for addEventListener to have support in IE 6-8. In that case one would have to also wrap | |
* all addEventListener methods provided by the polyfill (last block below). | |
* | |
* @see https://developer.mozilla.org/en-US/docs/Web/Reference/Events/wheel?redirectlocale=en-US&redirectslug=DOM%2FMozilla_event_reference%2Fwheel#Listening_to_this_event_across_browser |
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
/** | |
* To run it you will need to install | |
* | |
* $ npm install http-proxy | |
*/ | |
var http = require('http'), | |
httpProxy = require('http-proxy'), | |
port = 3001, | |
proxiedHost = 'localhost', |
OlderNewer