Skip to content

Instantly share code, notes, and snippets.

View folkengine's full-sized avatar
😈
Living in interesting times.

Christoph folkengine

😈
Living in interesting times.
View GitHub Profile
@folkengine
folkengine / colorize_file.rb
Created March 24, 2016 14:42
Print out to console a colorized version of a file
require 'colorize'
File.open(File.join(File.dirname(__FILE__), 'my_file.txt')) do |file_handle|
file_handle.each_line do |line|
print line.colorize(:green)
end
end
@folkengine
folkengine / march_copy_challenge.md
Last active July 28, 2016 13:48
March CoPy Challenge
  1. find the date of every past copy meetup got a given month. (Last monday's of march) Sept 2009 No COhPys in November Dec COhPy is first monday
  2. Collect and present the high temperatures for those dates. (Columbus Oh)
  3. Predict the high temperature for the next COhPy. Will run them in April and predict for May COhPy meetup. Week before because of memorial day.

https://www.wunderground.com/weather/api/ https://www.wunderground.com/history/

@folkengine
folkengine / DynamoDB Local
Last active July 28, 2016 13:45
Dynamo Local
[chris@Christophers-MacBook-Pro ~]$ brew install dynamodb-local
==> Downloading https://dynamodb-local.s3.amazonaws.com/dynamodb_local_2016-03-01.tar.gz
######################################################################## 100.0%
==> Caveats
DynamoDB Local supports the Java Runtime Engine (JRE) version 6.x or
newer; it will not run on older JRE versions.
In this release, the local database file format has changed;
therefore, DynamoDB Local will not be able to read data files
created by older releases.
@folkengine
folkengine / rubocop_config.yml
Last active July 28, 2016 13:44
RuboCop Config
# This is the default configuration file. Enabling and disabling is configured
# in separate files. This file adds all other parameters apart from Enabled.
inherit_from:
- enabled.yml
- disabled.yml
# Common configuration.
AllCops:
# Include common Ruby source files.
@folkengine
folkengine / check_pi_make_notes.md
Last active July 28, 2016 13:41
Raspberry Pi LibCheck Notes
  • sudo apt-get install autoconf
  • sudo apt-get install libtool
  • sudo apt-get install libreadline6 libreadline6-dev
  • sudo apt-get install check
  • binutils already installed