Skip to content

Instantly share code, notes, and snippets.

@CharlesHarley
CharlesHarley / keybase.md
Created August 3, 2015 15:15
Keybase.io proof

Keybase proof

I hereby claim:

  • I am charlesharley on github.
  • I am charlesharley (https://keybase.io/charlesharley) on keybase.
  • I have a public key whose fingerprint is 4E51 5CDF 520D 8BC2 813E 6044 7E0A D4AF 912D 8296

To claim this, I am signing this object:

@CharlesHarley
CharlesHarley / OCMockObject+DelayedVerify.m
Created November 11, 2013 11:14
Category for OCMockObject that adds a verify method that takes a delay. Useful if the code you're testing is asynchronous. Avoid using delays in your tests if you can as it makes them brittle and slow but sometimes you just have no choice.
/**
* The MIT License (MIT)
*
* Copyright (c) 2013 Charles Harley
*
* 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,
@CharlesHarley
CharlesHarley / ScreenUtils.java
Last active March 24, 2023 08:26
Android utility class for working with the device screen.
/* Copyright 2012 Charles Harley
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,