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
# Floating Point Division | |
231871064940156750 / 5 | |
# => 4.637421298803135e+16 | |
# Turn the result into a integer | |
int(4.637421298803135e+16) | |
# => 46374212988031352 | |
# Floor Division | |
231871064940156750 // 5 | |
# => 46374212988031350 |
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
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'sinatra-contrib' | |
gem 'json' |
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 fizzbuzz(x) | |
# your | |
# code | |
# goes | |
# here | |
puts "(change me I am a placeholder string)" | |
end | |
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
screen /dev/cu.usbserial 115200 |
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
# This is what your probably have | |
"linter-rubocop": | |
command: "/Users/sungkim/.rvm/gems/ruby-2.2.3/bin/rubocop" | |
# This is what you should have | |
# Notice that the bin was changed to wrapper | |
"linter-rubocop": | |
command: "/Users/sungkim/.rvm/gems/ruby-2.2.3/wrappers/rubocop" |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
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
# Into your temrminal type | |
which ruby # This will give you the path to where ruby is installed if installed | |
ruby -v # This will give you the version of ruby you currently have installed | |
# You can check just about any other program in the same fashion | |
which git | |
git -v | |
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
brew install git # This will install the latest version of Git into your Homebrew Cellar |
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
# First type this into your terminal. *You must already have homebrew installed | |
brew install ruby | |
# After installing ruby, we need to edit the path on your computer so it uses | |
# the new installation of ruby and not the one packaged with your computer. | |
# Type the following into your terminal to edit the paths with VIM | |
sudo vi /etc/paths | |
# It will ask for your password (the one you used to login / install programs) | |
# Just type it in and press enter *You will not see anything but you are entering something I promise. |
NewerOlder