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
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
//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
call plug#begin('~/.vim/plugged') | |
Plug 'tpope/vim-surround' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'scrooloose/nerdtree' | |
Plug 'terryma/vim-multiple-cursors' | |
"Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'morhetz/gruvbox' | |
Plug 'godlygeek/tabular' | |
Plug 'junegunn/goyo.vim' |
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
#include <map> | |
#include <vector> | |
/** | |
* Provides a basic interpolation mechanism in C++ using the STL. | |
* Maybe not the fastest or most elegant method, but it works (for | |
* linear interpolation!!), and is fast enough for a great deal of | |
* purposes. It's also super easy to use, so that's a bonus. | |
*/ | |
class LinearInterpolator { |
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
#!/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
[bar/i3wmthemer_bar] | |
width = 100% | |
height = 27 | |
radius = 0 | |
fixed-center = true | |
background = #162025 | |
foreground = #bfbfbf | |
line-size = 3 |
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
while let Some(c) = self.chars.peek() { | |
match c { | |
'\n' => { self.line += 1; }, | |
'"' => { break; }, | |
_ => { self.advance(); } | |
}; | |
} |
NewerOlder