Skip to content

Instantly share code, notes, and snippets.

View cleanunicorn's full-sized avatar
🦄
Hacking stuff for fun and profit

Daniel Luca cleanunicorn

🦄
Hacking stuff for fun and profit
View GitHub Profile
### Keybase proof
I hereby claim:
* I am hydrarulz on github.
* I am lucadaniel (https://keybase.io/lucadaniel) on keybase.
* I have a public key whose fingerprint is 3104 5C13 E1A7 7118 0114 6F75 A2A5 E837 4EC7 70CB
To claim this, I am signing this object:
@cleanunicorn
cleanunicorn / Vagrantfile
Created January 18, 2017 09:49
My version of Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "hydrarulz/laravel-development"
# If you host the box on a remote url
# config.vm.box_url = ""
config.ssh.username = "ubuntu"
@cleanunicorn
cleanunicorn / config
Created April 13, 2017 15:33
My i3vm ~/.config/i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
0x169d5c44a8eA7Ac81009E424e618cE1B938033DA
pragma solidity ^0.4.11;
/*
Owned contract interface
*/
contract IOwned {
// this function isn't abstract since the compiler emits automatically generated getter functions as external
function owner() public constant returns (address owner) { owner; }
function transferOwnership(address _newOwner) public;
@cleanunicorn
cleanunicorn / compton.conf
Last active March 31, 2018 14:27
i3 Configs
shadow = false;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
shadow-red = 0.368627450980392;
shadow-green = 0.368627450980392;
0x2796d3dd5dc133ab8aba1ddcc35f289475c99cd9
0x259a0896e3a992f1d45f1736cff28c96fd4de5e6

Keybase proof

I hereby claim:

  • I am cleanunicorn on github.
  • I am lucadaniel (https://keybase.io/lucadaniel) on keybase.
  • I have a public key ASAQphAfx5wcDpBscsdaTUgw7tUUwx39SISyUDyHXImjFwo

To claim this, I am signing this object:

pragma solidity ^0.4.21;
contract ShapeCalculator{
function rectangle(uint256 w, uint256 h) public returns (uint256 s, uint256 p) {
//print value of w and h
emit Width(w);
emit Height(h);
s = w * h;
p = 2 * (w + h);