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
[assembly: log4net.Config.XmlConfigurator(Watch = 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
.,{)\.@%!},,2= # is number prime (expects number on stack and adds 1 or 0 (leaves number on stack)) | |
:§,{)§\%!},,2= # just like above, except this consumes the number from the stack. | |
..,1>{*}*\%)= # shorter version, using Wilson's theorem (https://en.wikipedia.org/wiki/Wilson%27s_theorem) | |
# must take a parameter > 1, therwise fails |
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
git config --global user.name <user> | |
git config --global user.email <email> | |
git config --global help.autocorrect 1 | |
git config --global color.ui auto | |
git config --global core.autocrlf true | |
git config --global alias.glog "log --graph --oneline --all --decorate" | |
git config --global core.editor "C:/Windows/notepad.exe" |
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
# use glob syntax | |
syntax: glob | |
*.obj | |
*.pdb | |
*.user | |
*.aps | |
*.pch | |
*.vspscc | |
*.vssscc |
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
Show hidden characters
{ | |
"cmd": ["ruby", "D:\\path\\to\\golfscript.rb", "$file"], | |
"selector": "source.gs" | |
} | |
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
public class RunnableInDebugOnlyAttribute : FactAttribute | |
{ | |
private string _skip; | |
public override string Skip | |
{ | |
get | |
{ | |
return Debugger.IsAttached | |
? _skip |
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 getBackgroundColor(rangeSpecification) { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
return sheet.getRange(rangeSpecification).getBackground(); | |
} | |
function getForegroundColor(rangeSpecification) { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
return sheet.getRange(rangeSpecification).getFontColor(); | |
} |
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(){ | |
var styleId = 'invert-style'; | |
var style = document.getElementById(styleId); | |
if (style) { | |
style.parentElement.removeChild(style); | |
} else { | |
style = document.createElement('style'); | |
style.id = styleId; | |
style.textContent = '' + | |
'html,img, video, object, [style*=url] {' + |
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
// Run this script on any page to load the DataTables library | |
// (https://datatables.net/) | |
// and add DataTable functionality to all tables | |
var addJqueryIfNotPresent = function(callback){ | |
if(!window.jQuery){ | |
var scr = document.createElement('script'); | |
scr.src = 'https://code.jquery.com/jquery-2.2.4.min.js'; | |
scr.onload = function(){ callback && callback(); }; | |
document.head.appendChild(scr); |
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
__AUTHOR__ = "wolf & radu" | |
__TITLE__ = "Super Crazy" | |
-- Based on two other game modes by chameleon: Jumping Jack and Sticky Mode | |
mode = "default" | |
function randomize() | |
x = math.random(1,3) | |
if x == 1 then mode = "default" | |
elseif x == 2 then mode = "jumping" |