IPアドレスを設定しておく
config.vm.network "private_network", ip: "192.168.33.10"
-keep public class com.activeandroid.** { *; } | |
-keep public class * extends com.activeandroid.Model | |
-keepattributes *Annotation* |
#import <UIKit/UIKit.h> | |
@interface GestureView : UIView <UIGestureRecognizerDelegate> | |
@end |
#! /bin/sh | |
# TestFlight upload notes | |
while getopts "m:" opts | |
do | |
case $opts in | |
m) | |
NOTES=$OPTARG ;; | |
esac | |
done |
// フォルダを指定して一括リサイズ | |
function resizeImage(file, destFolder) { | |
try { | |
var doc = open(file, OpenDocumentType.PNG) | |
if (doc == null) { | |
throw "Something is wrong with the file. Make sure it's a valid PNG file."; | |
} |
import Foundation | |
func unwrap2<T1, T2>(a: T1?, b: T2?) -> (T1, T2)? { | |
switch (a, b) { | |
case (let .Some(a), let .Some(b)): | |
return (a, b) | |
default: | |
return nil | |
} | |
} |
function happyNewYear() { | |
alert('A Happy New Year'); | |
} |
class Cat | |
def initialize | |
@word = 'にゃんにゃん' | |
end | |
def nyan | |
print @word | |
print "\n" | |
end | |
end |
(1..100).each {|i| | |
if i % 15 == 0 then | |
p "Fizz Buzz" | |
elsif i % 5 == 0 then | |
p "Buzz" | |
elsif i % 3 == 0 then | |
p "Fizz" | |
else | |
p i | |
end |