Skip to content

Instantly share code, notes, and snippets.

Doug Hatcher superterran

Block or report user

Report or block superterran

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@superterran
superterran / dozer.html
Created Aug 20, 2017
a homage to a bulldozer game I used to play
View dozer.html
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<style type="text/css">
#stage {
height: 100%;
width: auto;
position: fixed;
transform: translate(-50%, -50%);
@superterran
superterran / dozer.html
Created Aug 20, 2017
a homage to a bulldozer game I used to play
View dozer.html
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<style type="text/css">
#stage {
height: 100%;
width: auto;
position: fixed;
transform: translate(-50%, -50%);
@superterran
superterran / starfield.html
Created Aug 20, 2017
a little starfield demo I wrote initially as a codepen
View starfield.html
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<style type="text/css">
#space {
display: block;
position: fixed;
top: 0px;
left: 0px;
View nibbles.html
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<style type="text/css">
body {
overflow: hidden;
margin: 0;
@superterran
superterran / bless_home
Created Jun 24, 2015
Symlinks paths on my storage drive to my home directory, tries to backup any files in the home directory first.
View bless_home
#!/bin/bash
echo 'This is going to symlink out your home directory to another path. It will try to copy over any new files beforehand.'
sourcedir="/media/storage"
read -p "Are you sure you want to continue? <y/N> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then
for i in $(ls -d */)
You can’t perform that action at this time.