Skip to content

Instantly share code, notes, and snippets.

View glebkuznetsov's full-sized avatar

Gleb Kuznetsov glebkuznetsov

View GitHub Profile
@glebkuznetsov
glebkuznetsov / tmux-mlpe-dev.sh
Created March 13, 2018 19:53
Shell script that creates tmux with 2 named windows and launches docker. Commonly used for MLPE dev
#!/bin/sh
# Customizable
SESSION_NAME='aws-mlpe'
# Default filesystem setup
cd ~/notebooks/mlpe-gfp-pilot/
# Create session and name first window git
tmux new-session -s $SESSION_NAME -n git -d
@glebkuznetsov
glebkuznetsov / query-crypto-price-apps-script.js
Created January 15, 2018 01:31
Google Apps Script to query crypto prices from cryptocompare.com API
function updateAssetPrices(sheetTab) {
var currency = sheetTab.getRange('J1').getValue();
var response = UrlFetchApp.fetch(
'https://min-api.cryptocompare.com/data/price?fsym=' + currency + '&tsyms=USD')
var jsonData = response.getContentText();
var data = JSON.parse(jsonData);
sheetTab.getRange('J2').setValue(data.USD);
sheetTab.getRange('J3').setValue(
Utilities.formatDate(new Date(), "EST", "yyyy-MM-dd'T'HH:mm:ss'Z'"));
}
@glebkuznetsov
glebkuznetsov / lottery.ipynb
Last active January 14, 2016 01:25
Lottery Chances
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.
@glebkuznetsov
glebkuznetsov / 2014_05_21_design_experiment_3_primers.ipynb
Created July 9, 2014 22:19
Automated MascPCR Primer Design Prototype
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@glebkuznetsov
glebkuznetsov / pandas_join
Last active August 29, 2015 13:56
WTF is pandas .join() useful for?
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{