Skip to content

Instantly share code, notes, and snippets.

View noncreature0714's full-sized avatar
☠️
undead coding

Bill noncreature0714

☠️
undead coding
View GitHub Profile
@noncreature0714
noncreature0714 / install virtualenv ubuntu 16.04.md
Created October 18, 2018 05:04 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@noncreature0714
noncreature0714 / output-of-npm_install_npm
Created April 23, 2017 21:02
Output from: $ npm install npm@latest -g
Williams-MacBook-Pro:program-10 bill$ npm install npm@latest -g
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/lib
└─┬ npm@4.5.0
├─┬ fs-write-stream-atomic@1.0.10
│ └── readable-stream@2.2.6 deduped
├── hosted-git-info@2.4.1
├─┬ mississippi@1.3.0
│ ├─┬ concat-stream@1.6.0
│ │ └── readable-stream@2.2.6 deduped
findTracks function called.
No tracks in "./audio_tracks"
tracks length: 0
from findTracks(), it thinks there are 1.
No tracks to play, place tracks into ./audio_tracks or ~/Music.
listTracks() called, listing tracks
From findTracks(), tmpPath is: ./audio_tracks/bensound-cute.mp3
From findTracks(), the file path of track 0 is: ./audio_tracks/bensound-cute.mp3
From findTracks(), tmpPath is: ./audio_tracks/bensound-dubstep.mp3
From findTracks(), the file path of track 1 is: ./audio_tracks/bensound-dubstep.mp3
@noncreature0714
noncreature0714 / vassLab6.py
Last active November 3, 2016 23:51
vassLab6
class ValueNotInRange(Exception):
def __init__(self):
super(ValueNotInRange, self).__init__()
pass
STUDENTS = 3
def stuLog():
try:
outfile = open('grades.txt', 'w')
@noncreature0714
noncreature0714 / BI V2.5 Calibration.txt
Created October 21, 2016 16:07 — forked from BrianGilbert/BI V2.5 Calibration.txt
BI V2.5 Calibration notes
Stepper Calibration (Current)
=============================
Check the Vref of your steppers first, They should be at around 450mV for the X,Y,Z axis. And 700mV for the extruders.
You need a multimeter, a small screwdriver, a steady hand and a lot of patience. With the BI on its side, power it up. Look at each of the drivers (that would be a row of 4-6 identical daughter boards on the RUMBA board. There is a small (really small) potentiometer, that's the screw. Look for the point labeled GND. Take the ground lead from the multimeter and touch it to the GND point, then put the hot lead of your multimeter on the screw -- that will give you the current voltage.
For safety's sake, turn off the printer before adjusting the pot. Use a small screwdriver to adjust the pot. A tiny movement may make a big difference in the voltage so go slowly. Check the voltage. Adjust. Check again. Adjust....
Bed Levelling
@noncreature0714
noncreature0714 / BI V2.5 Calibration.txt
Created October 21, 2016 16:07 — forked from BrianGilbert/BI V2.5 Calibration.txt
BI V2.5 Calibration notes
Stepper Calibration (Current)
=============================
Check the Vref of your steppers first, They should be at around 450mV for the X,Y,Z axis. And 700mV for the extruders.
You need a multimeter, a small screwdriver, a steady hand and a lot of patience. With the BI on its side, power it up. Look at each of the drivers (that would be a row of 4-6 identical daughter boards on the RUMBA board. There is a small (really small) potentiometer, that's the screw. Look for the point labeled GND. Take the ground lead from the multimeter and touch it to the GND point, then put the hot lead of your multimeter on the screw -- that will give you the current voltage.
For safety's sake, turn off the printer before adjusting the pot. Use a small screwdriver to adjust the pot. A tiny movement may make a big difference in the voltage so go slowly. Check the voltage. Adjust. Check again. Adjust....
Bed Levelling
@noncreature0714
noncreature0714 / missing column headers
Last active June 5, 2016 19:45
Exploring why column headers are absent
SQL> DESC customer;
Name Null? Type
------------ -------- ------------
CUST_ID NOT NULL NUMBER(5)
CUST_NAME VARCHAR2(15)
ACCOUNT_ID VARCHAR2(10)
ACCOUNT_TYPE VARCHAR2(2)
STATE VARCHAR2(2)
SQL> SELECT cust_id, cust_name, account_id, account_type, state FROM customer;
SQL> --TODO: [x][][][]() Create conceptual design
SQL> --TODO: [x] ER Diagram
SQL> --TODO: [\] Dependency Chart
SQL> --TODO: [\] Relational Schema Supporting the ER Diagram
SQL> --TODO: [\] Attribute Chart / Data Dictionary
SQL> --TODO: () Each relation in 3NF
SQL>
SQL> --TODO: delete reports & views
SQL>
SQL> --Drop tables.
@noncreature0714
noncreature0714 / Airline DB creation and code
Last active May 7, 2016 01:28
basic db for airline with reports
spool todaysdiary.txt
--drop reports & views
DROP VIEW Report_1;
DROP VIEW Report_2;
DROP VIEW Report_3;
DROP VIEW Report_4;
DROP VIEW Report_5;
DROP VIEW REPORT_6;
DROP VIEW View_1;