This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entities = [] | |
keys = {'up': False, 'down': False, 'left': False, 'right': False} | |
class Entity: | |
def __init__(self, pos): | |
self.pos = list(pos) | |
def update(): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#... | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import libtcodpy as tcod | |
import actions | |
import array | |
import main as game | |
class Entity(object): | |
def __init__(self): | |
self.components = [] | |
self.actions = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//TopGearTimeTravel by Andrew "Yeti" S. | |
//Respect to J3DI From Ludum Dare | |
#include <iostream> | |
#include <ctime> | |
#include <string> | |
#include <sstream> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Xbox 360 Controller Mappings: | |
A: 0 | |
B: 1 | |
X: 2 | |
Y: 3 | |
LB: 4 | |
RB: 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle | |
call vundle#rc() | |
""""""""""""""""""""""" | |
" Bundles for vundle | |
""""""""""""""""""""""" | |
" Vundle must manage itself |