This file contains hidden or 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 | |
# copy members from one team to other | |
require 'json' | |
source_team_id = | |
target_team_id = | |
token = '' |
This file contains hidden or 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/api_tasters/posts.rb | |
ApiTaster::RouteCollector.route do | |
get '/posts' | |
end | |
# app/api_tasters/comments.rb | |
ApiTaster::RouteCollector.route do | |
get '/comments' | |
end |
This file contains hidden or 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
$ heroku addons:add deployhooks:http \ | |
--url=http://airbrake.io/deploys.txt?deploy[rails_env]=RAILS_ENV&api_key=API_KEY&deploy[local_username]={{user}}&deploy[scm_revision]={{head_long}}&deploy[scm_repository]=SCM_REPOSITORY |
This file contains hidden or 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
$ heroku addons:add deployhooks:campfire \ | |
--url=URL \ | |
--ssl=1 \ | |
--api_key=API_KEY \ | |
--room="ROOM_NAME" \ | |
--message="{{user}} deployed {{head}} to {{app}} {{url}}" |
This file contains hidden or 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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Espresso Aqua.tmTheme", | |
"create_window_at_startup": false, | |
"detect_indentation": false, | |
"fallback_encoding": "UTF-8", | |
"font_face": "Monaco", | |
"font_size": 18, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
This file contains hidden or 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
source :rubygems | |
gem 'celluloid' | |
gem 'em-synchrony' | |
gem 'em-http-request' |
This file contains hidden or 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
# Returns activity by friends | |
# | |
# @note Undocumented | |
# @rate_limited Yes | |
# @authentication_required Yes | |
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid./ | |
# @return [Array] An array of actions | |
# @param options [Hash] A customizable set of options. | |
# @option options [Integer] :count Specifies the number of records to retrieve. Must be less than or equal to 100. | |
# @option options [Integer] :since_id Returns results with an ID greater than (that is, more recent than) the specified ID. |
This file contains hidden or 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 'bundler/setup' | |
require 'highrise' | |
module HighriseContactCreator | |
class Contact | |
end |
This file contains hidden or 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 | |
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '../lib') | |
require 'rubygems' | |
require 'bundler/setup' | |
require 'highrise' | |
require 'notescript' | |
HIGHRISE_SITE = 'https://fsateam.highrisehq.com' |
This file contains hidden or 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
merged_attributes = if included_attributes.last.is_a?(Hash) | |
included_attributes.pop | |
else | |
{ } | |
end |