Open terminal and type:
1. Create a directory at ~/bin:
mkdir ~/bin
2. Copy sublime executable to your ~/bin directory:
Shoes.app do | |
stack do | |
@console = edit_box | |
@input = edit_line | |
@button = button "Ask Name" | |
end | |
$stdout = StringIO.new | |
$stdin = StringIO.new |
I would start by installing the Sublime Package Control manager. This tool will allow you to install the other plugins without having to clone git repositories and copying them to the correct folders. Instead you will the command drop-down menu with "Ctrl + Shift + P" and then scrolling down until you see "Package Control: Install Package". A search bar will pop up and you can type the name of a package, click on the name and it will self install. If you have problems setting any of these up email me at [email protected]
Sublime Package Control - Install this first. This tool will allow you to easily install most (if not all) the other plugins in this list. (Ctrl + Shift + P, then select Package Control: Install Package)
SublimeERB - This plugin auto creates the erb tags. (<% %>, <%= %>, etc.) (Ctrl +
online resume: https://gist.github.com/4069984
email: [email protected]
phone: (317) 670-0850
twitter: @barnes7td
github: github.com/barnes7td
## Method 1 (used 2 methods) | |
def diamond(max_width) | |
string = "" | |
if max_width < 3 | |
puts "*" if max_width == 1 | |
puts "**" if max_width == 2 | |
return nil | |
end |
This is the start of a series of posts to help you better utilize your most important tool in developing, your text editor. For this course we are recommending that you start out with Sublime Text 2. If you have chosen a different editor, read the shortcuts below and find the equivalent actions in your chosen editor. As usual, ask your mentor if you have questions or would like these demonstrated.
The goal of learning these shortcuts is to keep your hands on the keyboard as much as possible and to keep your hands in the same position on the keyboard. Using your mouse moves your hands from the keyboard and can slow your coding.
Autocomplete
<?xml version="1.0"?> | |
<settings> | |
<console change_refresh="10" refresh="100" rows="25" columns="80" buffer_rows="500" buffer_columns="0" shell="C:\Windows\System32\cmd.exe /c ""C:\RailsInstaller\Git\bin\sh.exe" --login -i"" init_dir="C:\Users\tbarnes\code" start_hidden="0" save_size="0"> | |
<colors> | |
<color id="0" r="0" g="0" b="0"/> | |
<color id="1" r="0" g="0" b="128"/> | |
<color id="2" r="0" g="150" b="0"/> | |
<color id="3" r="0" g="150" b="150"/> | |
<color id="4" r="170" g="25" b="25"/> | |
<color id="5" r="128" g="0" b="128"/> |
require 'faker' | |
class Person | |
include Faker | |
attr_reader :first_name, :last_name, :phone_number, :work_address, :bio, :email | |
def initialize | |
@first_name = Name.first_name | |
@last_name = Name.last_name |
This tip we are going to discuss some Sublime setup and one shortcut. Feel free to ask sublime questions at the next google hangout.
Setting up Sublime for the command line
It is useful to open up Sublime from the command line. Typically, this is done by setting up the command subl
to open up Sublime.
Once setup, the command subl .
will open up the current directory. the command subl program.rb
will open up the program.rb
file. Here is how you set it up: