- 文字列( String ): typeof object === "string"
- 数値( Number ): typeof object === "number"
- ブール( Boolean ): typeof object === "boolean"
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
version: '2' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: wordpress |
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
FROM ubuntu:16.04 | |
ADD apt.conf /etc/apt/apt.conf | |
RUN apt-get update | |
RUN apt-get install -y git-buildpackage | |
ADD proxy.sh /etc/profile.d/proxy.sh | |
RUN apt-get install -y golang | |
RUN GOPATH=/usr/lib/go/ go get github.com/Debian/dh-make-golang | |
RUN /usr/lib/go/bin/dh-make-golang github.com/aHisayoshiSuehiro/gomqtttest |
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
#include <iostream> | |
#include <stdexcept> | |
using namespace std; | |
class my_exception_t : public exception | |
{ | |
const char * str; | |
public: | |
int data = 10; |
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
{:ok,socket}= :gen_udp.open(0, [{:ifaddr, {:local, "/tmp/testsockin"}}]) | |
:gen_udp.send(socket,{:local, "/tmp/testsockin"}, 0, "test test \r\n") | |
receive do | |
tmp -> | |
IO.inspect tmp | |
after 3000 -> | |
IO.puts "time out" | |
end |
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
Documentation for /proc/sys/fs/* kernel version 2.2.10 | |
(c) 1998, 1999, Rik van Riel <[email protected]> | |
(c) 2009, Shen Feng<[email protected]> | |
For general info and legal blurb, please look in README. | |
============================================================== | |
This file contains documentation for the sysctl files in | |
/proc/sys/fs/ and is valid for Linux kernel version 2.2. |
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
$ ssh-agent.exe bash | |
bols@WIN-PJMTR139R3V ~ | |
$ ssh-add ~/.ssh/ | |
id_rsa id_rsa.pub known_hosts | |
bols@WIN-PJMTR139R3V ~ | |
$ ssh-add ~/.ssh/id_rsa | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @ |
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
#!/bin/bash | |
apt-get -y update | |
apt-get -y dist-upgrade | |
# install ruby tools | |
apt-get install -y ruby-dev ruby1.9.3 | |
gem install rubygems-update | |
update_rubygems | |
gem install bundler |
こんな指針がいいのかなー 2013 夏 ver.
- 「例外をキャッチする主な目的は、エラーの原因を取り除いて、回復すること」
.NET の「例外のデザインのガイドライン」にもこう書いてある。
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
# -*- coding: utf-8 -*- | |
import sys | |
import webbrowser | |
from Tkinter import Tk, Button | |
from PySide import QtGui | |
from pyside_from_ui_desiner import Ui_Dialog |
NewerOlder