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
# GPIOを制御するライブラリ | |
import wiringpi | |
# タイマーのライブラリ | |
import time | |
# I2Cデバイスからの読み取りに必要なライブラリを呼び出す | |
import os | |
import struct | |
# I2Cのインスタンスを作成 | |
wiringpi.wiringPiSetup() |
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
const webdriver = require('selenium-webdriver'); | |
const By = webdriver.By; | |
driver.findElement(By.xpath("//a[@data-selenium='login']")).click(); |
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
class ExaminationController extends Controller | |
{ | |
/** | |
* すべての試験区分を取得 | |
* | |
* | |
* @return \Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Eloquent\static[] | |
*/ | |
public function getAll() |
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
root@{コンテナID}:/# mysql -upython -p | |
Enter password: | |
(pythonと入力) |
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
# pyenv | |
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" |
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
$ php composer.phar update |
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
<template> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 col-md-offset-2"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Example Component</div> | |
<div class="panel-body"> | |
I'm an example component! | |
</div> |
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
fetchArticles() { | |
this.$http({ | |
url: '/api/getAllExamination', | |
method: 'GET' | |
}).then(res => { | |
this.articles = res.data | |
}) | |
} |
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
user@xxx ~/colejo/laradock (master) | |
$ docker-compose exec workspace composer create-project --prefer-dist laravel/laravel ./ | |
Do not run Composer as root/super user! See https://getcomposer.org/root for details | |
Installing laravel/laravel (v5.5.22) | |
- Installing laravel/laravel (v5.5.22): Downloading (100%) | |
Created project in ./ | |
> @php -r "file_exists('.env') || copy('.env.example', '.env');" | |
... 略 ... |
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
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateRoundsTable extends Migration | |
{ | |
/** | |
* マイグレーション実行 |
NewerOlder