Skip to content

Instantly share code, notes, and snippets.

@izqui
izqui / events.sol
Last active February 7, 2017 20:32
library EventEmitterLib {
function emit(string s) {
Emit(s);
}
event Emit(string s);
}
contract EventEmitterContract {
using EventEmitterLib for string;
library C {
function a() returns (address) {
return address(this);
}
}
contract A {
function a() constant returns (address) {
return C.a();
}
import './ERC20Lib.sol';
contract StandardToken {
using ERC20Lib for ERC20Lib.TokenStorage;
ERC20Lib.TokenStorage token;
string public name = "SimpleToken";
string public symbol = "SIM";
uint public decimals = 18;

Keybase proof

I hereby claim:

  • I am izqui on github.
  • I am ji (https://keybase.io/ji) on keybase.
  • I have a public key ASBEBu7bnegoUDr78WZspLu7GP7KiwQUeYFnuP7zjc6fBwo

To claim this, I am signing this object:

alert("Hi, this is a little vulnerability :(")
@izqui
izqui / Fiware Resources
Last active December 22, 2015 05:39
Fiware Resources
Resources:
http://www.fi-ware.eu/campus-party-europedeveloping-your-first-application-workshop/
https://gist.github.com/fgalan/6422169
https://www.dropbox.com/sh/iszgi1507jqimok/3ij6bOLD7U
https://www.dropbox.com/sh/56x5caysr08zfpx/GY0sRQWzqz
http://github.com/wirecloud/wirecloud
@izqui
izqui / gist:62f11cb52e63f9818e93
Created December 23, 2014 11:48
Swift Async functions
func mapParallel <A, B> (values: [A], task: ( (A, (B) -> () ) -> () ), callback:([B]) -> ()) {
let tasks: [((B) -> ()) -> ()] = values.map({
v in
return {
cb in
task(v, cb)
}
})
@izqui
izqui / godeploy
Created May 12, 2014 18:15
Deploy Go binaries to Raspberry Pi
#!/bin/sh
if [ $# -eq 0 ]
then
echo "$0 : You must provide destination host IP"
exit 1
fi
GOARCH=arm GOOS=linux go build
RET=$?
@izqui
izqui / gist:9855048
Created March 29, 2014 14:07
keybase.md
### Keybase proof
I hereby claim:
* I am izqui on github.
* I am ji (https://keybase.io/ji) on keybase.
* I have a public key whose fingerprint is 3139 7DDA D441 F0F9 EC87 539A 5EC6 4A8A 1B7C 6FD6
To claim this, I am signing this object: