Skip to content

Instantly share code, notes, and snippets.

View BrianSigafoos's full-sized avatar

Brian Sigafoos BrianSigafoos

View GitHub Profile
@BrianSigafoos
BrianSigafoos / aws_s3_set_cache_control_max-age.rb
Last active August 29, 2015 14:24 — forked from rahul100885/s3_header.rb
AWS S3 Cache Control Max-Age
#!/usr/bin/env ruby
require 'rubygems'
require 'aws-sdk'
s3 = AWS::S3.new(
:access_key_id => 'PASTE_HERE',
#### SECRET KEY #####
:secret_access_key => 'PASTE_SECRET_KEY_HERE')
#### DO NOT COMMIT ####
# Word and Character Count service for Mac OS X
# Adds a Word and Character Count option to the text selection context menu
# Use Automator.app to create a new service, and then select the Run AppleScript
# action. Paste in this code and save as Word and Character Count. Now switch to
# a new app, select some text, and open the context menu to find the new option.
# Copyright 2012, Noah Slater <[email protected]>
@BrianSigafoos
BrianSigafoos / sf-coworking
Last active August 29, 2015 14:02 — forked from gabriel/gist:6998753
SF Co-working spaces & prices
Parisoma @ 11th & Howard
http://www.parisoma.com/startups/#dedicated
$595
Sandbox Suites @ 10th & Mission
http://www.sandboxsuites.com/coworking/
$495, $595 (skybox)
Hub @ 5th & Mission
https://bayarea.impacthub.net/join-us/
#chat-box.ubuntu.hidden-xs
.closed
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-chevron-up').html_safe, 'chat.show()'
.m-l-small
= link_to_function 'Chat with us', 'chat.show()'
.opened{style: 'display: none'}
.header
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-plus-sign').html_safe, 'chat.maximize()', class: 'maximize', style: 'display: none'