Skip to content

Instantly share code, notes, and snippets.

const nodeRSA = require('node-rsa');
const fetch = require('node-fetch');
const publicKey = 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCbM2br48JS2JJy8Ajy0gy33Gu5RNAFgysUp4Mj9FqzXWg7AwdGaXc0vIAGG3vmyrP906qJpiEV1aW9GhsEGNQ9Mjmngfnu1VAKZjskVToqG1ktiXZJKSlVUfGTYj+r1lKDgd2iKt4azIzoeElk1gnLovn8zEaiCT7prHlzWWb7JgW3qp1e12e5WvSC5xX9P5iKOs6WM3qTSAX3e8qGeA9wtlHdQuDjSjWA0WlYQIFKgpoCBNZeldNxel79QgR7QKG6Oo/H4aImhDW9vXH00mGVy9QX11ngovVYPhCQWzsAo+v+Y2lAJUtFdjr2t9/mJisKxpYvpMeqVo2ZSydwBmb5'
const consumerId = 'change this to your consumer id'
const privateKey = "MIIEpAIBAAKCAQEAmzNm6+PCUtiScvAI8tIMt9xruUTQBYMrFKeDI/Ras11oOwMH\
Rml3NLyABht75sqz/dOqiaYhFdWlvRobBBjUPTI5p4H57tVQCmY7JFU6KhtZLYl2\
SSkpVVHxk2I/q9ZSg4HdoireGsyM6HhJZNYJy6L5/MxGogk+6ax5c1lm+yYFt6qd\
XtdnuVr0gucV/T+YijrOljN6k0gF93vKhngPcLZR3ULg40o1gNFpWECBSoKaAgTW\
XpXTcXpe/UIEe0ChujqPx+GiJoQ1vb1x9NJhlcvUF9dZ4KL1WD4QkFs7AKPr/mNp\
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data":{
"url":
"https://raw.githubusercontent.com/hvo/datasets/master/nyc_restaurants_by_cuisine.json",
"format": {"type":"json"}
},
"transform":[
{"filter":"datum._vgsid_<=25" }
],
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var Auth0Lock = require('react-native-lock-ios');
var lock = new Auth0Lock({clientId: 'redacted', domain: 'redacted'});
import React, {
Image,
AppRegistry,
var path = require('path');
var express = require('express');
var helmet = require('helmet');
var app = express();
app.use(helmet());
var staticPath = path.resolve(__dirname + '/build');
app.use(express.static(staticPath));
var server_port = process.env.PORT || CONFIG.port;
var path = require('path');
var HtmlwebpackPlugin = require('html-webpack-plugin');
var autoprefixer = require('autoprefixer');
var fontgen = require('fontgen-loader');
var merge = require('webpack-merge');
var webpack = require('webpack');
var Clean = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
// require("font-awesome-webpack");
var ROOT_PATH = path.resolve(__dirname);
var path = require('path');
var HtmlwebpackPlugin = require('html-webpack-plugin');
var merge = require('webpack-merge');
var webpack = require('webpack');
var Clean = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var ROOT_PATH = path.resolve(__dirname);
// Load *package.json* so we can use `dependencies` from there
WARNING in ./~/npm/lib/npm.js
Critical dependencies:
290:8-23 the request of a dependency is an expression
@ ./~/npm/lib/npm.js 290:8-23
WARNING in ./~/babel-core/lib/transformation/file/options/option-manager.js
Critical dependencies:
191:19-37 the request of a dependency is an expression
324:27-45 the request of a dependency is an expression
@ ./~/babel-core/lib/transformation/file/options/option-manager.js 191:19-37 324:27-45
import React from 'react';
import { Router, Route, Link } from 'react-router';
// import App from './app';
// import HomePage from './HomeView';
var App = require('./app');
var HomeView = require('./HomeView');
import ga from 'react-google-analytics';
var React = require('react');
var Router = require('react-router');
var DefaultRoute = Router.DefaultRoute;
var Link = Router.Link;
var Route = Router.Route;
var RouteHandler = Router.RouteHandler;
var App = require('./app');
var HomeView = require('./HomeView');
var ga = require('react-google-analytics');
var GAInitiailizer = ga.Initializer;
var React = require('react');
var Router = require('react-router');
var DefaultRoute = Router.DefaultRoute;
var Link = Router.Link;
var Route = Router.Route;
var RouteHandler = Router.RouteHandler;
var App = require('./app');
var HomeView = require('./HomeView');
var ga = require('react-google-analytics');
var GAInitiailizer = ga.Initializer;