Skip to content

Instantly share code, notes, and snippets.

Jason Mendes jasonmendes

Block or report user

Report or block jasonmendes

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 sendToEngine.sh
TOKEN=""
FILE=$1
function new_token {
TOKEN=$(curl \
-X POST http://localhost:1337/auth/authenticate \
-d '{
"apiKey":"apikey",
"secret":"secret"}' \
-H "Content-Type: application/json" \
View index.js
const https = require('https');
const fs = require('fs');
const express = require('express');
const bodyParser = require('body-parser');
const port = 3333;
const app = express();
app.use(bodyParser.json());
View coins.csv
SYMBOL USD
BTC 2760.67
ETH 226.48
XRP 0.174842
BCH 385.63
LTC 43.08
XEM 0.220347
ETC 15.39
DASH 188.61
MIOTA 0.368363
View test.csv
color lols wfs
green 10 ?
blue 20 30
red 0 45
View zcash-dec2017.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 8 columns, instead of 9. in line 1.
date,txVolume(USD),txCount,marketcap(USD),price(USD),exchangeVolume(USD),generatedCoins,fees
2017-12-01,121574889.949,6759.0,837670000.0,335.98,78854200.0,7125.0,5.71656325001,
2017-12-02,59914644.6864,6625.0,919935000.0,329.3,63555100.0,7075.0,4.97092483,
2017-12-03,54486415.5585,6357.0,906261000.0,322.81,85387900.0,7262.5,5.02789066001,
2017-12-04,65205069.5292,6400.0,890812000.0,330.51,61649200.0,7037.5,3.57645802999,
2017-12-05,62115584.3632,6791.0,914876000.0,323.39,72757600.0,7062.5,2.69068685999,
2017-12-06,100512462.442,6406.0,895026000.0,338.87,206504000.0,7425.0,2.55462689001,
2017-12-07,97369972.7836,7850.0,944355000.0,308.39,125668000.0,6925.0,2.96873434001,
2017-12-08,107997114.756,8201.0,858140000.0,328.07,127793000.0,7187.5,5.02968149998,
2017-12-09,327863408.366,8813.0,915507000.0,316.63,132799000.0,7225.0,6.12283434,
View zcash.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 8 columns, instead of 9. in line 1.
date,txVolume(USD),txCount,marketcap(USD),price(USD),exchangeVolume(USD),generatedCoins,fees
2016-10-29,204680.210935,406.0,1383590.0,2044.47,2532790.0,123.02365136,0.0387728,
2016-10-30,1102285.33357,5366.0,959342.0,574.82,1009210.0,349.73217668,0.25014267,
2016-10-31,6833986.89535,7198.0,593240.0,1624.58,4333820.0,554.91290726,0.2590202,
2016-11-01,11368401.256,5830.0,2895110.0,1333.74,4802060.0,767.92263534,0.25981363,
2016-11-02,6831997.58462,5588.0,3701650.0,942.78,3936160.0,972.24066653,0.30023121,
2016-11-03,7872698.73372,6922.0,3728630.0,887.26,2783300.0,1165.93871891,0.41087831,
2016-11-04,6474466.3538,6844.0,4734940.0,603.98,2469390.0,1369.4076097,0.55510851,
2016-11-05,4475117.1016,7208.0,4167660.0,504.57,1984150.0,1613.23521831,0.33327751,
2016-11-06,1571926.90171,3925.0,4422370.0,321.79,2390590.0,1799.58306901,0.3127255,
View california_starbucks.csv
-118.114954 34.079
-117.4283 34.6267
-118.7573187 34.15343545
-118.757134 34.1606
-122.277604 37.788222
-122.253388 37.757099
-122.233245 37.76807
-122.2432424 37.76369586
-122.252229 37.75665
-122.2761122 37.77965876
View callback-example.js
const gb = require('geckoboard')('api key'); [5/868]
gb.set('ping', function(err, res) {
if (err) {
console.error(err);
return;
}
gb.set('create', 'dwarf', {
fields: {
quantity: {
View geckoboard.js
var monitor = {
item: Math.floor(Math.random()*227) + 1111,
min: {
value: 0
},
max: {
value: 1337
}
};
You can’t perform that action at this time.