Skip to content

Instantly share code, notes, and snippets.

@chrissimpkins
chrissimpkins / osxiconsrc
Created April 1, 2016 21:47
Hide and show desktop icon aliases for OS X
alias killicons='defaults write com.apple.finder CreateDesktop -bool false;killall Finder;'
alias showicons='defaults write com.apple.finder CreateDesktop -bool true;killall Finder;'
@chrissimpkins
chrissimpkins / fpfix.py
Last active August 6, 2017 02:23
Converts the isFixedPitch post table setting in a font to a value of 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
### DEPENDENCY:
# fontTools Python library
# ==> https://github.com/fonttools/fonttools
# ==> Install: pip install fonttools
### USAGE:
# python fpfix.py [filepath to font]
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import time
from progressbar import AnimatedMarker, Bar, BouncingBar, Counter, ETA, \
FileTransferSpeed, FormatLabel, Percentage, \
ProgressBar, ReverseBar, RotatingMarker, \
SimpleProgress, Timer
@chrissimpkins
chrissimpkins / config.log
Created August 29, 2017 16:57
config.log for ttfautohint-build run on OS X 10.10
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ttfautohint configure 1.7, which was
generated by GNU Autoconf 2.69. Invocation command line was
@chrissimpkins
chrissimpkins / stddef.h
Last active August 30, 2017 14:42
stddef.h examination for gnulib ttfautohint build bug (OS X 10.10 - Travis default build)
/*===---- stddef.h - Basic type definitions --------------------------------===
*
* Copyright (c) 2008 Eli Friedman
*
* 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:
@chrissimpkins
chrissimpkins / todo_py_source.py
Last active October 4, 2017 16:18
TODO logs Python source example
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# file: pydoc.py
# TODO this needs a lot of this and that
class PythonThreeDocObj(object):
...
# TODO more things that I need to do
@chrissimpkins
chrissimpkins / README-Template.md
Created October 6, 2017 19:58 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@chrissimpkins
chrissimpkins / cythonrun.py
Created January 11, 2016 19:32 — forked from brentp/cythonrun.py
run a cython .pyx file
#!/usr/local/bin/python
"""
build and run a .pyx file with dependencies.
runs a main() function if it exists.
automatically detects 'cimport numpy'
and includes headers. other includes/libs specificed by command-line args.
%prog [options] source.pyx dep1.c dep2.c
@chrissimpkins
chrissimpkins / q.c
Created February 1, 2018 04:07
Q (U+0051) specimen in C
#include "q.h"
/*
* Qanat Qintar Quahog
*/
#define QUAD 4
int is_a_q(const char *path)
{
@chrissimpkins
chrissimpkins / Preferences.sublime-settings.json
Last active April 17, 2018 19:24
How to Use Hack in Sublime Text
{
"font_face": "Hack",
"font_size": 10
}