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
#compdef gem | |
# My first zsh completion function, for the gem command. It lets you type 'gem <tab>' to complete gem commands | |
# (including installed ones) and for some commands (currently just open and update) allows you to complete gem | |
# names as well. The implementation isn't ideal, so I'd appreciate advice on how I can improve it, particularly | |
# the 'caching' of the gem_commands and installed_gems. | |
local curcontext="$curcontext" state line ret=1 | |
_arguments -C \ |
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 | |
# Author: Bruno Michel <bruno.michel@af83.com> | |
# Copyright 2010 (c) af83 | |
# Licence: MIT http://www.opensource.org/licenses/mit-license.php | |
# Add two comments to each of your Rails view with the name of this file, | |
# one at the beginning and the other at the end. | |
TMPL_BEGIN = "<!-- Start of %s -->\n" | |
TMPL_END = "<!-- End of %s -->\n" |
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 | |
# Author: Bruno Michel <bruno.michel@af83.com> | |
# Copyright 2010 (c) af83 | |
# Licence: MIT http://www.opensource.org/licenses/mit-license.php | |
# Parse the given log files and extract the list of URL | |
if ARGV.empty? | |
puts "Usage: #{$0} <logfiles>" | |
exit 1 |
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
Username = <%= @var %> |
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 "maze" | |
i = 1 | |
e = nil | |
loop do | |
maze = Maze.new(i, e) | |
maze.fetch | |
maze.construct |
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
include $(GOROOT)/src/Make.inc | |
TARG=long_polling | |
GOFILES=long_polling.go | |
include $(GOROOT)/src/Make.cmd |
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
include $(GOROOT)/src/Make.inc | |
TARG=go-bench | |
GOFILES=go-bench.go | |
include $(GOROOT)/src/Make.cmd |
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
Je suis désolé, mais je ne correspond pas à ce que vous cherchez. Développer un site internet tel que celui-ci prend plusieurs mois hommes. | |
Je n'ai personnellement que 3 heures par semaine de disponible actuellement en dehors de mon travail de salarié chez bemyboat, de CTO chez supermarmite et de père de famille. | |
Je ne pourrais donc pas vous aider à moins que vous ne soyez prêt à patienter plusieurs années pour avoir une version beta. | |
Cordialement, | |
Cyril Mougel |
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 "redis" | |
redis = Redis.new | |
redis.keys("*").each do |key| | |
val = case redis.type(key) | |
when "string" | |
redis.get key | |
when "list" |
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 'net/http/persistent' | |
require 'uri' | |
require 'thread' | |
USAGE = <<EOS | |
Parse a Rails log file and send metrics to stathat | |
export EMAIL=email |
OlderNewer