With all of the powerful cloud services out there nowadays, it's more important than ever to give good thought about architecture when building your applications. This event has 3 awesome speakers who have experience in architecture design and will share their expertise and answer your questions about how to decide what infrastructure tools to use on your next project.
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
desc "given a name and primary color, build static index and thank you pages, returning directory path of files" | |
task :build, :site_id, :name, :primary_color do |t, args| | |
dirname = DateTime.now.to_s | |
dirname += '_' + args[:site_id] if args[:site_id].length > 0 | |
dirpath = Rails.root.join("tmp/static_builds", dirname) | |
system("mkdir -p #{ dirpath.to_path }") | |
system("cp -r #{ Rails.root }/static/* #{ dirpath.to_path }") | |
puts("name = #{ args[:name] }") |
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
# make this script run, update your gist with the running script, and it's | |
# output in a separate gist. the entire quzi should take 1-3 minutes, but you | |
# get 5. | |
# | |
# the meat - take < 5 minutes to do this | |
# | |
assert :hash do | |
x = {} |
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
angular.module('app') | |
.factory('HeadlineService', ['$http', | |
function($http) { | |
'use strict'; | |
var BASE_URL = "<%= [App.settings.api_base_url, '/services/headlines'].join %>", | |
CALLBACK_STRING = "?callback=JSON_CALLBACK"; | |
return { | |
getHeadlines: function(){ |
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
doctype html | |
head | |
= render partial: 'shared/mobile_detection' | |
javascript: | |
var device_cookie = cookie.get('device'), | |
cookiesEnabled = cookie.enabled(); |
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 'pry' | |
require 'fileutils' | |
EPISODES = [ | |
nil, | |
nil, | |
nil, | |
"My Happy Place.mov", |
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 | |
# for each directory in the current directory: | |
# | |
# 1. move its contents up one directory (out of its current directory) | |
# 2. remove the (now empty) directory | |
# | |
# ( note: skips hidden files and . and .. ) | |
require 'pry' |
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
%title: intro_to_command_line | |
%author: milesmatthias.com | |
%date: 2014-09-21 | |
# GDI upcoming events | |
#### Code & Coffee | |
October 18th. 10a - 1p | |
Amante Coffee Baseline - Boulder |
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 | |
## | |
# usage: AWS_SECRET_KEY=xxx AWS_ACCESS_KEY=xxx CF_DIST_ID=xxx ./invalidate_cf.rb file1.html file2.html | |
# | |
# | |
require 'aws' | |
require 'date' | |
require 'pry' |
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 | |
## | |
# usage: AWS_SECRET_KEY=xxx AWS_ACCESS_KEY=xxx S3_BUCKET_NAME=xxx ./remove_s3_object.rb file1.html file2.html | |
# | |
# | |
require 'aws' | |
require 'pry' |
OlderNewer