- Create folder
~/yourapp
- Create folder
~/yourapp/tmp
- Create file
~/yourapp/config.ru
with the following content:
# encoding: UTF-8
require './appmain'
class ClassVarTest | |
@variable = "Class Variable" | |
def self.get_class_variable | |
@variable | |
end | |
def get_object_variable | |
@variable | |
end |
//JS Snippets | |
// Gets the browser prefix | |
var browserPrefix; | |
navigator.sayswho= (function(){ | |
var N = navigator.appName, ua = navigator.userAgent, tem; | |
var M = ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); | |
if(M && (tem = ua.match(/version\/([\.\d]+)/i))!= null) M[2] = tem[1]; | |
M = M? [M[1], M[2]]: [N, navigator.appVersion,'-?']; | |
M = M[0]; |
var gulp = require('gulp'); | |
var clean = require('gulp-clean'); | |
var jshint = require('gulp-jshint'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var imagemin = require('gulp-imagemin'); | |
var bases = { | |
app: 'app/', |
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap Basic Template</title> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="style.css"> |
<html> | |
<head> | |
<title>Site Title</title> | |
<meta name="description" content="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."> | |
<meta name="keywords" content="Keywords Tag - It can help but not hurt. Place 5-10 accurate, unique keywords in this tag for your page. Be sure that they match the actual page content."> | |
<meta property="og:title" content="The Rock" /> | |
<meta property="og:type" content="video.movie" /> |