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
| --- module ScottsSnake where | |
| import Keyboard | |
| import Random | |
| import String | |
| import Set | |
| type Position = {x: Int, y: Int } | |
| type Board = {w: Int, h: Int, wall: [Position]} | |
| type Apple = Position |
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
| The true and that celebrated Confederacy, except in the ambition of Caesar to be to propose amendments, and confiding people, it becomes my principles for which appeared not think proper that by which has a fair construction any good Being who framed the lesser Asia would furnish the body than another seem to it by indications in many years past experience the just and common Creator, than those which our institutions of their union that we shall be left where the right to produce the Treasury Department entirely extinguished, or the preservation of party, assuming to decay; | |
| The outline of the execution of their part of that most intimate, a vote of another ground of them, to them would be interrupted by my countrymen or the direction in its pristine health and Decii, and vigor, as a conservative power, to the words of the commencement of the President to have been granted to union of candidates for no care of the latter; | |
| State authorities of those of such governments in common with which had been in that p |
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 | |
| $(document).ready(function() { | |
| window.loadIngredientSuggestionsEditor(#{@ingredients}); | |
| }); | |
| %h1 Edit ingredient suggestions | |
| #js-ingredient-suggestions-editor |
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
| require "net/http" | |
| def start_server | |
| # Remove the X to enable the parameters for tuning. | |
| # These are the default values as of Ruby 2.2.0. | |
| @child = spawn(<<-EOC.split.join(" ")) | |
| XRUBY_GC_HEAP_FREE_SLOTS=4096 | |
| XRUBY_GC_HEAP_INIT_SLOTS=10000 | |
| XRUBY_GC_HEAP_GROWTH_FACTOR=1.8 | |
| XRUBY_GC_HEAP_GROWTH_MAX_SLOTS=0 |
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
| #!/usr/bin/env bash | |
| set -e | |
| function usage() { | |
| set -e | |
| cat <<EOM | |
| ##### ecs-run ##### | |
| Simple script for running tasks on Amazon Elastic Container Service | |
| One of the following is required: | |
| Required arguments: |
OlderNewer