Skip to content

Instantly share code, notes, and snippets.

View wilferrel's full-sized avatar

Wil Ferrel wilferrel

View GitHub Profile
@wilferrel
wilferrel / LogEntriesLogger.h
Created February 16, 2016 05:11 — forked from chrisrichards/LogEntriesLogger.h
Custom CocoaLumberjack logger for LogEntries.
//
// LogEntriesLogger.h
// lcinventories
//
// Created by Chris Richards on 17/11/2014.
// Copyright (c) 2014 Yellow Feather Ltd. All rights reserved.
//
#import "DDLog.h"
2013-09-28 15:54:13.369 iOSFontListTest[3753:60b] Font Family Names (
"Academy Engraved LET",
"Al Nile",
"American Typewriter",
"Apple Color Emoji",
"Apple SD Gothic Neo",
Arial,
"Arial Hebrew",
"Arial Rounded MT Bold",
Avenir,
@wilferrel
wilferrel / .gitignore
Created April 3, 2015 01:07
Objective-C gitignore
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
@wilferrel
wilferrel / AddressHelper.m
Created February 25, 2015 21:59
Get CLRegion from MKMapview
-(CLRegion*)getCLRegionFromMap:(MKMapView*)mapView{
MKMapRect mRect = mapView.visibleMapRect;
MKMapPoint neMapPoint = MKMapPointMake(MKMapRectGetMaxX(mRect), mRect.origin.y);
MKMapPoint swMapPoint = MKMapPointMake(mRect.origin.x, MKMapRectGetMaxY(mRect));
CLLocationCoordinate2D neCoord = MKCoordinateForMapPoint(neMapPoint);
CLLocationCoordinate2D swCoord = MKCoordinateForMapPoint(swMapPoint);
CLLocationDistance diameter = [self getDistanceFrom:neCoord to:swCoord];
CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:mapView.centerCoordinate radius:(diameter/2) identifier:@"mkMapWindow"];
return region;
@wilferrel
wilferrel / python_resources.md
Last active August 29, 2015 14:14 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@wilferrel
wilferrel / rails_resources.md
Last active August 29, 2015 14:14 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@wilferrel
wilferrel / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wilferrel
wilferrel / .gitignore
Last active August 29, 2015 14:13 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.3
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#