This file contains hidden or 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
arrow::Status WriteUniformlyEncryptedFile() { | |
std::vector<std::shared_ptr<arrow::Array>> arrays; | |
std::shared_ptr<arrow::Table> _table; | |
std::vector<std::shared_ptr<arrow::Field>> fields; | |
const std::string KEY_LABEL = "kf"; | |
const ::arrow::util::SecureString KEY_VALUE("0123456789abcdef"); | |
std::string outFileName = "tbl.parquet"; | |
std::filesystem::path exePath = std::filesystem::path("/home/somepath"); | |
std::filesystem::path outPath = exePath / outFileName; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# https://creativecommons.org/licenses/by/4.0/ | |
# https://en.wikipedia.org/wiki/Conway's_Game_of_Life#Rules | |
# https://pewpew.readthedocs.io/en/latest/ | |
import pew | |
import random | |
n = 8 | |
n_states = 2 |
This file contains hidden or 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
%matplotlib inline | |
import numpy as np | |
from skimage.io import imshow | |
from skimage.measure import label | |
from scipy.ndimage.morphology import distance_transform_edt | |
def generate_random_circles(n = 100, d = 256): | |
circles = np.random.randint(0, d, (n, 3)) | |
x = np.zeros((d, d), dtype=int) | |
This file contains hidden or 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
# To run: | |
# aws cloudformation create-stack \ | |
# --template-body file://jh.yml \ | |
# --profile <YOUR_USER_PROFILE> \ | |
# --stack-name jupyterhub \ | |
# --parameters ParameterKey=KeyName,ParameterValue=<YOUR_KEYPAIR_NAME> \ | |
# ParameterKey=InstanceType,ParameterValue=t2.micro | |
Parameters: | |
KeyName: |
This file contains hidden or 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
//Width and height | |
var timeStretch = 1.6; | |
var h = 70; | |
var w = 920; | |
var barPadding = 1; | |
var timePeriod = 10; | |
var timeParser = d3.timeParse("%H:%M"); | |
function dict2array(dict) { | |
var result = []; |
This file contains hidden or 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
from IPython.display import FileLink, FileLinks | |
path = './' | |
filename = 'filename.csv' | |
df.to_csv(path + filename) | |
FileLinks(path) |
This file contains hidden or 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
vacations_start | vacations_end | region | education_level | vacations | ||
---|---|---|---|---|---|---|
0 | 2006-02-18 00:00:00 | 2006-02-26 00:00:00 | central | base | spring | |
1 | 2006-02-18 00:00:00 | 2006-02-26 00:00:00 | central | secondary | spring | |
2 | 2006-02-18 00:00:00 | 2006-02-26 00:00:00 | north | base | spring | |
3 | 2006-02-18 00:00:00 | 2006-02-26 00:00:00 | north | secondary | spring | |
4 | 2006-02-25 00:00:00 | 2006-03-05 00:00:00 | south | base | spring | |
5 | 2006-02-25 00:00:00 | 2006-03-05 00:00:00 | south | secondary | spring | |
6 | 2006-04-29 00:00:00 | 2006-05-07 00:00:00 | central | base | may | |
7 | 2006-04-29 00:00:00 | 2006-05-07 00:00:00 | central | secondary | may | |
8 | 2006-04-29 00:00:00 | 2006-05-07 00:00:00 | north | base | may |