import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.Duration
import scala.concurrent.{Await, Future}
import scala.util.{Failure, Random, Success}
object CompositeFutureChallenge extends App {
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
double average(int AVR[], int N) { | |
double sum = 0; | |
for (int i = 0; i < N; i++) { | |
sum += AVR[i]; | |
} | |
double answer = sum / N; |
This file contains hidden or 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
set -x EDITOR vim | |
set -x VISUAL vim | |
set -x SVN_EDITOR vim | |
set -x GIT_EDITOR vim | |
set -x LANG ja_JP.UTF-8 | |
#set -x JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home | |
#set -x PATH /usr/local/bin/ $HOME/local/bin $HOME/play/play-2.2.3/ $HOME/flex/flex_sdk_4.6/bin $HOME/.rbenv/versions/2.0.0-p247/bin/ $PATH | |
#set -x PATH $HOME/activator/activator-dist-1.3.5/ $PATH | |
#set -x PATH $HOME/local/rabbitmq_server-3.4.4/sbin/ $PATH | |
#set -x PATH $PATH /usr/local/sbin |
This file contains hidden or 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
const btn = $('#btn'); | |
const mixtanisuu = $('#mixtanisuu'); | |
const mixkamoku = $('#mixkamoku'); | |
btn.click( () => { | |
const paragraph = document.createElement('p'); | |
paragraph.classList.add('kamoku'); | |
const text = document.createTextNode(document.getElementById('kamoku').value); | |
paragraph.appendChild(text); | |
mixkamoku.append(paragraph); | |
This file contains hidden or 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
version: '3' | |
services: | |
mysql: | |
image: "mysql:5.7.21" | |
volumes: | |
- "~/workspace/nn-douga-mysql:/var/lib/mysql" | |
container_name: nn-douga-mysql | |
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"] | |
ports: | |
- "3306:3306" |
This file contains hidden or 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..999).select{|n| n % 3 == 0 || n % 5 == 0}.inject{|sum, i| sum + i} |
- アルバイトの案内
- WPA2の脆弱性
- Twitterまとめ
- WPA2 PC-watch
- WPA2 CNET
- Scala基礎の3節,4節の映像授業がリリース
- アルバイトの案内
- [速報]GitHub、依存関係表示でのパッケージやアプリケーション対応、セキュリティアラートなどの新機能発表。GitHub Universe 2017
- Webデザインを「もっとかっこよくして!」と言われた時に試したいCSS小技5つ
- ガートナージャパン、「日本におけるテクノロジのハイプ・サイクル:2017年」発表。DevOpsは過度な期待のピーク、クラウドやビッグデータは幻滅期
This file contains hidden or 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
Version: ImageMagick 7.0.6-10 Q16 x64 2017-08-27 http://www.imagemagick.org | |
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC | |
License: http://www.imagemagick.org/script/license.php | |
Visual C++: 180040629 | |
Features: Cipher DPC Modules OpenMP | |
Delegates (built-in): bzlib cairo flif freetype jng jp2 jpeg lcms lqr openexr pa | |
ngocairo png ps rsvg tiff webp xml zlib |