This file contains 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 luxe.importers.tiled.TiledMap; | |
import luxe.options.TilemapOptions; | |
import luxe.tilemaps.Ortho; | |
import luxe.tilemaps.Tilemap; | |
import phoenix.geometry.Geometry; | |
import phoenix.geometry.QuadPackGeometry; | |
import phoenix.Rectangle; | |
import phoenix.Texture; | |
import phoenix.Vector; |
This file contains 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 dc; | |
import dc.DevConsoleInjector; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
typedef ConsoleCommand = { | |
var className:String; | |
var methodName:String; | |
} |
This file contains 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 ; | |
import haxe.ds.StringMap; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
import haxe.macro.Printer; | |
import haxe.macro.Type.ClassType; | |
import neko.Lib; | |
using haxe.macro.ExprTools; |
This file contains 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
//Add the SPI library so we can communicate with the ADXL345 sensor | |
#include <SPI.h> | |
//Assign the Chip Select signal to pin 10. | |
int CS=10; | |
//ADXL345 Register Addresses | |
#define DEVID 0x00 //Device ID Register | |
#define THRESH_TAP 0x1D //Tap Threshold | |
#define OFSX 0x1E //X-axis offset |
This file contains 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.blazingmammothgames.util; | |
#if neko | |
import neko.vm.Thread; | |
import neko.vm.Mutex; | |
#elseif cpp | |
import cpp.vm.Thread; | |
import cpp.vm.Mutex; | |
#end |
This file contains 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 ; | |
import openfl.display.Sprite; | |
/** | |
* ... | |
* @author Kenton Hamaluik | |
*/ | |
class AABB | |
{ | |
public var center:Vector = new Vector(); |
This file contains 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 ; | |
import openfl.display.Sprite; | |
/** | |
* ... | |
* @author Kenton Hamaluik | |
*/ | |
class AABB | |
{ | |
public var center:Vector = new Vector(); |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Markdown Third Party | |
============================ | |
This plugin allows you to use various third-party | |
Markdown extensions to make writing posts in Markdown | |
easier and better. | |
""" |
This file contains 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
#!/usr/bin/env python | |
print '+----------------------------------------+' | |
print '| GradeMe-Watchman Bot by /u/FuzzyWuzzie |' | |
print '+----------------------------------------+' | |
import praw | |
from pprint import pprint | |
from datetime import datetime | |
import sys | |
import time | |
import math |
This file contains 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
# secs is the total number of seconds | |
secs = 5412 | |
# calculate things.. | |
hours = secs / 3600 | |
minutes = (secs - hours * 3600) / 60 | |
seconds = secs % 60 | |
# now print the results! | |
print '%02d:%02d:%02d' % (hours, minutes, seconds) |