Skip to content

Instantly share code, notes, and snippets.

@headdetect
headdetect / GodLike.java
Created May 23, 2012 00:09
The most advanced system to greet users and make them happy inside
public static void main(String[] args){
System.out.println("hi");
}
@headdetect
headdetect / Form1.cs
Created June 21, 2012 08:58
Invokes r fun
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
<script type="text/javascript">
//
// Description: Randomly change background color every 5 seconds
//
// NewcWare 1997
@headdetect
headdetect / Player.cs
Created August 2, 2012 05:54
new player class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using MCForge.Networking;
using System.Net;
using MCForge.Interface.Command;
using MCForge.World;
using MCForge.Core;
@headdetect
headdetect / Logger.cs
Created August 7, 2012 05:15
C# Logger
/*
Copyright (c) 2012 Brayden (headdetect)
Permission is hereby granted, free of charge,
to any person obtaining a copy of this software
and associated documentation files (the "Software"),
to deal in the Software without restriction, including
without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom
@headdetect
headdetect / Image2PDFConverter.cs
Created July 9, 2013 19:23
Converts an image to a pdf using iTextSharp
using iTextSharp.text;
using iTextSharp.text.pdf;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Text;
@headdetect
headdetect / Img2PDFConverter.java
Last active December 19, 2015 13:09
Convert an image to a PDF using iText library for java
package com.headdetect.is.a.baller.Image2PDF;
import com.itextpdf.text.*;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfWriter;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.Image;
import java.awt.geom.Rectangle2D;
@headdetect
headdetect / NotEnoughMoney.cs
Last active December 19, 2015 18:38
Just a nice little way that displays that you are actually a poor bastard.
using System;
namespace QuickCalc
{
class Program
{
//TODO: Change to fit your needs //
static double WAGE = 7.25;
static double HOURS_PER_WEEK = 19;
@headdetect
headdetect / GraphForm.cs
Created November 27, 2013 18:56
Its a crap-tastic function grapher. It can do cos, sin, and tan (except when x <= 255 it goes all to hell) looks like this http://i.imgur.com/KKRVKSD.png
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@headdetect
headdetect / ItsJustRuby.rb
Last active August 29, 2015 14:08
I started learning ruby while on the bus...
#!/usr/bin/ruby
class Wendys
NotMcDonalds = true
IsWendys = true
NetWorth = 5
def initialize()
puts "Why would you do that?"
end