モヒカンslackのチャネルリスト(毎日 AM 5:00 自動更新)
詳細はQiita:究極のIT系最新技術情報収集用Slackチーム公開 - モヒカンSlack -を参照。
参加は
| import UIKit | |
| typealias Constraint = (UIView, UIView) -> NSLayoutConstraint | |
| func equal<L, Axis>(_ to: KeyPath<UIView, L>, constant: CGFloat = 0) -> Constraint where L: NSLayoutAnchor<Axis> { | |
| return equal(to, to, constant: constant) | |
| } | |
| func equal<L, Axis>(_ from: KeyPath<UIView, L>, _ to: KeyPath<UIView, L>, constant: CGFloat = 0) -> Constraint where L: NSLayoutAnchor<Axis> { | |
| return { view1, view2 in | 
| /******* Android **********/ | |
| // See https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/FirebaseFirestore.html#setLoggingEnabled(boolean) | |
| FirebaseFirestore.setLoggingEnabled(true); | |
| /******* Server-side Java **********/ | |
| /** | |
| See https://medium.com/@hiranya911/logging-in-java-libraries-for-firebase-and-google-cloud-platform-f8742493b73f | |
| 1) Add the slf4j-simple binding to the application classpath | |
| 2) Set the -Dorg.slf4j.simpleLogger.defaultLogLevel=debug system property | |
| **/ | 
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * @flow | |
| */ | |
| var Dimensions = require('Dimensions'); | |
| var { width, height, scale } = Dimensions.get('window'); //get window size | |
| import React, { Component } from 'react'; | 
| public protocol Selfie: CustomStringConvertible {} | |
| extension Selfie { | |
| var description: String { | |
| let mirror = Mirror(reflecting: self) | |
| return "\(mirror.subjectType)( \(mirror.children.map({ "\($0!): \($1) "}).joinWithSeparator(", ")))" | |
| } | |
| } | 
モヒカンslackのチャネルリスト(毎日 AM 5:00 自動更新)
詳細はQiita:究極のIT系最新技術情報収集用Slackチーム公開 - モヒカンSlack -を参照。
参加は
| @interface ViewController | |
| @property (nonatomic, weak) IBOutlet UILabel *numberLabel; | |
| @property (nonatomic, strong) NSTimer *numberTimer; | |
| @property (nonatomic, assign) double value; | |
| @property (nonatomic, assign) BOOL cancelTimer; | |
| @property (nonatomic, assign) NSTimeInterval timeInterval; | |
| - (void)updateNumberLabel; | |
| - (void)stopTimer; | 
| Running this script requires that you rename the exptension of ipa to zip and then move images in payload folder to a common folder in which this ExtractedImages.sh exists. Run this script it should find all the images and extract it in RevertedImages folder. | |
| #!/bin/bash | |
| #create a folder to put reverted images in | |
| mkdir RevertedImages | |
| #looping for png files in . or $1 parameter | |
| for png in `find . -name '*.png'` | 
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./*     | \
  sed 's/NS_AVAILABLE_IOS(.*)//g'     | \
  sed 's/NS_DEPRECATED_IOS(.*)//g'    | \
  sed 's/API_AVAILABLE(.*)//g'        | \
  sed 's/API_UNAVAILABLE(.*)//g'      | \
 sed 's/UI_APPEARANCE_SELECTOR//g' | \
| #!/bin/sh | |
| # Create a RAM disk with same perms as mountpoint | |
| # Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
| # Usage: sudo ./xcode_ramdisk.sh start | |
| USERNAME=$(logname) | |
| TMP_DIR="/private/tmp" | |
| RUN_DIR="/var/run" | |
| SYS_CACHES_DIR="/Library/Caches" |