See also
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
<?php | |
class Bloc | |
{ | |
private $source; | |
private $id; | |
private $args; | |
public function __construct($source, Array $args=null) | |
{ |
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 | |
# -*- coding: utf-8 -*- | |
require 'open-uri' | |
STDOUT.sync = true | |
words = {} | |
result_page = URI.parse('http://www.google.co.jp/search?num=100&hl=en&q=README+site:github.com').read | |
readme_links = result_page.scan(/['"](https?:\/\/[0-9a-z\-\.]:?[^'"<>:]+readme[\.0-9a-z]*)['"]/i).flatten.uniq |
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 'formula' | |
class ScreenPre <Formula | |
url 'git://git.sv.gnu.org/screen.git' | |
homepage '' | |
md5 '' | |
version '4.1.0' | |
# depends_on 'cmake' |
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 'formula' | |
class Vim <Formula | |
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
homepage 'http://www.vim.org/' | |
md5 '5b9510a17074e2b37d8bb38ae09edbf2' | |
head 'http://vim.svn.sourceforge.net/svnroot/vim/trunk/' | |
def install | |
system "./configure", "--prefix=#{prefix}", |
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
This is an automatically generated Delivery Status Notification | |
THIS IS A WARNING MESSAGE ONLY. | |
YOU DO NOT NEED TO RESEND YOUR MESSAGE. | |
Delivery to the following recipient has been delayed: | |
null@jp.rubyist.net |
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
fatal: '/home/git/repositories/hibariya_retter.git' does not appear to be a git repository | |
fatal: Could not read from remote repository. | |
Please make sure you have the correct access rights | |
and the repository exists. |
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 'pty' | |
require 'curses' | |
PTY.getpty 'bash' do |stdout, stdin, pid| | |
# 画面のサイズを変えてみる | |
stdin.puts 'stty rows 10' | |
stdin.puts 'stty cols 50' |
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 'curses' | |
require 'pty' | |
require 'landescape' | |
class Terminal < Struct.new(:window, :stdout, :stdin, :pid) | |
def wait | |
Process.detach(pid).join | |
end |
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
<?xml version="1.0"?> | |
<metacity_theme> | |
<info> | |
<name>Adwaita</name> | |
<author>GNOME Art Team <art.gnome.org></author> | |
<copyright>Â Intel, Â Red Hat, Lapo Calamandrei</copyright> | |
<date>2012</date> | |
<description>Default GNOME 3 window theme</description> | |
</info> |
OlderNewer