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 React, {useState, useEffect} from 'react'; | |
| import {Image} from 'react-native'; | |
| const AutoAdjustImage = ({source, width, height, ...props}) => { | |
| const [dimensions, setDimensions] = useState({width: 0, height: 0}); | |
| useEffect(() => { | |
| if (width && height) { | |
| setDimensions({width: width, height: height}); | |
| return; | 
  
    
      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
    
  
  
    
  | package com.magicpin.local.groceryorders; | |
| import android.util.Pair; | |
| import androidx.lifecycle.LiveData; | |
| import androidx.lifecycle.MediatorLiveData; | |
| public class CombineLiveData<A, B> { | |
| private A lastA = null; | 
  
    
      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 FileUtils { | |
| public static String getRealPath(Context context, Uri fileUri) { | |
| String realPath; | |
| // SDK < API11 | |
| if (Build.VERSION.SDK_INT < 19) { | |
| realPath = FileUtils.getRealPathFromURI_API11to18(context, fileUri); | |
| } | |
| // SDK > 19 (Android 4.4) and up | |
| else { | |
| realPath = FileUtils.getRealPathFromURI_API19(context, fileUri); | 
  
    
      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
    
  
  
    
  | package com.example.shahbaz | |
| import android.util.Log | |
| import com.crashlytics.android.Crashlytics | |
| import timber.log.Timber | |
| class CrashlyticsTree : Timber.DebugTree() { | |
| override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { | |
| super.log(priority, tag, message, t) | |
| if (priority != Log.ERROR) return | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Pixel Art Maker!</title> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Monoton"> | |
| <link rel="stylesheet" href="styles.css"> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <h1>Lab: Pixel Art Maker</h1> | 
  
    
      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
    
  
  
    
  | <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Animal Trading Cards</title> | |
| <link rel="stylesheet" href="styles.css"> | |
| </head> | |
| <body> | |
| <div id="container-div"> | |
| <!-- your favorite animal's name goes here --> | |
| <h3>The Royal Bengal Tiger</h3> | 
  
    
      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 calls = []; | |
| // HomeStreamPost Part-2 | |
| // route to get the homeStream post of a particular user | |
| server.get("/user/homeStreamPost/:email_address",function(req,res,next){ | |
| var result=[]; | |
| req.assert('email_address','Email Address is required').notEmpty().isEmail(); | |
| var errors = req.validationErrors(); | |
| if (errors) { | |
| helpers.failure(res,next,errors[0],400); | 
  
    
      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 java.util.*; | |
| public class Testing | |
| { | |
| public static void main(String args[]) | |
| { | |
| Scanner in = new Scanner(System.in); | |
| String password = in.nextLine(); | |
| String key = in.next(); | |
| int i; | 
  
    
      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
    
  
  
    
  | // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); | 
NewerOlder