timeout /t 60 /nobreak && shutdown /s /t 0
timeout /t 600 /nobreak && shutdown /s /t 0
| module Main where | |
| data Ingredient = Rice | Meat | Onion | Potato | Carrot | Spice | |
| deriving (Show, Eq) | |
| type Curry = [Ingredient] | |
| cook :: [Ingredient] -> Curry | |
| cook = id |
| class Coffee | |
| constructor: (@name, @price) -> | |
| info: -> "#{@name} - $#{@price}" | |
| class Order | |
| constructor: -> @items = [] | |
| add: (coffee) -> @items.push coffee |
| let girlfriends = [ | |
| { name: "カンナ", email: "kanna@example.com", relationship: 91 }, | |
| { name: "スズ", email: "suzu@example.com", relationship: 89 }, | |
| { name: "ハルナ", email: "haruna@example.com", relationship: 78 }, | |
| { name: "ミナミ", email: "minami@example.com", relationship: 92 }, | |
| ]; | |
| function dailyTask(gf) { | |
| const messages = [ | |
| ["おはようございます!", "おはよ!"], |
| #!/bin/bash | |
| readonly today=$(date '+%m-%d') | |
| readonly bash_birthday="06-08" | |
| days_until() { | |
| local year=$(date '+%Y') | |
| local today_full=$(date -d "$year-$today" +%s) | |
| local future=$(date -d "$year-$bash_birthday" +%s) | |
| (( today_full > future )) && future=$(date -d "$((year + 1))-$bash_birthday" +%s) |