Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
STATION,NAME,DATE,PRCP,TAVG,TMAX,TMIN
USW00013960,"DALLAS FAA AIRPORT, TX US",8/8/1939,0.03,,85,79
USW00013960,"DALLAS FAA AIRPORT, TX US",8/9/1939,0,,96,74
USW00013960,"DALLAS FAA AIRPORT, TX US",8/10/1939,0,,98,73
USW00013960,"DALLAS FAA AIRPORT, TX US",8/11/1939,0,,98,78
USW00013960,"DALLAS FAA AIRPORT, TX US",8/12/1939,0,,99,78
USW00013960,"DALLAS FAA AIRPORT, TX US",8/13/1939,0,,102,77
USW00013960,"DALLAS FAA AIRPORT, TX US",8/14/1939,0,,102,76
USW00013960,"DALLAS FAA AIRPORT, TX US",8/15/1939,0,,100,77
USW00013960,"DALLAS FAA AIRPORT, TX US",8/16/1939,0.02,,102,76
@jaysonlane
jaysonlane / FontListingOSX.swift
Created April 5, 2020 15:43 — forked from sergejp/FontListingOSX.swift
OSX list all available font families and fonts
///Lists all fonts available to the app, including embedded fonts
public static func listAvailableFontFamilies() {
let fontFamilies = NSFontManager.shared.availableFontFamilies
for (index, family) in fontFamilies.enumerated() {
print("\(index). \(family)")
}
}
public static func listAvailableFonts() {
let fonts = NSFontManager.shared.availableFonts
@jaysonlane
jaysonlane / FontListingOSX.swift
Created April 5, 2020 15:43 — forked from sergejp/FontListingOSX.swift
OSX list all available font families and fonts
///Lists all fonts available to the app, including embedded fonts
public static func listAvailableFontFamilies() {
let fontFamilies = NSFontManager.sharedFontManager().availableFontFamilies
for (index, family) in fontFamilies.enumerate() {
print("\(index). \(family)")
}
}
public static func listAvailableFonts() {
let fonts = NSFontManager.sharedFontManager().availableFonts
@jaysonlane
jaysonlane / gist:11f1a574227bcfc0b39d
Created March 8, 2015 22:05
UIColor -> Hex String Swift
extension UIColor {
// Creates a hex string from a UIColor
func hexString() -> NSString {
let colorSpace:CGColorSpaceModel = CGColorSpaceGetModel(CGColorGetColorSpace(self.CGColor))
let components = CGColorGetComponents(self.CGColor)
var r:CGFloat = 0.0, g:CGFloat = 0.0, b:CGFloat = 0.0, a:CGFloat = 0.0
if colorSpace.value == kCGColorSpaceModelMonochrome.value {
@jaysonlane
jaysonlane / af_vacuum.rb
Last active August 29, 2015 13:57
Remove AFNetworking from a static library
# AF Vacuum
# af_vacuum.rb
# Created by Jayson Lane on 3/7/14
# Copyright (c) 2014 Oven Bits
# This script accepts a static library input and removes all AF* object files and repackages the library.
# It will work with single architecture libraries (thin libs) or multiple architecture libraries (fat libs).
# HT to: http://atnan.com/blog/2012/01/12/avoiding-duplicate-symbol-errors-during-linking-by-removing-classes-from-static-libraries
amp = .1;
freq = 2.0;
decay = 2.0;
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}
@jaysonlane
jaysonlane / gist:5622275
Created May 21, 2013 18:53
"Corrupt"/Auth-less Twitter Accounts
if ([urlResponse statusCode] == 200){
NSLog(@"Good");
}
else if ([urlResponse statusCode] == 400 || [urlResponse statusCode] == 401) {
[_accountStore renewCredentialsForAccount:_selectedAccount completion:^(ACAccountCredentialRenewResult renewResult, NSError *error) {
NSLog(@"Renewal result: %d", renewResult);
//we don't actually need to inspect renewResult or error.
@jaysonlane
jaysonlane / KIImagePager.podspec
Created April 16, 2013 15:19
Podspec for KIImagePager
Pod::Spec.new do |s|
s.name = "KIImagePager"
s.version = "0.0.1"
s.summary = "This UIView Subclass is used to present Images loaded from the Web and is inspired from foursquare's Image Slideshow."
s.homepage = "https://github.com/kimar/KIImagePager"
s.screenshots = "https://a248.e.akamai.net/camo.github.com/b2e0850f2ba13ae6274777d1404f9544e9124154/687474703a2f2f6b696d61722e6769746875622e696f2f73637265656e73686f74732f6b69696d61676570616765722f312e706e67", "https://a248.e.akamai.net/camo.github.com/3d31a2286f061c3ff7265de5dcd68e507ae82ad5/687474703a2f2f6b696d61722e6769746875622e696f2f73637265656e73686f74732f6b69696d61676570616765722f322e706e67"
s.license = 'MIT'
s.license = {
:type => 'MIT',
:text => 'LICENSE'