Skip to content

Instantly share code, notes, and snippets.

View reustonium's full-sized avatar

Andy Ruestow reustonium

View GitHub Profile
@reustonium
reustonium / LMPModControl.xml
Last active November 20, 2020 03:01
LMPModControl.xml
<?xml version="1.0" encoding="utf-16"?>
<ModControlStructure xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AllowNonListedPlugins>false</AllowNonListedPlugins>
<RequiredExpansions>
<string>MakingHistory</string>
<string>Serenity</string>
</RequiredExpansions>
<MandatoryPlugins>
<MandatoryDllFile>
<Text>KerbalEngineer. Version: 1.1.7.2</Text>
@reustonium
reustonium / asyncawait.js
Last active October 7, 2018 00:52
nested promises problem
async componentDidMount() {
let results = [];
let races = await firebase
.firestore()
.collection("races")
.get();
for (let race of races.docs) {
let r = {};
r.field = race.data().field;
r.date = moment(race.data().date.seconds * 1000)
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzoOfbnZF6nDRePNpNuPF+++lSMaeWlz41fg0mjIQMoL30qTK3H7FIBRZhxfgTtPn7RoDoFWD5hmU22dkz8SLhUyK6saFUw6i0buzo62UyypP5C40HHQwIA2MUC3SZEuP6IHXgxnmtqRLxqS2omKoW+u+xPzunfw43P4nGu/MPvwBAtEKGogS3CYsVc4Fc/OW88H2iy9voPfL9QXhOe+uc5MOCN4V/KifdwLPNFLOh2vg2FTCxANMsf8KsmBiswZswrmrHHoFhJ46XgpCBUKWU+cyg7+A9ArpwyxZqkbcE2Lgdg61dxt34mCv+Eoi/XiZh+g7bFQuJcGxZUopcrpOAQ== Andrew@DF3P0
@reustonium
reustonium / ApplicationComponent.java
Last active March 28, 2016 18:06
Dagger 2 Inject problem: `Firebase` never get's injected into `FirebaseService.java`
@Singleton
@Component(modules = ApplicationModule.class)
public interface ApplicationComponent {
@ApplicationContext Context context();
Application application();
Firebase firebase();
}
@reustonium
reustonium / checklist.md
Last active September 23, 2015 19:28
PyPi Release Checklist
  • Update HISTORY.rst

  • Install the package for local development:python setup.py develop

  • Run the tests:python setup.py test

  • Commit the changes:

git add .
git commit -m "Release 0.1.1"
### Keybase proof
I hereby claim:
* I am reustonium on github.
* I am reustonium (https://keybase.io/reustonium) on keybase.
* I have a public key whose fingerprint is 6A74 699C 1C7C 7B29 BB14 5837 6D64 4E20 2AEB FCB8
To claim this, I am signing this object:
@reustonium
reustonium / Readme.md
Last active August 29, 2015 14:07 — forked from WillTurman/Readme.md
Activity Streamgraph

D3 Streamgraph Example

Series Hover

The series hover interactivity uses the technique from lgrammel seen here: http://bl.ocks.org/1963983

Data Tooltip

It isn't necessarily a tooltip, but data is displayed by inverting the x-axis value into a date, and mapping the date to the corresponding data value for the series.

import base64
with open("test.png", "rb") as image_file:
encoded_string = base64.b64encode(image_file.read())
img_tag = '<img src="data:image/png;base64,{0}">'.format(encoded_string)
print(img_tag)
@reustonium
reustonium / FP.Clamp()
Created August 25, 2012 14:52
Flashpunk Clamp() Problem
// Inside an update() where I can increase speed.x
FP.clamp(speed.x, -2, 2);
trace(speed.x);
// My trace shows values outside the clamped range :-(