This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MockingTest.m | |
// | |
#import <OCMock/OCMock.h> | |
@interface MockingTest : XCTestCase | |
@end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SmokeSpec.m | |
// | |
#define EXP_SHORTHAND | |
#import <Specta/Specta.h> | |
#import <Expecta/Expecta.h> | |
SpecBegin(SmokeTest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Control.Monad | |
import Data.List | |
-- https://code.google.com/codejam/contest/dashboard?c=2974486#s=p0 | |
-- Input and output with standard redirection operators | |
-- Unless otherwise indicated, all modules used are either bundled with | |
-- the Haskell Platform (http://hackage.haskell.org/platform/) or available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# A simple script that recurses through the current directory and runs | |
# git garbage collection on the bare repositories | |
Dir.glob("**/*.git") do |dir| | |
working_dir = File.expand_path dir | |
puts "#{dir} being garbage collected." | |
`cd #{working_dir};git gc --aggressive --prune --quiet` | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# A simple script that recurses through the current directory and runs | |
# git garbage collection on non-bare repositories | |
Dir.glob("**/.git") do |dir| | |
working_dir = File.dirname dir | |
puts "#{working_dir} being garbage collected." | |
`cd #{File.expand_path working_dir};git gc --aggressive --prune --quiet` | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSDictionary+JCSKeyMapping.h | |
// | |
// Created by Abizer Nasir on 06/08/2013. | |
// Copyright (c) 2013 TicketingHub. All rights reserved. | |
// | |
@import Foundation; | |
@interface NSDictionary (JCSKeyMapping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSDictionary+JCSKeyMapping.h | |
// | |
// Created by Abizer Nasir on 06/08/2013. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSDictionary (JCSKeyMapping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSData+Base64.h | |
// base64 | |
// | |
// Created by Matt Gallagher on 2009/06/03. | |
// Copyright 2009 Matt Gallagher. All rights reserved. | |
// | |
// This software is provided 'as-is', without any express or implied | |
// warranty. In no event will the authors be held liable for any damages | |
// arising from the use of this software. Permission is granted to anyone to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
context(@"when generating strings for uploading", ^{ | |
it(@"should return the points as a string", ^{ | |
NSString *pointsAsString = [_testPath pointsDataAsString]; | |
expect([pointsAsString isKindOfClass:[NSString class]]).to.beTruthy(); | |
}); | |
it(@"can recreate the points from this string", ^{ | |
NSString *pointsString = [_testPath pointsDataAsString]; | |
NSData *pointsData = [NSData dataWithBase64EncodedString:pointsString]; | |
expect(pointsData).to.equal(_testPath.points); |