Skip to content

Instantly share code, notes, and snippets.

View 99darwin's full-sized avatar

Nick Saponaro 99darwin

View GitHub Profile
@99darwin
99darwin / index.js
Last active June 26, 2019 15:26
Simple server for node-rpc-tutorial
const express = require('express')
const bodyParser = require('body-parser')
const path = require('path')
const app = express()
const port = process.env.PORT || 1337
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: true }))
@99darwin
99darwin / divid-api.js
Last active June 26, 2019 15:38
Divid api example for node-rpc-tutorial
const RpcClient = require('divid-rpc')
const config = require('./config')
module.exports = app => {
const rpc = new RpcClient(config.config)
app.get('/blockcount', (req, res) => {
rpc.getBlockCount((err, response) => {
if (err) {
console.error(err)
@99darwin
99darwin / build.gradle
Last active June 4, 2020 19:39
tipsi-stripe_error_logs
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
minSdkVersion = 21
compileSdkVersion = 28
targetSdkVersion = 28
}
repositories {
google()
@99darwin
99darwin / mup_migrate.md
Created January 11, 2019 19:41
Deploy Meteor App with MUP and Migrate Local MongoDB to Remote Server

Deploy Meteor app and migrate the built-in, local MongoDB to a remote server where the app is hosted.

It took me days to actually get this working, so I figured I would write out the steps I took to finally resolve the issue for my own assistance in the future and, hopefully, to help others who encounter this problem.

Create .deploy folder in your app's directory

cd .deploy
mup init

Configure the mup.js file to match your configuration. Here's an extremely basic example:

@99darwin
99darwin / sketch.js
Created January 8, 2024 00:42
TorusTest Highlight Generative Art Testing
let xRotation = 0;
let yRotation = 0;
let xRotationSpeed, yRotationSpeed;
let torusX, torusY, randomDetailX, randomDetailY;
let bgColor;
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
// Set random background color once