This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function scroll | |
set state (defaults read NSGlobalDomain AppleShowScrollBars) | |
if [ $state = "Automatic" ] | |
set state "Always" | |
echo "Scrollbars set to classic (always visible)" | |
else | |
set state "Automatic" | |
echo "Scrollbars set to normal macOS (autohide, zero width)" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Neovim-only, use in true color terminal | |
" Vundle config | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" Vundle vundles | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'ap/vim-css-color' | |
Plugin 'hail2u/vim-css3-syntax' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CoreFoundation/CoreFoundation.h> | |
#include <CoreGraphics/CoreGraphics.h> | |
#include <CoreText/CoreText.h> | |
#include <ft2build.h> | |
#include FT_FREETYPE_H | |
#include FT_TRUETYPE_TABLES_H | |
#include FT_SFNT_NAMES_H | |
#include FT_TRUETYPE_IDS_H | |
#ifndef FT_SFNT_OS2 | |
#define FT_SFNT_OS2 ft_sfnt_os2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
G_FONTS_DIR=gfonts | |
NODE_CANVAS_DIR="./node-canvas" | |
mkdir -p pngs | |
find $G_FONTS_DIR -name '*.ttf' | while read i; do | |
echo $i; | |
cat <<EOT | node | |
var path = require('path'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pango/pango.h> | |
#include <glib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
char* | |
get_arg_string(int argc, char** argv) | |
{ | |
size_t total_len = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this in a directory of PNGs (or change *.png to *.jpg, *.gif, etc) | |
# It will make SVGs with the same name, at the same size as the PNGs | |
# | |
# DEPENDENCIES: imagemagick, potrace, mkbitmap (included in potrace) | |
# Adjust the following settings to get better results: | |
OPTTOLERANCE=.2 # 0 for angular images | |
CURVETHRESHOLD=1 # larger for less segments |
NewerOlder