下記URLの手順に従ってGo言語をインストールして下さい
https://github.com/GeekSalon/GeekSalon/tree/master/2015/vol.7/docs/001_install
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
species | body_weight | brain_weight | |
---|---|---|---|
Mountain_Beaver | 1.35 | 8.1 | |
Cow | 465 | 423 | |
Grey_Wolf | 36.33 | 119.5 | |
Goat | 27.66 | 115 | |
Guine_Pig | 1.04 | 5.5 | |
Diplodocus | 11700 | 50 | |
Asian_Elephant | 2547 | 4603 | |
Donley | 187.1 | 419 | |
Horse | 521 | 655 |
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
# ダウンロードは下記より | |
# http://examples.oreilly.com/9780596529321/ | |
$ cd Downloads/PCI_Code\ Folder/chapter2/ | |
$ python | |
# 推薦モジュールのインポート | |
>>> import recommendations | |
# 映画批評家のLisa RoseとGene Seymourの類似性を計算する |
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 | |
#=================== | |
# Config | |
#=================== | |
REPO_ROOT=`git rev-parse --show-toplevel` | |
GOLINT_TMP="/tmp/.golint.txt" | |
TSLINT_TMP="/tmp/.tslint.txt" |
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
#!/usr/bin/env ruby | |
require 'mail' | |
#====================== | |
# config | |
#====================== | |
# db setting | |
mycnf_path="/usr/lib/zabbix/scripts/<your-database>.conf" |
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
[alias] | |
l = log --graph --date=iso --name-status --pretty=format:\"%C(red)%h %C(green)%an %C(blue)%ad %Creset%s %C(yellow)%d%Creset\" | |
st = status | |
co = checkout | |
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 | |
FROM="$1" | |
TO="$2" | |
SUBJECT="server stats for `hostname` on `date +\"%Y-%m-%d %H:%M:%S\"`" | |
if [ "$FROM" == '' -o "$TO" == '' ]; then | |
echo 'set FROM and TO address' | |
echo 'usage: $ mail-server-status from-address@example.com to-address@example.com' |
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/sh | |
# @from http://blog.manaten.net/entry/645 | |
IMAGES='\.(gif|png|jpg)$' | |
BLOCK_FUNCS='(var_dump)\(' | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD |