I hereby claim:
- I am hamin on github.
- I am harisamin (https://keybase.io/harisamin) on keybase.
- I have a public key whose fingerprint is 4312 6149 4661 B058 D565 4799 AD33 7AA4 4052 82BD
To claim this, I am signing this object:
#import <UIKit/UIKit.h> | |
@interface VerticalPeekingPagingLayout : UICollectionViewLayout | |
@property (readonly) NSInteger currentPage; | |
@property (assign, nonatomic) NSInteger startPage; | |
@property (nonatomic, assign) UIOffset offset; | |
@property (nonatomic, strong) NSDictionary *layoutInfo; | |
@end |
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"net/textproto" | |
"os" |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
require "./points" | |
p1 = RustPoint::make_point(10, 10) # => #<Fiddle::Pointer:0x007f8231e56510 ptr=0x0000010b824000 size=0 free=0x00000000000000> | |
p2 = RustPoint::make_point(20, 20) # => #<Fiddle::Pointer:0x007f8231f20970 ptr=0x0000010b824010 size=0 free=0x00000000000000> | |
RustPoint::get_distance(p1, p2) # => 14.142135623730951 |
I hereby claim:
To claim this, I am signing this object:
class Event | |
include MongoMapper::Document | |
include MultiParameterAttributes | |
key :name, String, :required => true | |
key :start_date, Date, :required => true | |
key :start_time, Time, :required => true | |
end |
require 'mongo_mapper' | |
module CarrierWave | |
module MongoMapper | |
include CarrierWave::Mount | |
## | |
# See +CarrierWave::Mount#mount_uploader+ for documentation | |
# | |
def mount_uploader(column, uploader, options={}, &block) | |
# We need to set the mount_on column (or key in MongoMapper's case) |
# Put this at the end of your user's .profile file or .bash_profile file | |
# NOTE: Here '/Users/hamin/' is MY user folder, replace with yours | |
if [[ -s /Users/hamin/.rvm/scripts/rvm ]] ; then source /Users/hamin/.rvm/scripts/rvm ; fi | |
PS1="[\h:\$(~/.rvm/bin/rvm-prompt)]\W \u\$" |
group :development do | |
if RUBY_VERSION =~ /1.9/ | |
gem "ruby-debug19" | |
else | |
gem "ruby-debug" | |
end | |
end |
# Some basic flags | |
use_mongomapper = false | |
use_compass = false | |
use_simplenavigation = false | |
rails3_branch = false | |
run "cp config/database.yml config/database.example.yml" | |
# Remove redundant files | |
remove_file "public/index.html" |