Ref: CranialPulse: How to install Ruby and Rails on Mountain Lion as of now
- Install XCode from the App Store
- Install XCode Command Line Tools (Open XCode, Preferences, Downloads)
- In Terminal, run
sudo xcodebuild -license agree
| // Credit: Kodierer http://bit.ly/pqcSq | |
| using System; | |
| using System.Threading; | |
| using System.Windows; | |
| using System.Windows.Browser; | |
| using System.Windows.Threading; | |
| public class Log | |
| { |
| = form_for @photo, :html => { :multipart => true } do |f| | |
| .field | |
| = f.label :title | |
| = f.text_field :title | |
| - if !@photo.img_original.nil? and !@photo.img_original.empty? | |
| %img{:src => "/uploads/#{@photo.img_original}", :border => 1, :width => 50, :height => 50 } | |
| .field | |
| = f.label 'New file' |
| gem 'mysql2', '< 0.3' | |
| gem 'haml' | |
| gem 'haml-rails' | |
| gem 'paperclip', '~> 2.3' |
| # Build Folders (you can keep bin if you'd like, to store dlls and pdbs) | |
| bin | |
| obj | |
| # Visual Studio files | |
| *.suo | |
| _ReSharper.* | |
| *.user | |
| # mstest test results |
| <?xml version="1.0"?> | |
| <configuration> | |
| <configSections> | |
| <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/> | |
| </configSections> | |
| <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <targets> | |
| <target name="default" xsi:type="File" | |
| fileName="C:\logs\app-log.txt" | |
| archiveFileName="C:\logs\archives\app-log.{#}.txt" |
| { | |
| recommendation: | |
| { | |
| planName:"Family Nation 1400", | |
| features:[], | |
| devices: | |
| [ | |
| { phoneNumber: "1234567890", features:[] }, | |
| { phoneNumber: "4561234098", features:[] }, | |
| { phoneNumber: "7891234567", features:[] } |
Ref: CranialPulse: How to install Ruby and Rails on Mountain Lion as of now
sudo xcodebuild -license agree| !!! 5 | |
| %html | |
| %head | |
| %meta{ :charset => "utf-8" } | |
| %title= "Website" | |
| %meta{ :name => "description", :content => "" } | |
| %meta{ :name => "author", :content => "Yoeun Pen" } | |
| %link{ :href => "css/main.css", :media => "screen", :rel => "stylesheet" } | |
| %script{ :src => "js/modernizr.js" } | |
| %body |
| CTRL+a | |
| Move cursor to beginning of the line. (I think of this as anchoring my cursor to the start.) | |
| CTRL+e | |
| Move cursor to the end of the line. | |
| CTRL+k | |
| Delete everything from under the cursor to the end of the line. (I think of this as killing the rest of my line.) | |
| CTRL+f |
| cd projectname | |
| rvm --rvmrc --create use ruby-x.x.x@projectname | |
| bundle init # if applicable | |
| vim Gemfile | |
| bundle install |