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
    
  
  
    
  | var vueTest = ('__defineSetter__' in Object.prototype); | 
  
    
      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
    
  
  
    
  | var vueTest = ('__defineSetter__' in Object.prototype); | 
  
    
      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
    
  
  
    
  | // todo: get route values from action parameters? | |
| public static RedirectToActionResult RedirectToAction<T>(this Controller controller, Expression<Action<T>> action, object routeValues) where T : Controller | |
| { | |
| if (!(action?.Body is MethodCallExpression body)) throw new ArgumentException("Expression must be a method call."); | |
| if (body.Object != action.Parameters[0]) throw new ArgumentException("Method call must target lambda argument."); | |
| string actionName = body.Method.Name; | |
| var actionNameAttributes = body.Method.GetCustomAttributes(typeof(ActionNameAttribute), false); | |
| if (actionNameAttributes.Length > 0) | 
  
    
      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
    
  
  
    
  | #! /bin/bash | |
| # place this script and your 1024x1024 icon in the same directory then run | |
| # usage sh makeicons.sh [nameof1024file.png] | |
| declare dir=$(pwd) | |
| declare -a sizes=( 16 20 29 32 40 48 50 55 57 58 60 64 72 76 80 87 88 100 114 120 128 144 152 167 172 180 196 256 512 1024 ) | |
| for i in "${sizes[@]}" | |
| do | |
| sips --resampleWidth "$i" "${dir}/${1}" --out "${dir}/Icon-$i.png" |