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
git log --reverse --no-merges --author="AUTHOR" --name-only --pretty=format:"" |
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
IO.popen('pbcopy', 'w') { |f| f << `pbpaste`.split('\n').uniq.sort.join('\n') } |
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
@interface UIColor (Orchestra) | |
+ (UIColor *)fitnessBlue; | |
+ (UIColor *)vitalsRed; | |
+ (UIColor *)bodyMeasurementsGray; | |
@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
typedef NS_ENUM(NSUInteger, RoomState) { | |
RoomStateActive, | |
RoomStatePendingCompletion, | |
RoomStateCompleted | |
}; | |
@interface SCRoom : RLMObject | |
@property NSNumber<RLMInt> *serverId; | |
@property NSString *name; | |
@property NSString *providerName; |
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
post_install do |installer| | |
plist_buddy = "/usr/libexec/PlistBuddy" | |
installer.pods_project.targets.each do |target| | |
plist = "Pods/Target Support Files/#{target}/Info.plist" | |
version = `#{plist_buddy} -c "Print CFBundleShortVersionString" "#{plist}"`.strip | |
stripped_version = /([\d\.]+)/.match(version).captures[0] |
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
// | |
// TwitterTransitionAnimation.swift | |
// TransitionTreasury | |
// | |
// Created by DianQK on 12/20/15. | |
// Copyright © 2015 TransitionTreasury. All rights reserved. | |
// | |
import UIKit | |
/// Like Twitter Present. |
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
/* | |
Copyright (c) 2011-present, NimbusKit. All rights reserved. | |
This source code is licensed under the BSD-style license found at http://nimbuskit.info/license | |
Extracted from NimbusKit: Swift Edition at https://github.com/nimbuskit/swift | |
*/ | |
extension NSNotificationCenter { | |
/** |
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
require 'rubygems' | |
require 'mixpanel_client' | |
client = Mixpanel::Client.new( api_key: '',api_secret: '') | |
require 'base64' # co-located with the Base64 call below for clarity | |
User.all.each {|u| | |
data_to_import = {'event' => 'firstLogin2', 'properties' => {'distinct_id' => "#{u.id}", 'time' => "#{u.created_at}", 'token' => 'a9a9239a31dd7b497d0db66f861f8b33'}} |
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
namespace :db do | |
desc "Backs up heroku database and restores it locally" | |
task clong: :environment do | |
# Load the current environments database config | |
c = Rails.configuration.database_configuration[Rails.env] | |
# This gets around an issue with the Heroku Toolbelt | |
# https://github.com/sstephenson/rbenv/issues/400#issuecomment-18742700 | |
# https://github.com/sstephenson/rbenv/issues/400#issuecomment-18744931 | |
Bundler.with_clean_env do |
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
- (void)focusWithMode:(AVCaptureFocusMode)focusMode exposeWithMode:(AVCaptureExposureMode)exposureMode atDevicePoint:(CGPoint)point monitorSubjectAreaChange:(BOOL)monitorSubjectAreaChange | |
{ | |
dispatch_async([self sessionQueue], ^{ | |
AVCaptureDevice *device = [[self videoDeviceInput] device]; | |
NSError *error = nil; | |
if ([device lockForConfiguration:&error]) { | |
if ([device isFocusPointOfInterestSupported] && [device isFocusModeSupported:focusMode]) { | |
[device setFocusMode:focusMode]; | |
[device setFocusPointOfInterest:point]; | |
} |
NewerOlder