Skip to content

Instantly share code, notes, and snippets.

View drborges's full-sized avatar
🏠
Working from home

Diego Borges drborges

🏠
Working from home
View GitHub Profile
Hello All, after receiving a lot of great feedback on the magic-link RFC and better polishing the plan for getting Pulse users integrated with Nitro's auth/session mechanism, I've decided to split up that RFC in two:
1. [Magic-link Workflow](https://github.com/powerhome/rfcs/pull/101): This is now, as suggested by Ben, about the magic-link workflow only.
2. [Multiple User Abstractions Within Nitro](https://github.com/powerhome/rfcs/pull/102): This proposes a solution to support multiple user implementations in Nitro to better accommodate the new `Pulse::User` implementation and perhaps provide a foundation for breaking down the existing `users` table.
The RFC #2 in that list is still WIP, so feel free to provide early feedback, with that said, as pointed out in the RFC, we already have a functioning proof-of-concept that implements a lot of what's being proposed.
Thanks to everyone that contributed so far, the solution we are chasing now seems much more solid and is a result of multiple brains working toge
@drborges
drborges / v8.rb
Last active December 14, 2018 12:24 — forked from kovyrin/v8.rb
require 'formula'
class V8 < Formula
homepage 'http://code.google.com/p/v8/'
# Use the official github mirror, it is easier to find tags there
url 'https://github.com/v8/v8/archive/5.9.211.38.tar.gz'
sha256 '2600828269b234cf34d3572ab7d6e61d5e3c4d77d67cc4174973b79a6e8d6388'
head 'https://github.com/v8/v8.git'
numero =
one: "uno"
two: "dos"
three: "thres"
four: "quatro"
const ListView = ({ mode, children, ...rest }) {
return (
<div className={`list-view flex-${mode}`}>
<ListItem {...rest} />
{children}
</div>
);
}

Keybase proof

I hereby claim:

  • I am drborges on github.
  • I am drborges (https://keybase.io/drborges) on keybase.
  • I have a public key whose fingerprint is 5500 EFC5 B2BF ED89 FD81 725A E8C4 088A 2680 124B

To claim this, I am signing this object:

@drborges
drborges / firebase.decorators.js
Last active April 24, 2016 20:08
Prototype for firebase ES7 decorators
@firebase('userxp')
@firebase.POST('/users')
class NewUser extends React.Component {
render() {
return (
<div>
<input type="text"
valueLink={this.state.data.linkTo('name')} />
<input type="text"
valueLink={this.state.data.linkTo('level')} />
~/P/r/p/nitro-web-bkp ❯❯❯ ruby --version ⏎ master
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
~/P/r/p/nitro-web-bkp ❯❯❯ bundle exec rake dev:load_recent master
rake aborted!
LoadError: Please add test-unit gem to your Gemfile: `gem 'test-unit', '~> 3.0'` (cannot load such file -- test/unit/testcase)
/Users/diegoborges/.rvm/gems/ruby-2.2.1/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `require'
/Users/diegoborges/.rvm/gems/ruby-2.2.1/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `block in require'
/Users/diegoborges/.rvm/gems/ruby-2.2.1/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:236:in `load_dependency'
@drborges
drborges / arc.swift
Created March 8, 2016 17:39
Playing around with ARC concepts...
// This is a commented walkthrough some of the ARC concepts
// very well detailed at:
// https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AutomaticReferenceCounting.html#//apple_ref/doc/uid/TP40014097-CH20-ID54
import Foundation
class Person {
let name: String
var apartment: Apartment? // strong reference to an Apartment instance
package main
import "fmt"
type Any interface{}
type Callback func(data Any)
type CallbackDecorator func(Callback) Callback
func Greetings(msg Any) {
fmt.Print("Hello there ", msg)
@drborges
drborges / binary_spike.go
Created February 19, 2016 19:21
Spikes on the encoding/binary and encoding/hex packages
package main
import "fmt"
import "encoding/binary"
import "encoding/hex"
func main() {
num := uint64(120123)
size := binary.Size(num)
fmt.Printf("size: %v\n", size)