Skip to content

Instantly share code, notes, and snippets.

View kmels's full-sized avatar

Carlos López kmels

  • Guatemala, Guatemala
View GitHub Profile
@kmels
kmels / ..build-protobuf.md
Last active November 13, 2018 17:18 — forked from StatusReport/..build-protobuf.md
Build Google Protobuf 3.5.0 for iOS 10. Builds all supported architectures and produces a universal binary static library.

Google Protobuf 3.5.0 - Mac OS X and iOS Support

The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simulator.

This gist was adapted from the original at https://gist.github.com/BennettSmith/7150245, and updated to deal with Xcode 10.1 and iOS 10, and download protobuf version 3.5.0.

##BIP47 Reusable Payment Codes Test Vectors

Results obtained upon implementing BIP47. Payment codes are calculated assuming v1 specification without use of BitMessage.

###Alice's wallet:

Mnemonic (BIP39): [response seminar brave tip suit recall often sound stick owner lottery motion]

Raw entropy (BIP39): b7b8706d714d9166e66e7ed5b3c61048

@kmels
kmels / InitActivity.java
Created February 14, 2018 01:51 — forked from kosiara/InitActivity.java
Android slf4j logger with logcat + file; logging to file and logcat on Android
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class InitActivity {
public InitActivity() {
logger.debug("Activity loading....");
}
@kmels
kmels / Esta bien?
Last active August 29, 2015 14:21 — forked from netogallo/Esta bien?
{
"author":{"username":"neto"},
"name":"Our big duty",
"participants":[{"username":"neto"},{"username":"kmels"}],
"tasks":[
{
"name":"My free task",
"penalty":0.000155,
"expiry_epoch":1432041949423,
"state":"Free",
@kmels
kmels / suave index
Created April 1, 2015 05:18
Suave index
module Main
open Suave // always open suave
open Suave.Http.Successful // for OK-result
open Suave.Web // for config
open Suave.Http
open Suave.Http.Applicatives
open Suave.Http.Successful
open Suave.Web
### Keybase proof
I hereby claim:
* I am kmels on github.
* I am kmels (https://keybase.io/kmels) on keybase.
* I have a public key whose fingerprint is 290C EB97 2C38 9CCE 8352 A8B4 3A69 87CF 41D7 3145
To claim this, I am signing this object:
canvas = document.getElementById("canvas");
field = document.getElementById("field");
robot = document.getElementById("robot");
goal = document.getElementById("goal");
ctx = canvas.getContext("2d");
mkImagePattern = (img) -> ctx.createPattern(img, 'repeat');
# fills canvas with a field pattern
@kmels
kmels / gist:3908520
Created October 17, 2012 21:53
yesod
maybeGetBy :: forall (m :: * -> *) val. (PersistEntity val,
PersistUnique
(PersistEntityBackend val) m) =>
Unique val (PersistEntityBackend val)
-> MaybeT
(PersistEntityBackend val m) (Database.Persist.Store.Entity val)
maybeGetBy criterion = MaybeT $ getBy criterion
kmels@kmels-stelle:~/code/trac-stats$ git config --list
user.name=Carlos López-Camey
user.email=c.lopez@kmels.net
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=https://github.com/kmels/trac-stats
branch.master.remote=origin
@kmels
kmels / ghc.data
Created August 30, 2012 09:53
trac-stats output
kmels@kmels-portable-stelle:~/code/trac-timeline-stats$ runhaskell Main.lhs "http://hackage.haskell.org/trac/ghc/timeline?changeset=on&ticket=on&milestone=on&wiki=on&blog=on&max=500&author=&daysback=120&format=rss"
## Debug output ##
# Fetching feed..
# Fetched feed..
# Parsing..
# Calculating..
#########################
# REPORT
# (to plot with gnuplot)
# Number of Tickets fetched: 182