Skip to content

Instantly share code, notes, and snippets.

View mushketyk's full-sized avatar
👋
Hi!

Ivan Mushketyk mushketyk

👋
Hi!
  • Stripe
  • Dublin, Ireland
View GitHub Profile
@mushketyk
mushketyk / Auction.sol
Created March 26, 2023 21:36
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.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "Ownable.sol";
contract Auction {
address public beneficiary;
uint public deadline;
@mushketyk
mushketyk / Auction.sol
Created March 26, 2023 21:31
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.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "Ownable.sol";
contract Auction {
enum AuctionState {
INITIALIZED,
ONGOING,
FINISHED
@mushketyk
mushketyk / Auction.sol
Created February 14, 2023 17:35
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.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "Ownable.sol";
error AmountTooSmall(uint totalBid, uint minRequired);
contract Auction {
enum AuctionState {
INITIALIZED,
@mushketyk
mushketyk / Auction.sol
Created February 14, 2023 17:31
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.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "Ownable.sol";
contract Auction {
enum AuctionState {
INITIALIZED,
ONGOING,
FINISHED
@mushketyk
mushketyk / .deps...artifacts...Storage.json
Created January 30, 2023 23:08
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.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
@mushketyk
mushketyk / .deps...artifacts...Storage.json
Created January 30, 2023 23:08
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.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
import json
print('Loading function')
def lambda_handler(event, context):
#print("Received event: " + json.dumps(event, indent=2))
for record in event['Records']:
print(record['eventID'])
print(record['eventName'])
'use strict';
var aws = require('aws-sdk');
console.log('Loading function');
exports.handler = (event, context, callback) => {
var cloudSearchClient = new aws.CloudSearchDomain({
endpoint: 'doc-shop-domain-ft32cd2vtsf4r42cqim4oopvwe.us-east-1.cloudsearch.amazonaws.com'
});
"/healthz": {
"get": {
"operationId": "Healthz",
"produces": [
"application/json"
],
"responses": {
"204": {
"description": "No content"
}
@mushketyk
mushketyk / notebook.python
Last active June 6, 2017 19:51
Quantopian alphalens
import math
import numpy as np
from quantopian.research import run_pipeline
from quantopian.pipeline import Pipeline
from quantopian.pipeline.data.builtin import USEquityPricing
from quantopian.pipeline.factors import AverageDollarVolume, CustomFactor, AnnualizedVolatility
from quantopian.pipeline.filters.morningstar import Q3000US
from quantopian.pipeline.classifiers.morningstar import Sector
from quantopian.pipeline.data import morningstar as mstar