Skip to content

Instantly share code, notes, and snippets.

View bushidocodes's full-sized avatar

Sean McBride bushidocodes

View GitHub Profile

Image Encoding

  • Triads of 8-bit unsigned ints for RGB values
  • 8 bits is ~ 256 possible brightnesses per channels
  • 24-bit bitmaps allow for significantly more levels of brightness

Audio Encoding

  • Raw Pulse-Code Modulation
  • Normal digital audio uses 44,100 samples per second, where each sample has an amplitued of 16-bit

Some Abstract Data Types

Set - List, Linked Tree, Trie, Hash Table List Stack Queue Map (Associative Array / Dictionary / etc.) Graph Tree

@bushidocodes
bushidocodes / sequelize-example.md
Last active November 21, 2016 04:30
Sequelize Example
var Sequelize = require('sequelize');
var connection = new Sequelize('dbname', 'userid', 'pw', {
  host: 'localhost',
  dialect: 'sqlite'
});

var Pokemon = connection.define('pokemon', {
@bushidocodes
bushidocodes / projectIdeas.md
Last active December 22, 2016 20:55
Project Ideas

Dev/Ops Tools Ideas

  • Tool that scans browser and Node.js JavaScript and generates UML diagrams
  • http://www.objectplayground.com/
  • Tool that tracks package.json and visualizes the support / LTS lifecycle for Node and other packages
  • Enterprise Configuration Management Tool for Node.js
  • These could be a web app or a browser plugin

Mainframe Ideas

  • ChatOps for Mainframe
  • Browser-based 3270 terminal emulator

Base Windows 10

  1. Installed NVM for Windows as my base WNT Node.js runtime
  2. Installed Node.js 7.3.0 64-bit
  3. Installed npm-windows-upgrade globally
  4. Updated npm to 4.1.1

Microsoft Suggestions for Node.js: https://github.com/Microsoft/nodejs-guidelines

@bushidocodes
bushidocodes / s390x-RHEL7-Steps.md
Last active January 8, 2017 23:27
s390x RHEL7 Steps
@bushidocodes
bushidocodes / fullstackAsciiLogos.txt
Last active February 18, 2017 20:36
Fullstack ASCII Logos
______________________________________________________________________________
| |`````| || || || || /```/ |````| /\ // || // |
| //\\ | |``` || || || || \ \` `||` //\\ // ||// |
| /// \\\ | ```| || || ||__ ||__ _\ \ || // \\ \\ ||\\ |
| /// \\\ |__|``` \\__// |___| |___| \___/ || // \\ \\ || \\ |
| \\\ /\ /// |
| \\//\\// //\\ // //\\ ||\\ ||^^ /\ /\ \\ // |
| \\// ||__|| || ||__|| || || ||== //\\//\\ || |
| ||``|| \\ ||``|| ||// ||,, // \/ \\ || |
```````````````````````````````````````````````````````````````````````````````
@bushidocodes
bushidocodes / capitalgoconf2017.md
Last active April 26, 2017 23:24
Notes from Capital Go Conf

Evolution of Go Loggers

  • Summer 2014 - inconshreveable/log15
  • Fall 2014 - go-stack/stack
  • Spring 2015 - go-kit/kit/log
  • Summer 2015 - go-logfmt/logfmt

json