Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.
This file contains hidden or 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 uniqueArray = function(arrArg) { | |
| return arrArg.filter(function(elem, pos,arr) { | |
| return arr.indexOf(elem) == pos; | |
| }); | |
| }; | |
| var uniqEs6 = (arrArg) => { | |
| return arrArg.filter((elem, pos, arr) => { | |
| return arr.indexOf(elem) == pos; | |
| }); |
This file contains hidden or 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
| // math.js | |
| define(function(require, exports, module) { | |
| exports.add = function() { | |
| var sum = 0, i = 0, args = arguments, l = args.length; | |
| while (i < l) { | |
| sum += args[i++]; | |
| } | |
| return sum; | |
| }; | |
| }); |
This file contains hidden or 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
| // init.js | |
| define("init", { | |
| val: 3 | |
| }); | |
| //math.js | |
| exports.add = function() { | |
| var sum = 0, i = 0, args = arguments, l = args.length; | |
| while (i < l) { | |
| sum += args[i++]; |
This file contains hidden or 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
| /** | |
| * Example of using an angular provider to build an api service. | |
| * @author Jeremy Elbourn (@jelbourn) | |
| */ | |
| /** Namespace for the application. */ | |
| var app = {}; | |
| /******************************************************************************/ |
This file contains hidden or 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
| #! /bin/sh | |
| # Run this from the folder you want to be the parent of your docs | |
| # By default, generated docs go into | |
| # titanium_mobile/dist/apidoc/ti_mobile_docs/ | |
| # | |
| # This can be changed below | |
| git clone https://github.com/appcelerator/titanium_mobile.git | |
| cd titanium_mobile | |
| sudo apt-get install python-setuptools python-dev |
This file contains hidden or 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
| /** | |
| * 改变窗口大小的时候自动根据iframe大小设置jqGrid列表宽度和高度 | |
| * 参数说明:{ | |
| * enableAutoResize : 是否开启自动高度和宽度调整开关 | |
| * dataGrid : jqGrid数据列表的ID | |
| * callback : 计算完dataGrid需要的高度和宽度后的回调函数 | |
| * width : 默认为iframe的宽度,如果指定则设置为指定的宽度 | |
| * height : 默认为iframe的高度,如果指定则设置为指定的高度 | |
| * beforeAutoResize : 窗口大小调整时自动设置之前 | |
| * afterAutoResize : 窗口大小调整时自动设置之后 |
This file contains hidden or 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
| jad.exe -r -ff -d src -s java **/*.class | |
| pause |
This file contains hidden or 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
| /** | |
| * spirit from ext2.0 | |
| */ | |
| _.extend = function() { | |
| /** | |
| * 覆盖实例成员 | |
| * @param E | |
| * @constructor | |
| */ | |
| var C = function(E) { |
This file contains hidden or 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
| (function() { | |
| // 创建一个全局对象, 在浏览器中表示为window对象, 在Node.js中表示global对象 | |
| var root = this; | |
| // 保存"_"(下划线变量)被覆盖之前的值 | |
| // 如果出现命名冲突或考虑到规范, 可通过_.noConflict()方法恢复"_"被Underscore占用之前的值, 并返回Underscore对象以便重新命名 | |
| var previousUnderscore = root._; | |
| // 创建一个空的对象常量, 便于内部共享使用 |
NewerOlder