$ rm -rf android
$ rm -rf ios
"name": "dutainformasi.siakad",
#QRCode geneartion made easy | |
import os | |
import pyqrcode | |
from PIL import Image | |
class QRCode(object): | |
def __init__(self,text): | |
self.qr_image = self.qr_generator(text) |
import React, {useState} from "react"; | |
import axios from "axios"; | |
import config from "../config" | |
const endpoint = config.apiGateway.URL; | |
export const Upload = () => { | |
const [file, setFile] = useState<File | undefined>() |
/** | |
* This was a proof of concept for me to be able to | |
* retrieve an API key using a Netlify environment variable | |
* using this lambda function. I spent a lot of time looking | |
* for a complete example like this--without any luck. | |
* | |
* So, here's a step-by-step of what I did. | |
* | |
* 1) For this function to work, define the env variable in | |
* Netlify > Site > Build & Deploy > Environment > Edit Variables |
function hostReachable() { | |
// Handle IE and more capable browsers | |
var xhr = new ( window.ActiveXObject || XMLHttpRequest )( "Microsoft.XMLHTTP" ); | |
var status; | |
var server = window.location.hostname; | |
if (window.location.port != '') { | |
server += ':'+window.location.port; | |
} |
import React, { useState } from 'react'; | |
import { StyleSheet, View, Dimensions } from 'react-native'; | |
import Animated, { | |
useSharedValue, | |
useAnimatedGestureHandler, | |
withSpring, | |
useAnimatedStyle, | |
withTiming, | |
useDerivedValue, | |
runOnJS |
npm install auth0-js@9.13.4 auth0-lock@11.25.1 express@4.17.1 express-jwt@5.3.1 express-jwt-authz@1.0.0 jwks-rsa@1.3.0 npm-run-all@4.1.5 react-router-dom@5.2.0 |
using System.IdentityModel.Tokens.Jwt; | |
using System.Security.Claims; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using Microsoft.Extensions.Caching.Distributed; | |
using Microsoft.IdentityModel.Tokens; | |
/// <summary> | |
/// Reject JWT token containing blacklisted JTI. The JTI is registered into cache provider to be blacklisted, |
Next.js blurs the lines between client and server. It supports pre-rendering pages at build time (SSG) or request time (SSR). Prisma is the perfect companion if you need to work with a database in a Next.js app.
Here is a list of example apps that are based on Next.js and use Prisma on the server to access data from a database:
✍️ Language | 🤖 Server | 🔐 Authentication | 🔗 URL |
---|---|---|---|
TypeScript | API Routes | Yes (via NextAuth.js) | URL |
TypeScript | API Routes | No |
import * as yup from 'yup'; | |
import { setIn } from 'final-form'; | |
const validationSchema = yup.object({ | |
email: yup.string().email(), | |
shipping: yup.object({ | |
name: yup.string(), | |
phone: yup.object({ | |
code: yup.string().matches(/^\+\d+$/i), | |
number: yup.number().max(10), |