- Raleigh Tamland 2 (gravel bike)
- 40mm tires
- Two handlebar bags (https://www.thespindleatl.com/spindle-custom-bags/the-40oz-crusher)
- One half frame bag (like this but also custom made by the place above - https://www.blackburndesign.com/bags/outpost-frame-bag-large.html)
- Seat bag (https://www.apidura.com/product/saddle-pack-regular/)
- Front light (https://www.amazon.com/Distance-rechargeable-Bicycle-EdisonBright-Batteries/dp/B01ACHGGQW/)
- Backup batteries for front light
- Rear light (https://www.amazon.com/Cygolite-Hotshot-Bike-Tail-Light/dp/B01IO12OLO)
- Backup rear light (https://www.amazon.com/Cygolite-Micro-2-Watt-Shot-Light/dp/B00MDCIDZC)
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
#!/bin/sh | |
echo "CREATING SUBSCRIPTION WITH QUEUE ARN" | |
set -e | |
ENDPOINT_URL="http://localhost:4100" | |
export AWS_DEFAULT_REGION="us-east-1" | |
export AWS_SECRET_ACCESS_KEY="fakefakefake" | |
export AWS_ACCESS_KEY_ID="faketyfakefake" | |
TOPIC_ARN=$(aws --endpoint-url $ENDPOINT_URL sns create-topic --name test-topic | jq -r ".TopicArn") |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2267660/hack.sh | sh | |
# |
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
class Foo | |
def initialize | |
@something = [] | |
end | |
end | |
class SubFoo < Foo | |
def initialize(things) | |
super() |
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 mapComp(array, fn) { | |
var result = []; | |
for(var i = 0; i < array.length; i++) { | |
result.push(fn(i)); | |
} | |
return result; | |
} |
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
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
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
#!/bin/sh | |
#pacmd set-default-sink alsa_output.usb-Logitech_Logitech_G933_Gaming_Wireless_Headset-00.analog-stereo | |
#pacmd set-default-source alsa_input.usb-Logitech_Logitech_G933_Gaming_Wireless_Headset-00.analog-mono | |
function switchAudio() { | |
case "$1" in | |
"logitech") | |
local sink="alsa_output.usb-Logitech_Logitech_G933_Gaming_Wireless_Headset-00.analog-stereo" |
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
/* utilities */ | |
.pull-left { | |
float: left; | |
} | |
.sr-only { | |
position: absolute !important; | |
clip: rect(1px, 1px, 1px, 1px); | |
padding: 0 !important; | |
border: 0 !important; |
Conway's Game of Life is a set of rules which define a cellular automata. Read more about it in Wikipedia. Your task is to write a Conway's Game of Life (GOL) simulation.
GOL consists of a two-dimensional grid of cells. Each cell is either alive or dead. Your simulation should calculate the grid over a user-specified number of generations. To calculate the next generation you apply the following rules to each cell in the grid and the resulting grid is the next generation.
- Any live cell with fewer than two live neighbours dies, as if caused by under-population.
- Any live cell with two or three live neighbours lives on to the next generation.
NewerOlder