方の定義とか関数の引数(あるいは帰り値)でよく使ってる
type Car interface {
run(int)
stop() bool
#!/bin/bash | |
echo "alias dps='docker-compose ps' | |
alias dstart='docker-compose start' | |
alias dstop='docker-compose stop' | |
alias drestart='docker-compose restart' | |
alias dexec='docker exec -it docker_php_1' | |
alias dpull='docker pull' | |
alias dup='docker-compose up -d'" >> ~/.bash_profile; | |
echo "----Commands aliases for Docker\n"; |
############################################################################ | |
# # | |
# ------- Useful Docker Aliases -------- # | |
# # | |
# # Installation : # | |
# copy/paste these lines into your .bashrc or .zshrc file or just # | |
# type the following in your current shell to try it out: # | |
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash | |
# # | |
# # Usage: # |
// @flow | |
import React, { Component } from 'react'; | |
import { findDOMNode } from 'react-dom'; | |
class PayjpCheckout extends Component { | |
constructor(props: Object) { | |
super(props); | |
this.windowAlertBackUp = window.alert; | |
this.script = document.createElement('script'); |
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
(For English readers: please read https://github.com/sponsors/tk0miya instead)
@tkomiya は、日本在住の OSS 開発者です。
趣味として Sphinx や pycmark、 blockdiag などの OSS の開発やメンテナンスに携わっています。
ここ数年の活動の中心は Sphinx です。 Sphinx は Python や Linux カーネルをはじめとして、数多くの OSS のドキュメントに利用されているドキュメンテーションツールです。 Sphinx プロジェクトはごく少人数のメンテナによって活動しており、(明確な役割として定義はされていないものの) リードメンテナ、メインメンテナとして活動しています。
/* eslint-disable */ | |
const fs = require('fs') | |
const path = require('path') | |
const webpack = require('webpack') | |
const babelConfig = JSON.parse( | |
fs.readFileSync(path.join(__dirname, '../.babelrc')) | |
) | |
module.exports = { | |
entry: ['babel-polyfill', path.join(__dirname, '../index.web.js')], |
import 'package:flutter/material.dart'; | |
class Bubble extends StatelessWidget { | |
Bubble({this.message, this.time, this.delivered, this.isMe}); | |
final String message, time; | |
final delivered, isMe; | |
@override | |
Widget build(BuildContext context) { |
If you can't get X11 or Wayland GUI Linux apps to start anymore on Chrome OS, try the following.
In the Terminal app, this will show the status of your systemd user services/units:
systemctl --user
If [email protected]
and [email protected]
show a failed status, the following worked for me:
sudo ln -s /opt/google/cros-containers/bin/sommelier.elf /usr/bin/
この記事は https://medium.com/@ryardley/react-hooks-not-magic-just-arrays-cd4f1857236e の日本語訳です。途中で力尽きて雑な翻訳になってる箇所がいくつかあります。
私は、新しい Hooks の API の "magic" な挙動に悩んでいる人が結構いると聞いています。なのでこの構文の提案が、少なくとも表面的なレベルではどう動いているか、解説してみようと思います。