You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Working
Alex Liberzon
alexlib
Working
Experimental fluid mechanics researcher trained as a mechanical engineer, who believes in open source and open science
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
How to Setup Automatic Uploads to Anaconda from Travis CI in 15 minutes
How to Setup Automatic Uploads to Anaconda from Travis CI in 15 minutes
TL;DR: Edit .travis.yaml to install Anaconda and to run conda_upload.sh after testing. Edit meta.yaml to take in the environmental variables $VERSION and $CONDA_BLD_PATH. Create conda_upload.sh which sets the needed environmental variables, builds the tar archive, and uploads it to Anaconda. Finally edit some stuff on your Anaconda and Travis CI account so they can talk.
Intro
The following steps will detail how to automatically trigger Anaconda builds and uploads from Travis CI. This will only upload successful builds in the master branch and if there are multiple commits in a single day, it'll only keep the latest one. Both of these settings can easily be changed.
Edit .travis.yaml
First, edit .travis.yml so that it installs Anaconda.
The Dockerfile used by the new Datasette Publish to generate images that are smaller than 100MB
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 package a conda environment (Requirement.txt and virtual environment)
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
If you're intersted in software you've probably heard about deep learning and even done some reading or played around with it. But unless you have a desktop for high-end gaming you've probably found that running all these new CUDA-based parallel-GPU computing tools is just painfully slow.
That's what happened to me. So, it's time to spin up an EC2 on AWS and use someone else's hardware. This is just a basic introduction into how I did that, from creating an AWS dev account to installing some fun Python deep learning projects on GitHub. If you follow along, you'll be in a good position to install whatever other tools you want (Caffe, for instance) and get deep.
Set up AWS Account
If you haven't already, you need to set up your Amazon AWS profile:
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
Simple Google Drive backup script with automatic authentication for Google Colaboratory (Python 3)
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
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.