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
package uho.UhoServer | |
import org.jetbrains.ktor.application.* | |
import org.jetbrains.ktor.features.* | |
import org.jetbrains.ktor.logging.* | |
import org.jetbrains.ktor.response.* | |
import org.jetbrains.ktor.routing.* | |
fun main() { | |
install(DefaultHeaders) |
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
require 'optparse' | |
p 'ウホ' if ARGV.include?('-u') | |
p 'いい男' if ARGV.include?('-i') | |
opt = OptionParser.new | |
opt.on('-u') {|v| p 'ウホ' } | |
opt.on('-i') {|v| p 'いい男' } | |
p '---' |
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 ↓ターミナル2 | |
------------------------------------------------------------------------+-------------------------------------------------------------------------- | |
mysql> select * from teams; | |
+----+------------+ | |
| id | name | | |
+----+------------+ | |
| 1 | チームH | | |
| 2 | チームK | | |
| 3 | チームT | | |
+----+------------+ |
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/local/bin/ruby | |
require 'rubygems' | |
require 'httpclient' | |
require 'clockwork' | |
include Clockwork | |
module Clockwork |
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/local/bin/ruby | |
require 'rubygems' | |
require 'httpclient' | |
require 'clockwork' | |
include Clockwork | |
module Clockwork |
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
public class SwitchTest2 { | |
public static void main(String[] args) { | |
int n = -1; // ここ変えてください。 | |
switch (1 + n * n) { | |
case 0: | |
if (n > 0) { | |
System.out.println("0A"); | |
} else { | |
System.out.println("0B"); |
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
public class HogeHoge { | |
public static void main (String[] args) { | |
System.out.println("Hello World !!"); | |
} | |
} |