Skip to content

Instantly share code, notes, and snippets.

Avatar

Pedro Diaz igoticecream

View GitHub Profile
View stardew-valley.md
@igoticecream
igoticecream / Makefile
Last active Jan 25, 2021
Makefile for mixed C/C++ sources and vscode project configuration (https://code.visualstudio.com/docs/languages/cpp)
View Makefile
#======================================================================
# Makefile for mixed C/C++ sources (igoticecream 2019)
#======================================================================
#----------------------------------------------------------------------
# Project Structure
#----------------------------------------------------------------------
# TARGET is the name of the output
# BUILD is the directory where object files & intermediate files will be placed
# OUT is the directory where target files will be placed
@igoticecream
igoticecream / amiibo.py
Last active May 24, 2020
Retrieve all Amiibos from AmiiboApi into Emuiibo compatible files
View amiibo.py
#!/usr/bin/env python3
from pathlib import Path
import struct
import json
import random
import datetime
import re
import requests
View keybase.md

Keybase proof

I hereby claim:

  • I am igoticecream on github.
  • I am pedrodiaz (https://keybase.io/pedrodiaz) on keybase.
  • I have a public key whose fingerprint is 6D23 8616 1CFB 78AF 8A42 BB6E 1241 3F42 C3A8 90E9

To claim this, I am signing this object:

@igoticecream
igoticecream / Libraries.md
Last active Jun 20, 2018
Collection of favorite android libraries
View Libraries.md

Libraries

  • Android KTX
  • Anko
  • Apache commons
  • Architecture components
  • Arrow
  • AutoFactory
  • AutoValue
  • AutoValue Gson
  • Constraint layout
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
//fontWeight: 'normal',
//fontWeightBold: 'normal',
//fontWeight: '10',
@igoticecream
igoticecream / Example.java
Last active May 29, 2017
RxJava example of how to "fix" Observable events going to the main thread
View Example.java
public class ShareConnect implements Single.OnSubscribe<Bundle> {
private final GoogleApiClient client;
private final Scheduler.Worker worker;
private final ShareConnectException error;
public ShareConnect(final Share share) {
this.client = share.getClient();
this.worker = Schedulers.io().createWorker();
this.error = new ShareConnectException("No se ha podido establecer conexión con Google Drive");
View gradle.properties
# Gradle Configuration
# The Gradle daemon aims to improve the startup and execution time of Gradle.
# When set to true the Gradle daemon is to run the build.
org.gradle.daemon=true
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xmx5120m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
@igoticecream
igoticecream / app-build.gradle
Created Feb 21, 2017
Kotlin setup for Android Studio project
View app-build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId 'hellokotlin'
@igoticecream
igoticecream / app-build.gradle
Created Feb 21, 2017
Basic gradle configuration of Java project
View app-build.gradle
plugins {
id 'application'
}
mainClassName = 'com.igoticecream.rebel.helper.Helper'
applicationDefaultJvmArgs = ["-javaagent:/An/Example/Jvm/Args.jar"]
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}