Skip to content

Instantly share code, notes, and snippets.

View lumodon's full-sized avatar
🍃
Looking for work

Liv lumodon

🍃
Looking for work
View GitHub Profile
@lumodon
lumodon / random.js
Created September 10, 2018 21:23
Random number checker
var results = {}
for(let i = 0; i < Math.pow(2,16); i++) { const num = Math.floor(Math.random()*60)+1; results[num] = results[num] ? results[num] + 1 : 1 }
@lumodon
lumodon / support.js
Last active August 8, 2018 19:02
Canvas physics
const RADIUS = 2
debugObj.highestVelocity = -Infinity
function loadSpinner() {
let startTime = null
let previousTime = null
const spinnerElement = document.querySelector('#canvas-spinner')
spinnerElement.setAttribute('width', window.innerWidth)
spinnerElement.setAttribute('height', window.innerHeight)
@lumodon
lumodon / remove_node_modules.sh
Created July 24, 2018 20:10
Remove node_modules filter-branch
#!/bin/bash
git filter-branch --tree-filter 'rm -rf node_modules' --prune-empty HEAD
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
echo node_modules/ >> .gitignore
git add .gitignore
git commit -m 'Removing node_modules from git history'
git gc
git push origin master --force
@lumodon
lumodon / readme.md
Created June 30, 2018 00:58
Python Virtual Environment

Put following line in a deploy.sh file (don't forget chmod +x ./deploy.sh)

virtualenv --no-site-packages --distribute .env && source .env/bin/activate && pip install -r requirements.txt

@lumodon
lumodon / README.md
Created June 18, 2018 18:03
Wifi Driver Installation for Linux Thinkpad E480
@lumodon
lumodon / .bashrc
Last active September 28, 2018 19:51
Configurations - Bashrc, VSCode Settings, Vimrc
synclient HorizScrollDelta=-114
NODE_ENV=development
PAGER="less -SF"
# Aliases
alias bashconfig="vim ~/.bashrc"
alias cls="clear"
alias bashreset="source ~/.bashrc"
alias openc="open -a \"Google Chrome\""
alias code="open -a \"Visual Studio Code\""
@lumodon
lumodon / main.js
Created September 14, 2017 01:15
Blockchain proof of concept
const SHA256 = require('crypto-js/sha256')
class Block {
constructor({index, timestamp, data, previousHash=''}) {
// Store details of transaction for concurrency
// Previous hash ensures integrity
Object.assign(this, {index, timestamp, data, previousHash})
this.hash = this.calculateHash()
}
@lumodon
lumodon / specs.md
Last active August 10, 2017 01:47
debugging-snapshot
  • Going to the Home Page (http://localhost:3000/) should let you see all the contacts
  • Going to a contact detail page should show the full name of the contact
  • Adding a contact should add a new contact in the database, and redirect to the created contact
  • Clicking on the Delete link for a contact should delete the contact
  • Searching for a contact should list all the contacts which match the search string
@lumodon
lumodon / README.md
Last active August 9, 2018 19:09
Settings

This gist will contain some of my favorite application settings.

@lumodon
lumodon / GetHired.md
Last active January 25, 2024 07:48
Completion of get hired preparations.

Repo Information

Picture of a dassie
Based on Get Hired goal. Project #368
Team Name: @mighty-dassie
Author: Olivia Wesnidge
Tanner Advice: Click Here

Overview / Summary

Overall there's a lot more work I need to do. This repo has a seperate branch called "nextWeek" only viewable via command line that contains a list of "ToDo" for future. One of the bigger problems that I don't yet have as a "Todo" item is how to resolve the fact many of my old projects were worked on my partners, github appears to indicate that my partners did most of the work because more often than not I was navigating not driving because