Skip to content

Instantly share code, notes, and snippets.

View resba's full-sized avatar
👀
towards a kinder world

resba

👀
towards a kinder world
View GitHub Profile
@resba
resba / CSS Playground
Created February 26, 2011 04:51
Just some CSS stuff
/* you align the body text to center. since the body is the root element (and position on a sheet matters) AND since your not putting any text in the body, but in the content, you can just text-align: left; the content for it to work. */
body {
text-align: center;
margin: 0 auto;
padding: 0 0 0 0;
}
.content {
min-width: 1100px;
min-height: 500px;
background: url(../img/content-bk.png);
@resba
resba / completeinstall--centos5--cb818.sh
Created April 25, 2011 21:40
Install/Upgrade Minecraft Server Running CraftBukkit
#!/bin/bash
cburl="http://ci.bukkit.org/job/dev-CraftBukkit/Recommended/artifact/target/craftbukkit-0.0.1-SNAPSHOT.jar"
cbver="818"
# Script by resba
#
# Complete Install:
# Complete Install installs the Craftbukkit Server along with any and all peripherals such as java and screen needed to run the Server on Linux CentOS Machines. Comes with step-by-step server.properties installer.
#
@resba
resba / rollengine.php
Created June 8, 2011 16:33
Roll a d*
<?php /*
//
//
// Roll a d* Script
//
// Version: 1.0
//
// Author: resba [https://www.github.com/resba]
//
// Description: Just like rolling a dice! Roll a die virtually and get a return number!
@resba
resba / HelloWorld.java
Created January 25, 2012 15:54
Intro To Java
package com.resbah.assignments.HelloWorld;
/**
* @(#)HelloWorld.java
*
*
* @author Matthew Sowden
* @version 0.0.1-SNAPSHOT 2012/1/25
* @description JavaDoc Stuff; Hello World application
*/
@resba
resba / SimpleGame.java
Created January 25, 2012 19:04
SimpleGame
package com.resbah.SimpleGame;
import java.applet.*;
import java.awt.Color;
import java.awt.Event;
import java.awt.Graphics;
import java.awt.Image;
/**
*
* THIS CODE IS SO WRONG BUT WHO CARES \o/
@resba
resba / REButton.java
Created March 29, 2012 12:18
REButton
package com.thenetdev.util;
import javax.swing.JButton;
import java.util.UUID;
/**
*
* Extended JButton instance who's only real purpose is to include a unique ID
* for the button it defines. Designed for Matt Sowden's Tic Tac Toe program
* for use in determining weather or not a button inside a button array
@resba
resba / mc.lol
Created May 31, 2012 18:27
Minecraft Startup
HAI
I HAS A SERVAR ITZ "MINECRAFT"
GIMMEH LOCATIONZ BTW I WANT JAR LOCATIONZ
GIMMEH JAVA BTW I WANT JAVA LOCATIONZ
JAVA, WTF?
OMG "/usr/bin/java" BTW YOUR ON LINUX!
VISIBLE SERVAR, GTFO
OMGWTF
VISIBLE "JAVA DOESN'T WANTZ TO PLAYS! D:"
@resba
resba / t.py
Created January 31, 2013 22:18
HowDoIPython
class TestClass:
def __init__(one,two,three):
self.one = one
self.two = two
self.three = three
def getOne():
return self.one
def getTwo():
@resba
resba / mavlink-a.py
Created April 2, 2013 16:33
MAVLink for Ardupilot
@resba
resba / zalgo.ja
Created November 19, 2018 18:17
zalgo from eeemo
<script type="text/javascript">
/* <![CDATA[ */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33315451-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);