Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Pablo Rocha joserocha3

🏠
Working from home
Block or report user

Report or block joserocha3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@joserocha3
joserocha3 / 00.setup.md
Last active Jun 20, 2019
Flutter Talk (Not so easy)
View 00.setup.md

$ flutter create flutter_talk

$ cd flutter_talk

Now open emulator or attach device

$ flutter run

@joserocha3
joserocha3 / _setup.md
Last active Jun 20, 2019
Flutter Talk (Easy)
View _setup.md

$ flutter create flutter_talk

$ cd flutter_talk

Now open emulator or attach device

$ flutter run

@joserocha3
joserocha3 / map-snapshot.js
Created Feb 2, 2018
Use map instead of forEach with a firestore snapshot
View map-snapshot.js
exports.recurringPayment = functions.https.onRequest(async (req, res) => {
const hook = req.body.type
const data = req.body.data.object
// 300 or 400 as failed will cause stripe to rerun
if (!data) return res.status(400).send('data missing')
if (!data.subscription) return res.status(200).send('not a subscription')
if (hook !== 'invoice.payment_succeeded' && hook !== 'invoice.payment_failed') return res.status(400).send('unknown hook')
View rules.json
[
{
"title": "Double Shot",
"desc": "Roll some dice, Highest number takes a shot",
"img": "imgs/obj_A.jpg"
},
{
"title": "Straight Shooter",
"desc": "Take a shot straight, as in no chaser",
@joserocha3
joserocha3 / .gitignore
Created Sep 12, 2016
Unity project .gitignore
View .gitignore
# Created by https://www.gitignore.io/api/unity
### Unity ###
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
You can’t perform that action at this time.