Skip to content

Instantly share code, notes, and snippets.

View bdbergeron's full-sized avatar

Brad Bergeron bdbergeron

View GitHub Profile
@bdbergeron
bdbergeron / The Technical Interview Cheat Sheet.md
Created March 7, 2017 18:10 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@bdbergeron
bdbergeron / Breakpoints_v2.xcbkptlist
Created November 21, 2016 21:23
My personal Xcode User Breakpoints
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "2"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
@bdbergeron
bdbergeron / DiscogsAPIClient.swift
Last active August 29, 2015 14:22
BDBOAuth1Manager POST with JSON payload
//
// DiscogsSessionManager.swift
//
// Copyright (c) 2015 Bradley David Bergeron
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
@bdbergeron
bdbergeron / JsonRpcRequest.java
Created August 14, 2014 21:02
JSON-RPC and Volley
import com.android.volley.Response;
import com.android.volley.toolbox.JsonRequest;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.UUID;
public abstract class JsonRpcRequest<T> extends JsonRequest<T> {
private static final String JSONRPC_PARAM_ID = "id";
@bdbergeron
bdbergeron / gist:10310849
Created April 9, 2014 20:26
Pods.xcconfig
post_install do |installer|
puts 'Updating project to 64 Bit'
installer.project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ARCHS'] = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"
end
end
end
@bdbergeron
bdbergeron / ALAssetName
Last active December 27, 2015 04:39
Get a nicely formatted filename for an ALAsset
- (NSDateFormatter *)syncDateFormatter
{
static NSDateFormatter *_syncDateFormatter;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_syncDateFormatter = [NSDateFormatter new];
_syncDateFormatter.dateFormat = @"yyyy-MM-dd HH.mm.ss";
_syncDateFormatter.locale = [NSLocale currentLocale];
});
return _syncDateFormatter;