Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo
<script> | |
function convertArrayOfObjectsToCSV(args) { | |
var result, ctr, keys, columnDelimiter, lineDelimiter, data; | |
console.log(args); | |
data = args || null; |
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo
/* from http://www.alloyteam.com/wp-content/themes/alloyteam/style.css */ | |
::-webkit-scrollbar-track-piece { | |
background-color:#f5f5f5; | |
border-left:1px solid #d2d2d2; | |
} | |
::-webkit-scrollbar { | |
width:13px; | |
height:13px; | |
} | |
::-webkit-scrollbar-thumb { |
$('#stream-items-id').delegate('.js-tweet-text a[data-expanded-url]', 'click', function(e){ | |
this.href = $(this).attr('data-expanded-url'); | |
}); |
export default scope => { | |
// match the filter on autofilled elements in Firefox | |
const mozFilterMatch = /^grayscale\(.+\) brightness\((1)?.*\) contrast\(.+\) invert\(.+\) sepia\(.+\) saturate\(.+\)$/ | |
scope.addEventListener('animationstart', onAnimationStart) | |
scope.addEventListener('input', onInput) | |
scope.addEventListener('transitionstart', onTransitionStart) | |
function onAnimationStart(event) { | |
// detect autofills in Chrome and Safari by: |
<?php | |
/** | |
* Script to check link validity | |
* | |
* @author Satya Prakash | |
* | |
*/ | |
$links = array(); | |
$links[] = 'http://www.satya-weblog.com/2007/04/dynamically-populate-select-list-by.html'; |
var _ = function(obj) { | |
if (obj instanceof _) return obj; | |
if (!(this instanceof _)) return new _(obj); | |
this._wrapped = obj; | |
}; |
/* | |
list: the array | |
fn: sort fn | |
start: the start index of the sorted range, included | |
end: the end index of the sorted range, excluded | |
means range: [start, end) | |
modify the array itself and return nothing | |
*/ |
/* | |
* 频率控制 返回函数连续调用时,fn 执行频率限定为每多少时间执行一次 | |
* @param fn {function} 需要调用的函数 | |
* @param delay {number} 延迟时间,单位毫秒 | |
* @param immediate {bool} 给 immediate参数传递false 绑定的函数先执行,而不是delay后后执行。 | |
* @return {function} 实际调用函数 | |
*/ | |
var throttle = function (fn,delay, immediate, debounce) { | |
var curr = +new Date(),//当前时间 | |
last_call = 0, |
/* | |
10 x 10 | |
A-Z ( 65 -> 90) | |
output something like this | |
* * * * * * * * * * | |
* * * * * * * * * * | |
* * * * * * * * * * | |
* J I * * * * * * * |