This file contains hidden or 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:1 | |
:debug:main epoch: in tree: 0 installed: 0 | |
:debug:main ghc 6.10.4_4 exists in the ports tree | |
:debug:main ghc 6.10.4_4 is the latest installed | |
:debug:main ghc 6.10.4_4 is active | |
:debug:main Merging existing variants '' into variants | |
:debug:main new fully merged portvariants: | |
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/ghc | |
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386 | |
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided |
This file contains hidden or 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
"2.2 | |
" Runtime Path | |
set runtimepath=/Users/mahm/.vimperator | |
" source! /Users/mahm/.vimperatorrc | |
" undo保持数 | |
set! browser.sessionstore.max_tabs_undo=30 | |
" タブの閉じるボタン非表示 | |
"set! browser.tabs.closeButtons=2 |
This file contains hidden or 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
class MySet < Array | |
def and(set) | |
self.map{ |elem| elem if set.include? elem }.compact | |
end | |
def or(set) | |
result = self | |
set.each{ |elem| result << elem unless result.include? elem } | |
result | |
end | |
def minus(set) |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
# | |
# ** Hatebu2Pinboard ** | |
# はてブのAtomエクスポートデータをPinboardにインポートします。 | |
# カレントディレクトリにエクスポートデータ(dump.yml)と、 | |
# Pinboardのユーザ名、パスワードを書いたYAMLファイル(auth.yml)を | |
# 用意して下さい。 | |
# | |
# [usage] |
This file contains hidden or 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 'twitter' | |
if ARGV[0].nil? || ARGV[0] == '' | |
puts 'Usage:' | |
puts ' ruby reaction_survey.rb [twitter user name]' | |
exit | |
end | |
username = ARGV[0] | |
@client = Twitter::REST::Client.new do |config| |
This file contains hidden or 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
pry(main)> wp.getPosts(filter: {order: 'desc'}).first | |
=> {"post_id"=>"5904", | |
"post_title"=>"モバイルアプリ向けUIフレームワークionicがSassで作られている&AngularJSに最適化されていて俺得すぎる", | |
"post_date"=> | |
#<XMLRPC::DateTime:0x007fb3988f0068 | |
@day=29, | |
@hour=18, | |
@min=32, | |
@month=1, | |
@sec=21, |
This file contains hidden or 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
$base-color: #f2eff0 | |
$main-color: #333333 | |
$accent-color: #1e965c | |
$base-text-color: darken($base-color, 50%) |
This file contains hidden or 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
.menu > li { | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; | |
background-color: gray; } | |
footer > li { | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; |
This file contains hidden or 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
Show hidden characters
{ | |
"cmd": ["node-webkit", "${project_path:${folder}}"], | |
"working_dir": "${project_path:${folder}}", | |
"path": "/Applications/node-webkit.app/Contents/MacOS/" | |
} |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections; | |
public class AudioManager : SingletonMonoBehaviour<AudioManager> { | |
AudioClip bgm_Game; | |
AudioClip se_Tanpopo; | |
private const int source_bgm_Game = 0; | |
private const int maxAudio = 10; |
OlderNewer