Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am temeez on github.
  • I am tniem (https://keybase.io/tniem) on keybase.
  • I have a public key ASAErEk3NfSYCUp4RC0v7XklYS13nkSL7-7XOXrG5hppzAo

To claim this, I am signing this object:

@Temeez
Temeez / system_wasd.rs
Last active August 20, 2018 14:38
Rust & Amethyst system learning, WASD movement. Three different ways to do it but not all are equal.
// Cons: Ugly code and probably bad code. Player has 4 movement directions
// Pros: input config ron file thing
fn run(&mut self, (mut players, mut transforms, time, input): Self::SystemData) {
for (player, transform) in (&mut players, &mut transforms).join() {
if input.key_is_down(VirtualKeyCode::S) || input.key_is_down(VirtualKeyCode::W) {
player.movement = Movement::Vertical;
}
if input.key_is_down(VirtualKeyCode::A) || input.key_is_down(VirtualKeyCode::D) {
player.movement = Movement::Horizontal;
http://www.mediafire.com/file/b0chldzcjcsn5g4/FloorLights.v2.4.zip
@Temeez
Temeez / bot.js
Created November 10, 2015 18:09
build bot.js for https://github.com/reactiflux/discord-irc with IRC nick colors
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
@Temeez
Temeez / bot.js
Last active November 10, 2015 15:12
https://github.com/reactiflux/discord-irc with IRC nick colors (lib) Rows: 58, 151, 152 & 161
import _ from 'lodash';
import irc from 'irc';
import logger from 'winston';
import discord from 'discord.js';
import { ConfigurationError } from './errors';
import { validateChannelMapping } from './validators';
const REQUIRED_FIELDS = ['server', 'nickname', 'channelMapping', 'discordEmail', 'discordPassword'];
/**

Keybase proof

I hereby claim:

  • I am Temeez on github.
  • I am temeez (https://keybase.io/temeez) on keybase.
  • I have a public key whose fingerprint is CAD8 6EF7 F820 C9E5 5C7F 64FB E899 41DB 7D53 9AFC

To claim this, I am signing this object:

@Temeez
Temeez / client.lua
Last active August 29, 2015 14:08
testing
--The registered table from shared.lua is passed as the global "Plugin".
local Plugin = Plugin
--This is ran when the plugin is loaded on the client, which is when the client finished loading.
function Plugin:Initialise()
Print( "DT:\nBool: %s\nInt: %s\n", tostring( self.dt.Bool ), tostring( self.dt.Int ) )
self:CreateCommands()
self.Enabled = true