Presentation notes for #DevTO - Appy Hour #1 April 23rd 2014.
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 Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
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
int groundpin = 18; // analog input pin 4 | |
int powerpin = 19; // analog input pin 5 | |
int xpin = A3; // x-axis of the accelerometer | |
int ypin = A2; // y-axis | |
int zpin = A1; // z-axis (only on 3-axis models) | |
long xy_max = 470; | |
long xy_min = 550; | |
int forwardPin = 9; | |
int backPin = 10; |
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
listen=YES | |
anonymous_enable=NO | |
local_enable=YES | |
write_enable=YES | |
local_umask=022 | |
dirmessage_enable=YES | |
use_localtime=YES | |
xferlog_enable=YES | |
connect_from_port_20=YES | |
chroot_local_user=YES |
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
int groundpin = 18; // analog input pin 4 | |
int powerpin = 19; // analog input pin 5 | |
int xpin = A3; // x-axis of the accelerometer | |
int ypin = A2; // y-axis | |
int zpin = A1; // z-axis (only on 3-axis models) | |
long xy_max = 500; | |
long xy_min = 540; | |
int leftPin = 11; | |
int rightPin = 8; |
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
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
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
# | |
# Slightly tighter CORS config for nginx | |
# | |
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
# | |
# Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
# don't seem to play nicely with this. | |
# |
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
Show hidden characters
{ | |
"files": | |
{ | |
"jquery": "http://code.jquery.com/jquery.min.js", | |
"normalize": "https://raw.github.com/necolas/normalize.css/master/normalize.css" | |
}, | |
"packages": | |
{ | |
"html5_boilerplate": "https://github.com/h5bp/html5-boilerplate/zipball/master", | |
"wordpress": "http://wordpress.org/latest.zip", |
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
Nettuts+ Fetch | |
Prefixr | |
Emmet | |
AdvancedNewFile | |
Sublime Linter | |
SideBarEnhancements | |
Gist | |
DocBlockr | |
LiveReload |
OlderNewer