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
    
  
  
    
  | BEGIN | |
| FOR cur_rec IN (SELECT object_name, object_type | |
| FROM all_objects | |
| WHERE object_type IN ('TABLE', 'VIEW', 'PACKAGE', 'PROCEDURE', 'FUNCTION', 'SEQUENCE') AND | |
| owner = '<schema_name>') | |
| LOOP | |
| BEGIN | |
| IF cur_rec.object_type = 'TABLE' THEN | |
| EXECUTE IMMEDIATE 'DROP ' || cur_rec.object_type || ' "' || cur_rec.object_name || '" CASCADE CONSTRAINTS'; | |
| 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
    
  
  
    
  | private static int OracleBulkExecuteImpl<T>(this IDbConnection cnn, ref CommandDefinition command) | |
| { | |
| object param = command.Parameters; | |
| IEnumerable multiExec = GetMultiExec(param); | |
| Identity identity; | |
| CacheInfo info = null; | |
| if (multiExec != null) | |
| { | |
| int total = 0; | |
| bool wasClosed = cnn.State == ConnectionState.Closed; | 
  
    
      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
    
  
  
    
  | // You need to configure your C# project with x86 or x64 platform (Tools\Configuration Manager\Create new Platform on the project) | |
| // otherwise the native libSkiaSharp.dll will not get copied | |
| using System; | |
| using System.IO; | |
| using SkiaSharp; | |
| namespace TestSkia | |
| { | |
| class Program | |
| { | 
  
    
      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
    
  
  
    
  | public class ValueConverterGroup : List<IValueConverter>, IValueConverter | |
| { | |
| public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
| { | |
| return this.Aggregate(value, (current, converter) => converter.Convert(current, targetType, parameter, culture)); | |
| } | |
| public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
| { | |
| throw new NotImplementedException(); | 
  
    
      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
    
  
  
    
  | * Reducing executable size: | |
| http://developer.xamarin.com/guides/cross-platform/deployment,_testing,_and_metrics/memory_perf_best_practices/#Reducing_Executable_Size | |
| * Use the linker (iOS [1], Android [2]) to remove unnecessary code from your assemblies | |
| [1] https://developer.xamarin.com/guides/ios/advanced_topics/linker | |
| [2] https://developer.xamarin.com/guides/android/advanced_topics/linking | |
| * Reference third-party libraries judiciously | |
| * Applying constraints to generics may reduce app size, since less code would need to be included (haven’t verified this) | 
  
    
      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
    
  
  
    
  | #r "Newtonsoft.Json" | |
| #r "System.Configuration" | |
| #r "Microsoft.IdentityModel.Clients.ActiveDirectory.dll" | |
| using System.Net; | |
| using System.Configuration; | |
| using System.Security.Claims; | |
| using System.Net.Http.Headers; | |
| using Newtonsoft.Json; | |
| using Microsoft.IdentityModel.Clients.ActiveDirectory; | 
  
    
      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
    
  
  
    
  | using System; | |
| using Foundation; | |
| using UIKit; | |
| using TwinCoders.TouchUtils.Extensions; | |
| using CoreGraphics; | |
| namespace SalesForce.Touch.Views | |
| { | |
| public abstract partial class ParentViewController | |
| { | 
  
    
      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
    
  
  
    
  | public const int KEY_SIZE = 16; | |
| public byte[] Encrypt (string password, string input) | |
| { | |
| var sha256CryptoServiceProvider = new SHA256CryptoServiceProvider(); | |
| var hash = sha256CryptoServiceProvider.ComputeHash(Encoding.UTF8.GetBytes(password)); | |
| var key = new byte[KEY_SIZE]; | |
| var iv = new byte[KEY_SIZE]; | |
| Buffer.BlockCopy(hash, 0, key, 0, KEY_SIZE); | 
  
    
      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
    
  
  
    
  | public override void OnActivated (UIApplication application) | |
| { | |
| //When your app is backgrounded, iOS takes a snapshot. | |
| //When the app comes back from the background it shows this snapshot at launch until your app is ready | |
| //Sometimes apple forgets to remove the splash screen. | |
| //Your app is in the forground and working. To prove it you can rotate, and see half your real screen. | |
| //To prevent this from happening you can manually remove the view | |
| foreach (var w in application.Windows) { | |
| if (w != null && w != window) { |