Skip to content

Instantly share code, notes, and snippets.

View rstormsf's full-sized avatar

Roman Storm rstormsf

View GitHub Profile
https://etherscan.io/tx/0x817882d000f61327b6da9f70bb22569ac54d30f96094f390b1045c99e904145f
0x4cbc672f5c4870c455032267be1893af7e040f28
https://etherscan.io/tx/0x8365fcf42ebec34d5bda221583968a1a6fd3841ce663683072eede1f5d33dc68
0x1321f1f1aa541a56c31682c57b80ecfccd9bb288
https://etherscan.io/tx/0x7cc1c8bdf79909da7305fa96bb93e9de3946f46325ef991915e544b9d2b0257f
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
contract VestingVault12 {
using SafeMath for uint256;
using SafeMath for uint16;
@rstormsf
rstormsf / infura-events.json
Created May 13, 2020 17:54
Infura broken events.
This file has been truncated, but you can view the full file.
[
{
"address": "0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF",
"blockHash": "0x5b560758531c59bc703b9dc7bf8b74769e3a55229d1fd53022263a403dcb5042",
"blockNumber": 9118009,
"event": "Deposit",
"id": "log_b7b99605",
"logIndex": 80,
"raw": {
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005df81d17",
This file has been truncated, but you can view the full file.
[
{
"address": "0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF",
"blockHash": "0x5b560758531c59bc703b9dc7bf8b74769e3a55229d1fd53022263a403dcb5042",
"blockNumber": 9118009,
"logIndex": 80,
"removed": false,
"transactionHash": "0xbe366e70f6d2886cd29f260bc2cfff26f86158f81577f448af456ddba64b7a59",
"transactionIndex": 107,
"id": "log_b7b99605",
@rstormsf
rstormsf / some.html.slim
Created October 17, 2015 05:20
Mix Ruby and JS
- flash.each do |key, value|
javascript:
console.log("#{key}");
toastr.options = {
closeButton: true,
progressBar: true,
timeOut: 9000
};
var flash = {};
flash.message = "#{value}";
@rstormsf
rstormsf / gitpull.rb
Created September 28, 2015 20:32
git pull all directories
#!/bin/ruby
Dir.chdir(Dir.home + '/repos/all')
dirs = Dir.entries('.').select {|entry| File.directory? File.join('.', entry) and !(entry =='.' || entry == '..') }
dirs.each do |d|
Dir.chdir("#{Dir.pwd + '/' + d}")
puts Dir.pwd
system "git pull"
Dir.chdir(Dir.pwd + "/../")
end
@rstormsf
rstormsf / index.html
Created August 11, 2015 03:39
init fortitude
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" type="text/css" href="../dist/fortitude.css">
<link rel="stylesheet" type="text/css" href="../dist/fortitude-theme.css">
<script src="../dist/fortitude.js"></script>
@rstormsf
rstormsf / todolist.js.jsx
Created August 7, 2015 21:33
RailsConf 2015 - React.js on Rails - fix on getInitialState when using ES6 classes.
class TodoList extends React.Component {
constructor(props) {
super(props);
this.state = {name: "nope"};
}
render() {
return (
<ul>
<li>Updated</li>
@rstormsf
rstormsf / index.rb
Created March 15, 2015 00:27
Selenium
mobile_emulation = { "deviceName" => "Google Nexus 5" }
caps = Selenium::WebDriver::Remote::Capabilities.chrome(
"chromeOptions" => { "mobileEmulation" => mobile_emulation })
@driver = Selenium::WebDriver.for :remote, url: 'http://localhost:4444/wd/hub', desired_capabilities: caps
@driver.navigate.to "https://www.gmail.com/"