Skip to content

Instantly share code, notes, and snippets.

@artemstepanenko
artemstepanenko / UIImage+Retina4.h
Created September 18, 2012 14:04 — forked from bstahlhood/UIImage+Retina4.h
Swizzled UIImage imageNamed for iPhone 5
//
// UIImage+Retina4.h
// StunOMatic
//
// Created by Benjamin Stahlhood on 9/12/12.
// Copyright (c) 2012 DS Media Labs. All rights reserved.
//
@interface UIImage (Retina4)
@artemstepanenko
artemstepanenko / NSOperationQueue+Completion.h
Created November 23, 2013 21:57
This NSOperationQueue's category solves very simple task. Now you can add completion callback to NSOperationQueue instance.
//
// NSOperationQueue+Completion.h
// QueueTest
//
// Created by Artem Stepanenko on 23.11.13.
// Copyright (c) 2013 Artem Stepanenko. All rights reserved.
//
typedef void (^NSOperationQueueCompletion) (void);
//
// CatalogPresenterTests.m
// PresentationUnitTestingTests
//
// Created by Artem Stepanenko on 17/08/16.
// Copyright © 2016 Artem Stepanenko. All rights reserved.
//
#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
@artemstepanenko
artemstepanenko / convert.js
Created June 30, 2017 09:45
Conversion of a Google's timestamp to a formatted date
import moment from 'moment';
const convert = (googleTimestamp, format) => {
return moment(new Date(1899, 12, 30)).add(googleTimestamp, 'd').format(format);
}
export default convert;