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
DBQuery.prototype.p = function() { | |
var args = arguments | |
this.forEach(function(e) { | |
var result = {} | |
if(args.length == 0) { | |
result = e | |
} else { | |
for(var i = 0; i < args.length; i++) { | |
var target = e | |
var keys = args[i].split('.') |
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
yum install mercurial | |
yum install ncurses-devel | |
hg clone https://vim.googlecode.com/hg vim | |
cd vim | |
./configure --enable-multibyte --enable-xim --enable-fontset --disable-selinux --with-features=huge | |
make | |
make 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
-> % brew upgrade openssl | |
==> Upgrading 1 outdated package, with result: | |
openssl 1.0.1g | |
==> Upgrading openssl | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1g.mavericks.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring openssl-1.0.1g.mavericks.bottle.tar.gz | |
==> Caveats | |
This formula is keg-only, so it was not symlinked into /usr/local. |
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
-> % brew install boot2docker | |
==> Installing boot2docker dependency: docker | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/docker-0.9.1.mavericks.bottle.tar.gz | |
curl: (18) transfer closed with 2918995 bytes remaining to read | |
Error: Failed to download resource "docker" | |
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/docker-0.9.1.mavericks.bottle.tar.gz | |
Warning: Bottle installation failed: building from source. | |
==> Cloning https://github.com/dotcloud/docker.git | |
Cloning into '/Library/Caches/Homebrew/docker--git'... |
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
require 'rubygems' | |
require 'feed-normalizer' | |
require 'open-uri' | |
require 'twitter' | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = ENV['TWITTER_CONSUMER_KEY'] | |
config.consumer_secret = ENV['TWITTER_CONSUMER_SECRET'] | |
config.access_token = ENV['TWITTER_ACCESS_TOKEN'] | |
config.access_token_secret = ENV['TWITTER_ACCESS_TOKEN_SECRET'] |
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
# Description: | |
# No overtime by node-cron. | |
cron = require('cron').CronJob | |
random = require('hubot').Response::random | |
module.exports = (robot) -> | |
sayArr = [ | |
'重松くん。いい仕事してますか?' |
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
# Description: | |
# heisei | |
# | |
# Dependencies: | |
# | |
# Configuration: | |
# | |
# Commands: | |
# hubot heisei |
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
tknzk@tknzks-mba [06:28:20] [~/Sites/xxxxxx/vagrant] [master] | |
-> % vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Clearing any previously set network interfaces... | |
There was an error while executing `VBoxManage`, a CLI used by Vagrant | |
for controlling VirtualBox. The command and stderr is shown below. | |
Command: ["hostonlyif", "create"] | |
Stderr: 0%... |
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
-> % brew install httpd | |
Error: No available formula for httpd | |
Searching taps... | |
homebrew/apache/httpd22 homebrew/apache/httpd24 | |
tknzk@tknzks-mba [06:41:11] [~] | |
-> % brew tap homebrew/apache | |
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-apache'... | |
remote: Counting objects: 461, done. | |
remote: Total 461 (delta 0), reused 0 (delta 0) | |
Receiving objects: 100% (461/461), 97.11 KiB | 106.00 KiB/s, done. |
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
-> % git commit | |
dyld: Library not loaded: /usr/local/lib/liblua.5.1.5.dylib | |
Referenced from: /usr/local/bin/vim | |
Reason: image not found | |
error: vim died of signal 5 | |
error: There was a problem with the editor 'vim'. | |
Please supply the message using either -m or -F option. | |
tknzk@tknzks-mba [09:22:28] [~/Sites/countdown] [atom_feed *] | |
-> % brew upgrade vim | |
==> Upgrading 1 outdated package, with result: |
OlderNewer