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
module BitlyApi | |
class BitlyError < StandardError | |
end | |
class Bitly | |
attr_accessor :login | |
attr_accessor :api_key | |
attr_accessor :api_version | |
def initialize(options = {}) |
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
% git clone git@github.com:Hoodow/restful-authentication.git | |
Initialized empty Git repository in /home/hoodow/scm/restful-authentication/.git/ | |
error: object directory /data/git/repositories/5/dc/1f/6c/Radar/restful-authentication.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/5/dc/1f/6c/Radar/restful-authentication.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/2/a2/a6/a0/glongman-otv/restful-authentication.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/5/dc/1f/6c/Radar/restful-authentication.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/r |
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
class AwsWorker < Workling::Base | |
def upload(options) | |
image = Image.find(options[:image_id]) | |
data = File.open("#{RAILS_ROOT}/public#{image.public_filename}").read | |
chksum = Digest::MD5.hexdigest(data) | |
if S3.interface.store_object(:bucket => Bucket.full_name, | |
:key => image.public_filename.sub(/\//, ''), | |
:data => data, |
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
<div class="userinfo"> | |
<div class="uinfoblock"> | |
<%= image_tag @user.photo.url(:medium) %> | |
</div> | |
<% if current_user %> | |
<div class="uinfoblock"> | |
<% if @user === current_user %> | |
<div class="button"><%= link_to "edit profile", edit_user_path(@user) %></div> |
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
Section "ServerLayout" | |
Identifier "Dualhead" | |
Screen 0 "SamsungScreen" | |
Screen 1 "BelineaScreen" LeftOf "SamsungScreen" | |
InputDevice "Mouse0" "CorePointer" | |
InputDevice "CherryCyMotionMasterXpress" | |
Option "Xinerama" "0" | |
EndSection | |
Section "Screen" |
NewerOlder