- https://gist.github.com/PGMY/4991912
⇒Gistに貯めていってたのをもってきました。 - http://qiita.com/PGMY/items/2a9d1f6355693b6e9712
⇒Qiita編
自分用めも。気になるもの・使ってみたいものと、実際利用して比較してみたいなーと思ってるチェックリスト的な for ios dev
// Playground - noun: a place where people can play | |
import Foundation | |
typealias Byte = UInt8 | |
protocol GenericIntegerType: IntegerType { | |
init(_ v: Int) | |
init(_ v: UInt) | |
init(_ v: Int8) |
// | |
// HKLCMTimeUtils.swift | |
// | |
// Created by Hirohito Kato on 2015/01/07. | |
// Copyright © 2020 Kato Hirohito. Licensed under Unlicense(https://unlicense.org). Feel free to use it! | |
import CoreMedia | |
// MARK: Initialization | |
public extension CMTime { |
// Require "Run in Full Simulator" in Playground Settings. | |
// On first execution, iOS Simulator will show request authorization for Photo Library. | |
// Only a video without audio track can be played. | |
import UIKit | |
import AVFoundation | |
import Photos | |
import XCPlayground | |
class PLayerView: UIView { |
#=============================================================================== | |
# Filename: boost.sh | |
# Author: Pete Goodliffe | |
# Copyright: (c) Copyright 2009 Pete Goodliffe | |
# Licence: Please feel free to use this, with attribution | |
# Modified version | |
#=============================================================================== | |
# | |
# Builds a Boost framework for iOS, iOS Simulator, and OSX. | |
# Creates a set of universal libraries that can be used on an iOS and in the |
自分用めも。気になるもの・使ってみたいものと、実際利用して比較してみたいなーと思ってるチェックリスト的な for ios dev
// | |
// HTTPLoader.h | |
// | |
#import <Foundation/Foundation.h> | |
typedef void(^ HTTPLoaderCompletionBlock)(NSData *data, NSError *erorr); | |
@interface HTTPLoader : NSObject |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
self.view.backgroundColor = [UIColor blackColor]; | |
[self action]; | |
} | |
- (void)action | |
{ | |
//Create Content Layer |
import os | |
import csv | |
from subprocess import Popen, PIPE | |
from Foundation import NSMutableDictionary | |
build_number = os.popen4("git rev-parse --short HEAD")[1].read() | |
info_plist = os.environ['BUILT_PRODUCTS_DIR'] + "/" + os.environ['WRAPPER_NAME'] + "/Info.plist" | |
# Open the plist and write the short commit hash as the bundle version | |
plist = NSMutableDictionary.dictionaryWithContentsOfFile_(info_plist) |
// | |
// UIApplication+UIID.h | |
// UIID | |
// | |
// Created by akisute on 11/08/22. | |
// | |
#import <UIKit/UIKit.h> | |