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:
I hereby claim:
To claim this, I am signing this object:
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; | |
} |
import React, { Component } from 'react' | |
import Subapp from './subapp/Root' | |
class BigApp extends Component { | |
render() { | |
return ( | |
<div> | |
<Subapp /> | |
<Subapp /> | |
<Subapp /> |
//path: plugins/admin.js | |
const plugin = module.exports; | |
plugin.register = register; | |
plugin.register.attributes = { | |
name: 'admin plugin', | |
version: '0.0.1-alpha-beta-gama' | |
}; |
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
---------------------------------------------------------------------- | |
NES HAPIJS | |
Thor: version: 1.0.0 | |
God of Thunder, son of Odin and smasher of WebSockets! |
var Hapi = require('hapi'); | |
var server = new Hapi.Server(); | |
server.connection({ | |
host: 'localhost', | |
port: 8000 | |
}); | |
server.ext('onRequest', function (request, reply) { |