Skip to content

Instantly share code, notes, and snippets.

Daniela Borges Matos de Carvalho sericaia

  • YLD!
  • Lisbon, Portugal
Block or report user

Report or block sericaia

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
View keybase.md

Keybase proof

I hereby claim:

  • I am sericaia on github.
  • I am danielayld (https://keybase.io/danielayld) on keybase.
  • I have a public key whose fingerprint is AE48 38D9 79A7 4F4C 5B14 D834 3BB9 87EA 8530 5B4E

To claim this, I am signing this object:

@sericaia
sericaia / pick.js
Created Feb 16, 2017 — forked from johnytiago/pick.js
Pick a random require-lx attendee for prize winner
View pick.js
const request = require('request')
let options = {
url: 'https://api.meetup.com/require-lx/events/236789439/rsvps'
}
request(options, (err, res, body ) => {
if (err) {
throw err;
}
@sericaia
sericaia / index.js
Created Apr 8, 2016 — forked from gaearon/index.js
Breaking out of Redux paradigm to isolate apps
View index.js
import React, { Component } from 'react'
import Subapp from './subapp/Root'
class BigApp extends Component {
render() {
return (
<div>
<Subapp />
<Subapp />
<Subapp />
View admin.js
//path: plugins/admin.js
const plugin = module.exports;
plugin.register = register;
plugin.register.attributes = {
name: 'admin plugin',
version: '0.0.1-alpha-beta-gama'
};
@sericaia
sericaia / perf-flame-graph-notes.md
Created Feb 8, 2016 — forked from trevnorris/perf-flame-graph-notes.md
Quick steps of how to create a flame graph using perf
View perf-flame-graph-notes.md

The prep-script.sh will setup the latest Node and install the latest perf version on your Linux box.

When you want to generate the flame graph, run the following (folder locations taken from install script):

sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=0
View nes-hapi.txt
----------------------------------------------------------------------
NES HAPIJS
Thor: version: 1.0.0
God of Thunder, son of Odin and smasher of WebSockets!
@sericaia
sericaia / hapi-server-ext-route-validation
Created Mar 27, 2015
Playing with hapi server.ext
View hapi-server-ext-route-validation
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({
host: 'localhost',
port: 8000
});
server.ext('onRequest', function (request, reply) {
You can’t perform that action at this time.