gem install rails --pre
rails new my_app -T
#include <stdio.h> | |
#include <time.h> | |
/* TODO: resume.h */ | |
typedef struct { | |
char * company; | |
char * location; | |
char * title; |
// Useful Macros. | |
// The best place to import this is in your project's pch file. | |
// See http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/ for details. | |
// Most current version at https://gist.github.com/325926 along with usage notes. | |
#ifndef jcscommonmacros | |
#define jcscommonmacros_1_0 10000 | |
#define jcscommonmacros jcscommonmacros_1_0 | |
#endif |
window.renderTemplate = function(name, el, json) | |
{ | |
var url = '/templates/' + name + '.html'; | |
$.ajax({ | |
url: url, | |
method: 'GET', | |
async: false, | |
dataType: 'html', | |
success: function(data) { | |
var tmpl = _.template(data); |
require 'haml' | |
# Do not buffer output | |
$stdout.sync = true | |
# Get working dir, fixes issues when rackup is called outside app's dir | |
root_path = Dir.pwd | |
use Rack::Static, | |
:urls => ['/stylesheets', '/images', '/javascripts', '/fonts'], | |
:root => root_path |
@implementation UITextView (RSExtras) | |
static BOOL stringCharacterIsAllowedAsPartOfLink(NSString *s) { | |
/*[s length] is assumed to be 0 or 1. s may be nil. | |
Totally not a strict check.*/ | |
if (s == nil || [s length] < 1) | |
return NO; |
require 'rubygems' | |
require 'bundler' | |
Bundler.require | |
require './application' | |
namespace :assets do | |
desc 'compile assets' | |
task :compile => [:compile_js, :compile_css] do | |
end |
server { | |
listen 80; | |
server_name trials.dailyemerald.com; | |
access_log /srv/www/trials.dailyemerald.com/access.log; | |
gzip on; | |
location / { | |
root /srv/www/trials.dailyemerald.com/public_html; | |
try_files $uri /index.html; | |
} |
#Mac OS X