-
Buat folder untuk app
mkdir nama-appnya-terserah # buat sendiri ya namanya... hehe cd nama-appnya-terserah
-
Buat file yang dibutuhkan
touch app.rb config.ru Gemfile
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" ================ General Config ==================== | |
set number "Line numbers are good | |
set backspace=indent,eol,start "Allow backspace in insert mode | |
set history=1000 "Store lots of :cmdline history | |
set showcmd "Show incomplete cmds down the bottom |
Buat folder untuk app
mkdir nama-appnya-terserah # buat sendiri ya namanya... hehe
cd nama-appnya-terserah
Buat file yang dibutuhkan
touch app.rb config.ru Gemfile
Rails flash messages with AJAX requests
#Techniques for Anti-Aliasing @font-face on Windows
It all started with an email from a client: Do these fonts look funky to you? The title is prickly.
The font in question was Port Lligat Sans from Google Web Fonts.
------------------------------- | |
The code for the contact form | |
------------------------------- | |
<div id='contact-box' class="group"> | |
<div class="span6 clear"> | |
<form action="/" method="post" class="well"> | |
<label for="name">Your Name:</label> | |
<input type="text" name="name" class="span4" placeholder="John Smith..."> | |
<label for="email">Your email address:</label> |
require 'rubygems' | |
require 'sinatra' | |
require 'fileutils' | |
# upload with: | |
# curl -v -F "data=@/path/to/filename" http://localhost:4567/user/filename | |
# or just go to http://localhost:4567/user/filename with a browser | |
get '/:name/:filename' do |