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
function FindProxyForURL(url, host) { | |
if (shExpMatch(host, "*.slack-msgs.com")) { | |
// Use SOCK proxy, or fall back to a DIRECT traffic. | |
// ssh -D 8000 [user]@[server] | |
return "SOCKS 127.0.0.1:8000; DIRECT"; | |
} | |
return "DIRECT"; | |
} |
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
{"assets":[{"id":"comp_3","layers":[{"ddd":0,"ind":0,"ty":3,"nm":"Trigger","ks":{"o":{"k":0},"r":{"k":0},"p":{"k":[96.5,130.5,0]},"a":{"k":[0,0,0]},"s":{"k":[100,100,100]}},"ao":0,"ip":0,"op":184,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 28","ks":{"o":{"k":100},"r":{"k":0},"p":{"k":[131.5,145.5,0]},"a":{"k":[0,0,0]},"s":{"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,-73],[0,-110]],"c":false}},"nm":"Path 1","mn":"ADBE Vector Shape - Group"},{"ty":"tm","s":{"k":[{"i":{"x":[0.28],"y":[1]},"o":{"x":[0.72],"y":[0]},"n":["0p28_1_0p72_0"],"t":139,"s":[0],"e":[100]},{"t":144.3994140625}],"ix":1},"e":{"k":[{"i":{"x":[0.28],"y":[1]},"o":{"x":[0.72],"y":[0]},"n":["0p28_1_0p72_0"],"t":142.601,"s":[0],"e":[100]},{"t":148}],"ix":2},"o":{"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim"},{"ty":"st","fillEnabled":true,"c":{"k":[0,0,0,1]},"o":{"k":100},"w":{"k":5.857},"lc":2,"lj":1,"ml":4,"nm": |
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
console.log('wow inject'); |
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
+---blocks | |
| | readme.md | |
| | | |
| \---menu | |
| index.less | |
| readme.md | |
| | |
+---modules | |
| | bootstrap.js | |
| | readme.md |
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 _ = require('_'), | |
$ = require('jquery'); | |
var Calendar = function (el) { | |
// init | |
this.create(); | |
} | |
_.extend(Calendar.protorype, { | |
_shown: false, |
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
// Init style shamelessly stolen from jQuery http://jquery.com | |
var Froogaloop = (function(){ | |
// Define a local copy of Froogaloop | |
function Froogaloop(iframe) { | |
// The Froogaloop object is actually just the init constructor | |
return new Froogaloop.fn.init(iframe); | |
} | |
var eventCallbacks = {}, | |
hasWindowEvent = false, |
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
<? | |
print '________ first'.PHP_EOL; | |
$t = microtime(true); | |
$array = array(); | |
for($i = 0; $i < 10000; $i++) { | |
$array[] = $i; | |
} | |
print '$arr[]: '.round(microtime(true) - $t, 5); | |
print PHP_EOL; | |
$t = microtime(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
(function(e){Array.prototype.map||(Array.prototype.map=function(e,r){var a,o,i;if(null==this)throw new TypeError(" this is null or not defined");var n=Object(this),t=n.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(r&&(a=r),o=Array(t),i=0;t>i;){var l,c;i in n&&(l=n[i],c=e.call(a,l,i,n),o[i]=c),i++}return o});var r=e.detect=function(){var e=function(){},r={browser_parsers:[{regex:"^(Opera)/(\\d+)\\.(\\d+) \\(Nintendo Wii",family_replacement:"Wii",manufacturer:"Nintendo"},{regex:"(SeaMonkey|Camino)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)",family_replacement:"Camino",other:!0},{regex:"(Pale[Mm]oon)/(\\d+)\\.(\\d+)\\.?(\\d+)?",family_replacement:"Pale Moon (Firefox Variant)",other:!0},{regex:"(Fennec)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)",family_replacement:"Firefox Mobile"},{regex:"(Fennec)/(\\d+)\\.(\\d+)(pre)",family_replacment:"Firefox Mobile"},{regex:"(Fennec)/(\\d+)\\.(\\d+)",family_replacement:"Firefox Mobile"},{regex:"Mobile.*(Firefox)/(\\d+)\\.(\\d+)",family_replacement: |
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 ffmpeg = require('fluent-ffmpeg'); | |
function getFull(inputFile, outputName) { | |
getVideo(inputFile, 'mp4', outputName); | |
getVideo(inputFile, 'ogv', outputName); | |
getVideo(inputFile, 'webm', outputName); | |
} | |
function getVideo(inputFile, type, outputName) { |
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
<? | |
// func.global callback | |
function getImagePath ($matches) { | |
global $an; | |
return $an[$matches[1]]; | |
} | |
// func.global | |
function optimize($text, $img_domain, $an) { | |
// ... | |
$patt = '/\[img name\=\"([A-Za-z0-9._-]+)\"\]/'; |
NewerOlder