Skip to content

Instantly share code, notes, and snippets.

Zac West zacwest

Block or report user

Report or block zacwest

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zacwest
zacwest / baseball_standings.js
Last active Aug 25, 2019
Post Baseball standings to Slack. This code is awful, I don't know JavaScript, but it works. You probably need to figure out the emoticons for each team in your Slack.
View baseball_standings.js
var token = 'your-token-here'; // from https://erikberg.com/api for wildcard
var agent = 'Your/1.0 <user@agent>';
var fetch = require('node-fetch');
var hooks = {'https://hooks.slack.com/services/…': '#channel',
'https://hooks.slack.com/services/…': '#channel'};
var team_table = {
"los-angeles-dodgers": ":dodgerslogo:",
"san-francisco-giants": ":giants:",
@zacwest
zacwest / ios-font-sizes.swift
Last active Aug 19, 2019
iOS default font sizes - also available on https://www.iosfontsizes.com
View ios-font-sizes.swift
let styles: [UIFont.TextStyle] = [
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
for style in styles {
@zacwest
zacwest / ZSWFileTester.m
Created Jun 3, 2015
Saving optimal JPEGs
View ZSWFileTester.m
//
// ZSWFileTester.m
// Image Size Test
//
// Created by Zachary West on 3/4/14.
// Copyright (c) 2014 Zachary West. All rights reserved.
//
#import "ZSWFileTester.h"
@zacwest
zacwest / 392162A2.asc.txt
Last active Aug 29, 2015
My (Zachary West) PGP key.
View 392162A2.asc.txt
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
mQINBFG8B9YBEACg9VsIh1ipSO76jWzUxYu0O2n7CE/Gfssjil4ESyXyz58kGRDb
JAw1iF6+IIrxfEf8pKPLZTuVnEDfEFvvjOXM2vL7En7qFHQ7/IC9bzQJBLad4uWy
YMNggEXQ3BkD+G4t0df4HYSi52GOOYhjwwfBpMLPRx0oceZwhM3TU2uejmznBXSW
JaP825nYyxl1nlrQtidFdSsoCqaE+uM+KrgBVgefy/rRfjuKCH8N6zjpKejWjJCD
l2l1/iQ+Ungm/x6U5z1Yj79pMCZqAaNN9jYU94RU4HlIkl/dyNQMLVskH8NdFy1p
jgbW+zrmZyqr+ldTSlAYlc7vmTZhsmkXCfQ2NK4n2MQqamAZdWbHwjVuPT0D9PJb
kY9SUSFTcMei1WcGxWQEhwY13Ch6bAt0FNdFLh+s5aM734Va2AMPJlIbFOt6J17s
You can’t perform that action at this time.