Skip to content

Instantly share code, notes, and snippets.

View Pinwheeler's full-sized avatar

Anthony Dreessen Pinwheeler

View GitHub Profile
@Pinwheeler
Pinwheeler / resume.json
Last active August 18, 2023 16:24
resume.json
{
"meta": { "theme": "eloquent" },
"basics": {
"name": "Anthony Dreessen",
"label": "Full Stack Senior Software Engineer",
"email": "anthonydreessen@gmail.com",
"phone": "(425) 205-1032",
"summary": "Full stack developer in multiple stacks. If you need it done, I can do it. I enjoy creating simple interfaces. Developer UX is my priority.",
"location": {
"city": "Seattle",
async start() {
this.AppState.addEventListener('change', this._genericStateChange.bind(this))
Linking.addEventListener('url', this.handleOpenURL.bind(this))
await this.updateApp() // async call out to CodePush that updates the app if necessary
const credentialsRepository = new CredentialsRepository()
let credentials = await credentialsRepository.initialize(Keychain)
if (!credentials) {
return Navigation.setRoot({root: this._loggedOutRoot()})
}
let initialURL = await Linking.getInitialURL()
@Pinwheeler
Pinwheeler / index.js
Created June 11, 2019 20:50
handleOpenURL
async handleOpenURL(event) {
const route = UniversalRoutes.findLink(event.url, new APIClient())
if (this.AppState.currentState === 'active') {
let options = await route.navigationOptions()
Navigation.setStackRoot('CENTER_STACK', {component: options})
} else {
const f = nextState => {
// allows us to not have to hold on to route as state
this.AppState.removeEventListener('change', f)
return this._universalLinksStateChange(nextState, route)
@Pinwheeler
Pinwheeler / index.js
Last active June 11, 2019 20:48
State Change
_genericStateChange(nextAppState) {
this._stateChangeFromSource(nextAppState, 'generic')
}
async _universalLinksStateChange(nextAppState, route) {
await this._stateChangeFromSource(nextAppState, 'universal_link', route)
}
async _stateChangeFromSource(nextAppState, source, route = null) {
if (nextAppState === 'active') {
@Pinwheeler
Pinwheeler / AppDelegate.m
Last active June 11, 2019 18:51
React Linking Manager
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
@Pinwheeler
Pinwheeler / README.md
Last active March 17, 2016 22:21
Beautiful Xcode Dark Theme
- (void)awakeFromNib {
if (self.class.themeColor) {
self.textColor = self.class.themeColor;
}
if (self.class.themeFont) {
self.font = self.class.themeFont;
}
}
<%= form_for :monster do |f| %>
<% if @monster.errors.any? %>
<div id="error_explanation">
<h2>
<%= pluralize(@monster.errors.count, "error") %> prohibited this monster from being saved:
</h2>
<ul>
<% @monster.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
@Pinwheeler
Pinwheeler / dropdown.js
Created December 30, 2014 17:08
IE8 Compatible Dropdown
$(document).ready(function() {
createDropDown();
$(".dropdown dt a").click(function(e) {
e.preventDefault();
var dropdown_id = '#'+Page on parentelement.parentelement.id;
$(dropdown_id + " ul").toggle();
});
$(document).bind('click', function(e) {
var $clicked = $(e.target);
@Pinwheeler
Pinwheeler / css_resources.md
Last active August 29, 2015 14:08 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides