A list of some other badges: http://shields.io/
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
// For whatever reason (I guess because my code is wrong) the "composition" returns twice the same asset (one transformed, one not), | |
// although it should display 2 different videos... If anybody has a clue :( | |
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], AVURLAssetPreferPreciseDurationAndTimingKey, nil]; | |
AVMutableComposition *composition = [AVMutableComposition composition]; | |
CMTimeRange timeRange = CMTimeRangeMake(kCMTimeZero, CMTimeMakeWithSeconds(4, 1)); | |
AVMutableVideoComposition *videoComposition = [AVMutableVideoComposition videoComposition]; | |
// Track B |
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 <AVFoundation/AVFoundation.h> | |
-(void)MixVideoWithText | |
{ | |
AVURLAsset* videoAsset = [[AVURLAsset alloc]initWithURL:url options:nil]; | |
AVMutableComposition* mixComposition = [AVMutableComposition composition]; | |
AVMutableCompositionTrack *compositionVideoTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid]; | |
AVAssetTrack *clipVideoTrack = [[videoAsset tracksWithMediaType:AVMediaTypeVideo] objectAtIndex:0]; | |
AVMutableCompositionTrack *compositionAudioTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid]; |
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 | |
protocol CommandExecuting { | |
func run(commandName: String, arguments: [String]) throws -> String | |
} | |
enum BashError: Error { | |
case commandNotFound(name: String) | |
} |
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
// How to connect to Etherium Blockchain Platform | |
// Emitting events and listening for events within blockchain network | |
var Web3 = require('web3'); | |
const HOST = ''; | |
const ACCOUNT = ''; | |
const ContractData = {...}; | |
// Connection |
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 Foundation | |
// http://sapandiwakar.in/make-hexagonal-view-on-ios/ | |
extension UIView { | |
/// Set the view layer as an hexagon | |
func setupHexagonView() { | |
let lineWidth: CGFloat = 5 | |
let path = self.roundedPolygonPath(rect: self.bounds, lineWidth: lineWidth, sides: 6, cornerRadius: 10, rotationOffset: CGFloat(.pi / 2.0)) | |
This is not an exhaustive list of all interfaces in Go's standard library.
I only list those I think are important.
Interfaces defined in frequently used packages (like io
, fmt
) are included.
Interfaces that have significant importance are also included.
All of the following information is based on go version go1.8.3 darwin/amd64
.
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
On Mac OSX, the native SSH client can use the built-in keychain directly. | |
Open terminal. | |
Write: | |
mkdir ~/.ssh | |
cd ~/.ssh | |
Copy your private key "id_rsa" to /.ssh folder. | |
Write in terminal also: |
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
// | |
// MovieTransitionsVC.swift | |
// VideoAnimations | |
// | |
// Created by Tula on 2018-06-14. | |
// Copyright © 2018 Tula. All rights reserved. | |
// | |
import UIKit | |
import AVFoundation |
OlderNewer