This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
# data to plot | |
n_groups = 4 | |
means_frank = (90, 55, 40, 65) | |
means_guido = (85, 62, 54, 20) | |
# create plot | |
fig, ax = plt.subplots() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from dask.distributed import Client | |
def inc(x: int) -> int: | |
return x + 1 | |
async def f(): | |
async with Client(asynchronous=True) as client: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
# data to plot | |
n_groups = 4 | |
means_frank = (90, 55, 40, 65) | |
means_guido = (85, 62, 54, 20) | |
# create plot | |
fig, ax = plt.subplots() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import glob | |
i = 0 | |
for file in glob.glob('<filepattern>'): | |
new_filename = 'example_' + str(i) + '.txt' | |
os.rename(file, new_filename) | |
# placeholder: filepattern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
pronounce_word () { | |
declare -a myArray | |
# echo "$args" | |
# myArray=(`cat "$args"`) | |
myArray=(`cat $dir`) | |
say "test begin[[slnc 2000]]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Merge sort in C */ | |
#include<stdio.h> | |
#include<stdlib.h> | |
// Function to Merge Arrays L and R into A. | |
// lefCount = number of elements in L | |
// rightCount = number of elements in R. | |
void Merge(int *A,int *L,int leftCount,int *R,int rightCount) { | |
int i,j,k; |