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 | |
# Install Docker CE to Ubuntu-16.04 / AWS | |
# See https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository for more details | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt-get update | |
sudo apt-get install -y \ | |
linux-image-extra-$(uname -r | sed 's/-aws$//') \ | |
linux-image-extra-virtual | |
sudo apt-get update |
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
#!/usr/bin/env node | |
const request = require('request'); | |
const AWS = require('aws-sdk'); | |
const rekognition = new AWS.Rekognition({ | |
// Detect moderation labels is available on AWS region us-east-1, us-west-2 and eu-west-1 | |
region: "us-west-2", | |
accessKeyId: "YOUR accessKeyId", | |
secretAccessKey: "YOUR secretAccessKey" |
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
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
docker volume rm $(docker volume ls -q) |
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
platform :ios, '8.0' | |
# Add this line to the headding of the Podfile | |
require './pod_patch' | |
target 'YourProject' do | |
pod 'PodNameForPatch' | |
# And add the patch instructions | |
pod 'PodNameForPatch' |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Usage: | |
# 1. Google Spread Sheet を開く | |
# https://docs.google.com/spreadsheets/d/1EKw-FI-zB_dPnIH-HM0OwlLwVkHluVlrGRyKIKtVMwg/edit?usp=sharing | |
# 2. Hero シートをコピーして hero.tsv に貼り付ける | |
# (TSV: Tab Separated Volume で) | |
# 3. Item シートをコピーして item.tsv に貼り付ける | |
# 4. Ability シートをコピーして ability.tsv に貼り付ける |
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
APP_VERSION=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MyApp/Info.plist | |
BUILD_NUMBER=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" MyApp/Info.plist | |
/usr/libexec/PlistBuddy \ | |
-c "Set :CFBundleShortVersionString $APP_VERSION" \ | |
-c "Set :CFBundleVersion $BUILD_NUMBER" \ | |
MyExtension/Info.plist |
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
#!/usr/bin/env python | |
# Merge extra iOS App's Acknowledgements.plist into CocoaPods generated | |
# Acknowledgements.plist. | |
# Run "pip install dpath", s/MyApp/YourAppName/g, and replace extra_plist | |
# before use this script. | |
from __future__ import print_function | |
import operator | |
import plistlib | |
import sys |
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 <MapKit/MapKit.h> | |
#import "ViewController.h" | |
@interface ViewController () | |
@property (weak, nonatomic) IBOutlet MKMapView *mapView; | |
@property (strong, nonatomic) NSTimer *timer; | |
@end |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
_window.rootViewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; | |
[_window makeKeyAndVisible]; | |
return YES; | |
} |
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
- (void)swipedScreen:(UISwipeGestureRecognizer*)gesture { | |
UIView* view = gesture.view; | |
CATransition *transition = [CATransition animation]; | |
transition.duration = 0.75; | |
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; | |
transition.type = kCATransitionPush; | |
transition.subtype =kCATransitionFromLeft; | |
transition.delegate = self; |
NewerOlder