#Rails - Paperclip gem
##install
brew install imagemagick
##add gems
| // This is a manifest file that'll be compiled into application.js, which will include all the files | |
| // listed below. | |
| // | |
| // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | |
| // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. | |
| // | |
| // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
| // the compiled file. | |
| // | |
| // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD |
#Rails - Paperclip gem
##install
brew install imagemagick
##add gems
| require "Rumoji" # See; https://github.com/mwunsch/rumoji | |
| # Customize grid space and player icons as emoji charcters from: http://www.emoji-cheat-sheet.com/ | |
| require "Rainbow" | |
| class Grid | |
| attr_accessor :production_run, :player_x_moves, :player_o_moves | |
| def initialize(production_run, player_x_moves, player_o_moves) | |
| @is_debug_mode = false # set to true to invoke debugging statements if needed... |
| var net = require('net'); | |
| var clients = []; | |
| var server = net.createServer(function(socket) { | |
| //add any incoming socket to a clients array | |
| clients.push(socket); | |
| socket.on('data', function (data) { | |
| //iterate over a list of clients and send data |
| class Show < ActiveRecord::Base | |
| attr_accessible :bands, :date, :venue, :misc | |
| end | |
| require 'nokogiri' | |
| require 'open-uri' | |
| class Extractor | |
| def initialize |
| require 'rubygems' | |
| require 'mechanize' | |
| FIRST_NAME = 'FIRST_NAME' | |
| LAST_NAME = 'LAST_NAME' | |
| PHONE = 'PHONE' | |
| EMAIL = '[email protected]' | |
| PARTY_SIZE = 2 | |
| SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
| { | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "cross_width": 12, | |
| "fade_fold_buttons": false, | |
| "font_size": 19.0, | |
| "highlight_active_indent_guide": true, | |
| "highlight_line": true, | |
| "highlight_modified_tabs": true, | |
| "hot_exit": false, |
#Homework for June 18, 2013
##Calculator 1 Create a command line calculator. It should have a basic and advanced mode.
basic calculator (+, -, *, /) advanced calculator (exponents, square root)
For a basic calculator, press 1.