- "Introduction to Bluetooth Low Energy" by Adafruit.
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 { | |
| ElementRef, | |
| ForwardRefExoticComponent, | |
| createElement, | |
| forwardRef, | |
| } from "react"; | |
| import { cn } from "./utils"; | |
| export function extend<T extends { className?: string }>( | |
| Component: ForwardRefExoticComponent<T>, |
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
| Write-Host "Cleaning up build files in all Flutter and Android projects..." | |
| $rootPath = Get-Location | |
| Get-ChildItem -Path $rootPath -Recurse -Directory | ForEach-Object { | |
| $currentDir = $_ | |
| $flutterProject = Join-Path $currentDir.FullName "pubspec.yaml" | |
| $androidProject = Join-Path $currentDir.FullName "android\gradlew" | |
| if (Test-Path $flutterProject) { |
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.louiscad.splitties.eap.bottomsheet | |
| import android.app.Activity | |
| import android.view.ViewGroup | |
| import androidx.activity.compose.BackHandler | |
| import androidx.compose.material.ExperimentalMaterialApi | |
| import androidx.compose.material.ModalBottomSheetLayout | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.DisposableEffect | |
| import androidx.compose.runtime.getValue |
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
| // MIT License | |
| // | |
| // Copyright (c) 2019 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
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
| name: Build and Deploy Website | |
| on: push | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - uses: actions/setup-java@v1 | |
| with: |
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.davidmedenjak.babel; | |
| import android.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.content.res.Configuration; | |
| import android.content.res.Resources; | |
| import android.os.Build; | |
| import android.os.LocaleList; | |
| import android.support.annotation.NonNull; | |
| import android.support.v4.os.LocaleListCompat; |
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
| // https://stackoverflow.com/a/30256880/538284 | |
| // https://stackoverflow.com/a/42241730/538284 | |
| // https://stackoverflow.com/a/38082715/538284 | |
| import android.content.Context; | |
| import android.support.v7.widget.GridLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.TypedValue; | |
| public class GridAutoFitLayoutManager extends GridLayoutManager { |
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
| def installAll = tasks.create('installAll') | |
| installAll.description = 'Install all applications.' | |
| android.applicationVariants.all { variant -> | |
| installAll.dependsOn(variant.install) | |
| // Ensure we end up in the same group as the other install tasks. | |
| installAll.group = variant.install.group | |
| } |
NewerOlder