Skip to content

Instantly share code, notes, and snippets.

View burdenless's full-sized avatar

Bob Argenbright burdenless

View GitHub Profile
@burdenless
burdenless / main.js
Last active October 14, 2021 18:13
File for Chris' project
// Returns a random DNA base
const returnRandBase = () => {
const dnaBases = ['A', 'T', 'C', 'G'] // Adenine, Thymine, Cytosine, and Guanine. 4 Bases of DNA
return dnaBases[Math.floor(Math.random() * 4)]
}
// Returns a random single stand of DNA containing 15 bases
const mockUpStrand = () => {
const newStrand = []
for (let i = 0; i < 15; i++) {

Keybase proof

I hereby claim:

  • I am burdenless on github.
  • I am byt3smith (https://keybase.io/byt3smith) on keybase.
  • I have a public key whose fingerprint is FB22 564D A6DF B74F 9F20 5016 ABED B3CA 0704 4034

To claim this, I am signing this object:

@burdenless
burdenless / coding-resources.md
Last active February 14, 2022 23:17
New Developer's Resources & Learning Guide

Instructions

  1. First things first: create a profile on GitHub, which is where you will store all of your code.
  2. Secondly, check out a few of the resources below and prioritize what you need. If you read through the first couple of exercises and have no idea what is happening, look at a different website, tutorial, or video series that might fit your level of experience better; you want to build a really solid foundation with computer science principles.
  3. Finally, don't get frustrated. It takes a while to "re-wire" your brain to think in computer science logic and terminology. It's okay, that happens to everyone.

Programming Language Tutorials

  • Python for Beginners
    • A comprehensive guide to learning programming AND the Python programming language. Really good guide to start from with no experience.
@burdenless
burdenless / working_with_sql.go
Created February 24, 2017 18:50
Working with SQL in Go
// == MySQL
//
// To create the database:
//
// mysql -p
// mysql> create database foo_test;
// mysql> GRANT ALL PRIVILEGES ON modsql_test.* to USER@localhost;
//
// Note: substitute "USER" by your user name.
//
@burdenless
burdenless / goroutine_err_handling.go
Created February 7, 2017 16:47
Handle errors in goroutines with a single channel
package main
import "fmt"
import "time"
// Goroutines Error Handling
// Example with same channel for Return and Error
type ResultError struct {
res Result
parse_git_branch() {
foo=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
length=${#foo}
if [ $length -gt 0 ]
then
echo " (git:$foo)"
fi
}
# terminal setup

Keybase proof

I hereby claim:

  • I am byt3smith on github.
  • I am byt3smith (https://keybase.io/byt3smith) on keybase.
  • I have a public key whose fingerprint is FB22 564D A6DF B74F 9F20 5016 ABED B3CA 0704 4034

To claim this, I am signing this object:

@burdenless
burdenless / go-workspace-setup.sh
Created October 14, 2016 16:31
Install and setup a Golang workspace on OSX
#### Script to bootstrap a Golang workspace on OSX ####
#######################################################
# DL and Install ######################################
brew install go
# Set up directory structure ##########################
GODIR_DEFAULT="$HOME/Code/go"
echo "Location to install Go (default: $HOME/Code/go) [RETURN to use default]: "
read GODIR
@burdenless
burdenless / vader.py
Last active August 26, 2016 17:26
prints a vader quote
#!/usr/bin/python
# -*- coding: utf-8 -*-
print(“I am altering the deal. Pray I don’t alter it any further. -Vader”)
@burdenless
burdenless / implement_breadth_first_search.js
Created July 2, 2016 05:23
Khan Academy BFS Implementation - Completed ✅
/* A Queue object for queue-like functionality over JavaScript arrays. */
var Queue = function() {
this.items = [];
};
Queue.prototype.enqueue = function(obj) {
this.items.push(obj);
};
Queue.prototype.dequeue = function() {
return this.items.shift();
};