Skip to content

Instantly share code, notes, and snippets.

Avatar

Sandro Pasquali sandro-pasquali

View GitHub Profile
@totherik
totherik / gist:3a4432f26eea1224ceeb
Last active May 14, 2020
v8 --allow-natives-syntax RuntimeFunctions
View gist:3a4432f26eea1224ceeb
Per https://code.google.com/p/v8/codesearch#v8/trunk/src/runtime.cc
%CreateSymbol
%CreatePrivateSymbol
%CreateGlobalPrivateSymbol
%NewSymbolWrapper
%SymbolDescription
%SymbolRegistry
%SymbolIsPrivate
@creationix
creationix / output.log
Created May 8, 2013
Working version of generator async code sample. Using node from https://github.com/andywingo/node/tree/v8-3.19
View output.log
tim@touchsmart:~/Code$ nvm use v0.11.2-generators
Now using node v0.11.2-generators
tim@touchsmart:~/Code$ node --harmony testgen.js
<Buffer 76 61 72 20 66 73 20 3d 20 72 65 71 75 69 72 65 28 27 66 73 27 29 3b 0a 66 75 6e 63 74 69 6f 6e 20 72 65 61 64 46 69 6c 65 28 70 61 74 68 2c 20 65 6e 63 ...>
Sleeping for 2000ms...
Done
@sourcec0de
sourcec0de / install_nodejsV0.10.9.sh
Last active Nov 15, 2018
A Rock solid nodejs platform install script. Latest Redis, MongoDB, and NodeJS V10.9.0 tested Ubuntu 13.04 X64
View install_nodejsV0.10.9.sh
#!/bin/sh
# Add MongoDB Package
echo "Add MongoDB Package"
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "MongoDB Package completed"
# Update System
echo "System Update"
@mbostock
mbostock / .block
Last active Jun 13, 2020
Google Maps + D3
View .block
license: gpl-3.0
View redis_pubsub_demo.rb
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
You can’t perform that action at this time.