Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Inspired by dirtags.sh from: http://ctags.sourceforge.net/faq.html#15
# Using "Approach 3" written in the website, but there are two changes.
# 1. Type one command and you are done. For current dir: $ dirtags_mac.sh .
# I'm pretty sure you don't want do this at $HOME, so handle with care!
# 2. Use ctags in MacVim.app directory. Do not use the Mac default. It sucks.
# Please do not forget to chmod +x
CMDNAME=`basename $0`
#! python2
# APN file local installer
# Creates local HTTP server to serve APN file.
# Place APN file in the same directory of this script.
# If "address already in use" shown, re-run the script.
#
# Based on: File Transfer for Pythonista
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from
import os
import sys
import pickle
import console
import editor
import dropboxlogin # this code can be found here https://gist.github.com/4034526
STATE_FILE = '.dropbox_state'
@KainokiKaede
KainokiKaede / dropboxloginv2.py
Last active October 10, 2017 07:33 — forked from omz/dropboxlogin.py
dropboxlogin
# YOU NEED TO INSERT YOUR APP KEY AND SECRET BELOW!
# Go to dropbox.com/developers/apps to create an app.
from __future__ import absolute_import
from __future__ import print_function
app_key = 'YOUR_APP_KEY'
app_secret = 'YOUR_APP_SECRET'
import webbrowser
import dropbox
@KainokiKaede
KainokiKaede / DropboxSyncv2.py
Last active September 19, 2018 14:48 — forked from wrenoud/DropboxSync.py
DropboxSync
from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import pickle
import console
import editor
import dropbox
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder