Skip to content

Instantly share code, notes, and snippets.

View ltk's full-sized avatar

Lawson Jaglom-Kurtz ltk

View GitHub Profile
@ltk
ltk / 0_reuse_code.js
Created February 7, 2014 14:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ltk
ltk / sheeeet.js
Last active August 29, 2015 13:55
Sheeeet | A work-in-progress Google Spreadsheet library for javascript
// Pronounced like http://shiiiit.com/
var Sheeeet = (function(_) {
var cells = [];
function Cell(data) {
this.content = data.content;
this.row = data.row;
this.column = data.col;
@ltk
ltk / kloud.rb
Created October 4, 2013 02:30
A simple screen shot uploader. New screen shots are uploaded to your own S3 bucket, their URLs are copied to your clipboard, and you receive a OS X notification that links directly to the file on S3 in Chrome.
require 'aws-sdk'
require 'listen'
require 'pathname'
require 'terminal-notifier'
module Kloud
class Application
attr_reader :directory, :screen_shots
def initialize(directory)
@ltk
ltk / input_output.txt
Created May 1, 2013 18:35
Input/Output
Input
|---------------------------------------|
| Search Phrase | Total Searches |
| ======================================|
| Lemurs | 1,000 |
| durham bulls | 500 |
| bull fighting | 100 |
| lemur dance | 2,000 |
| Durham | 700 |
| How to catch a lemur | 35 |
@ltk
ltk / gradient_descent.rb
Created April 30, 2013 13:11
Ruby implementation of a gradient descent linear regression algorithm
def params
[0,0]
end
def examples
[
{
:x => 1,
:y => 3
},
@ltk
ltk / test_module.less
Created December 12, 2012 18:35
Test Module - A module to show a useless div containing a link
@module-width: 50px;
@module-height: 100px;
@module-link-color: @blue;
div.module {
width: @module-width;
height: @module-height;
background: @module-background;
a {
@ltk
ltk / app.rb
Created June 1, 2012 03:29
Instagram Hashtag RSS Parser in Sinatra
# app.rb
require 'sinatra'
require 'net/http'
require 'rexml/document'
class Photo
attr_reader :src, :caption, :first
def initialize(src, caption, count)
@src, @caption = src, caption