Skip to content

Instantly share code, notes, and snippets.

View localdrive's full-sized avatar

Sisras localdrive

View GitHub Profile
@mulhoon
mulhoon / onesignal-node.js
Last active November 9, 2021 07:28
Send a push notification in node with OneSignal
var request = require('request');
var sendMessage = function(device, message){
var restKey = '****';
var appID = '****';
request(
{
method:'POST',
uri:'https://onesignal.com/api/v1/notifications',
headers: {
@tmcw
tmcw / -
Created July 29, 2014 20:07
Statistical profiling result from v8.log, (9209 ticks, 10 unaccounted, 0 excluded).
[Unknown]:
ticks total nonlib name
10 0.1%
[Shared libraries]:
ticks total nonlib name
8589 93.3% 0.0% /usr/lib/system/libsystem_kernel.dylib
383 4.2% 0.0% /usr/local/bin/node