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
    
  
  
    
  | import 'package:flutter/material.dart'; | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | 
  
    
      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 long FibonacciNumber(long n) | |
| { | |
| if (n > 92) | |
| throw new ArgumentOutOfRangeException("n", "Fib(>92) will cause a 64-bit integer overflow."); | |
| if (n < -92) | |
| throw new ArgumentOutOfRangeException("n", "Fib(<-92) will cause a 64-bit integer overflow."); | |
| var sqrt5 = Math.Sqrt(5); | |
| var bigPhi = (sqrt5 + 1) / 2; | 
  
    
      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 Xamarin.Forms; | |
| namespace DraggableView | |
| { | |
| public class App | |
| { | |
| public static Page GetMainPage() | |
| { | |
| return new ContentPage | |
| { | 
  
    
      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 CustomAndroidEntryRenderer : EntryRenderer | |
| { | |
| protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) | |
| { | |
| base.OnElementChanged(e); | |
| if (e.OldElement == null) { | |
| // Get the 'native' control | |
| var nativeTextField = (EditText)Control; | |
  
    
      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 food = { | |
| fruit: [ | |
| { name: 'banana', value: 'joke fruit', type: 'fruit' }, | |
| { name: 'apple', value: 'newtonian legend', type: 'fruit' } | |
| ], | |
| vegetables: [ | |
| { name: 'cabbage', value: 'filth', type: 'vegetable' }, | |
| { name: 'broccoli', value: 'green evil', type: 'vegetable' } | |
| ] | |
| }; | 
  
    
      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
    
  
  
    
  | $.getScript('http://example.com/script1.js', function () { | |
| alert('Script Loaded'); | |
| }); | 
  
    
      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 id = 1; | |
| using (var db = new entityContext()) | |
| { | |
| // Select entity | |
| var entity = db.dbset.FirstOrDefault(e => e.ID == id); | |
| if (entity != null) | |
| { | |
| // Remove Entity | |
| db.dbset.Remove(entity); | |
| db.SaveChanges(); | 
  
    
      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
    
  
  
    
  | context.translate(0.5, 0.5); | 
  
    
      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 secondsSinceReferenceDate = 386463600; // 2013-4-1 | |
| var referenceDate = new DateTime(2001, 1, 1); | |
| var databaseUtcTime = refdate.AddSeconds(secondsSinceReferenceDate); | |
| TimeZoneInfo timeZone; | |
| try { | |
| timeZone = TimeZoneInfo.FindSystemTimeZoneById("Europe/Dublin"); | |
| } | |
| catch (Exception) | 
  
    
      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
    
  
  
    
  | if (_memoryCache.Get(key) == null) | |
| _memoryCache.Put(key, bitmap); | 
NewerOlder