Skip to content

Instantly share code, notes, and snippets.

/*
* Setup
*
*
* ||| |||
* |||A||||B|||
* |||C||||D|||
*
*
* A - A5
require "selenium-webdriver"
require 'uri'
require 'redis'
uri = URI.parse(ENV["LETITSNOW_REDIS_URL"])
$redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
def download_torrent(torrent)
puts "starting driver"
driver = Selenium::WebDriver.for :chrome
int led = 9;
int relay = 2;
int sensor = A0;
int sensorValue;
boolean occupied = false;
void setup() {
pinMode(led, OUTPUT);
module RubySpark
module Configuration
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def configuration
yield self

##First turntable meeting 5/19/2015

###Overview

  • RySten, David, Nate, Eli
  • Overall goals (similar to generic Pointless spiel)
  • Interested primarily in Elixir and React for this project
    • will keep an eye out for opportunities for any and all tech choices
  • Want to keep scope reasonable (+ bad-ass avatars)

###Next Steps

@efatsi
efatsi / games.js
Created July 26, 2012 18:58
Code that works but I'm not sure is good
$(document).ready(function(){
$('form.play-card-button').live("ajax:success", function(event, data){
$("#game-page").html(data);
autoplay();
});
});
function autoplay()
{
$.ajax({
@efatsi
efatsi / password_reset.rb
Created August 29, 2012 19:10
password reset
class PasswordReset < ActiveRecord::Base
include ActiveModel::Validations
include ActiveModel::Conversion
attr_accessor :existing_user, :user, :identifier, :password, :password_confirmation
validates_presence_of :identifier, :unless => :persisted?
validates_presence_of :password, :if => :persisted?
validates_confirmation_of :password, :if => :password?
validate :user_exists, :unless => :persisted?
@efatsi
efatsi / setPublisherProperties.js
Created September 5, 2012 23:26
can't decide
setPublisherProperties: function(){
var properties
var widthHeight = VT.getWidthHeight(Object.keys(VT.subscribers).length+1);
properties.width = widthHeight.width;
properties.height = widthHeight.height;
properties.microphoneGain = 0;
return properties;
},
setPublisherProperties: function(){
@efatsi
efatsi / seeds.rb
Created September 11, 2012 14:54
Methods in Seed File?
b = create_user("brian@example.com")
a = create_user("andy@example.com")
def create_user(email, password = "secret")
User.create({:email => email, :password => password, :password_confirmation => password})
end
rake aborted!