Skip to content

Instantly share code, notes, and snippets.

View HybridEidolon's full-sized avatar
🐥

Eidolon HybridEidolon

🐥
View GitHub Profile
@HybridEidolon
HybridEidolon / LambdaTest.java
Created May 31, 2014 04:47
out with the old in with the new java
package idolagames;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Random;
import static java.lang.System.out;
public class LambdaTest {
@HybridEidolon
HybridEidolon / andrewsengine.py
Created April 29, 2014 21:07
andrew's thingy
entities = []
keys = {'up': False, 'down': False, 'left': False, 'right': False}
class Entity:
def __init__(self, pos):
self.pos = list(pos)
def update():
pass
@HybridEidolon
HybridEidolon / TileMap.cs
Created April 14, 2014 19:49
Tile map component
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class TileMap : MonoBehaviour
{
private const string nameFormatString = "Map Tile {0}x{1}";
public int Width
{
@HybridEidolon
HybridEidolon / 50-synaptics.conf
Created March 17, 2014 01:42
lenovo y410p fixes for ubuntu
#...
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
MatchDevicePath "/dev/input/event*"
Option "PalmDetect" "1"
@HybridEidolon
HybridEidolon / entities.py
Created March 13, 2014 06:32
my roguelike stuff
import libtcodpy as tcod
import actions
import array
import main as game
class Entity(object):
def __init__(self):
self.components = []
self.actions = {}
//TopGearTimeTravel by Andrew "Yeti" S.
//Respect to J3DI From Ludum Dare
#include <iostream>
#include <ctime>
#include <string>
#include <sstream>
using namespace std;
@HybridEidolon
HybridEidolon / gist:6482163
Created September 8, 2013 05:43
Xbox 360 official DirectInput mappings
Xbox 360 Controller Mappings:
A: 0
B: 1
X: 2
Y: 3
LB: 4
RB: 5
@HybridEidolon
HybridEidolon / GW2World.java
Last active December 17, 2015 19:19
list adapter example
package com.furyhunter.gw2assistant;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;
import android.os.Parcel;
import android.os.Parcelable;
@HybridEidolon
HybridEidolon / avg.py
Last active December 17, 2015 01:29
python average int list inject
from functools import reduce
# nums = [1, 2, 3, 4]
def average_value(nums):
avg = reduce(lambda t,i: t+i, nums)
avg /= len(nums)
return avg
print average_value([1, 2, 3, 4])
@HybridEidolon
HybridEidolon / .vimrc
Last active December 14, 2015 01:59
tentative .vimrc. Still learning. Needs gmarik/vundle and git on the local system.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
"""""""""""""""""""""""
" Bundles for vundle
"""""""""""""""""""""""
" Vundle must manage itself