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:(function() { var els = document.querySelectorAll('ol .failure'); if (typeof window._jtf_i == 'undefined' || window._jtf_i >= els.length) window._jtf_i = 0; els[window._jtf_i++].scrollIntoView(); })(); |
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:(function() { var c = document.getElementById('addCommentTextArea'); var s = document.getElementById('statusedit'); if (!c || !s) { alert('Sign in or whatever'); return; } c.value = 'This is a Material WebUI page which is a work in progress and isn\'t ready for launch.'; s.value='WontFix'; s.form.querySelector('input[type=submit]').click(); })() |
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
// option 1: | |
myPromise.then( | |
function(result) { | |
// do stuff | |
}, function(error) { | |
// oh noes | |
}) | |
.then( | |
function(result) { |
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
s/^([0-9]+) -> (.*)$/unsigned short solve_\2() { return \1; }/ | |
s/^([a-z]+) -> (.*)$/unsigned short solve_\2() { static unsigned short \2_answer; static bool \2_solved; if (!\2_solved) { \2_answer = solve_\1(); \2_solved = true; } return \2_answer; }/ | |
s/^([a-z]+) AND ([a-z]+) -> (.*)$/unsigned short solve_\3() { static unsigned short \3_answer; static bool \3_solved = false; if (!\3_solved) { \3_answer = solve_\1() \& solve_\2(); \3_solved = true; } return \3_answer; }/ | |
s/^([0-9]+) AND ([a-z]+) -> (.*)$/unsigned short solve_\3() { static unsigned short \3_answer; static bool \3_solved = false; if (!\3_solved) { \3_answer = \1 \& solve_\2(); \3_solved = true; } return \3_answer; }/ | |
s/^([a-z]+) AND ([0-9]+) -> (.*)$/unsigned short solve_\3() { static unsigned short \3_answer; static bool \3_solved = false; if (!\3_solved) { \3_answer = solve_\1() \& \2; \3_solved = true; } return \3_answer; }/ | |
s/^([0-9]+) AND ([0-9]+) -> (.*)$/unsigned short solve_\3() { static unsigned short \3_answer; static bool \3_solved = f |
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
setInterval(function() { if (document.activeElement.tagName == 'BODY') return; var a = document.querySelectorAll('.ircwindow')[0]; if (a) a.scrollTop = Number.MAX_VALUE; }, 200); |
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
/** @interface */ | |
function Gum() {} | |
Gum.prototype = { | |
/** @return {boolean} */ | |
isMinty: function() { return true; } | |
}; | |
/** @constructor */ | |
function Candy() {} |
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
# Total Score: 917 | |
# Your average grade for this tower is: A | |
# | |
# Level 1: S | |
# Level 2: A | |
# Level 3: B | |
# Level 4: A | |
# Level 5: B | |
# Level 6: A | |
# Level 7: A |
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
# https://www.bloc.io/ruby-warrior | |
class Player | |
def deadlyArcher?(w, spaces) | |
w.health < @health and (spaces[0].enemy? or spaces[1].enemy? or spaces[2].enemy?) | |
end | |
def deadlyWizard?(w, spaces) | |
w.health <= 12 and w.health > @health and (spaces[0].enemy? or spaces[1].enemy?) | |
end |
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 d = document; | |
d.styleSheets[0].addRule('.h7374', | |
'background:red !important'); | |
var escape = function(e) { | |
if (e.keyCode==27) | |
cancel(); | |
}, | |
getElements = function() { |
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
<html> | |
<head> | |
<script src="magnetgolf.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
NewerOlder