Skip to content

Instantly share code, notes, and snippets.

View nobias's full-sized avatar

Tobias Nöbauer nobias

  • The Rockefeller University
  • New York City
View GitHub Profile
@nfaggian
nfaggian / pool.py
Last active July 30, 2021 17:12
Multiprocessing example
from __future__ import print_function
import multiprocessing
import ctypes
import numpy as np
def shared_array(shape):
"""
Form a shared memory numpy array.
@wesbos
wesbos / recent-places.md
Created October 29, 2015 14:04
Increase OSX "Recent Places

Increase the number of "Recent Places" that OSX shows in save dialogs. This allows you to quickly save files without having to dig through nested folders.

  1. Open your terminal and run defaults write .GlobalPreferences NSNavRecentPlacesLimit -int 10 && killall Finder
  2. OSX will now save 10, instead of the default. You won't see it take effect right away, but only after you save 5 more things.
  3. Enjoy your better life.

@mgmarino
mgmarino / Move files using Dropbox SDK.md
Last active October 19, 2021 03:11
Move all files to another folder using Dropbox python SDK

Move files from one folder to another using Dropbox python SDK

A script to move all files from one folder to another in dropbox. It expects a JSON file credentials.json in the same directory of the form:

{
  "accessToken": "ACCESS_TOKEN",
  "sourceFolder": "/src_folder",
  "destinationFolder": "/dest_folder"
}