Skip to content

Instantly share code, notes, and snippets.

View lin's full-sized avatar

Albert Lin lin

View GitHub Profile
@lin
lin / 1 setup.md
Last active August 29, 2015 14:08
Installation of a Rails app with mongoid, devise and activeadmin

1, a new rails app without active record

rails new template --skip-active-record

If you haven't installed mongoid, you should follow:

gem update --system
/* font face */
@font-face {
font-family: 'MyWebFont';
src: url('myfont.woff') format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
url('myfont.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}
@lin
lin / angularjs.html
Last active August 29, 2015 14:08
Angular.js
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<script src="app.js"></script>
<div ng-app="store">
<p>Name: <input type="text" ng-model="name"></p>
<p ng-bind="name"></p>
<p>
I am {{ 4 + 6 }}
@lin
lin / design websites
Last active August 29, 2015 14:09
Design Notes
http://learnlayout.com/
@lin
lin / hr-legend.html
Created November 10, 2014 16:36
Legend line for or
<fieldset class="hr-legend">
<legend align="center">OR</legend>
</fieldset>
@lin
lin / .bash_profile
Created November 16, 2014 15:24
Terminal Line Alias
# git alias
alias status='git status'
alias add='git add -A'
alias dev='git checkout development'
alias pushdev='git push origin development'
alias pulldev='git pull origin development'
alias commit='git commit -m'
alias push='git push origin master'
alias pull='git pull origin master'
@lin
lin / Goal.md
Last active August 29, 2015 14:09
Fight AWS
  1. Launch a rails application using EC2
  2. Launch a EC2 for mongodb
  3. connect rails with mongodb, and run rails on mongodb.
  4. deploy the codes to live site.
  5. connect domain name to live site.
  6. ssh shortcut as ssh domain.com

Resources

  1. railscast
@lin
lin / 1.rails.md
Last active August 29, 2015 14:10
Rails Production
rails r "print Rails.env"

Route 53, health check ping target should be set as:

Ping Target	HTTP:80/

rails 4 for production