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
Sub SumIfHightlight() | |
' | |
' SumIfHightlight Macro | |
' | |
' Keyboard Shortcut: Ctrl+Shift+H | |
' | |
Dim sRange, sCrit, randColor | |
Dim cellFormula | |
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
mport Foundation | |
import Security | |
public struct KeychainStore { | |
let keychainQueryable: KeychainQueryable | |
public init(keychainQueryable: KeychainQueryable) { | |
self.keychainQueryable = keychainQueryable | |
} |
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
import UIKit | |
import CoreServices | |
extension UIImage { | |
static func createGIF(with images: [UIImage], loopCount: Int = 0, frameDelay: Double) -> Data? { | |
let fileProperties = [kCGImagePropertyGIFDictionary as String: [kCGImagePropertyGIFLoopCount as String: loopCount]] as CFDictionary | |
let frameProperties = [kCGImagePropertyGIFDictionary as String: [kCGImagePropertyGIFDelayTime as String: frameDelay]] as CFDictionary | |
let cgImages = images.compactMap { $0.cgImage } | |
let url = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("animated.gif") |
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
#!/bin/bash | |
# According to https://developer.apple.com/library/ios/#qa/qa1686/_index.html | |
# Install ImageMagick with MacPort: sudo port install ImageMagick | |
convert $1 -resize 512x512 iTunesArtwork.png # Ad Hoc iTunes | |
convert $1 -resize 144x144 Icon-72@2x.png # Home screen for "The New iPad" | |
convert $1 -resize 114x114 Icon@2x.png # Home screen for Retina display iPhone/iPod | |
convert $1 -resize 72x72 Icon-72.png # App Store and Home screen on iPad | |
convert $1 -resize 58x58 Icon-Small@2x.png # Spotlight and Settings for Retina display | |
convert $1 -resize 57x57 Icon.png # Home screen on non-Retina iPhone/iPod | |
convert $1 -resize 50x50 Icon-Small-50.png # Spotlight on iPad 1/2 |
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
###################### | |
# Options | |
###################### | |
REVEAL_ARCHIVE_IN_FINDER=false | |
SCHEME="SCHEME" | |
FRAMEWORK_NAME="${PROJECT_NAME}" |
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
*** Fetching Kingfisher | |
*** Checking out Kingfisher at "4.6.4" | |
*** Building scheme "Kingfisher" in Kingfisher.xcworkspace | |
/usr/bin/xcrun xcodebuild -workspace /Users/XXXXXX/Desktop/testCarthageKingfisher/Carthage/Checkouts/Kingfisher/Kingfisher.xcworkspace -scheme Kingfisher -configuration Release -derivedDataPath /Users/XXXXXX/Library/Caches/org.carthage.CarthageKit/DerivedData/9.2_9C40b/Kingfisher/4.6.4 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/4p/c440nkpx0mnfpvf_c5q043z8kshhh2/T/Kingfisher SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/XXXXXX/Desktop/testCarthageKingfisher/Carthage/Checkouts/Kingfisher)User defaults from command line: | |
IDEArchivePathOverride = /var/folders/4p/c440nkpx0mnfpvf_c5q043z8kshhh2/T/Kingfisher | |
IDEDerivedDataPathOverride = /Users/XXXXXX/Library/Caches/org.carthage.CarthageKit/De |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[TODO Refactor done]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://fb.me/react-15.1.0.js"></script> | |
<script src="https://fb.me/react-dom-15.1.0.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.min.js"> </script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[TODO Refactor done]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://fb.me/react-15.1.0.js"></script> | |
<script src="https://fb.me/react-dom-15.1.0.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.min.js"> </script> |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
enum Result<Value> { | |
case value(Value) | |
case error(Error) | |
} | |
class Future<Value> { |
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
// | |
// ViewController.swift | |
// LockAnimation | |
// | |
// Created by Amit Kumar Swami on 07/11/17. | |
// Copyright © 2017 aks. All rights reserved. | |
// | |
import UIKit |
NewerOlder