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
config.plugins.stdout.colors = '555'.to_i(6).times.map{|i| "f#{('00'+i.to_s(6))[-3,3]}"}. | |
select{|s|s.count('0') < 2} + [31, 32, 33, 35, 36, 91, 92, 93, 94, 95, 96] + | |
(12..24).map{|i| "f#{i}"} |
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
#!/bin/sh | |
# Author: Carl Youngblood, 2010 | |
# Based on http://www.novell.com/coolsolutions/feature/15380.html | |
### BEGIN INIT INFO | |
# Provides: bluepill | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 |
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
;; -*- mode: Emacs-Lisp; coding: utf-8-unix -*- | |
;;; migemo.el - Japanese incremental search trough dynamic pattern expansion | |
;; $Id: migemo.el.in,v 1.8 2006/09/22 08:43:33 shirai Exp $ | |
;; Copyright (C) Satoru Takabayashi | |
;; Author: Satoru Takabayashi <[email protected]> | |
;; Keywords: | |
;; This file is free software; you can redistribute it and/or modify |
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 'eventmachine' | |
require 'em-websocket' | |
require 'json' | |
class Connection | |
attr_accessor :socket, :user_id | |
def initialize(socket, user_id) | |
@socket = socket |
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
# force_require.rb | |
# | |
# == Usage | |
# | |
# require 'bundler/setup' | |
# require './force_require' | |
# | |
# force_require 'g' | |
# g 'foo' | |
# |
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 Cmigemo <Formula | |
url 'http://www.kaoriya.net/dist/var/cmigemo-1.3c.tar.bz2' | |
homepage 'http://www.kaoriya.net/#CMIGEMO' | |
md5 '0b9d2feff4cfdc673cc1947fe54191ed' | |
version '1.3c' | |
depends_on 'nkf' |
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
# Usage: | |
# | |
# module ApplicationHelper | |
# extend MemcacheMemoize | |
# | |
# def bar(count = 10) | |
# "BAR" * count | |
# end | |
# memcache_memoize :bar, :expires_in => 10 | |
# 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
var net = require('net') | |
var sock = net.connect(1337) | |
process.stdin.pipe(sock) | |
sock.pipe(process.stdout) | |
sock.on('connect', function () { | |
process.stdin.resume(); | |
process.stdin.setRawMode(true) |
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 | |
/** | |
* Creates a markdown document based on the parsed documentation | |
* | |
* @author Peter-Christoph Haider <[email protected]> | |
* @package Apidoc | |
* @version 1.00 (2014-04-04) | |
* @license GNU Lesser Public License | |
*/ |