tags | ||
---|---|---|
|
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
EXOPLAYER_ROOT="$(pwd)" | |
FFMPEG_EXT_PATH="${EXOPLAYER_ROOT}/extensions/ffmpeg/src/main" | |
HOST_PLATFORM="darwin-x86_64" | |
NDK_PATH="<PATH_TO_NDK>" | |
COMMON_OPTIONS="\ | |
--target-os=android \ | |
--disable-static \ | |
--enable-shared \ | |
--disable-doc \ | |
--disable-programs \ |
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
#!/bin/bash | |
echo "Starting Docker installation on Deepin Linux..." | |
# Define a mapping from Deepin version to Debian version | |
map_deepin_to_debian() { | |
if [ "$1" -lt 20 ]; then | |
echo "stretch" | |
elif [ "$1" -ge 20 ]; then | |
echo "buster" |
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
#if UNITY_EDITOR | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Reflection; | |
public class EditorFontSize : EditorWindow | |
{ | |
// enable resize on launch to set a default font size , using this option will disable the ability to have the window accassible |
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
daemon off; | |
worker_processes 1; | |
error_log logs/error.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
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
module.exports = { | |
theme: { | |
extend: {}, | |
screens: { | |
xl: { max: "1279px" }, | |
// => @media (max-width: 1279px) { ... } | |
lg: { max: "1023px" }, | |
// => @media (max-width: 1023px) { ... } |
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
{ | |
http_port 8080 | |
https_port 8443 | |
# debug | |
security { | |
authentication portal myportal { | |
crypto default token lifetime 3600 | |
crypto key sign-verify {env.JWT_SHARED_KEY} | |
backend local {env.HOME}/.local/caddy/users.json local |
How to Deal with Unhandled Exceptions in JavaScript
The following code shows how you might create and report an error, and how it may be caught by adding a listener for the error
event.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event
window.addEventListener('error', (event) => {
OlderNewer