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 | |
# make sure you have gem 'rubocop-git' in your Gemfile | |
require 'readline' | |
def input(prompt="", newline=false) | |
prompt += "\n" if newline | |
Readline.readline(prompt, true).squeeze(" ").strip | |
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
IntelliJ IDEA is a full-featured IDE | |
with a high level of usability and outstanding | |
advanced code editing and refactoring support. | |
abcdefghijklmnopqrstuvwxyz 0123456789 (){}[] | |
ABCDEFGHIJKLMNOPQRSTUVWXYZ +-*/= .,;:!? #&$%@|^ | |
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 'rubygems' | |
require 'active_support/core_ext/numeric/time' | |
require 'date' | |
require 'pathname' | |
require 'optparse' | |
# path to your application root. | |
APP_ROOT = Pathname.new File.expand_path('../../../manageiq/', __FILE__) | |
Dir.chdir APP_ROOT |
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 'rubygems' | |
require 'active_support/core_ext/string' | |
ARGF.each_line("create_table") do |line| | |
line =~ / "([^"]+)"/ | |
table = $1 | |
if line =~ /t.string\s+"type"/ | |
next if line =~ /t.index \["type"\]/ | |
# check if nothing inherits from that class |
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
let blacklists = ["https://mail.google.com/*","http://localhost/*","https://docs.google.com/*","https://trello.com/*"] | |
site '*://github.com/*' { | |
unmap t | |
unmap r | |
unmap y | |
let hintcharacters = "asdfgqwezxcvb" | |
} | |
site '*://feedly.com/*' { | |
unmap j | |
unmap k |
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
Process: OOoPython [44846] | |
Path: /Applications/LibreOffice.app/Contents/MacOS/OOoPython.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/OOoPython | |
Identifier: OOoPython | |
Version: 2.6.0 (compatibility 2.6.0) | |
Code Type: X86 (Native) | |
Parent Process: zsh [43419] | |
Date/Time: 2012-06-04 16:37:38.413 +0200 | |
OS Version: Mac OS X 10.7.4 (11E53) | |
Report Version: 9 |
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 'rubygems' | |
require 'dm-core' | |
require 'dm-migrations' | |
DataMapper::Logger.new(STDOUT, :debug) | |
DataMapper.setup(:default, 'sqlite::memory:') | |
class Customer |
NewerOlder