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
@import "compass" | |
@import "preboot" | |
@import "compass-bootstrap/compass_bootstrap" | |
body | |
background: url(<%= asset_path 'background3.jpg' %>) | |
//background-color: #dedede | |
#main | |
//background-color: white | |
//+box-shadow(rgba(#dedede,0.5) 1px 0px 2px) | |
#header |
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
jimchang ~/projects/tw-voting[master ☠]$ rake assets:precompile | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets | |
mkdir -p /Users/jimchang/projects/tw-voting/public/assets |
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 static variable是@@a這種 | |
# 我會這麼寫(至於多數人怎麼寫我就不清楚了...sorry = =") | |
class A | |
@@class_var = 'I am A' | |
def self.class_var | |
@@class_var | |
end | |
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
jim@mbp: ~$ "$(brew --prefix mysql)"/bin/mysql_secure_installation | |
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL | |
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! | |
In order to log into MySQL to secure it, we'll need the current |
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
Warning: m4 macros were installed to "share/aclocal". | |
Homebrew does not append "/usr/local/share/aclocal" | |
to "/usr/share/aclocal/dirlist". If an autoconf script you use | |
requires these m4 macros, you'll need to add this path manually. |
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 CreateMembers < ActiveRecord::Migration | |
def self.up | |
create_table :members do |t| | |
t.integer :family_id | |
t.string :name | |
t.integer :tree_position_id | |
t.string :gender | |
t.datetime :birthday | |
t.string :bloodtype |
NewerOlder