- Go to (github)[github.com] and create an account if you haven't already
- Create a new repository to for your app
- Click the green "New repository" button on the GitHub homepage once you've signed in
- Give your repository a name
- From the repositories page on GitHub copy the SSH Clone URL to your clipboard
- In your project directory in the terminal type:
git remote add github <<clone url>>
- Now, you can push your code to github:
git push github
I hereby claim:
- I am iterion on github.
- I am iterion (https://keybase.io/iterion) on keybase.
- I have a public key whose fingerprint is C6F8 8F99 B19F 6CAF F184 7024 BA06 FC28 DDD1 5EE2
To claim this, I am signing this object:
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
# Description: | |
# Balls Response | |
# | |
# Commands: | |
# balls - Display a picture of balls | |
module.exports = (robot) -> | |
robot.hear /balls/i, (msg) -> | |
imageMe msg, "balls", (url) -> | |
msg.send url |
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
worker_processes 1; | |
user nginx web; | |
pid /tmp/nginx.pid; | |
error_log /tmp/nginx.error.log; | |
events { | |
worker_connections 1024; | |
accept_mutex off; | |
use epoll; |
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 IncorrectTimeFormatError < StandardError; end | |
class FakeTime | |
## | |
# :call-seq: | |
# FakeTime.add_minutes(time, minutes_to_add) => String | |
# | |
# Returns a new string with minutes_to_add added to the time | |
# | |
# FakeTime.add_minutes("9:23 AM", 10) #=> "9:33 AM" |
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 Audit | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
include RailsAdminImport::Import | |
class << self | |
def create_with_type_message_meta(_type, _message, _user) | |
self.create_without_type_message_meta({ | |
:type => _type, | |
:content => _message, |
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
# Description: | |
# What you do about Tddium. Utilities to start tddium sessions | |
# Also contains some utilities I used in debugging (primarily unstick and start) | |
# I think session listing and stopping of builds is broken | |
# Credit mostly due to reading Tddium's gems' source. | |
# | |
# Dependencies: | |
# "underscore": "1.4.4" | |
# | |
# Commands: |
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
require 'benchmark' | |
require 'mongoid' | |
class FakeModel | |
attr_accessor :test1, :test2, :test3, :test4, :test5, :test6, :test7, :test8 | |
def initialize | |
self.test1 = 1 | |
self.test2 = 1 | |
self.test3 = 1 | |
self.test4 = 1 |
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
def try_invalid_char_fix file | |
temp = Tempfile.new('fix_file') | |
File.open(file, "r").each_line do |line| | |
original_encoding = line.encoding.name | |
new_line = line.encode('UTF-16', original_encoding, :invalid => :replace, :replace => '') | |
temp.write new_line.encode('UTF-8', 'UTF-16') | |
end | |
temp.close | |
begin | |
#make copy of the old file |
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
Molecule.FeesMixin = Ember.Mixin.create | |
actions: | |
addFee: -> | |
trade = @get('content') | |
fee = @store.createRecord('fee', { | |
trade: trade, | |
name: "broker fee", | |
price: 5, | |
editing: true | |
}) |
OlderNewer