I hereby claim:
- I am Jackkell on github.
- I am jackkell (https://keybase.io/jackkell) on keybase.
- I have a public key whose fingerprint is 7517 4EC2 A5C3 21C9 CC00 2657 A8CC 30DF E7CD 86A0
To claim this, I am signing this object:
from typing import List, Tuple, Mapping, Set | |
from collections import defaultdict | |
Graph = Mapping[str, Set[str]] | |
Connection = Tuple[str, str] | |
def createGraph(connections: List[Connection]) -> Graph: | |
graph: Graph = defaultdict(set) | |
for a, b in connections: |
# getting an integer | |
def getIntegerInput(prompt: str, lowerBound: int = None, upperBound: int = None) -> int: | |
while True: | |
userInput = input(prompt) | |
try: | |
userInput = int(userInput) | |
if lowerBound and userInput < lowerBound: | |
print(f"Input must be greater than or equal to {str(lowerBound)}") | |
elif upperBound and userInput > upperBound: |
using UnityEngine; | |
public class JumpingCharacterControllerExample : MonoBehaviour | |
{ | |
[SerializeField] private float jumpHeight; | |
[SerializeField] private float timeToReachJumpApex; | |
private Vector3 _velocity; | |
private Vector3 _oldVelocity; |
from enum import Enum | |
from copy import deepcopy | |
from typing import List, Tuple, Union, Set | |
class ActionType(Enum): | |
MOVE_UP = 0 | |
MOVE_RIGHT = 1 | |
MOVE_LEFT = 2 | |
MOVE_DOWN = 3 |
from typing import Tuple | |
class Point: | |
def __init__(self, x: int = 0, y: int = 0): | |
self.x: int = x | |
self.y: int = y | |
def magnitude(self): | |
return abs(self.x) + abs(self.y) |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Cloud : MonoBehaviour | |
{ | |
[SerializeField] private float _speed; | |
[SerializeField] private int _rays; | |
[SerializeField] private float _distance; |
I hereby claim:
To claim this, I am signing this object:
from scipy.signal import chirp | |
from scipy import signal | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy.io.wavfile import write | |
samples = 44100 | |
time = 1000 | |
t = np.linspace(0, time, samples) | |
w = chirp(t, f0=1, f1=25, t1=time, method='linear') |
main = function() { | |
# Import the data as a dataframe | |
drugData = read.delim(file="gene_expression.txt"); | |
# Name the rows using the names from the first column of the drugData dataframe | |
dimnames(drugData)[[1]] = drugData[,1]; | |
# Drop the first column of the drugData dataframe because we no longer need it because we have named our rows | |
drugData = drugData[,-1] | |
# Print some of the drugData for a sanity check | |
print(drugData[1:5, 1:4]); | |
# Check the class of the drugData to confirm that it is a dataframe |
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "solid", | |
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme", | |
"draw_minimap_border": true, | |
"enable_telemetry": false, | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ |