方の定義とか関数の引数(あるいは帰り値)でよく使ってる
type Car interface {
run(int)
stop() bool
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
// @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'); |
############################################################################ | |
# # | |
# ------- 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: # |
#!/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"; |
import os | |
import falcon | |
import jinja2 | |
def load_template(name): | |
path = os.path.join('templates', name) | |
with open(os.path.abspath(path), 'r') as fp: | |
return jinja2.Template(fp.read()) |
// Get all users | |
var url = "http://localhost:8080/api/v1/users"; | |
var xhr = new XMLHttpRequest() | |
xhr.open('GET', url, true) | |
xhr.onload = function () { | |
var users = JSON.parse(xhr.responseText); | |
if (xhr.readyState == 4 && xhr.status == "200") { | |
console.table(users); | |
} else { | |
console.error(users); |
[package] | |
name = "nickel-helloworld-postgres" | |
version = "0.1.0" | |
authors = ["johndoe"] | |
[dependencies] | |
nickel = "*" | |
r2d2 = "*" | |
postgres = "*" | |
openssl = "*" |
Unityを分かっていない人(主に筆者)向けのメモです
AddModsSliderへのプルリクエストの検討時にCM3D2-01さんから教わりました。
# If you are on a VM (like me), I did the following on Peppermint 5 VM on VirtualBox. | |
sudo apt-get install vagrant virtualbox | |
# Make a directory named demo. | |
mkdir demo | |
cd demo | |
# add vagrant virtual box that can be used to initialize VM instances |