Overview
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 | |
BUILD_DIR_PATH=~/Documents/Build | |
START_FILE_PATH=$BUILD_DIR_PATH/_start.txt | |
BUILD_FAILURE_DIR_PATH=$BUILD_DIR_PATH/logs/failure | |
#前回のビルド実行開始時間を取得 | |
START=`cat $START_FILE_PATH` | |
# ビルド開始記録を削除 |
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 | |
import PlaygroundSupport | |
let image = UIImage(named: "girl") | |
let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 320, height: 320)) | |
imageView.image = image | |
imageView.contentMode = .scaleAspectFill | |
// Live Viewに表示させたいViewを渡す |
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
[...Array(101).keys()].slice(1,101).forEach(i=>console.log((i%3?'':'fizz')+(i%5?'':'buzz')||i)) |
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
IntStream.range(1,101).mapToObj(i->(i%15==0?"FizzBuzz":i%5==0?"Buzz":i%3==0?"Fizz":i)).forEach(System.out::println); |
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(var i=1;i<101;i++) console.log((i%3?'':'fizz')+(i%5?'':'buzz')||i); |
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
<?php foreach(range(1,100)as$i){echo($i%5&&$i%3?$i:'').($i%5?'':'fizz').($i%3?'':'buzz')."\n";} |
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
(1..100).map{println(when{it%15==0->{"fizzbuzz"}it%5==0->{"buzz"}it%3==0->{"fizz"}else->it})} |
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
1.upto(100){|i|puts i%15==0?'fizzbuzz':i%5==0?'buzz':i%3==0?'fizz':i} |
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
map{print(($_%15==0?'fizzbuzz':$_%3==0?'fizz':$_%5==0?'buzz':$_)."\n")}1..100; |