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
" File: ruby_check.vim | |
" Author: Olivier El Mekki | |
" Email: olivier@el-mekki.com | |
" Description: ruby syntax checks the buffer | |
" Usage: | |
" :RUBYCheck - lauch the syntax check | |
if exists('ruby_check_plugin') | |
finish | |
endif |
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
# Allows to create event on piwik from server side code. | |
# | |
# Usage: | |
# | |
# piwik = Piwik.new | |
# piwik.create_event( category: 'sale', action: 'new_interface', name: '100_sales_from_same_country', value: 10_000 ) | |
# piwik.create_event( name: 'user_changed_locale' ) | |
# | |
# | |
# Required gems: |
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
From dc02b1cc6ec8b8c3c2693c1f91892e13bafefef8 Mon Sep 17 00:00:00 2001 | |
From: Olivier El Mekki <olivier@el-mekki.com> | |
Date: Sun, 17 May 2015 19:18:32 +0200 | |
Subject: [PATCH] ADD tagline in slack message | |
--- | |
app/Console/Commands/PostUpvotes.php | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
diff --git a/app/Console/Commands/PostUpvotes.php b/app/Console/Commands/PostUpvotes.php |
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
test of gist.vim |
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 'socket' | |
Host = 'google.com' | |
Port = 80 | |
socket = TCPSocket.new( Host, Port ) | |
socket.puts "GET /" | |
socket.readlines.each do |line| | |
p line | |
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
# ~/.irbrc | |
unless IRB.conf[:LOAD_MODULES].include?('irb/completion') | |
IRB.conf[:LOAD_MODULES] << 'irb/completion' | |
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
# in order to be able to do in step definitions : | |
# webrat_session.page.should have_selector( css3_selector ) | |
module WWW | |
class Mechanize | |
class Page | |
def has_selector?( selector ) | |
not search( selector ).empty? | |
end | |
end | |
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
require 'cucumber/rake/task' | |
def foo | |
puts "foo" | |
end | |
Cucumber::Rake::Task.new( :features ) do |t| | |
foo | |
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
if exists('trackloaded') | |
finish | |
endif | |
" list of autocmd events: | |
" http://www.vim.org/htmldoc/autocmd.html#autocmd-events | |
let trackfile = '/tmp/timetrack.dat' | |
let trackloaded = 1 | |
execute 'autocmd InsertEnter * call Track("begin")' |
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 'spec' | |
require 'rubygems' | |
require 'webrat' | |
require "#{File.dirname(__FILE__)}/logger" | |
# default object is the session object | |
def method_missing(name, *args, &block) | |
if webrat_session.respond_to?(name) | |
webrat_session.send(name, *args, &block) |
OlderNewer