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.smartlock; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.ReactContextBaseJavaModule; | |
public class SmartLockModule extends ReactContextBaseJavaModule { | |
private static ReactApplicationContext reactContext; | |
public static final String REACT_CLASS = "SmartLock"; | |
SmartLockModule (ReactApplicationContext context) { |
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 AsyncStorage from '@react-native-community/async-storage'; | |
import React, { useState } from 'react'; | |
import { Alert, Button, SafeAreaView, StatusBar, StyleSheet, Text, TextInput } from 'react-native'; | |
import { NavigationStackProp } from 'react-navigation-stack'; | |
type Props = { | |
navigation: NavigationStackProp | |
} | |
const Login: React.FC<Props> = ({ navigation }) => { |
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
typedoc --excludeExternals --externalPattern "**/node_modules/**" --ignoreCompilerErrors --name<name of project> --mode "file" --out "<path to file>" "<path of file>" |
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
adb shell setprop log.tag.FA VERBOSE | |
adb shell setprop log.tag.FA-SVC VERBOSE | |
adb logcat -v time -s FA FA-SVC |
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
Show hidden characters
{ | |
"extends": [ | |
"tslint:recommended", | |
"tslint-config-standard", | |
"tslint-react", | |
"tslint-config-prettier" | |
], | |
"rules": { | |
"class-name": true, | |
"member-access": false, |
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
// JavaScript code that finds dates for today, this weekend, this month, next month | |
// This weekend = next Sat and Sun | |
// This month = today to end of this month | |
// Next month = 1st of next month = end of next month | |
// Useful on Business Catalyst web app search form for searching from-to dates | |
// Requires jquery and moment.js | |
$(document).ready(function(){ | |
$('#today_nav').on("click", function(){ |