Skip to content

Instantly share code, notes, and snippets.

@shkurkin
shkurkin / sqlite3_tips.md
Last active January 4, 2016 02:19
SQLite 3 gem tips and tricks

The setup

require 'sqlite3'

db = SQLite3::Database.new "data.db"

db.execute <<-SQL
  create table foobar (
    name varchar(30),
    val int
@shkurkin
shkurkin / jquery_example.html
Last active January 1, 2016 08:19 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@shkurkin
shkurkin / index.html
Created December 23, 2013 21:33
HTML/CSS for Self Assessment ex. 10
<!DOCTYPE html>
<html>
<head>
<title>Basic HTML</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="wrapper">
<h1 class="sans">This is I</h1>
<div class="center"><img src="img/me.jpg"></div>
@shkurkin
shkurkin / 0.2.1-boggle_class_from_methods.rb
Last active December 27, 2015 08:29 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end