Skip to content

Instantly share code, notes, and snippets.

@Sulejman
Sulejman / krigingScript.R
Last active January 1, 2016 11:59
This is kriging script that i used tointerpolate and draw temperature and humidity heatmaps of Bosnia and Herzegovina. http://www.sule.io/heatmaps/
doAllYear <- function(weather){
for (i in 1:12 ){
month <- getDataForMonth(weather, i)
krigeAndPlot(month)
}
print("JOB DONE")
}
@Sulejman
Sulejman / Ballot.sol
Created August 2, 2017 17:32
Da se Rifat makne iz kuhinje?
pragma solidity ^0.4.11;
/// @title Voting with delegation.
contract Ballot {
struct Voter {
uint weight; // weight is accumulated by delegation
bool voted; // if true, that person already voted
address delegate; // person delegated to
uint vote; // index of the voted proposal
@Sulejman
Sulejman / PrepareRaiden.sh
Last active May 26, 2018 19:37
Install environment for Raiden development on Ubuntu 16.04
#!/bin/sh
sudo apt-get install git -y
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum -y
sudo apt-get install nodejs -y
sudo apt-get install npm -y
sudo npm install -g n
sudo n latest
0x687A3e732D5e3cA30A268f47Cc63657fD243109d

Keybase proof

I hereby claim:

  • I am sulejman on github.
  • I am sulejman (https://keybase.io/sulejman) on keybase.
  • I have a public key ASB5zRA2BewkkzwEBo897AVuPRAFfEvfnMzkFt0SaEogdAo

To claim this, I am signing this object:

@Sulejman
Sulejman / .deps...npm...hardhat...console.sol
Last active April 23, 2024 22:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS =
0x000000000000000000636F6e736F6c652e6c6f67;
function _sendLogPayloadImplementation(bytes memory payload) internal view {
address consoleAddress = CONSOLE_ADDRESS;
/// @solidity memory-safe-assembly