Skip to content

Instantly share code, notes, and snippets.

View Deathnerd's full-sized avatar

Wes Gilleland Deathnerd

  • eLink Design
  • Lexington, KY
View GitHub Profile
@Deathnerd
Deathnerd / lab14.java
Last active August 29, 2015 14:09
Prints out all binary values from 0 to 2^n. BinaryStrings is my method, and FastBinaryStrings (hah) is the method I found on Stack Overflow
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Class: CSC 190
* Date: 11/22/2013
@Deathnerd
Deathnerd / index.html
Created October 23, 2014 03:14
soemthing
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
window.number_of_divs = 1;
window.number_of_checked = 0;
window.numbers = [];
@Deathnerd
Deathnerd / load_error_reporting.php
Last active August 29, 2015 14:07
An easy way to set error reporting levels at runtime
/*
* Parse the error_reporting values
*/
$error_ini_file = __DIR__ . DS . "error_reporting.ini";
if(file_exists($error_ini_file) && true){
$error_config = parse_ini_file($error_ini_file);
$error_bitmask = 0;
if($error_config['E_ALL']){
//error reporting for everything has been chosen, skip everything else
$error_bitmask = E_ALL;
@Deathnerd
Deathnerd / __init__.py
Created October 11, 2014 05:18
A recursive maze solver for python. It works but has one little bug... It returns false even if it solves the maze
__author__ = 'Deathnerd'
maze_string_list = ("1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1",
"1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1",
"1 1 1 0 1 0 1 1 1 1 1 1 1 0 1 1 1 0 1 0 1",
"1 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 1",
"1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 1",
"1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1",
"1 1 1 0 1 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1",
; Debug valuse for the different classes in EKULMS
[debugs]
Db = false
Courses = false
Tests = false
UI = true
Users = false
Utilities = false
/**
* Created by Deathnerd on 10/2/2014.
*/
var ObjectThatsSortOfLikeAClass = function(/*arguments, here, like, you, would, fer, a, java_class*/){
this.is_a_property = "PROPERTY!";
this.power_level = 200;
this.is_a_function_of_the_class = function (argument) {
alert("I DO STUFF!");
};
this.check_power_level = function(){
/**
* Created by Deathnerd on 10/2/2014.
*/
var ObjectThatsSortOfLikeAClass = function(/*arguments, here, like, you, would, fer, a, java_class*/){
this.is_a_property = "PROPERTY!";
this.power_level = 200;
this.is_a_function_of_the_class = function (argument) {
alert("I DO STUFF!");
};
this.check_power_level = function(){
/**
* Created by Deathnerd on 10/2/2014.
*/
var ObjectThatsSortOfLikeAClass = function(/*arguments, here, like, you, would, fer, a, java_class*/){
this.is_a_property = "PROPERTY!";
this.power_level = 200;
this.is_a_function_of_the_class = function (argument) {
alert("I DO STUFF!");
};
this.check_power_level = funciton(){
#!/bin/sh
rm -rf EKULMS && git clone https://github.com/Deathnerd/EKULMS.git EKULMS && cd EKULMS && git checkout master && cd .. && rm EKULMS/requires/user-config.ini && cp ekulms_user-config.ini EKULMS/requires/user-config.ini
#!/bin/sh
rm -rf EKULMS
git clone https://github.com/Deathnerd/EKULMS.git EKULMS
git checkout master
cp ekulms_user-config.ini EKULMS/requires/user-config.ini