Skip to content

Instantly share code, notes, and snippets.

View HSchmale16's full-sized avatar
🚙

Henry J Schmale HSchmale16

🚙
View GitHub Profile
class T {
constructor(x) {
this.x = document.getElementById(x);
x.addEventListener(x, this.test);
}
test = (x) => {
console.log(this, x);
}
}
@HSchmale16
HSchmale16 / hours-database.sql
Last active June 23, 2016 22:24
An hours database
BEGIN TRANSACTION;
CREATE TABLE WorkSession (
id INTEGER PRIMARY KEY AUTOINCREMENT,
jobId INTEGER,
date DATE DEFAULT CURRENT_DATE,
startTime VARCHAR(10),
endTime VARCHAR(10),
thingsDone VARCHAR(4096),
FOREIGN KEY (jobId) REFERENCES JobPositions (id)
#version 3.7;
#include "colors.inc"
#include "metals.inc"
global_settings {
assumed_gamma 1.0
}
background {
color rgb <0, 0, 0>
Welcome to the Linux Lab at
__ __ __ __
| | | | | | | |
| | | | | | | |
| |____| | | | | |
| ____ | | | | |
| | | | | \___/ |
| | | | \ /
|__| |__| \_______/
<html>
<head>
<meta charset=utf-8>
<title>Some Thing</title>
<style>
body {
width: 400px;
}
.menuButton {
width: 45%;
@HSchmale16
HSchmale16 / t.html
Last active August 29, 2015 14:26
Cost of Penny
<html>
<head>
<script type="text/javascript">
</head>var GRAV = 9.81;
var JOULE_KCAL = 0.000239005736;
function fh(h) {return .97 * h;}
function fm1(m) {return .95 * m;}
function fm2(m) {return fm1(m) + .0031;}
#include <iostream>
#include <cstdio>
using namespace std;
int main(){
cout << "Norm" << endl;
cerr << "Err" << endl;
printf("Printf\n");
fprintf(stdout, "stdout printf\n");
fprintf(stderr, "stderr printf\n");
@HSchmale16
HSchmale16 / makefile
Created July 3, 2015 16:03
Pandoc Makefile
# Markdown Converter Makefile Using Pandoc
# Prepares PDFS from markdown source
SRC := $(wildcard *.md)
PDFS := $(SRC:.md=.md.pdf)
all: $(PDFS)
clean:
rm $(PDFS)
@HSchmale16
HSchmale16 / log
Created May 3, 2015 20:04
Make Log
make: Circular version.h <- version.h dependency dropped.
g++ -c -v -pedantic -Wall -Wextra -DBOOST_LOG_DYN_LINK -o main.cpp.o main.cpp
Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc versio
@HSchmale16
HSchmale16 / .vimrc
Created March 18, 2015 00:43
My VimRc
autocmd! bufwritepost .vimrc source%
autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino
autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino
autocmd! BufNewFile,BufRead *.job setlocal ft=dosini
autocmd! BufNewFile,BufRead *.md setlocal ft=pandoc
set nocompatible
"Henry's Tab Settings"
set expandtab