"I am sharing my code. I am not launching an open source project." -- Alan Gutierrez
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
import React from "react" | |
import { CognitoUser } from "@aws-amplify/auth" | |
import { useAuth } from "./hooks" | |
import { SignInInput } from "./types" | |
interface AuthState { | |
user: CognitoUser | null | |
signIn(input : SignInInput): Promise<void> | |
signOut(): Promise<void> |
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
group :production do | |
gem 'unicorn' | |
# Enable gzip compression on heroku, but don't compress images. | |
gem 'heroku-deflater' | |
# Heroku injects it if it's not in there already | |
gem 'rails_12factor' | |
end |
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
A long, long time ago... | |
I can still remember | |
How his blog used to make me smile. | |
And I knew that if he had his chance | |
That he could make their code enhance | |
And, maybe, they’d be happy for a while. | |
But August made me shiver | |
With every code line I’d deliver. | |
Bad news on the doorstep; |
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
# Gemfile | |
… | |
gem 'uuidtools' | |
… |
Note: You need to be on a Mac.
Note: This is purposely verbose. Yes, I know a lot of this can be simplified. Fork it and show me.
- Install git
- Open your terminal.
- mkdir ~/Documents/phonegap_sencha
- cd ~/Documents/phonegap_sencha
- git clone https://github.com/phonegap/phonegap-iphone.git && cd phonegap-iphone
- git reset --hard HEAD
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
module Kernel | |
def the(a, b) | |
Exception.new | |
end | |
def roof | |
end | |
def yo! | |
end |