Skip to content

Instantly share code, notes, and snippets.

View veqtor's full-sized avatar

Göran Sandström veqtor

  • Stockholm, Sweden
View GitHub Profile
# This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
import aiohttp
event_loop = None
import asyncio
from pprint import pprint
I am attesting that this GitHub handle veqtor is linked to the Tezos account tz1WidyAU8wuyG25Pd7b93bcx9hMu7W9Pea8 for tzprofiles
sig:edsigu5vif7fs7bAQcWZwvJBYp1XJCTZRDNgAiu2dJi1Htts8UpWztGh2mc6yoNnGmJq2GsDmfbkwYb17hrKfD7crkLX8RSMmDG
@veqtor
veqtor / gist:e5258c36259515bbb9841e9fe965fb13
Created August 26, 2020 10:38
Impute anything (pandas, scikit learn)
from sklearn.impute import KNNImputer
def impute_missing(df, inplace=False):
def get_dummies(df, col):
dummies = pd.get_dummies(df[col], prefix=col, dummy_na=True)
dummies[dummies[f'{col}_nan'] == 1] = np.nan
dummies = dummies.drop(labels=f'{col}_nan', axis=1)
return dummies
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Just so this idea never gets patented... By anyone!
Anywhere in Decentraland, someone could place a portal, if they are the land owner.
Portals would be gates, whose door-frame could be designed by the creator of the Auxilliary world they link to.
A portal would be rendered as a door-frame, and possibly, like a window into a static preview-rendering of the world they link to. (an efficient way would be to have the destination world render a camera with a depth channel)
Portals work like web-links, creating a stack of teleportation, so many gates could be created that lead to the same entry-point in the Auxilliary World. When you walk back you go to the place you entered from.
.code
PUSH 60 contract skifta {\n
fu...
PUSH 40 contract skifta {\n
fu...
MSTORE contract skifta {\n
fu...
CALLVALUE contract skifta {\n
fu...
ISZERO contract skifta {\n
0xBB69b1DBecfBafF7E4F8c9636b322b7a85c58479

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: