This file contains 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
// ViewController.swift | |
// PattyScanner | |
// Created by PattysiChip on 2019/2/20. | |
// Copyright © 2019 PattysiChip. All rights reserved. | |
import UIKit | |
import AVFoundation | |
import CoreGraphics | |
// AVCaptutureMetadataOutput 是 Read barcode 的核心,能夠 intercept 攔截來自輸入裝置的原資料。 |
This file contains 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
// ViewController.swift | |
// PattyScanner | |
// Created by PattysiChip on 2019/2/20. | |
// Copyright © 2019 PattysiChip. All rights reserved. | |
import UIKit | |
import AVFoundation | |
import CoreGraphics | |
// AVCaptutureMetadataOutput 是 Read barcode 的核心,能夠 intercept 攔截來自輸入裝置的原資料。 | |
// 此協定能讓元資料被擷取時,將其轉給代理 self 操作。 |
This file contains 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
// ViewController.swift | |
// PattyScanner | |
// Created by PattysiChip on 2019/2/20. | |
// Copyright © 2019 PattysiChip. All rights reserved. | |
import UIKit | |
import AVFoundation | |
import CoreGraphics | |
// AVCaptutureMetadataOutput 是 Read barcode 的核心,能夠 intercept 攔截來自輸入裝置的原資料。 | |
// 此協定能讓元資料被擷取時,將其轉給代理 self 操作。 |
This file contains 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
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 28 | |
defaultConfig { | |
applicationId "com.pattyappier.pattyluvapp.no5robot" | |
minSdkVersion 27 | |
targetSdkVersion 28 | |
versionCode 1 | |
versionName "1.0" |
This file contains 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.pattyappier.pattyluvapp.pattysqrcoder.feature; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.os.Bundle; | |
import android.util.SparseArray; |
This file contains 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 pyrebase | |
import GooPy | |
import pyrebase | |
config = { | |
"apiKey": "AIzaSyClr4KhSkUVy0kMipcXCYMCMpDCFgBEXKY", | |
"authDomain": "pattys-goopy-1527579295440.firebaseapp.com", | |
"databaseURL": "https://pattys-goopy-1527579295440.firebaseio.com", |
This file contains 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 var1 = false #Boolean Type | |
fun() { | |
var1 = false | |
Database.database() | |
.reference() | |
.child("Requests Name") | |
.queryOrdered(byChild:"value1 name") | |
.queryEqual(toValue: "alue1 name") |
This file contains 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 urllib.request | |
import json | |
import ssl | |
import googleapiclient | |
endpoint = 'https://maps.googleapis.com/maps/api/distancematrix/json?' | |
ssl._create_default_https_context = ssl._create_unverified_context | |
api_key = 'AIzaSyC14nJwhxNKsRtDWZNZzM_vCu0D4imEwBs' |
This file contains 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
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Wish Luck is with you today!" | |
#if _name_ == "_main_": | |
#app.run() |
This file contains 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.pattychen.pattyspockemon | |
import android.content.Context | |
import android.content.pm.PackageManager | |
import android.location.Location | |
import android.location.LocationListener | |
import android.location.LocationManager | |
import android.os.Build | |
import android.support.v4.app.FragmentActivity | |
import android.os.Bundle |
NewerOlder