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
| From 579377d5e510a4c138904181b640480524c30bce Mon Sep 17 00:00:00 2001 | |
| From: "M. Scott Ford" <scott@corgibytes.com> | |
| Date: Fri, 2 Jan 2015 10:34:16 -0500 | |
| Subject: [PATCH] Exports sftp_reply_* functions | |
| --- | |
| include/libssh/sftp.h | 24 ++++++++++++------------ | |
| 1 file changed, 12 insertions(+), 12 deletions(-) | |
| diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h |
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
| // Example | |
| // var sample = new { booleanValue = true, stringValue = "Test Value" } | |
| // sample.Property<bool>("booleanValue") will result in true | |
| // sample.Property<string>("stringValue") will result in "Test Value" | |
| static class ObjectExtensions | |
| { | |
| public static T Property<T>(this object target, string name) | |
| { | |
| return (T)target.GetType().InvokeMember(name, BindingFlags.GetProperty, null, target, new object[] { }); | |
| } |
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 'System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' | |
| class ConfigurationSettingsHackery | |
| def set_config_file(new_config_file) | |
| set_config_file_on_current_app_domain(new_config_file) | |
| refresh_current_client_config_paths | |
| reset_configuration_manager_to_force_reload | |
| 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
| class Log4Net | |
| def initialize() | |
| @log4net = IronRuby.require('log4net') | |
| end | |
| def configure | |
| @log4net.GetType("log4net.Config.BasicConfigurator").GetMethod("Configure", System::Array.of(System::Type).new(0)).Invoke(nil, nil) | |
| end | |
| def logger(log_name) |
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 'optparse' | |
| require 'ostruct' | |
| require 'Mono.Cecil' | |
| class System::Reflection::Assembly | |
| def get_type_from_name(name) | |
| method(:GetType).overload(System::String).call(name) | |
| end | |
| 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
| require 'oci8' | |
| require 'ostruct' | |
| require 'optparse' | |
| class DatabaseUtils | |
| def print_table_row(owner, table_name, column_data) | |
| output = "#{owner}.#{table_name}: {" | |
| index = 0 | |
| first = true |
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 'oci8' | |
| require 'ostruct' | |
| require 'optparse' | |
| class DatabaseUtils | |
| def print_table_row(owner, table_name, column_data) | |
| output = "#{owner}.#{table_name}: {" | |
| index = 0 | |
| first = true |
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 'watir' | |
| require 'watir/container' | |
| require 'watir/element' | |
| require 'watir/input_elements' | |
| require 'watir/link' | |
| def support_wait_to_methods | |
| timeout_in_seconds = 30 | |
| original_method_missing = self.instance_method(:method_missing) |
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 TransformerNames | |
| # source: http://en.wikipedia.org/wiki/List_of_The_Transformers_characters#Autobots | |
| AUTOBOTS = ['Teletraan', 'Optimus Prime', 'Wheeljack', 'Bumblebee', | |
| 'Cliffjumper', 'Prowl', 'Jazz', 'Sideswipe', 'Ratchet', 'Ironhide', 'Hound', | |
| 'Mirage', 'Trailbreaker', 'Sunstreaker', 'Bluestreak', 'Windcharger', | |
| 'Brawn', 'Huffer', 'Gears', 'Skyfire', 'Grimlock', 'Slag', 'Sludge', | |
| 'Snarl', 'Swoop', 'Warpath', 'Tracks', 'Grapple', 'Blaster', 'Red Alert', | |
| 'Smokescreen', 'Perceptor', 'Seaspray', 'Hoist', 'Powerglide', | |
| 'Beachcomber', 'Inferno', 'Cosmos', 'Omega Supreme', 'Devcon', 'Skids', | |
| 'Alana', 'Elita One', 'Chromia', 'Firestar', 'Moonracer', 'Alpha Trion', |
OlderNewer