Skip to content

Instantly share code, notes, and snippets.

View natowi's full-sized avatar
:octocat:
I may be slow to respond.

natowi

:octocat:
I may be slow to respond.
  • 06:16 (UTC +02:00)
View GitHub Profile
@JimHaughwout
JimHaughwout / sort_csv.py
Last active May 30, 2021 22:13
Sort CSV file by multiple columns, writing output to sorted CSV file.
#! /usr/bin/env python
"""
Sort CSV file by multiple columns, writing output to sorted CSV file.
Recommended for files saved in Windows CSV format.
Useful for situations where data file is too large for Excel.
: param source_file.csv : source csv file. Must end in .csv
: param sort column 1 : first sort in Excel-like column number (i.e., 1 ... N)
Use negative number to indicate descending sort,
Positive number to indicate ascending sort_step
@roachhd
roachhd / README.md
Last active May 29, 2025 16:27
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@juancarlospaco
juancarlospaco / sound_play_crossplatform.py
Last active June 28, 2021 20:59
Cross-platform Sound Playing with Standard Libs only, No Sound file is required, No install is required, Python2 / Python3.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os, sys
from tempfile import gettempdir
from subprocess import call
def beep(waveform=(79, 45, 32, 50, 99, 113, 126, 127)):
@alvinwan
alvinwan / requirements.txt
Last active December 7, 2022 07:28
Converts mesh into a point cloud - accepts .pkl,.off,.xaml,.obj etc.
docopt==0.6.2
trimesh==2.10.18
@nikolaseu
nikolaseu / lensCalculator.m
Created October 29, 2017 17:09
Lens focal length calculator
% required dimensions
standoff = 500; % distance from camera, in [mm]
fovWidth = 320; % width of field of view, in [mm]
fovHeight = 10; % height of FOV, in [mm]
% sensor resolution
sensorXRes = 4096; % widht
sensorYRes = 3072; % height
% pixel physical size
@simogasp
simogasp / travisDeploy.md
Created January 15, 2018 17:16
Setting up Travis deploy

Setting up Travis deploy

  1. Create an OAuth token from your profile settings
  • under Developer select Personal access token
  • generate a new one and copy it to the clipboard
  1. On the travis page of the repository, go to settings --> More Options->Settings
  2. Set a new Environment Variable called eg GITHUB_RELEASE_API_KEY or whatever u like, and copy the key
  3. In the .travis.yaml file, under add something like that
before_deploy:
 - ARCHIVE_BASE_PATH=${INSTALL_DIR}
@Tony607
Tony607 / tensorflow-object-detection-training-colab.ipynb
Created February 12, 2019 02:50
tensorflow-object-detection-training-colab.ipynb
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.

Introduction

The Openscan project https://openscan.eu is a really cool 3D printing and scanning project. It systematically takes a series of photos that can be stitched together into a 3D model using photogrammetry. Thomas Megel the creator of OpenScan has a really cool cloud-based service that can take the raw photos and turn them an STL model for you. You can read more about it here: https://github.com/OpenScanEu/OpenScan/blob/master/temp/README.md

Another way to take advantage of photogrammetry is using AliceVision's Meshroom. Prusa Research did a nice explainer/tutorial in this blog post: https://blog.prusaprinters.org/photogrammetry-2-3d-scanning-simpler-better-than-ever_29393/

The main "catch" with Meshroom is that it requires CUDA and hence an NVIDIA graphics card. It didn't have an NVIDIA card (and didn't want to figure out how to run in the cloud) but I did have a Jetson Nano 2GB https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/jetson-nano/education-projects/

The documentati