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
server = Glint::Server.new do |port| | |
exec 'memcached', '-p', port.to_s; | |
exit 0 | |
end | |
server.start | |
config.cache_store = :dalli_store, "127.0.0.1:#{server.port}", | |
{ :namespace => NAME_OF_RAILS_APP, :expires_in => 1.day, :compress => true } |
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
$ cpanm Module::Install::Repository | |
Module::Install::Repository is up to date. (0.06) | |
$ cpanm Encode::Base58::BigInt | |
--> Working on Encode::Base58::BigInt | |
Fetching http://www.cpan.org/authors/id/S/SA/SATOH/Encode-Base58-BigInt-0.02.tar.gz ... OK | |
Configuring Encode-Base58-BigInt-0.02 ... N/A | |
! Configure failed for Encode-Base58-BigInt-0.02. See /Users/kentaro/.cpanm/build.log for details. | |
$ lv ~/.cpanm/build.log |
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
(defun ag () | |
(interactive) | |
(let ((grep-command "ag -a --nocolor ") | |
(grep-find-command "ag --nocolor --nogroup ")) | |
(call-interactively 'grep-find))) |
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 perl | |
use strict; | |
use warnings; | |
use YAML; | |
sub flatten { | |
my @list = @_; | |
map { | |
my $element = $_; |
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
fizzBuzz n = take n [ | |
if (m `mod` 15) == 0 then "FizzBuzz" | |
else if (m `mod` 3) == 0 then "Fizz" | |
else if (m `mod` 5) == 0 then "Buzz" | |
else show m | |
| m <- [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
$ ruby -rbundler -e 'Bundler.require; p Gem::Specification.dirs' | |
/Users/usr0600239/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bundler-1.2.1/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound) |
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
~/dev/github/triglav (2.0.0-dev) (git)-[master] | |
$ ls /Users/usr0600239/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/specifications | |
bigdecimal-1.1.0.gemspec method_source-0.8.1.gemspec rspec-2.11.0.gemspec | |
bundler-1.2.1.gemspec minitest-3.4.0.gemspec rspec-core-2.11.1.gemspec | |
coderay-1.0.8.gemspec pry-0.9.10.gemspec rspec-expectations-2.11.3.gemspec | |
diff-lcs-1.1.3.gemspec psych-1.3.4.gemspec rspec-mocks-2.11.3.gemspec | |
io-console-0.3.gemspec rake-0.9.2.2.gemspec slop-3.3.3.gemspec | |
json-1.7.1.gemspec rdoc-3.9.4.gemspec test-unit-2.0.0.0.gemspec | |
$ | |
~/dev/github/triglav (2.0.0-dev) (git)-[master] |
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
<?php | |
class Foo { | |
public function __call($name, $arguments) { | |
echo $name . "\n"; | |
} | |
public function foo() { | |
echo "fooooo\n"; | |
} |
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
<?xml version='1.0'?> | |
<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd"> | |
<signatures version='1.0'> | |
<struct type='{CGAffineTransform="a"f"b"f"c"f"d"f"tx"f"ty"f}' name='CGAffineTransform'/> | |
<struct type='{CGDataConsumerCallbacks="putBytes"^?"releaseConsumer"^?}' name='CGDataConsumerCallbacks'/> | |
<struct type='{CGDataProviderCallbacks="getBytes"^?"skipBytes"^?"rewind"^?"releaseProvider"^?}' name='CGDataProviderCallbacks'/> | |
<struct type='{CGDataProviderDirectAccessCallbacks="getBytePointer"^?"releaseBytePointer"^?"getBytes"^?"releaseProvider"^?}' name='CGDataProviderDirectAccessCallbacks'/> | |
<struct type='{CGDataProviderDirectCallbacks="version"I"getBytePointer"^?"releaseBytePointer"^?"getBytesAtPosition"^?"releaseInfo"^?}' name='CGDataProviderDirectCallbacks'/> | |
<struct typ |
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
/* | |
Do not change this file. | |
Generated from BridgeSupport. | |
/usr/bin/gen_bridge_metadata --no-64-bit -f "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/QuartzCore.framework" -c "-I/Users/usr0600239/tmp/mobiruby-ios/modules/mruby/include -I/Users/usr0600239/tmp/mobiruby-ios/modules/libffi/include -I/Users/usr0600239/tmp/mobiruby-ios/modules/mobiruby-common/include -I/Users/usr0600239/tmp/mobiruby-ios/modules/mruby-cocoa/include -I/Users/usr0600239/tmp/mobiruby-ios/modules/mruby-cfunc/include -DALLOC_PADDING=8 -DUSE_MRBC_DATA -arch i386 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk" | |
/usr/bin/gen_bridge_metadata --no-64-bit -f "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/AVFoundation.framework" -c "-I/Us |