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
@echo off | |
set TEST=%1 | |
set NR=%2 | |
set INDIR=in\ | |
set OUTDIR=out\ | |
set MYOUTDIR=results\ | |
If not exist %MYOUTDIR% (mkdir %MYOUTDIR%) |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>:)</title> | |
<script> | |
var commentify = function() { | |
var txt = document.createElement('textarea'), | |
btn = document.createElement('button'), | |
content = document.createElement('div'), |
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(){ | |
let WashingMachine = createWashingMachineFromElement(this); | |
WashingMachine.addEventListener("ready", function(){ | |
WashingMachine.SetTemp(60, 'celcius', function(){ | |
WashingMachine.SetMode(MODE_NORMAL, function(){ | |
WashingMachine.Engage(function(){ | |
WashingMachine.StartWashing(); | |
}); | |
}); | |
}); |
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
.font-smoothing (@val:antialiased) { | |
-webkit-font-smoothing: @val; | |
-moz-font-smoothing: @val; | |
font-smoothing: @val; | |
} |
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 routeModule = function (module) { | |
var routes = {}; | |
routes[module + '/*url'] = 'handleUrl'; | |
routes[module] = 'handleUrl'; | |
var ModuleRouter = Backbone.Router.extend({ | |
routes: routes, | |
handleUrl: function (url) { | |
require(['modules/' + module + '/' + module], function (myModule) { | |
url = url || ''; |
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 showNotification = function (data) { | |
if (window.webkitNotifications) { | |
if (!webkitNotifications.checkPermission()) { | |
var notif = webkitNotifications.createNotification(data.icon, data.title, data.body); | |
notif.show(); | |
} else { | |
webkitNotifications.requestPermission(function () { | |
showNotification(data); | |
}); | |
} |
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
for (var i in window.console) { | |
if (typeof window.console[i] === "function") { | |
window.console[i] = function(){return!0} | |
} | |
} |
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
echo "clear && clear" > /usr/local/bin/cls && chmod +x /usr/local/bin/cls |
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
// Internal recursive comparison function for `isEqual`. | |
var eq = function(a, b, aStack, bStack) { | |
// Identical objects are equal. `0 === -0`, but they aren't identical. | |
// See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal. | |
if (a === b) return a !== 0 || 1 / a == 1 / b; | |
// A strict comparison is necessary because `null == undefined`. | |
if (a == null || b == null) return a === b; | |
// Unwrap any wrapped objects. | |
if (a instanceof _) a = a._wrapped; | |
if (b instanceof _) b = b._wrapped; |
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
SELECT SUBSTR( | |
CONCAT( | |
REPLACE( | |
REPLACE( | |
REPLACE( | |
REPLACE(wpo.option_value,'%year%',date_format(wpp.post_date,'%Y')) | |
,'%monthnum%',date_format(wpp.post_date,'%m')) | |
,'%day%',date_format(wpp.post_date,'%d')) | |
,'%postname%',wpp.post_name ) | |
) |
OlderNewer