Skip to content

Instantly share code, notes, and snippets.

View resba's full-sized avatar
👀

Matt Sowden resba

👀
View GitHub Profile
@resba
resba / profanity.txt
Created July 18, 2023 15:54
Check list for common profanity to ensure programmers arent leaving swears in production.
fuck
shit
damn
motherfucker
shitting
shitty
fucking
fucker
fucks
damnit
@resba
resba / key64gen.py
Created August 23, 2022 14:39
the best function
class StringKeyGenerator(object):
def __init__(self, len=64):
self.lenght = len
def __call__(self):
return ''.join(random.choice(string.ascii_letters + string.digits) for x in range(self.lenght))
def salt(self):
return ''.join(random.choice(string.ascii_uppercase) for x in range(self.lenght))
@resba
resba / yuuk.ino
Created March 17, 2019 00:32
silly
/*********************
Example code for the Adafruit RGB Character LCD Shield and Library
This code displays text on the shield, and also reads the buttons on the keypad.
When a button is pressed, the backlight changes color.
**********************/
// include the library code:
@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);
@resba
resba / keybase.md
Last active February 2, 2016 17:00
Keybase

Keybase proof

I hereby claim:

  • I am yuukari on github.
  • I am yuuki (https://keybase.io/yuuki) on keybase.
  • I have a public key whose fingerprint is 066B 88AA 9DC0 F289 5962 8D8D 07BB 3992 397C A1D8

To claim this, I am signing this object:

@resba
resba / mavlink-a.py
Created April 2, 2013 16:33
MAVLink for Ardupilot
@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 / 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 / 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 / db.php
Created January 26, 2012 19:13
SQLFunc
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_db = "localhost";
$database_db = "web";
$username_db = "root";
$password_db = "";
$db = mysql_pconnect($hostname_db, $username_db, $password_db) or trigger_error(mysql_error(),E_USER_ERROR);
?>