graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
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
function doGet(e) { | |
var vocabulary = e.parameter.v | |
var from = e.parameter.f | |
if (!vocabulary) { | |
return ContentService.createTextOutput("パラメータvが空だよ!"); | |
} | |
if (!from) { | |
return ContentService.createTextOutput("パラメータfが空だよ!"); | |
} | |
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 asyncio | |
async def sleep(s): | |
await asyncio.sleep(s) | |
print("🍣") | |
print(s) | |
return s | |
if __name__ == '__main__': |
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
var str: NSString = "abcdef" | |
for i in 0..<str.length { | |
print(str.substring(with: NSRange(location: i, length: 1))) | |
} |
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/sh | |
# settings | |
DEVICE_TOKEN="XXXXXX" | |
TOPIC="com.your.app.bundle.id" | |
# process | |
DATE="`date \"+%Y/%m/%d %H:%M:%S\"`" |
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
mkdir tmp && \ | |
ffmpeg -i img.mov -an -r 5 tmp/%04d.png && \ | |
convert tmp/*.png -resize 40% tmp/output_%04d.png && \ | |
convert -delay 12 tmp/output_*.png img.gif && \ | |
convert -layers Optimize img.gif img.gif && \ | |
rm -rf tmp |
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 Foundation | |
class Thunder { } | |
class Fire { } | |
protocol Pokemon { | |
associatedtype PokemonType | |
func attack(move:PokemonType) | |
} |
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
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
let param | |
let a: String = { @noescape () -> String in | |
param // self.がいらない! | |
}() |
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
@available(*, unavailable, message="Hello!") | |
@available(*, unavailable, renamed="newFunc") |
NewerOlder