Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.
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
| #!/bin/bash | |
| # Save current directory to var | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| # Fetch dependencies but do not build | |
| carthage update --no-build | |
| # Remove AWSAuthSDK project as this is not needed | |
| rm -r Carthage/Checkouts/aws-sdk-ios/AWSAuthSDK/ |
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
| //: | |
| //: UIView Animation Syntax Sugar | |
| //: | |
| //: Created by Andyy Hope on 18/08/2016. | |
| //: Twitter: @andyyhope | |
| //: Medium: Andyy Hope, https://medium.com/@AndyyHope | |
| import UIKit | |
| extension UIView { |
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
| import AppKit | |
| import AVFoundation | |
| class MovieWriter: NSObject { | |
| func writeImagesAsMovie(_ allImages: [NSImage], videoPath: String, videoSize: CGSize, videoFPS: Int32) { | |
| // Create AVAssetWriter to write video | |
| guard let assetWriter = createAssetWriter(videoPath, size: videoSize) else { | |
| print("Error converting images to video: AVAssetWriter not created") | |
| return | |
| } |
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
| /// In AppDelegate.swift | |
| /// Execute remove webdata method when the app receives the memory warning. | |
| /// | |
| /// We can not avoid the infinitely get increased the app size issue | |
| /// when users keep the web searching using the WKWebView. | |
| /// So, you would get iOS full storage message. | |
| /// | |
| /// Set WKWebsiteDataStore.nonPersistentDataStore in the configuration | |
| /// can make lightweight WKWebView. But it can not apply every web site. | |
| /// Imagine the web sites used the localStorage, IndexedDB features. |
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
| uniform vec2 resolution; | |
| uniform sampler2D texture; | |
| varying vec2 vUv; | |
| const float mosaic = 12.0; | |
| void main() { | |
| vec4 color = vec4(0.0); | |
| vec2 offset = vec2(mod(gl_FragCoord.x, mosaic), mod(gl_FragCoord.y, mosaic)); |
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 python | |
| # coding: UTF-8 | |
| import cv2 | |
| import numpy as np | |
| def make_lut256x16(exportPath): | |
| ''' 256 x 16 LUT ''' | |
| samples = 16 |
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
| import UIKit | |
| // If you enjoyed this talk (video link will be up soon), then you might also enjoy our book Advanced Swift: http://www.objc.io/books/advanced-swift | |
| struct Person { | |
| let name: String | |
| let city: String | |
| } | |
| let people = [ |
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
| import UIKit | |
| import AVFoundation | |
| protocol FileConverterDelegate { | |
| func fileConversionCompleted() | |
| } | |
| class FileConverter : NSObject { | |
| var delegate : FileConverterDelegate? |
Please refer to the TimeLapseBuilder-Swift repository on GitHub from now on.
I will leave the original code here as a reference, but new comments may be removed. Please open an issue on GitHub if you have questions or would like to contribute.
Thanks!
NewerOlder