Skip to content

Instantly share code, notes, and snippets.

View CyrilNb's full-sized avatar
📱

Cyril CyrilNb

📱
  • Remoting
View GitHub Profile
ext {
compileSDKVersionValue = 29
minSDKVersionValue = 22
targetSDKVersionValue = 29
libraries = [
cardView : 'androidx.cardview:cardview:1.0.0',
androidXLegacySupport : 'androidx.legacy:legacy-support-v4:1.0.0',
androidXAppCompat : 'androidx.appcompat:appcompat:1.1.0',
@CyrilNb
CyrilNb / CustomWebView.txt
Last active September 16, 2021 19:06
[Android] webview permission camera + file picker
class MoonPayPaymentWebView : AppCompatActivity() {
companion object {
const val PERMISSION_REQUEST_CODE = 1000
const val REQUEST_SELECT_FILE = 1001
private const val FILECHOOSER_RESULTCODE = 1002
private var mUploadMessage: ValueCallback<Uri?>? = null
var uploadMessage: ValueCallback<Array<Uri>>? = null
}
@CyrilNb
CyrilNb / gestures.swift
Created December 4, 2023 01:30
iOS SwftUI gestures
// ContentView.swift
import SwiftUI
struct ContentView: View {
@State var dragAmount: CGSize = .zero
@State var currentMagnificationAmount = 0.0
@State var finalMagnificationAmount = 1.0
@State var currentRotationAngle: Angle = .zero
@State var finalRotationAngle: Angle = .zero
{
"useCustomCalendar":true,
"forceUpdate":false,
}
{
"MRData":{
"RaceTable":{
"season":"2024",
"Races":[
{
"season":"2024",
"round":"1",
"url":"https://en.wikipedia.org/wiki/2023_Bahrain_Grand_Prix",
"raceName":"Bahrain Grand Prix",