Skip to content

Instantly share code, notes, and snippets.

View abunsen's full-sized avatar
🍊
Florida, man!

Auston Bunsen abunsen

🍊
Florida, man!
View GitHub Profile
If you’re reading this, you’re no doubt asking yourself, “Why did this have to happen?” The simple truth is that it is complicated and has been coming for a long time. The writing process, started many months ago, was intended to be therapy in the face of the looming realization that there isn’t enough therapy in the world that can fix what is really broken. Needless to say, this rant could fill volumes with example after example if I would let it. I find the process of writing it frustrating, tedious, and probably pointless… especially given my gross inability to gracefully articulate my thoughts in light of the storm raging in my head. Exactly what is therapeutic about that I’m not sure, but desperate times call for desperate measures.
We are all taught as children that without laws there would be no society, only anarchy. Sadly, starting at early ages we in this country have been brainwashed to believe that, in return for our dedication and service, our government stands for justice for all. We are furthe
<!--
this is an HTML comment
it can go on multiple lines or just on one
-->
var a = 'a random string'
var b = a
var c = 'this is not '+b
var myvariablename = 4
var variabletwo = 1
var f = myvariablename + variabletwo
alert(c); // gives us "this is not a random string"
alert(f); // gives us 5
<?php
echo str_replace( 'p', 'ck', 'stop');
// gives us stock
/* the first argument is a string: 'p'
which is what we will be replacing with the second argument 'ck'
in the final argument which is the string 'stop' */
?>
mylist = [1, 2, 3, 4, 5] # this is a list
mydict = { 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5 } #here is associative array
MYLIST = [1, 3, 5, 7, 9]
if 4 in MYLIST:
print 'This number is less than 10 & odd'
else:
print 'This number is NOT in the list of numbers less than 10 which are odd'
if mynumber < 5:
print 'my number is less than 5'
elif mynumber > 5:
print 'my number is greater than 5'
elif mynumber > 5 AND mynumber < 10:
print 'my number is greater than 5 and less than 10'
else:
print 'my number is greater than 10 or not a number at all'
myrubylist = Array['a','b','c']
for item in myrubylist # item can be any variable you choose
puts item #puts is like print or output
end