The real, full repository for this game is at https://github.com/roryokane/pegs-in-puzzlescript.
This Gist is just used by http://www.puzzlescript.net/play.html?p=87985a8a36b10c3ec386 to load the game in your browser.
# lets you output to an arbitrary stream with `puts`, etc., for convenience | |
def with_stdout(new_stdout) | |
old_stdout = $stdout # $stdout usually be STDOUT here, but not if you nest this function | |
$stdout = new_stdout | |
yield | |
$stdout = old_stdout | |
end |
package pipe_foundations.example; | |
import pipe_foundations.Pipe; | |
import pipe_foundations.SimpleFilter; | |
public class ExampleFilter extends SimpleFilter<Integer, String> { | |
public ExampleFilter(Pipe<Integer> input, Pipe<String> output) { | |
super(input, output); | |
} |
The real, full repository for this game is at https://github.com/roryokane/pegs-in-puzzlescript.
This Gist is just used by http://www.puzzlescript.net/play.html?p=87985a8a36b10c3ec386 to load the game in your browser.
diff --git a/file.c b/file.c | |
index 6faa5a3..e3af329 100644 | |
--- a/file.c | |
+++ b/file.c | |
@@ -1,26 +1,25 @@ | |
#include <stdio.h> | |
-// Frobs foo heartily | |
-int frobnitz(int foo) | |
+int fib(int n) |
diff --git a/file.txt b/file.txt | |
index 3299d68..accc3bd 100644 | |
--- a/file.txt | |
+++ b/file.txt | |
@@ -1,7 +1,7 @@ | |
+abc | |
aaaaaa | |
aaaaaa | |
bbbbbb | |
bbbbbb |
function intTo2DigitHex(integer) { | |
if (integer < 16) { | |
return '0' + integer.toString(16) | |
} else { | |
return integer.toString(16) | |
} | |
} | |
function findCollisions(numDigitsRounding, quitAfterFindingOne) { | |
var knownHusls = {}; |
// exploring `this` in JavaScript, and `.call` and `.bind` | |
// our cast | |
anna = {name: "Anna"}; | |
zach = {name: "Zach"}; | |
// how `this` works | |
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this |
A formatted version of https://pastebin.com/EZQWbwCB to make it easier to read. Written by Nick P., not by me. There is discussion on Lobste.rs.
(originally 2014 on Schneier’s blog; revised 2018)
I’ve noticed in recent debates a false dichotomy: you can have “open source” or proprietary, but not benefits of both. Developers thinking there’s only two possibilities might miss opportunities. This is especially true for users or buyers that are concerned about source copying, ability to repair things, or backdoors. The good news is there are many forms of source distribution available. The trustworthiness of review process also varies considerably. I’m going to briefly run through some of them here.