- docker-machineを確認
docker-machine ls- Stoppedならdocker-machineを起動
| let tokenComponents = token.map { data in String(format: "%02.2hhx", data) } | |
| let deviceTokenString = tokenComponents.joined() |
| let itemHeight: CGFloat = 96 | |
| let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .estimated(itemHeight)) | |
| let item = NSCollectionLayoutItem(layoutSize: itemSize) | |
| let group = NSCollectionLayoutGroup.horizontal(layoutSize: itemSize, subitem: item, count: 1) | |
| let section = NSCollectionLayoutSection(group: group) | |
| section.interGroupSpacing = 16 | |
| section.contentInsets = NSDirectionalEdgeInsets(top: 20, leading: 20, bottom: 20, trailing: 20) | |
| return UICollectionViewCompositionalLayout(section: section) |
| let segue = UIStoryboardSegue(identifier: nil, source: self, destination: viewController) { [unowned self] () in | |
| self.present(viewController, animated: true) | |
| } | |
| segue.perform() |
| let destination = UIViewController() | |
| destination.view.backgroundColor = UIColor.red | |
| let segue = FooSegue(identifier: nil, source: self, destination: destination) | |
| segue.perform() |
| class EventsController < ApplicationController | |
| before_action :set_event, only: [:show, :edit, :update, :destroy] | |
| # GET /events | |
| def index | |
| @events = Event.all | |
| end | |
| # GET /events/1 | |
| def show |
| binding.pry | |
| p 'test' | |
| docker-compose run --service-ports app shell | |
| rails s -b 0.0.0.0 |
| { | |
| "config": { | |
| "exe": "hoge" | |
| }, | |
| "scripts": { | |
| "build": "swift build", | |
| "run": "./.build/debug/$npm_package_config_exe", | |
| "build-and-run": "npm run build; npm run run", | |
| "watch": "watch 'npm run build-and-run' ./Sources", | |
| "start": "npm run watch" |
| find . -name "index.html" > files.txt | |
| for i in `cat files.txt`; do egrep -o '[a-zA-Z][a-zA-Z0-9_]{3,}[a-zA-Z0-9]' $i | sed '/\//d' | sort | uniq >> keyword_raw.txt ;done | |
| cat keyword_raw.txt | sort | uniq > keyword.txt | |
| for i in `cat files.txt`; do egrep -o '[a-zA-Z][a-zA-Z0-9]{3,}\([a-zA-Z0-9_: ]{0,}\)' $i | sed '/\//d' | sort | uniq >> method_raw.txt ;done | |
| cat method_raw.txt | sort | uniq > method.txt |