Skip to content

Instantly share code, notes, and snippets.

@tuzz
tuzz / github.css
Last active September 23, 2025 03:38
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@robinsloan
robinsloan / langoliers.rb
Last active February 27, 2025 02:44
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@adamgit
adamgit / .gitignore
Last active September 13, 2025 22:55
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@ttscoff
ttscoff / Mindjet2nvALT.applescript
Created September 28, 2012 20:10
Creates nvALT notes from topics in a MindManager mind map, with links to open them from the map.
(*
mindjet2nvalt
Goes through selected nodes in MindJet Manager and creates
nvALT notes for them, adding a rocket icon to each node which
will locate the note when clicked. If the node has a note
attached, it is used as the content of the nvALT note.
Copyright 2012 Brett Terpstra
License is granted to use and modify for personal use
@aquarius
aquarius / Readme.md
Last active October 2, 2020 10:16
Default Layout Offsets in MindNode

Change the spacing of the Layout Engine

Using the commands below you can optimized the spacings in our layout engine. For example in left/right layout you can get a narrower horizontal spacing by changing the MNDefaultsDefaultStyleNodeWidthOffset key. To do this:

  1. Close MindNode
  2. Open Terminal and paste in the commend. e.g. defaults write com.ideasoncanvas.mindnode.macos MNDefaultsDefaultStyleNodeWidthOffset 30
  3. Launch Mindnode again
@patrikjohansson
patrikjohansson / read.rb
Created October 16, 2012 00:23
Convert history.plist to csv
# encoding: UTF-8
####
# Converts Safaris history file (history.plist) into csv (tab)
# Dependency: nokogiri
# Usage: ruby read.rb input.plist output.csv
###
require "rubygems"
require "nokogiri"
@ttscoff
ttscoff / searchlink.rb
Last active February 20, 2025 10:07
SearchLink creates Markdown links from automatic searches based on special syntax.
@magnusdahlstrand
magnusdahlstrand / Documents folder layout
Created October 26, 2012 12:10
Docpad - setup for multiple languages
/src
/documents
/articles
/gallery
/de
/articles
/gallery
/es
/articles
/gallery
@michaeluhl
michaeluhl / gistcheck.py
Created November 9, 2012 02:25
A small client to allow pythonista to repeated save/load to the same gist.
import base64
import console
import editor
import json
import keychain
import os.path
import pickle
import re
import urllib2