This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
import pandas as pd | |
def _map_to_pandas(rdds): | |
""" Needs to be here due to pickling issues """ | |
return [pd.DataFrame(list(rdds))] | |
def toPandas(df, n_partitions=None): | |
""" | |
Returns the contents of `df` as a local `pandas.DataFrame` in a speedy fashion. The DataFrame is | |
repartitioned if `n_partitions` is passed. |
import sys | |
import itertools | |
from z3 import * | |
# | |
# Original puzzle | |
# | |
''' | |
Five friends have their gardens next to one another, where they grow three kinds of crops: |
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2"\" \n"}' | redis-cli --pipe |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
In a terminal start a server.
$ python -m SimpleHTTPServer 8000
In another terminal set up the cgroups freezer.
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 | |
RUN apt-get update && apt-get install -y build-essential git cmake python3-pip libmpfr-dev libgmp-dev wget curl | |
RUN pip3 install pyyaml | |
RUN pip3 install typing | |
RUN cd && \ | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh |
A super short introduction how to call Nim code from R using the .C
interface.
I’m not an R user normally, so I googled and used this post as a
reference:
https://www.r-bloggers.com/three-ways-to-call-cc-from-r/
Let’s define a simple procedure, which we want Nim to do:
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
import nimline | |
import os | |
static: | |
let | |
halideDist = getenv("HALIDE_DIST") | |
assert halideDist != "" , "HALIDE_DIST environment variables not set!" | |
when defined windows: |
library(rayshader) | |
wave = matrix(0,200,200) | |
for(t in seq(1,360,1)) { | |
for(i in 1:200) { | |
for(j in 1:200) { | |
wave[i,j] = 50*sinpi(sqrt((i-100)^2 + (j-100)^2)/30-t/180) * exp(-(sqrt((i-100)^2 + (j-100)^2))/100) | |
} | |
} | |
wave %>% height_shade() %>% plot_3d(wave, soliddepth = -50, shadowdepth = -70, theta=315,zoom=1.1) |