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
| #!/bin/sh | |
| git stash --keep-index | |
| git clean --force | |
| make run-tests # for example | |
| tests_passed=$? | |
| git stash pop | |
| exit $tests_passed |
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
| class CanvasMvu { | |
| constructor(canvas, model, view, update) { | |
| this.canvas = canvas; | |
| this.model = model; | |
| this.view = view; | |
| this.update = update; | |
| } | |
| get callback() { | |
| return () => { |
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
| class Pipeline: | |
| def __init__(self, value): | |
| self.value = value | |
| self.pipes = [] | |
| def through(self, pipe): | |
| self.pipes.append(pipe) | |
| def now(self): | |
| for pipe in self.pipes: |