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:
// 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++) { |
I hereby claim:
To claim this, I am signing this object:
// == 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. | |
// |
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 |
I hereby claim:
To claim this, I am signing this object:
#### 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 |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
print(“I am altering the deal. Pray I don’t alter it any further. -Vader”) |
/* 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(); | |
}; |