Skip to content

Instantly share code, notes, and snippets.

Using an Airtable to embed

Keybase proof

I hereby claim:

  • I am mvaz on github.
  • I am mvaz (https://keybase.io/mvaz) on keybase.
  • I have a public key ASA-HN-EaAfc2WV9XLuEHOgdmNNU8ojmByLb8MBxcSxkSgo

To claim this, I am signing this object:

pragma solidity ^0.4.18;
// File: node_modules/zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
@mvaz
mvaz / ether_adress
Last active November 6, 2017 17:16
0x5f95fd4235cb14d25f791c1c9b4504bb37a66e99
@mvaz
mvaz / rinkeby.account
Created October 16, 2017 11:59
rinkeby wallet
0x42745feF478C4F60FE88647B9B4DBf1219cb299E
contract MetaCoin {
mapping (address => uint) balances;
event Transfer(address _from,address _to, uint _amount);
function MetaCoin() {
balances[tx.origin] = 10000;
}
function sendCoin(address receiver, uint amount) returns(bool sufficient) {
if (balances[msg.sender] < amount) return false;
@mvaz
mvaz / ncp.py
Created May 4, 2016 22:48 — forked from panisson/ncp.py
Nonnegative Tensor Factorization, based on the Matlab source code available at Jingu Kim's home page: https://sites.google.com/site/jingukim/home#ntfcode Requires the installation of Numpy and Scikit-Tensor (https://github.com/mnick/scikit-tensor). For examples, see main() function.
# Copyright (C) 2013 Istituto per l'Interscambio Scientifico I.S.I.
# You can contact us by email (isi@isi.it) or write to:
# ISI Foundation, Via Alassio 11/c, 10126 Torino, Italy.
#
# This work is licensed under a Creative Commons 4.0
# Attribution-NonCommercial-ShareAlike License
# You may obtain a copy of the License at
# http://creativecommons.org/licenses/by-nc-sa/4.0/
#
# This program was written by Andre Panisson <panisson@gmail.com> at
@mvaz
mvaz / postgres-upgrade-recipe.sh
Created January 10, 2016 20:19 — forked from eoinkelly/postgres-upgrade-recipe.sh
Upgrade Postgres to 9.4 using Homebrew on Mac OSX
#!/bin/bash
# This script can be used in "run & hope" mode or you can use it as a recipe to
# do things manually - you probably want the latter if you really care about
# the data in your databases.
# Happy hacking
# /Eoin/
# Tell bash to stop if something goes wrong
set -e
@mvaz
mvaz / raspberry-pi-edimax-wifi-and-motion-sensor.md
Created December 8, 2015 09:44 — forked from eduardschaeli/raspberry-pi-edimax-wifi-and-motion-sensor.md
My notes on setting up a Raspberry Pi with an Edimax EW-7811UN WiFi Dongle and motion sensors

Raspberry Pi, WiFi and motion sensors

My notes on setting up a Raspberry Pi with an Edimax EW-7811UN WiFi Dongle and motion sensors.

We intend to use a few Raspberry Pis around the office, in order to find out if certain rooms are beeing used or not. For this, we need to get WiFi and a motion sensor working.

@mvaz
mvaz / README.md
Last active November 24, 2015 11:08
World Borders