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
All code in this repo can be used under the terms of "The MIT License". | |
https://opensource.org/licenses/MIT | |
However, default copyright conditions apply if you don't know what "The MIT License" is. |
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
#define PIN_RESET 255 // | |
#define DC_JUMPER 0 // I2C Addres: 0 - 0x3C, 1 - 0x3D | |
#include <Wire.h> // Include Wire if you're using I2C | |
#include <SFE_MicroOLED.h> // Include the SFE_MicroOLED library | |
#include <math.h> | |
MicroOLED oled(PIN_RESET, DC_JUMPER); // I2C Example | |
// Global variables to help draw the clock face: |
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 flixel.FlxG; | |
import flixel.FlxSprite; | |
import flixel.FlxState; | |
import flixel.util.FlxColor; | |
class PlayState extends FlxState | |
{ | |
var square: FlxSprite; |
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
Generator = require "convchain.Generator" | |
Array2D = require "convchain.Array2D" | |
img = love.graphics.newImage('seed.png') | |
imgdata = img\getData! | |
sample = Array2D(img\getDimensions!) | |
for x=0,sample.height-1 | |
for y=0,sample.width-1 |
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
iter_helper = (t, index) -> | |
index += 1 | |
if index == t.n | |
return | |
return index, t[index] | |
class Array | |
new: => | |
@n = 0 |
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
 |
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
local rx = require("rx") | |
rx.Observable.subscribe_last = function(self, callback) | |
local original_onNext = self.onNext | |
self.onNext = function(self, ...) | |
original_onNext(self, ...) | |
callback(...) | |
end | |
return rx.Subscription.create(function() | |
self.onNext = original_onNext | |
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
<!-- Edit the tabTrigger field if you wish --> | |
<snippet> | |
<content><![CDATA[${1/[-\.]/_/g} = require "${1:}" | |
${0}]]></content> | |
<tabTrigger>jf</tabTrigger> | |
<scope>source.moonscript</scope> | |
<description>require module</description> | |
</snippet> |
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; | |
class Main extends Sprite { | |
public function new () { | |
super (); | |
addChild(new NewClass()); | |
} | |
} |