Skip to content

Instantly share code, notes, and snippets.

View alex-quiterio's full-sized avatar
🌀
rise to see and not to be seen

aIex quiterio alex-quiterio

🌀
rise to see and not to be seen
  • Seenons
  • Amsterdam
  • 07:13 (UTC +02:00)
View GitHub Profile
@skensell
skensell / ScottsSnake.elm
Created May 30, 2014 15:46
snake game in Elm
--- 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
anonymous
anonymous / example_outputs.txt
Created August 7, 2014 05:37
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
@csm123
csm123 / index.html.haml
Last active April 12, 2017 07:56
React/Fluxxor in Rails Example
:javascript
$(document).ready(function() {
window.loadIngredientSuggestionsEditor(#{@ingredients});
});
%h1 Edit ingredient suggestions
#js-ingredient-suggestions-editor
@brianhempel
brianhempel / bench_rails_memory_usage.rb
Last active August 28, 2025 07:07
A script to test the memory usage of your Rails application over time. It will run 30 requests against the specified action and report the final RSS. Choose the URL to hit on line 45 and then run with `ruby bench_rails_memory_usage.rb`.
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
@vcastellm
vcastellm / ecs-run
Last active April 15, 2024 17:55
Run task and wait for result in AWS ECS
#!/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: