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
""" | |
Snippet generators for serializing models (scikit-learn and PyTorch) into a | |
copy-pasteable get_model() function string. The generated function is self-contained | |
and can be pasted into another file to reconstruct the model. | |
Features: | |
- Strong typing and clear APIs. | |
- Optional compression for smaller embedded payloads (zlib, gzip, bz2, lzma, none). | |
- For scikit-learn: uses pickle-compatible bytes (cloudpickle for dumping if available). | |
- For PyTorch: prefers TorchScript (self-contained), then full-model pickle with |
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 rizkiarm/tbp | |
MAINTAINER Muhammad Rizki A.R.M <rizki@rizkiarm.com> | |
# Download and setup libDAI | |
WORKDIR '/root/' | |
RUN wget https://staff.fnwi.uva.nl/j.m.mooij/libDAI/libDAI-0.3.2.zip && unzip libDAI-0.3.2.zip && rm libDAI-0.3.2.zip | |
WORKDIR '/root/libDAI-0.3.2' | |
RUN cp Makefile.LINUX Makefile.conf | |
RUN make |
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 clojure | |
RUN useradd -ms /bin/bash docker | |
RUN mkdir /src && chown docker:docker /src | |
USER docker | |
WORKDIR /src | |
RUN git clone https://bitbucket.org/probprog/anglican-user.git /src && lein deps |
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 ubuntu:bionic | |
# Install dependencies | |
RUN apt update && apt install gnupg ca-certificates git wget fuse libglib2.0-0 -y | |
# Add docker user | |
RUN useradd -ms /bin/bash docker | |
# Install .NET Core | |
RUN apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229CF |
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
#!/usr/bin/env bash | |
ENV_PATH="$(dirname "$(dirname "$(which pip)")")" | |
SYSTEM_VIRTUALENV="$(which -a virtualenv|tail -1)" | |
BAD_ENV_PATHS="/usr/local" | |
echo "Ensure the root of the broken virtualenv:" | |
echo " $ENV_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
#/bin/bash | |
NAMESPACE=dockerenv- | |
NAME=$NAMESPACE$2 | |
nargs="$#" | |
params_check(){ | |
if test $nargs -ne $1; then | |
echo $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
FROM rizkiarm/nvidia-pysc2 | |
MAINTAINER Muhammad Rizki A.R.M <rizki@rizkiarm.com> | |
################################################################################ | |
# Lifted directly from Anaconda 3 Dockerfile: | |
# https://github.com/ContinuumIO/docker-images/blob/master/anaconda3/Dockerfile | |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | |
ENV PATH /opt/conda/bin:$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
// JSONP Lib: https://github.com/sobstel/jsonp.js | |
if(typeof app !== 'undefined'){ | |
var $jsonp = (function(){ | |
var that = {}; | |
that.send = function(src, options) { | |
var callback_name = options.callbackName || 'callback', | |
on_success = options.onSuccess || function(){}, | |
on_timeout = options.onTimeout || function(){}, |
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
var playlisted_n = 0; | |
var playlisted_i = 0; | |
var playlisted = []; | |
$('.banner,.nav__item').css('border-top','2px solid #fff'); | |
$('.progress-playlist').remove(); | |
$('body').append('<div class="progress-playlist" style="position: fixed;width: 100%;top: 0px;left: 0px;"><div style="background-color: #E62B1E;width: 0%;height: 2px;transition:width 0.5s;"></div></div>'); | |
$('.playlist-talks__play.playlist-talks__thumb').each(function(){ | |
playlisted_n++; | |
$.get($(this).attr('href'), function(data){ | |
var targetScript; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |