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 'package:flutter/material.dart'; | |
import 'package:go_router/go_router.dart'; | |
/// Flutter code sample for [NavigationRail]. | |
void main() => runApp(const NavigationRailExampleApp()); | |
final GoRouter _router = GoRouter( | |
routes: <RouteBase>[ | |
GoRoute( |
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 main() { | |
// 値を直接弄ってはいけない | |
// const か Map.unmodifiable で保護する | |
const firstMap = [ | |
{"id": 333, "name": "山田 太郎", "gender": "F", "birth_date": "19880205"}, | |
{"id": 111, "name": "山田 次郎", "gender": "F", "birth_date": "19880205"}, | |
{"id": 121, "name": "山田 花子", "gender": "F", "birth_date": "19880205"} | |
]; | |
const secondMap = [ | |
{ |
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 main() { | |
final list1 = [ | |
const Fruits(id: 1, order: 2, name: '🍌'), | |
const Fruits(id: 2, order: 1, name: '🍎'), | |
const Fruits(id: 3, order: 3, name: '🍊'), | |
]; | |
list1..sort(); | |
print(list1); | |
} |
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 jp.sample | |
import io.vertx.scala.core.Vertx | |
import io.vertx.scala.ext.web._ | |
object App { | |
def main(args : Array[String]) { | |
val vertx = Vertx.vertx() | |
val router = Router.router(vertx) | |
router.route().handler(context=>{ |
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 java.util.stream.Stream; | |
public class Practice1ASol { | |
static public void main(String[] args) { | |
Stream.of("Hello", " ", "World", "!").forEach(System.out::print); | |
} | |
} |
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 java.util.List; | |
import java.util.ArrayList; | |
public class Practice1 { | |
static public void main(String[] args) { | |
List<String> helloWorld = new ArrayList<String>(3); | |
helloWorld.add("Hello"); | |
helloWorld.add(" "); | |
helloWorld.add("World"); | |
helloWorld.add("!"); |
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
$ nginx -V 2>&1 | sed -e 's/--/\n--/g' | grep -e '\(version\|stream\|mail\)' | |
nginx version: nginx/1.11.9 | |
--with-stream=dynamic | |
--with-stream_ssl_module | |
--with-mail=dynamic | |
--with-mail_ssl_module |
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 jp.eiya.aya.grails.sample | |
class AsyncController { | |
def fooService | |
def index() { | |
log.info 'start index' | |
fooService.sayFoo(Hero.get(params.id?:1)) | |
log.info 'end index' | |
return 'foo' | |
} |
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 geb.driver.DriverRegistry | |
import geb.driver.NameBasedDriverFactory | |
driver = (Settings.gebDriver)?Settings.gebDriver:'firefox' | |
if(driver=='htmlunit'){ | |
driver = { | |
def htmlunitDriver = new NameBasedDriverFactory(classLoader,'htmlunit').getDriver() | |
htmlunitDriver.webClient.options.setJavaScriptEnabled(true) | |
htmlunitDriver.webClient.options.setThrowExceptionOnScriptError(false) |
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
<!DOCTYPE html> | |
<html lang="ja"><head><meta charset="utf-8" /></head> | |
<body> | |
<div ng-app="app" ng-controller="validCtrl"> | |
<form name="form" novalidate> | |
<input ng-model="default" ng-minlength="7" id="invalidDefault" name="default"/>{{ form.default.$error }} | |
<p>default:{{ default }}</p> | |
<p>invalidDefault.value:<span id="output"></span></p> | |
<script> | |
setInterval(function(){output.innerHTML = invalidDefault.value},5); |
NewerOlder