Skip to content

Instantly share code, notes, and snippets.

View LastZactionHero's full-sized avatar

Zach LastZactionHero

View GitHub Profile
function crossed_boundary(current_posn, next_position, direction, segments)
function find_boundaries_crossed(z, segments, min, direction)
boundaries_crossed = 0
current_posn = min - 1.5 * DELTA
bool checking = true
while(checking)
next_posn = current_posn + 1
@LastZactionHero
LastZactionHero / cheatsheet.v
Last active December 12, 2024 04:54
Verilog Syntax Cheat Sheet
module module_name(signal_a, signal_b);
input [7:0] signal_a;
output signal_b;
endmodule
parameter n = 32;
integer k;
for (k = 0; k < n; k + 1)
begin
@LastZactionHero
LastZactionHero / pre-commit.sh
Created January 15, 2018 23:00
Git Pre-Commit Prohibit Debugging Commands
#!/bin/sh
#
# Check to make sure we're not trying to commit debugging code
COMMIT_OK=true
# Find all staged files with appropriate file types (Ruby, Javascript, Vue)
STAGED_MATCHING_FILENAMES=$(git diff --cached --name-only | grep -E '\.js$|.vue|.rb$')
# Loop over all of the files
@LastZactionHero
LastZactionHero / blade_setup.sh
Last active March 4, 2018 17:23
Linux on Razer Blad
#!/bin/sh
case $1 in
post)
rmmod i2c_hid
modprobe i2c_hid
;;
esac
set macligatures
set guifont=Fira\ Code:h12
highlight ColorColumn ctermbg=magenta
call matchadd('ColorColumn', '\%81v', 120)
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
# Split the data into training and test sets
X_train, X_test, y_train, y_test = train_test_split(
data_words, data_plant_types, test_size=0.33, random_state=42)
# Build a neural network
network = input_data(shape=[None, len(data_words[0])])
network = fully_connected(network, 2048, activation='relu')
network = fully_connected(
network, len(data_plant_types[0]), activation='softmax')
"a4s_employee_full_name"=>
"\x04\bo:\eRepresentableDataValue\b:\v@fieldo:!EmployeeFullNameBuiltInField\x00:\f@recordo:\rEmployee\x10:\x10@attributeso:\x1FActiveRecord::AttributeSet\x06;\no:$ActiveRecord::LazyAttributeHash\n:\v@types}\x10I\"\aid\x06:\x06ETo:?ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Integer\t:\x0F@precision0:\v@scale0:\v@limit0:\v@rangeo:\nRange\b:\texclT:\nbeginl-\a\x00\x00\x00\x80:\bendl+\a\x00\x00\x00\x80I\"\x0Fcreated_at\x06;\x0ETU:JActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter[\t:\v__v2__[\x00[\x00o:@ActiveRecord::ConnectionAdapters::PostgreSQL::OID::DateTime\b;\x100;\x110;\x120I\"\x0Fupdated_at\x06;\x0ETU;\x18[\t;\x19[\x00[\x00@\x15I\"\fuser_id\x06;\x0ET@\fI\"\x1Aineligible_for_rehire\x06;\x0ETo: ActiveRecord::Type::Boolean\b;\x100;\x110;\x120I\"\euntracked_prior_tenure\x06;\x0ET@\fI\"\ttags\x06;\x0ETo:=ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array\a:\r@subtypeo:\x1DActiveRecord::Type::Text\b;\x100;\x110;\x120:\x0F@delimiterI\"\x06,\x06;\x0ET
@LastZactionHero
LastZactionHero / .bash_profile
Last active November 17, 2017 16:40
Bash Profile
# Git
# https://gist.github.com/n0n0x/7be453ff18f58020bafe
source ~/.git_bash_completion
# Go
export GOPATH=$HOME/development/go
export GOSRC=$GOPATH/src/github.com/LastZactionHero
export GOBIN=$GOPATH/bin
PATH=$PATH:$GOBIN
PATH=$PATH:/usr/local/go/bin
@LastZactionHero
LastZactionHero / technical_skills_list.txt
Created November 26, 2016 18:58
Technical Skills List
.NET
360-degree video
3D Animation
3D Design
3D Model Maker
3D Modelling
3D Printing
3D Rendering
3ds Max
4D