Skip to content

Instantly share code, notes, and snippets.

View carpenitoThomas's full-sized avatar

Tommy carpenitoThomas

View GitHub Profile
@carpenitoThomas
carpenitoThomas / Chronic.md
Last active August 29, 2015 14:02
How to use Chronic_ Tommy

#What it is?

A gem that makes it easier to access dates and times of your choosing. For example, you can check the date of tomorrow, last Wednesday, the 3rd Wednesday in November, or the fourteenth of june 2010 at eleven o'clock in the evening.

#How to install?

Like any gem, just make sure you are requiring the gem at the top of your ruby file. Alternatively, you can use Chronic within your IRB (permitting you require 'Chronic' before calling it).

Examples

@carpenitoThomas
carpenitoThomas / jquery_example.html
Created April 6, 2014 03:30 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@carpenitoThomas
carpenitoThomas / jquery_example.html
Created April 6, 2014 03:02 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@carpenitoThomas
carpenitoThomas / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:56 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
class BoggleBoard
def initialize(dice_grid)
@dice_grid=dice_grid
end
def create_word(dice_grid, *coords)
new_word=[]
coords.each { |coord| new_word<< dice_grid[coord.first][coord.last]}
new_word.join("")
end