Skip to content

Instantly share code, notes, and snippets.

View DaneTheory's full-sized avatar
🏠
Working from home

Branden Dane DaneTheory

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am danetheory on github.
  • I am danetheory (https://keybase.io/danetheory) on keybase.
  • I have a public key ASBqVoJCikxKQ9bL4lpRdqs1uejP5BQki6xh89vtkpvWaQo

To claim this, I am signing this object:

@DaneTheory
DaneTheory / .hyper.js
Last active April 13, 2020 18:19
Hyper-Sync
//
@DaneTheory
DaneTheory / Atom_Projects_Backup.js
Created April 18, 2020 17:16
Atom Projects Backup
//
@DaneTheory
DaneTheory / dev-server.js
Created April 29, 2020 14:02 — forked from jamsesso/dev-server.js
Webpack dev server with a better proxy (http-proxy-middleware)
var express = require('express');
var path = require('path');
var webpackConfig = require('./webpack.config');
var webpack = require('webpack');
var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var proxyMiddleware = require('http-proxy-middleware');
var devConfig = webpackConfig.devServer;
var app = express();
@DaneTheory
DaneTheory / original-periodic-table-data-array.json
Last active June 3, 2020 21:29
The original Periodic Table of Elements data used in https://threejs.org/examples/css3d_periodictable.html (modified to valid JSON format)
{
"table": [
"H",
"Hydrogen",
"1.00794",
1,
1,
"He",
"Helium",
"4.002602",
@DaneTheory
DaneTheory / openpgp.md
Created March 12, 2021 16:52
PrecisionRx GPG
@DaneTheory
DaneTheory / NPMDocs_PackageJson_Current-Release-v7_x.json
Created June 11, 2021 03:39
Specifics of npm's package.json handling - Version: 7.x (Current release)
{
}
@DaneTheory
DaneTheory / ThePackageDotJson_Generel.json
Last active June 24, 2021 08:27
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - General
[{
"requirements": {
"sources:long": [
["npm:current*", "A 'package.json' file must contain \"name\" and \"version\" fields."],
["npm:current*", "The 'name' field contains your package's name, and must be lowercase and one word, and may contain hyphens and underscores."],
["npm:current*", "The 'version' field must be in the form 'x.x.x' and follow the semantic versioning guidelines."]
],
"_" : [
["isFile", "Must be a file"],
@DaneTheory
DaneTheory / ThePackageDotJson_Extras-CustomQuestionnaire.json
Last active June 24, 2021 08:52
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - Extras: Custom Questionnaire
[{
"npm:current*": {
"ref": "https://docs.npmjs.com/creating-a-package-json-file#customizing-the-packagejson-questionnaire",
"description": "If you expect to create many 'package.json' files, you can customize the questions asked and fields created during the init process so all the 'package.json' files contain a standard set of information.",
"_": [
"In your home directory, create a file called '.npm-init.js'",
["To add custom questions, using a text editor, add questions with the 'prompt' function", "module.exports = prompt(\"what's your favorite flavor of ice cream, buddy?\", \"I LIKE THEM ALL\");"],
["To add custom fields, using a text editor, add desired fields to the '.npm-init.js' file", "module.exports = { \n \"customField\": \"Example custom field\", \n \"otherCustomField\": \"This example field is really cool\" \n }"],
["To learn more about creating advanced 'npm init' customizations, see the '_url1_:init-package-json:_url1_' GitHub repository.", "_url1_:https:/