Skip to content

Instantly share code, notes, and snippets.

View simonvc's full-sized avatar
💭
Hiring Go Engineers

Simon Vans-Colina simonvc

💭
Hiring Go Engineers
View GitHub Profile
@simonvc
simonvc / drone.md
Created March 24, 2017 09:17
Drone buying guide Spring 2017

Ok, Here's my March 2017 drone buying guide...

First decide what you want to do with a drone. The decide how much time you're prepared to put into building one, and finally decide how much money you want to spend.

Drones can do a lot of different things these days, but the most popular (in order of popularity) are.

1/ Aerial Photography 70%

2/ FPV Racing 20%

@simonvc
simonvc / Dockerfile
Created April 3, 2017 22:00
Dockerfile for magnetico
FROM ubuntu:16.10
RUN apt-get update
RUN apt-get -y install python3.5 python3-pip
RUN apt-get -y install supervisor
RUN pip3 install --upgrade pip
RUN pip3 install magneticod magneticow
RUN mkdir -p /var/log/supervisor
RUN echo [supervisord] > /etc/supervisor/conf.d/supervisord.conf
RUN echo nodaemon=true >> /etc/supervisor/conf.d/supervisord.conf
import requests
from pyfiglet import Figlet
# {"0x44ea84a85616f8e9cd719fc843de31d852ad7240":{"usd":0.628788}}
import requests
r = requests.get(
url="https://api.coingecko.com/api/v3/simple/token_price/ethereum?contract_addresses=0x44ea84a85616f8e9cd719fc843de31d852ad7240&vs_currencies=USD"
)
@simonvc
simonvc / 4.month.full.stack.md
Last active November 9, 2020 14:40
December 2020 Fronted Python Fullstack role.

Fronted is hiring a Python/Django + NextJS fullstack engineer for 4 months (parental leave cover)

  • At Fronted our mission is to make renting less stressful, starting by giving renters another option for how to pay their rental security deposit. Our research tells us that there's millions of people trapped in sub-optimal living conditions, who'd move into places of their own, if they had the cash to front a rental deposit.

  • We're at the beginning of our journey, launching before the end of the year as part of the FCA Sandbox https://www.fca.org.uk/firms/regulatory-sandbox/regulatory-sandbox-cohort-6

  • Small team (3-4 engineers including CTO and CPO). Team is Ex-Monzo, Apple, Bud, Zego https://techcrunch.com/2020/08/27/passion-capital-has-backed-fronted/

  • Remote, London Timezone +- 3hrs ok but must be tax resident in the UK

@simonvc
simonvc / TreeDAONFTree.sol
Created April 13, 2021 13:18
TreeDAO NFT Contract
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC721/presets/ERC721PresetMinterPauserAutoId.sol";
interface TreeToken {
function burnFrom(address, uint) external;
0xa47d20159c503727dFA933E6f1229f09b1f3eef9
@simonvc
simonvc / signing_and_verifying_using_web3py.py
Created April 23, 2021 22:22
Signing and verifying a message to enable single sign-on using web3py, but where the message was created by web3js 2021
from web3 import Web3
import web3
from random import randrange
from eth_account.messages import encode_defunct
# This is a server module. It runs on the Anvil server,
# rather than in the user's browser.
#
# To allow anvil.server.call() to call functions here, we mark
# them with @anvil.server.callable.
@simonvc
simonvc / nftree.treedao.eth
Created April 24, 2021 13:01
nftree drop 1 contract on mainnet
0x8Fa34344a3D1F12cF077bFF904604A8979E87041
Metadata of "nftree" was published successfully.
contracts/5_NFTree.sol :
dweb:/ipfs/QmYWXha5P4iWHXUwjsZgeHpitbvjJBLaHvFBVT63CkojjX
https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/access/AccessControl.sol :
@simonvc
simonvc / bag.md
Last active May 27, 2021 14:47
May-June 2021 Crypto Bag

My Bag 2021 May/June After the 55% bitcoin correction.

Not Investment Advice

  • This is my strategy and my holdings, not advice.
  • This is my life strategy: "Never sell all. Only sell 50% when it's life changing money."
  • My day to day strategy is, 90% cold storage, 10% on an exchange (FTX) so i can buy the dips.
  • I no-longer trade derivatives or use leverage.

Cold Storage - Diamond Hands - Moon Bag

// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol";
contract TreeToken is ERC20PresetMinterPauser {
constructor() ERC20PresetMinterPauser("TreeDAO Tree Token", "Trees") {
_mint(0xE0743ac9a31C40f3808908708a7a0a0CFC308c2e, 3500000000000000400);