Skip to content

Instantly share code, notes, and snippets.

View tucan9389's full-sized avatar
🎯
Focusing

tucan9389 tucan9389

🎯
Focusing
View GitHub Profile
@Curt-Park
Curt-Park / financial-data-analysis.ipynb
Last active September 1, 2021 01:42
financial-data-analysis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ScottTodd
ScottTodd / mlir_emscripten.md
Last active October 21, 2023 04:52
Building MLIR through Emscripten
@vreality64
vreality64 / clean-up.sh
Created November 28, 2019 01:39
Clean up node_modules directory
# Show all node_modules folder information in current working directory
alias show-all-node-modules="find . -name 'node_modules' -type d -prune -print | xargs du -chs"
# Remove all node_modules folder in current working directory
alias remove-all-node-modules="show-all-node-modules && find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;"
@tucan9389
tucan9389 / gif_convertor.sh
Last active February 18, 2020 08:07
This script converts video to gif by using ffmpeg
# Usage:
# command
# `sh gifconverter.sh /Users/canapio/Desktop/turtle_DEMO_004_4.MP4`
# on mac
# some configuration
width="240"
fps="12"
# path setup
@mkocabas
mkocabas / coco.sh
Created April 9, 2018 09:41
Download COCO dataset. Run under 'datasets' directory.
mkdir coco
cd coco
mkdir images
cd images
wget http://images.cocodataset.org/zips/train2017.zip
wget http://images.cocodataset.org/zips/val2017.zip
wget http://images.cocodataset.org/zips/test2017.zip
wget http://images.cocodataset.org/zips/unlabeled2017.zip
@lattner
lattner / TaskConcurrencyManifesto.md
Last active November 15, 2024 05:45
Swift Concurrency Manifesto
@omimo
omimo / create_hellotensor.py
Last active September 26, 2023 08:37
A simple example for saving a tensorflow model and preparing it for using on Android
# Create a simple TF Graph
# By Omid Alemi - Jan 2017
# Works with TF <r1.0
import tensorflow as tf
I = tf.placeholder(tf.float32, shape=[None,3], name='I') # input
W = tf.Variable(tf.zeros_initializer(shape=[3,2]), dtype=tf.float32, name='W') # weights
b = tf.Variable(tf.zeros_initializer(shape=[2]), dtype=tf.float32, name='b') # biases
O = tf.nn.relu(tf.matmul(I, W) + b, name='O') # activation / output
@rgl
rgl / wait_for_http_200.sh
Last active October 30, 2024 23:44
Wait for an HTTP endpoint to return 200 OK with Bash and curl
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9000)" != "200" ]]; do sleep 5; done'
# also check https://gist.github.com/rgl/c2ba64b7e2a5a04d1eb65983995dce76