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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="background.js"></script> | |
</head> | |
<body> | |
<textarea id="sandbox"></textarea> | |
</body> |
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
source 'https://rubygems.org' | |
gem 'octokit' |
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() { | |
"use strict" | |
$.fn.reduce = [].reduce; | |
var $comments = $('div.issues-listing') | |
var getMentioned = function () { |
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 missionaries(((3,3),(0,0),1),[],Path). | |
validMove(Position, Visited):- | |
notMember(Position,Visited), | |
positiveCount(Position), | |
noEatingAnyone(Position). | |
positiveCount(((LeftCannibals,LeftMissionaries), (RightCannibals,RightMissionaries),_)):- | |
LeftCannibals >=0, | |
LeftMissionaries >=0, |
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
perm6([1],5). | |
perm6([2],4). | |
perm6([1|T], Current) :- Current < 6 , Next is Current +1, perm6(T, Next). | |
perm6([2|T], Current) :- Current < 6 , Next is Current +2, perm6(T, Next). | |
perm62(_, Current) :- Current >= 6, !. | |
perm62([1],5). | |
perm62([2],4). | |
perm62([1|T], Current) :- Next is Current +1, perm6(T, Next). | |
perm62([2|T], Current) :- Next is Current +2, perm6(T, Next). |
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 rebind(target, source) { | |
var i = 1, n = arguments.length, method | |
hile (++i < n) target[method = arguments[i]] = innerRebind(target, source, source[method]) | |
return target | |
} | |
function innerRebind(target, source, method) { | |
return function() { | |
if ( isFunctionA(source[method])) { | |
var value = method.apply(source, arguments); |
NewerOlder