Keybase proof
I hereby claim:
- I am piotrzakrzewski on github.
- I am piotrzakrzewski (https://keybase.io/piotrzakrzewski) on keybase.
- I have a public key ASAu2338QxVxUiOEJ48YaZyaR2Ah2eaDKPBGnYfziMqxhAo
To claim this, I am signing this object:
"""List function calls within a Python function declaration with the ast module.""" | |
import ast | |
class PrintCalls(ast.NodeVisitor): | |
def visit_Call(self, node): | |
print(node.func.id) | |
code = """def fun(a:int) -> int: | |
b = util_fun(a) |
from github import Github | |
from time import time | |
from calendar import timegm | |
from statistics import median | |
import requests | |
import json | |
GITHUB_API_TOKEN = "REPLACE_ME" | |
WEBHOOK_URL = "REPLACE_ME" | |
TARGET_ORG = "REPLACE_ME" |
I hereby claim:
To claim this, I am signing this object:
import numpy as np | |
import random | |
ILOSC_KREGOW = 9 | |
probabilities = np.array([np.exp(-x) for x in range(ILOSC_KREGOW) ]) | |
normalized_probs = probabilities / np.sum(probabilities) # teraz ich suma to 1.0 | |
print("Prawdopodobienswa po normalizacji", normalized_probs) | |
normalized_probs = list(normalized_probs) |
@Grab(group='org.rosuda', module='Rserve', version='1.7.3') | |
import org.rosuda.REngine.Rserve.RConnection | |
def conn = new RConnection() | |
//list = conn.eval('data.frame(name=c(1, 2, 3))').asNativeJavaObject() | |
conn.createFile('foo-bar-baz') | |
conn.eval('getwd()').asString() |
sudo apt-get update | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
sudo apt-get update | |
apt-cache policy docker-engine | |
sudo apt-get install -y docker-engine |
#!/bin/python | |
import click | |
from os import walk, makedirs | |
from os.path import join | |
from shutil import copy | |
@click.command() | |
@click.option('--source', help="""Path to the grails 2 project""", type=file) | |
@click.option('--destination', | |
help="""Path to the bootstrapped grails 3 project""", type=file) |
#Patient Registration