This file contains hidden or 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
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"io" | |
"os" | |
"strings" | |
"html" | |
) |
This file contains hidden or 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 'mechanize' | |
FIRST_NAME = 'FIRST_NAME' | |
LAST_NAME = 'LAST_NAME' | |
PHONE = 'PHONE' | |
EMAIL = '[email protected]' | |
PARTY_SIZE = 2 | |
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
This file contains hidden or 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
0.4 ➤ make | |
cd src/ && make -f Makefile | |
clang++ -c -Xclang -include-pch -Xclang ../build/KeePassX.pch/c++ -pipe -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt/4.8.4/mkspecs/unsupported/macx-clang -I. -I/usr/local/Cellar/qt/4.8.4/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/include -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -F/usr/local/Ce |
This file contains hidden or 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
package Cpanel::MysqlUtils::Grants; | |
# cpanel - Cpanel/MysqlUtils/Grants.pm Copyright(c) 2010 cPanel, Inc. | |
# All rights Reserved. | |
# [email protected] http://cpanel.net | |
# This code is subject to the cPanel license. Unauthorized copying is prohibited | |
use strict; | |
use warnings; |
This file contains hidden or 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
DOWN_ERRORS = [ | |
Errno::ECONNRESET, | |
Errno::EHOSTUNREACH, | |
Errno::EINVAL, | |
Errno::ECONNREFUSED, | |
Errno::ENETUNREACH, | |
Net::HTTPBadResponse, | |
Net::HTTPHeaderSyntaxError, | |
Net::ProtocolError, | |
SocketError, |
This file contains hidden or 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 'securerandom' | |
class Vhost | |
attr_reader :content, :vhost_line | |
def initialize(vhost_line, content) | |
@vhost_line = vhost_line | |
@content = content | |
end |
This file contains hidden or 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 | |
#-- | |
# set.rb - defines the Set class | |
#++ | |
# Copyright (c) 2002-2008 Akinori MUSHA <[email protected]> | |
# | |
# Documentation by Akinori MUSHA and Gavin Sinclair. | |
# | |
# All rights reserved. You can redistribute and/or modify it under the same | |
# terms as Ruby. |
This file contains hidden or 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
# nope.rb | |
class Nope < ActiveRecord::Base | |
end | |
# nope_spec.rb | |
require 'spec_helper' | |
describe Nope do | |
Nope.blah | |
This file contains hidden or 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 'benchmark' | |
def resolve(obj) | |
obj.respond_to?(:call) ? resolve(obj.call) : obj | |
end | |
def resolve2(obj) | |
if obj.respond_to?(:call) | |
resolve2(obj.call) | |
else |
This file contains hidden or 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
class Object | |
def tap_async(&block) | |
Thread.new { tap(&block) } | |
self | |
end | |
end |