Skip to content

Instantly share code, notes, and snippets.

View dpsxp's full-sized avatar

Daniel Paulino dpsxp

  • São Paulo, SP, Brazil
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dpsxp on github.
  • I am dpsxp (https://keybase.io/dpsxp) on keybase.
  • I have a public key ASCR586_o9Dx2fH7yZj7ejW3I2YKqS-oDzaD3S5KS29sRAo

To claim this, I am signing this object:

@dpsxp
dpsxp / keybase.md
Created February 20, 2020 13:44
keybase.md

Keybase proof

I hereby claim:

  • I am dpsxp on github.
  • I am dpsxp (https://keybase.io/dpsxp) on keybase.
  • I have a public key ASBkrbHWrUXlOz9AwPF9BvQgFEy9qvWDCPgQ8CsDmKTaEgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dpsxp on github.
  • I am dpsxp (https://keybase.io/dpsxp) on keybase.
  • I have a public key ASCs7u_qI3ZugiMN1LOu6GmtDBdgw6AQ1ASh4-iN3vkjDAo

To claim this, I am signing this object:

{
link() {
RxJS.Observable
.fromEvent(window, 'resize')
.debounce(500)
.subscribe(() => // do something)
}
}
{
"application": {
"organization":"asdf",
"acquisitionChannel":1234,
"program":1234,
"applicant": {
"personal_info": {
"postalAddressType":"asdf",
"maritalStatus":"asdf",
"role":"asdf",
@dpsxp
dpsxp / VertxPromise.groovy
Last active December 1, 2015 16:52
Simple Promise implementation for Vertx event bus
import io.vertx.groovy.core.Vertx
class Promise {
private final vertx
private final evt
private cbs = []
private errors = []
def static create(vertx, evt) {
new Promise(vertx, evt)
@dpsxp
dpsxp / libs.txt
Created October 28, 2015 15:41
Ruby essential system libs
libssl-dev
var convert = function convert(number, base, toBase) {
if (base === 10 && toBase === 2) {
return decimalToBinary(number);
} else if (base === 10 && toBase === 16) {
return decimalToHex(number);
} else if (base === 2 && toBase === 10) {
return binaryToDecimal(number);
} else if (base === 2 && toBase === 16) {
return binaryToHexa(number);
} else if (base === 16 && toBase === 10) {
http://www.reddit.com/r/vim/comments/2ozwe4/24_bit_vim_in_osx_iterm2_a_reality/
https://github.com/Homebrew/linuxbrew
@dpsxp
dpsxp / nginx.conf
Last active August 29, 2015 14:11
nginx cors
location /path {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Max-Age' 1728000;
}