Skip to content

Instantly share code, notes, and snippets.

View geoffreysteven's full-sized avatar

Geoffrey Shmigelsky geoffreysteven

View GitHub Profile
@bogdan-kulynych
bogdan-kulynych / install-cuda-10-bionic.sh
Last active October 17, 2024 23:17
Install CUDA 10 on Ubuntu 18.04
# WARNING: These steps seem to not work anymore!
#!/bin/bash
# Purge existign CUDA first
sudo apt --purge remove "cublas*" "cuda*"
sudo apt --purge remove "nvidia*"
# Install CUDA Toolkit 10
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
@chih-chun-chang
chih-chun-chang / pca.py
Created June 3, 2018 10:20
PCA (Data Augmentation) with Scikit-Image
import numpy as np
from skimage import io, transform
# Using one image
image_filenames = 'image.jpg'
# Read the image
image = io.imread(images_filenames)
# Resize image (256 x 256 x 3) and turn the image matrix of m x n x 3 to lists of rgb
@learner-long-life
learner-long-life / Rinkeby.md
Last active August 30, 2022 22:32
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active April 15, 2025 22:49
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

Git Cheat Sheet

Commands

Getting Started

git init

or

@betawax
betawax / gist:919102
Created April 14, 2011 08:06
Format a NSDate according to the current locale
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
NSString *localizedDateFormat = [NSDateFormatter dateFormatFromTemplate:@"MMMM d, y" options:0 locale:[NSLocale currentLocale]];
[dateFormatter setDateFormat:localizedDateFormat];
NSString *dateString = [dateFormatter stringFromDate:date];
[dateFormatter release];
// dateString will be "April 19, 2010" for US and "19. April 2010" for DE locale