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
(?P<t_COMMENT>\/\*(?:[^*])*(?:\*)+(?:[^/](?:[^*])*(?:\*)+)*\/)|(?P<t_STRING>(?:(?:"(?:(?:(?:[^\n\r\f\\"])|(?:\\\n|\r\n|\r|\f)|(?:(?:(?:\\[0-9a-fA-F]{1,6}(?:(?:(?:\r\n)|(?:[ \t\r\n\f])))?)|(?:\\[^\r\n\f0-9a-fA-F])))))*")|(?:'(?:(?:(?:[^\n\r\f\\'])|(?:\\\n|\r\n|\r|\f)|(?:(?:(?:\\[0-9a-fA-F]{1,6}(?:(?:(?:\r\n)|(?:[ \t\r\n\f])))?)|(?:\\[^\r\n\f0-9a-fA-F])))))*')))|(?P<t_INVALID>(?:(?:"(?:(?:(?:[^\n\r\f\\"])|(?:\\\n|\r\n|\r|\f)|(?:(?:(?:\\[0-9a-fA-F]{1,6}(?:(?:(?:\r\n)|(?:[ \t\r\n\f])))?)|(?:\\[^\r\n\f0-9a-fA-F])))))*)|(?:'(?:(?:(?:[^\n\r\f\\'])|(?:\\\n|\r\n|\r|\f)|(?:(?:(?:\\[0-9a-fA-F]{1,6}(?:(?:(?:\r\n)|(?:[ \t\r\n\f])))?)|(?:\\[^\r\n\f0-9a-fA-F])))))*)))|(?P<t_EMS>(?:(?:(?:[0-9])*\.(?:[0-9])+)|(?:(?:[0-9])+))(?:(?:e)|(?:\\0{0,4}(?:(?:45)|(?:65))(?:(?:(?:\r\n)|(?:[ \t\r\n\f])))?))(?:(?:m)|(?:\\0{0,4}(?:(?:4d)|(?:6d))(?:(?:(?:\r\n)|(?:[ \t\r\n\f])))?)))|(?P<t_EXS>(?:(?:(?:[0-9])*\.(?:[0-9])+)|(?:(?:[0-9])+))(?:(?:e)|(?:\\0{0,4}(?:(?:45)|(?:65))(?:(?:(?:\r\n)|(?:[ \t\r\n\f])))?))(?:(?:x)|(?:\\0{0,4}(?:(?:58)|(?:7 |
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 n = 100000; | |
console.time('innerHTML'); | |
var e = document.createElement('div'); | |
e.innerHTML = Array(n+1).join('<span></span>'); | |
console.log(document.body.appendChild(e).children.length + ' inserted!'); | |
console.timeEnd('innerHTML'); | |
console.time('DOM'); | |
var d = 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
$ cat blah.cc | |
#include <iostream> | |
int main() { | |
int i = 0; | |
if (i || (i = 5)) | |
std::cout << "yay!"; | |
return 0; | |
} | |
$ g++ blah.cc |
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
// ==UserScript== | |
// @name Tree Reloader | |
// @namespace tree-reloader | |
// @description Reloads the tree | |
// @match http://build.chromium.org/* | |
// @match https://build.chromium.org/* | |
// @match http://chromegw.corp.google.com/* | |
// @match https://chromegw.corp.google.com/* | |
// @match http://chromium-build.appspot.com/* | |
// @match https://chromium-build.appspot.com/* |
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
// ==UserScript== | |
// @name Refresher and scroller | |
// @namespace refresh-and-scroll | |
// @description Refreshes page after 5s and scrolls to 1000px. | |
// @match https?://yourdomain.com/* | |
// @version 0.1 | |
// ==/UserScript== | |
window.addEventListener('load', function() { | |
window.scrollTop = 1000 /* px from the top */; |
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
javascript:var t=0;Array.prototype.forEach.call(document.querySelectorAll('[name=patch] td:nth-of-type(7)'),function(e){t+=eval(e.textContent.replace(/[lines ,]/g,'').replace('-','+'));});alert(total); |
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
{ | |
'GYP_DEFINES': 'chromeos=1 clang=1 component=shared_library' | |
} |
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
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import System.IO | |
myManageHook = composeAll | |
[ className =? "Gimp" --> doFloat | |
, className =? "Xmag" --> doFloat |
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() { | |
var host = 'https://rawgit.com/chromium/requestautocomplete-magento-extension/master/'; | |
var script = document.createElement('script'); | |
script.src = host + 'js/requestautocomplete/checkout.js'; | |
script.onload = function() { requestAutocomplete.enable(); }; | |
document.documentElement.appendChild(script); | |
var link = document.createElement('link'); | |
link.href = host + 'skin/frontend/base/default/css/requestautocomplete/checkout.css'; |