Skip to content

Instantly share code, notes, and snippets.

View T-Spoon's full-sized avatar

Oisin O'Neill T-Spoon

  • Stylefruits
  • Munich, Germany
View GitHub Profile
@T-Spoon
T-Spoon / keybase.md
Last active September 9, 2019 20:03

Keybase proof

I hereby claim:

  • I am t-spoon on github.
  • I am tspoon (https://keybase.io/tspoon) on keybase.
  • I have a public key ASCmCpjMw8YR578rPxuf6p5RMWiY92qynEgLBiyTmMZdzgo

To claim this, I am signing this object:

@T-Spoon
T-Spoon / gist:5a7cca7ea11c45b63c139da009c1a036
Created November 23, 2016 10:16 — forked from liclac/gist:9956023
Never use OpenCart

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.


Damian Bushong

@T-Spoon
T-Spoon / ExifUtil.java
Last active September 11, 2015 21:39 — forked from 9re/ExifUtil.java
Update to ExifUtils.java - Don't use Reflection & use constants instead of magic numbers
public class ExifUtils {
public static Bitmap rotateBitmapForExifData(String src, Bitmap bitmap) {
try {
ExifInterface ei = new ExifInterface(src);
int orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);
if (orientation == 1) {
return bitmap;
@T-Spoon
T-Spoon / Volley - Enable Verbose Logging
Created February 26, 2015 15:02
Volley - Enable Verbose Logging
adb shell setprop log.tag.Volley VERBOSE
@T-Spoon
T-Spoon / Delete Local Branches
Last active August 29, 2015 14:15
Git - Delete Local Branches That Have Been Merged
git branch -d $(git branch --merged)
@T-Spoon
T-Spoon / SwitchCompatFix.java
Created January 9, 2015 11:38
SwitchCompat - Fix For TextSize Attribute on New SwitchCompat Widget
public class SwitchCompatFix extends SwitchCompat {
public SwitchCompatFix(Context context) {
super(context);
}
public SwitchCompatFix(Context context, AttributeSet attrs) {
super(context, attrs);
}
@T-Spoon
T-Spoon / gist:c63bf17c87f614564f8d
Created October 18, 2014 14:24
Intel Edison Temperature & LED
#include <Wire.h>
#include <rgb_lcd.h>
#include <math.h>
rgb_lcd lcd;
const int colorR = 255;
const int colorG = 0;
const int colorB = 0;
@T-Spoon
T-Spoon / gist:11346255
Last active December 14, 2017 06:07
CoinMarketCap Historical Data
Some notes about how to get historical data from CoinMarketCap
1) Each coin has the data included on the CoinMarketCap/all page. The format is like this:
`$.plot($("#Bitcoin"), [{data:[[1398001262000.0, 6344198380.791152], [1398012063000.0, 6237711427.541809], [1398022862000.0, 6309412922.992338], [1398033663000.0, 6297734397.940344], [1398044462000.0, 6442102403.521351], [1398055263000.0, 6427057678.10135], [1398066362000.0, 6413917378.654722], [1398077162000.0, 6306678698.03327], [1398087962000.0, 6305619311.974236], [1398098762000.0, 6282518185.488187], [1398109562000.0, 6288232781.98613], [1398120362000.0, 6276542233.044095], [1398131162000.0, 6314550944.57087], [1398141962000.0, 6353838870.621136], [1398152762000.0, 6278126508.149567], [1398163562000.0, 6262108922.32085], [1398174362000.0, 6227783573.404398], [1398185163000.0, 6248901780.768519], [1398195962000.0, 6245269899.731453], [1398206763000.0, 6182582307.456224], [1398217563000.0, 6254759691.792059], [1398228362000.0, 6222483274.859675], [139