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 com.brandongogetap.stickyheaders.exposed.StickyHeader | |
| import com.brandongogetap.stickyheaders.exposed.StickyHeaderHandler | |
| import io.github.luizgrp.sectionedrecyclerviewadapter.SectionedRecyclerViewAdapter | |
| /** | |
| * [SectionedRecyclerViewAdapter] that implements [StickyHeaderHandler]. | |
| */ | |
| class StickyHeaderSectionedRecyclerViewAdapter: SectionedRecyclerViewAdapter(), StickyHeaderHandler { | |
| override fun getAdapterData(): List<*> { | 
  
    
      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 UIKit | |
| public extension UIDevice { | |
| public static var modelCode: String { | |
| if let simulatorModelIdentifier = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] { return simulatorModelIdentifier } | |
| var systemInfo = utsname() | |
| uname(&systemInfo) | |
| return withUnsafeMutablePointer(to: &systemInfo.machine) { | |
| ptr in String(cString: UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)) | |
| } | 
  
    
      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
    
  
  
    
  | // Copyright 2015 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'dart:async'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; | 
  
    
      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'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/services.dart' show rootBundle; | |
| import 'dart:async'; | |
| import 'dart:typed_data'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | 
  
    
      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
    
  
  
    
  | // Copyright 2017, the Flutter project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(new MyApp()); | |
| } | 
  
    
      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 android.os.Handler; | |
| import android.os.Looper; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.text.Editable; | |
| import android.text.TextWatcher; | |
| import android.widget.EditText; | |
| import java.lang.ref.WeakReference; | 
  
    
      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
    
  
  
    
  | # Only allow NSLog in DEBUG build, for all Pods | |
| # Referenced from https://gist.github.com/krzyzanowskim/7690635 | |
| # Pods-environment.h is no longer supported | |
| post_install do | installer | | |
| Dir.glob("#{installer.sandbox.target_support_files_root}/**/*.pch") do |item| | |
| open(item, "a") do |file| | |
| print "[post_install] Updating #{item}\n" | |
| file.puts <<EOF | |
| // Disable logs | |
| #ifndef DEBUG | 
  
    
      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 socket; | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| result = sock.connect_ex((host,port)) | |
| if result == 0: | |
| print "Port is open" | |
| else: | |
| print "Port is not open" | 
NewerOlder