Skip to content

Instantly share code, notes, and snippets.

View CyrilNb's full-sized avatar
📱

Cyril CyrilNb

📱
View GitHub Profile
@CyrilNb
CyrilNb / Formule2.json
Last active March 14, 2025 19:27
Mac GP Calendar Formule2
{
"MRDataF2":{
"RaceTableF2":{
"season":"2025",
"Races":[
{
"season":"2025",
"round":"1",
"url":"https://en.wikipedia.org/wiki/Australian_Grand_Prix",
"raceName":"Australian Grand Prix",
@CyrilNb
CyrilNb / MotoGP.json
Last active March 1, 2025 01:06
MotoGP.json
{
"MRDataMotoGP": {
"RaceTableMotoGP": {
"season": "2025",
"Races": [
{
"season": "2025",
"round": "1",
"url": "https://www.motogp.com/en/event/Thailand",
"raceName": "Thailand Grand Prix",
@CyrilNb
CyrilNb / propertiesMacGPCalendar.json
Last active August 23, 2024 10:53
propertiesMacGPCalendar
{
"useCustomCalendar": true,
"useCustomCalendarF1 ": true,
"forceUpdate": false
}
{
"useCustomCalendar": false,
"forceUpdate": true,
"useCustomCalendarF1": false,
"enableLogsnag": true,
"showCountdownF1": false,
"showCountdownF2": false,
"showCountdownMotoGP": false,
}
{
"MRData":{
"RaceTable":{
"season":"2024",
"Races":[
{
"season":"2024",
"round":"1",
"url":"https://en.wikipedia.org/wiki/2023_Bahrain_Grand_Prix",
"raceName":"Bahrain Grand Prix",
@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
@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
}
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',