アンチパターンとか,ハマりどころとか
expect(page).to have_content 'hogehoge'| #!/bin/bash | |
| function logresult() { | |
| if [ $? = "0" ] ; then | |
| echo "$1" | |
| else | |
| echo "$2" | |
| exit 1 | |
| fi | |
| } |
| #!/usr/local/bin/python | |
| # -*- coding:utf-8 -*- | |
| import json | |
| import csv | |
| import MeCab as mc | |
| ################################################ | |
| # メール文章のポジネガ判定 | |
| # | |
| # Copyright 2016 YoshihitoAso(@y_asoh) |
が分離していて、それがコード上の構造で表現されているのがよいと思います。 分離すると、どこかで結合しないといけないのでマッピングが発生します。 そこは互いのインターフェイスをどう解釈するかという表現なので明示的になっているほうがよいと思います。
I needed a newer version of ImageMagick than is available on the yum packages on Amazon Linux. I tried using the remi repo but it failed with dependency errors. Here is what I did to install ImageMagick with support for PNG, JPG, and TIFF.
download the most recent package
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
uncomress the package
PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
| #!/usr/bin/env bash | |
| # ~/.osx — http://mths.be/osx | |
| # Ask for the administrator password upfront | |
| sudo -v | |
| # Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
| while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
| Twitter API 1.1 の現行APIの制限 | |
| (REST API v1.1 Limits per window by resource) | |
| https://dev.twitter.com/docs/rate-limiting/1.1/limits | |
| ・15分辺り最大何回実行できるか | |
| Timelines | |
| GET statuses/mentions_timeline 15回 | |
| GET statuses/user_timeline 180回/user, 300回/application |
この記事は古いです...。はてなブログの方に完全版を置いてあります。→ http://blue-ham-cake1024.hatenablog.com/entry/2012/09/07/Sublime_Text_2_のDefault設定ファイルを眺める
この記事ではDefault設定ファイルにどのような記述がされているか、その記述にどんな意味があるかを一つ一つ見ていきます。実際に設定をカスタマイズしてみたい方は、メニューのPreferencesタブの"Settings - User"からUser設定ファイルを開いてそこでいろいろ試してみましょう。