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
name: Flutter Build Android APK and Windows EXE | |
on: [workflow_dispatch] | |
jobs: | |
apk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 |
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
function process(input) { // takes (string) -› returns int | |
let scan_t = [0, 0]; // scan init | |
let graph = input | |
.split('') | |
.map((c) => { | |
switch (c) { | |
case '<': return [-1, 0]; | |
case '^': return [0, 1]; | |
case '>': return [1, 0]; | |
case 'v': return [0, -1]; |
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
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es2021": true | |
}, | |
"extends": ["eslint:recommended", "next"], | |
"rules": { | |
"@next/next/no-img-element": "off", | |
"jsx-a11y/alt-text": "off", |
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 React from "react"; | |
import TextField from "@material-ui/core/TextField"; | |
import DvTextField from "./DvTextField"; | |
export default function Demo() { | |
return ( | |
<> | |
<DvTextField | |
ParentComponent={TextField} | |
customRef="inputRef" |
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
#[derive(Debug)] | |
enum Fruits { | |
Apple, | |
Banana, | |
Orange, | |
Gauva, | |
} | |
#[derive(Debug)] | |
enum Vegetables { |
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
proxy_cache_path /var/cache/nginx keys_zone=my_cache:20m use_temp_path=off; | |
proxy_cache my_cache; | |
proxy_cache_lock on; | |
proxy_cache_lock_timeout 20s; | |
map $http_authorization $cachecontrol { | |
"" "public, max-age=10, s-maxage=5, stale-while-revalidate=20"; | |
} | |
server { |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mDMEXw8Q9hYJKwYBBAHaRw8BAQdAPqAvsfCNNRE7crfTijQUWOPA5cDGSP2+xu/h | |
U+qchZe0LE1hanVkaHUgKG1hanVkaHUuY28pIDxtYWp1ZGh1LnN1cEBnbWFpbC5j | |
b20+iJYEExYIAD4WIQTVdQRBFtfZLNSSoDiV5qedexkKxQUCXw8Q9gIbAwUJCWYB | |
gAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCV5qedexkKxRsXAPkBkLsb1AXG | |
sPNdG5W11Sw5X40prgH3QxqB1GVv+y43uwEAxPjXh7ulz9TCtJK6H23jm2TpJdO2 | |
k7WMX6WDknJP2AO4OARfDxD2EgorBgEEAZdVAQUBAQdAN7MwsW6QIYSo5vlws56s | |
6FyV7uQOG/8M75F0VERvwmkDAQgHiH4EGBYIACYWIQTVdQRBFtfZLNSSoDiV5qed | |
exkKxQUCXw8Q9gIbDAUJCWYBgAAKCRCV5qedexkKxYoAAQCz7w5OiZMU+bB4dscF |
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
GRUB_DEFAULT=saved | |
GRUB_TIMEOUT=1 | |
GRUB_TIMEOUT_STYLE=hidden | |
GRUB_DISTRIBUTOR="Manjaro" | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash apparmor=1 security=apparmor udev.log_priority=3 udev.log_priority=3 noirqdebug pci=noaer i915.enable_psr=0 idle=nomwait i915.enable_dc=0 i915.enable_fbc=0 processor.max_cstate=1 rcu_nobs=0-11 i915.enable_gvt=1 kvm.ignore_msrs=1" | |
GRUB_CMDLINE_LINUX="" | |
# If you want to enable the save default function, uncomment the following | |
# line, and set GRUB_DEFAULT to saved. | |
GRUB_SAVEDEFAULT=true |
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
internal: 0.0.0.0 port=8888 | |
external: eth0 | |
socksmethod: none | |
clientmethod: none | |
client pass { | |
from: 0.0.0.0/0 to: 0.0.0.0/0 | |
} |
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
const API_URL = 'http://localhost:1337/api/'; | |
const OPTIONS = { headers: { Authorization: `Bearer ${TOKEN}` } }; | |
async function query(path) { | |
return (await fetch(API_URL + path, OPTIONS)).json(); | |
} | |
export async function getList(path) { | |
const data = await query(path); | |
return data.data.map(({ id, attributes }) => ({ id, ...attributes })); |
OlderNewer