This file contains hidden or 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
// | |
// LoggingPrint.swift | |
// | |
import Foundation | |
/** | |
Prints the filename, function name, line number and textual representation of `object` and a newline character into | |
the standard output if the build setting for "Active Complilation Conditions" (SWIFT_ACTIVE_COMPILATION_CONDITIONS) defines `DEBUG`. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |