$ docker
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
| # MIT LICENSE | |
| import datetime | |
| import plotly.graph_objs as go | |
| from plotly.subplots import make_subplots | |
| import numpy as np | |
| import dash_core_components as dcc | |
| import dash_html_components as html | |
| import dash |
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
| """ | |
| Eisen BraTS2020 challenge starter kit | |
| NOTE: you need to register to the challenge, download and unpack the data in | |
| order to be able to run the following example. | |
| Find more info here: https://www.med.upenn.edu/cbica/brats2020/data.html | |
| Information about Eisen can be found at http://eisen.ai -- Join the community on Slack https://bit.ly/2L7i6OL |
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
| """ | |
| This is an adaptable example script for using selenium across multiple webbrowsers simultaneously. This makes use of | |
| two queues - one to store idle webworkers and another to store data to pass to any idle webworkers in a selenium function | |
| """ | |
| from multiprocessing import Queue, cpu_count | |
| from threading import Thread | |
| from selenium import webdriver | |
| from time import sleep | |
| from numpy.random import randint |
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
| gcc -fpic --shared $(python3-config --includes) greetmodule.c -o greet.abi3.so | |
| # can also use $(pkg-config --cflags python-3.5) | |
| # or | |
| # python3 setup.py install --record files.txt --user |
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
| #!/bin/bash | |
| # | |
| # Download the Large-scale CelebFaces Attributes (CelebA) Dataset | |
| # from their Google Drive link. | |
| # | |
| # CelebA: http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html | |
| # | |
| # Google Drive: https://drive.google.com/drive/folders/0B7EVK8r0v71pWEZsZE9oNnFzTm8 | |
| python3 get_drive_file.py 0B7EVK8r0v71pZjFTYXZWM3FlRnM celebA.zip |
by zach.dev
The early programmer struggles with the Javascript keyword this. But understanding your this context is easier than it seems.
This is all about where a function is invoked.
Often, early programmers worry about where the function was declared. Perhaps the function was declared in a specific file or a particular object. Surely this changes it's this!
Nope.
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
| """ | |
| Python implementation of the color map function for the PASCAL VOC data set. | |
| Official Matlab version can be found in the PASCAL VOC devkit | |
| http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit | |
| """ | |
| import numpy as np | |
| from skimage.io import imshow | |
| import matplotlib.pyplot as plt | |
| def color_map(N=256, normalized=False): |
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
| package main | |
| import ( | |
| "log" | |
| "time" | |
| "golang.org/x/net/context" | |
| "google.golang.org/grpc" | |
| pb "github.com/jzelinskie/grpc/simple" |
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
| gcc -fpic --shared $(python-config --includes) greetmodule.c -o greetmodule.so |
NewerOlder