Skip to content

Instantly share code, notes, and snippets.

@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@kates
kates / search_and_replace.sh
Last active August 31, 2019 05:22
bulk search and replace with the silver searcher, awk, sed and xargs
ag "sometext" --nogroup | awk '{print substr($1,1,index($1,":")-1);}' | xargs -I {} sed -i .bak -e 's/sometext/anothertext/g' {}
@omz
omz / FileTransfer.py
Last active September 6, 2024 01:50
File Transfer script for Pythonista (iOS)
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from
# and to Pythonista via local Wifi.
# It starts a basic HTTP server that you can access
# as a web page from your browser.
# When you upload a file that already exists, it is
# renamed automatically.
# From Pythonista's settings, you can add this script
# to the actions menu of the editor for quick access.
@amcgregor
amcgregor / lessons.textile
Created November 16, 2010 00:02
Lessons learned from #python on irc.freenode.net regarding support.

Lessons Learned from #python

Over the years myself and others have attempted to utilize the #python support channel on irc.freenode.net when solving problems. For the most part the time spent explaining the problem, the rationale behind the design, uncovering the exact question to ask to get the desired (helpful) response, and personality conflicts have resulted in more frustration than problems solved. So I’m writing up this lessons file in an effort to not repeat the past mistakes in supporting my own users.

What it really comes down to, other than wasted development hours, is not having to explain to your boss that your team should rewrite 30% of your project because some random git in a chat room said you were Doing it Wrong™.

Alternate Support Channel

In an effort to produce a place where individuals can ask questions without fear of being directly or indirectly called an idiot, I’ve opened #python-friendly, the friendly place to discuss Python, ask questions, and get helpful answers. #pyt