Skip to content

Instantly share code, notes, and snippets.

View edisinovcic's full-sized avatar
🎯
Focusing

Edi Sinovcic edisinovcic

🎯
Focusing
View GitHub Profile
// SPDX-License-Identifier: GPL-3.0
/*
* https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/governance
*/
pragma solidity >=0.7.0 <0.9.0;
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/c9bdb1f0ae168e00a942270f2b85d6a7d3293550/contracts/token/ERC20/ERC20.sol";
> source-verify@1.0.0 test /home/user/Programming/FIRME/ETHEREUM/SOLIDITY_TEAM/source-verify
> TESTING=true LOCALCHAIN_URL=http://localhost:8545 ts-node ./node_modules/.bin/mocha --exit
{"name":"Server","hostname":"ijsfd","pid":19693,"level":30,"loc":"[LISTEN]","msg":"Injector listening on port 2000!","time":"2020-04-22T16:38:24.373Z","v":0}
injector
inject
✓ verifies sources from multiple metadatas, addresses & stores by IPFS hash (11349ms)
export class HttpException extends Error {
status?: number;
message: string;
name: string
constructor(message: string, name: string, status?: number) {
super(message);
this.message = message || "Something went wrong";
this.name = name || "HttpException";
this.status = status || 500;
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName monitoring.komputing.org
ServerAdmin ligi@ligi.de
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://localhost:11000/
ProxyPassReverse / http://localhost:11000/
IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName verification.komputing.org
ServerAdmin ligi@ligi.de
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /monitoring http://localhost:11000/
ProxyPassReverse /monitoring http://localhost:11000/
IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName contractrepo.komputing.org/
ServerAdmin ligi@ligi.de
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://localhost:10001/
ProxyPassReverse / http://localhost:10001/
pragma solidity >=0.4.22 <0.6.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol";
contract TableFootbal {
modifier playerRegistered(address _player){
require(bytes(playerNames[_player]).length > 0, "Player needs to be registered!");
_;
}
@edisinovcic
edisinovcic / substrate-demo-module.rs
Created September 12, 2019 12:02 — forked from gautamdhameja/substrate-demo-module.rs
A minimal Substrate module. Implements a simple token transfer function with token balances stored in module storage.
/// A runtime module template with necessary imports
/// Feel free to remove or edit this file as needed.
/// If you change the name of this file, make sure to update its references in runtime/src/lib.rs
/// If you remove this file, you can remove those references
/// For more guidance on Substrate modules, see the example module
/// https://github.com/paritytech/substrate/blob/master/srml/example/src/lib.rs
async function updateNonce(web3, walletaddress, nonce) {
let blockchainNonce = await web3.eth.getTransactionCount(wallet, "pending");
if (blockchainNonce > nonce) {
nonce = blockchainNonce;
}
return nonce;
}
@edisinovcic
edisinovcic / Camera2Activity.java
Created March 14, 2016 22:28 — forked from natevogt/Camera2Activity.java
Quick-n-Dirty Camera2 Activity
package com.natevogtphoto.camera2test;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.graphics.ImageFormat;
import android.graphics.SurfaceTexture;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CameraCaptureSession.CaptureCallback;