Skip to content

Instantly share code, notes, and snippets.

Avatar
🦅
Fight for freedom

Jorge Izquierdo izqui

🦅
Fight for freedom
View GitHub Profile
@izqui
izqui / Fiware Resources
Last active Dec 22, 2015
Fiware Resources
View 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
View gist:9855048
### 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:
@izqui
izqui / godeploy
Created May 12, 2014
Deploy Go binaries to Raspberry Pi
View godeploy
#!/bin/sh
if [ $# -eq 0 ]
then
echo "$0 : You must provide destination host IP"
exit 1
fi
GOARCH=arm GOOS=linux go build
RET=$?
View gist:62f11cb52e63f9818e93
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 / channels.json
Created Oct 11, 2015
Spanish TV Channels
View channels.json
[
[
"1",
"sp",
"es",
"0",
"100",
"La 1",
"i_tve1.png",
"http://iphonelive.rtve.es/LA1_LV3_IPH/LA1_LV3_IPH.m3u8",
View xss.js
alert("Hi, this is a little vulnerability :(")
View 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 ASBEBu7bnegoUDr78WZspLu7GP7KiwQUeYFnuP7zjc6fBwo

To claim this, I am signing this object:

View SafeMathLib.sol
library SafeMathLib {
function times(uint a, uint b) returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function minus(uint a, uint b) returns (uint) {
assert(b <= a);
return a - b;
View ERC20Lib.sol
import "../SafeMathLib.sol";
library ERC20Lib {
using SafeMathLib for uint;
struct TokenStorage {
mapping (address => uint) balances;
mapping (address => mapping (address => uint)) allowed;
uint totalSupply;
}
View StandardToken.sol
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;