Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
| from collections import Counter, OrderedDict | |
| import pysam | |
| from Bio import SeqIO | |
| from Bio.Seq import Seq | |
| from Bio.SeqRecord import SeqRecord | |
| def bam2consensus( | |
| ref_fname, bam_fname, ac_threshold, af_threshold, out_fname): | |
| consensus = OrderedDict() |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- | |
| BBEdit Language Module for CoffeeScript | |
| Put this file in | |
| ~/Library/Application Support/BBEdit/Language Modules | |
| or equivalent. | |
| Based off of the examples shipped in the BBEdit SDK. |
| sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES; | |
| sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled; | |
| // by the way, you need to logout and log back in for this to take effect. Or at least that's what | |
| // Quartz Debug says. Who knows, maybe it's lying? | |
| // P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging | |
| // back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from. |
#Techniques for Anti-Aliasing @font-face on Windows
It all started with an email from a client: Do these fonts look funky to you? The title is prickly.
The font in question was Port Lligat Sans from Google Web Fonts.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.0</real> | |
| <key>Green Component</key> | |
| <real>0.0</real> |
| #!/usr/bin/env ruby | |
| # runtime bundle/vim-pathogen/autoload/pathogen.vim | |
| # Insert the above line to .vimrc for pathogen to work | |
| # Pathongen is included in this script so that it will be auto-updated | |
| # Sparkup need manual treatment | |
| # git://github.com/kogakure/vim-sparkup.git | |
| # https://bitbucket.org/ns9tks/vim-fuzzyfinder/ | |
| # https://bitbucket.org/ns9tks/vim-autocomplpop/ |
| #!/usr/bin/env bash | |
| # A script for changing Mac OS X's default fonts | |
| # Author: Jaeho Shin <[email protected]> | |
| # Created: 2011-07-22 | |
| ### MacOSXDefaultFontFallbacksChanger ######################################### | |
| ## Mac OS X 기본 글꼴 설정 변경 도구 – 1.2.1 (2012-08) | |
| ## http://netj.github.com/MacOSXDefaultFontFallbacksChanger | |
| ############################################################################### |
| <?php | |
| // DayOne is a nice little journaling app for iOS / Mac (available via App Store). | |
| // This code requires php_class_lib available here: https://github.com/jsjohnst/php_class_lib | |
| include('php_class_lib/classes/parsers/plist/PlistParser.inc'); | |
| // grab filenames for all of your journal entries | |
| $entries = array(); | |
| if ($handle = opendir('/path/to/your/Journal.dayone/entries')) { |