This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack/utils' | |
require 'rack/session/abstract/id' | |
require 'remcached' | |
require 'em-synchrony/em-remcached' | |
module Slurper | |
module Rack | |
class Session < ::Rack::Session::Abstract::ID | |
include Goliath::Rack::AsyncMiddleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack/utils' | |
require 'rack/session/abstract/id' | |
require 'remcached' | |
require 'em-synchrony/em-remcached' | |
module Slurper | |
module Rack | |
class Session < ::Rack::Session::Abstract::ID | |
include Goliath::Rack::AsyncMiddleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
launch "iTerm" | |
tell application "iTerm" | |
activate | |
------------------------------------ | |
-- create the Open Tapestry tabs | |
tell the first terminal | |
-- set terminal size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'exifr' | |
require 'fileutils' | |
require 'logger' | |
class PictureScanner | |
def self.scan_files(source_dir) | |
cameras = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :ember do | |
desc "Build ember models from schema" | |
task :models => :environment do | |
# Change these values to fit your project | |
namespace = 'App' # The Ember application's namespace. | |
output_dir = File.join(Rails.root, "app/assets/javascripts/common/models") # The directory where ember models will be written | |
schema_file = File.join(Rails.root, 'db/schema.rb') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :ember do | |
desc "Build ember models from schema" | |
task :models => :environment do | |
# Change these values to fit your project | |
namespace = 'App' # The Ember application's namespace. | |
# The directory where ember models will be written. We drop them | |
# in the tmp directory since we might not want an ember model for every table in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Chosen = Ember.Select.extend({ | |
multiple: false, | |
width: '95%', | |
disableSearchThreshold: 10, | |
searchContains: true, | |
attributeBindings:['multiple', 'width', 'disableSearchThreshold', 'searchContains'], | |
didInsertElement: function(){ | |
this._super(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Applications" : { | |
"Type" : "AWS::DynamoDB::Table", | |
"Properties" : { | |
"TableName" : "Applications-${stage}", | |
"AttributeDefinitions": [ { | |
"AttributeName" : "name", | |
"AttributeType" : "S" | |
} ], | |
"KeySchema": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: lti | |
provider: | |
name: aws | |
runtime: nodejs4.3 | |
iamRoleStatements: | |
- Effect: "Allow" | |
Action: | |
- "dynamodb:Scan" | |
- "dynamodb:Query" | |
- "dynamodb:DescribeStream" |