Skip to content

Instantly share code, notes, and snippets.

def create
@user = User.new(params[:user])
pw_match!
if @user.save
flash[:notice] = "User created"
redirect_to admin_url
else
render :action => "new"
end
end
require 'rubygems'
require 'rubygems/package'
def write_package
open "/tmp/blah.rn", 'wb' do |io|
Gem::Package.open io, 'w' do |pkg|
#pkg.metadata = @spec.to_yaml
Dir["**/*"].each do |file|
next if File.directory? file
stat = File.stat file
int switchPin = 8;
void setup()
{
Serial.begin(9600);
pinMode(switchPin, INPUT);
}
We couldn’t find that file to show.