8:00 AM - 9:00 AM: Part 1 - Lessons 1-3
9:00 AM - 10:00 PM: Part 1 - Lessons 4-7
Break
require 'rspec' | |
class TicTacToe | |
def initialize | |
@x_moves = [] | |
@o_moves = [] | |
end | |
def play space | |
return false unless (1..9).include?(space) |
def render | |
print " " | |
(0..7).each { |column_num| print " #{column_num} " } | |
puts "" | |
board.each_with_index do |row, row_num| | |
print row_num | |
row.each_with_index do |piece, col_num| | |
if invalid_board_moves.include?([row_num, col_num]) | |
print (piece ? piece.render : " ").colorize(background: :white) | |
else |
#!/usr/bin/env python | |
import sys, re | |
hours_re = re.compile(r'([-+] \d+)h \b', re.X) | |
total = 0 | |
for line in sys.stdin: | |
total += sum(int(hour) for hour in hours_re.findall(line)) | |
print line.strip() |
javascript:if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://pinboard.in/add?later=yes&noui=yes&jump=close&next=same&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title) |
Miles recently wrote a post on the Indy Hackers Blog appropriately titled, Why Indy? In the post (http://blog.indyhackers.org/post/7262445527/why-indy) Miles (along with several other hoosiers) enumerates the various great things about why a developer/business might want to live in/stay in/come to Indiana. Having spent 10 of my 31 years in Indiana (4 in West Lafayette, 6 in Indianapolis) I definitely think of myself as a hoosier but despite that I moved to NYC in May. I am in the defector group, but maybe not in the dissenter group.
While I was in Indianapolis I held leadership roles at 3 different startups including ChaCha and Compendium, witnessed a very successful exit at one of my startups (3GUpload.com in 2004), and consulted for a half-dozen other various companies. That is to say, I think I have a pretty good feeling for what Indy has to offer in terms of work. Additionally, I participated in a variety of volunteer organizations (Big Brothers Big Sisters, Leukemia/Lymphoma society, ADA, etc) as well a
Hey there, I'm Ben, one of the developers working on FormKeep: the form backend for designers and developers. | |
Over the next few months, we're going to be investing heavily in the product and I want to make sure we're building the features that *you* want. To ensure that happens, would you please take this 5-minute survey? | |
I'm only sending this to a handful of our active users, so every response counts. I know it won't be the highlight of your week but it'll mean that future FormKeep changes will make it even better for you. | |
Side bonus: the entire survey is keyboard-navigable. No mouse required! | |
Thank you to the hundredth power :) |
#!//usr/bin/env ruby | |
require 'bundler/setup' | |
require 'opml_saw' | |
require 'json' | |
require 'net/https' | |
require 'uri' | |
# | |
# Enter your email and password for feedwrangler below | |
# |
# Rake file tricks for timing and notifying task completion | |
# at the top of the file with other config settings | |
run_time = Time.now | |
# quick function to determine diff between passed time and now | |
def finish_timer(start_time) | |
finish_time = Time.now - start_time | |
total_min = "%d" % (finish_time / 60) |
Code Triage: gemhttp://www.codetriage.com/ | |
budle open gemName | |
puts caller.inspect #where it came from | |
object#method | |
object.method(:method_name).source_location | |
method.source_location | |
self.class.ancestors #get superclass names in order |