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
//#define LOG_DEBUG | |
//#define LOG_THREAD_STATE | |
using UnityEngine; | |
using System; | |
using System.Text; | |
using System.Threading; | |
using System.Collections; | |
using System.Reflection; | |
using System.Diagnostics; |
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
@echo off | |
set OUTPUT_LIB=MyPackage.dll | |
set INPUT_FILES=^ | |
..\src\MySource1.cs ^ | |
..\src\MySource2.cs | |
set DEFINES=LOG_DEBUG,MY_DEBUG |
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
--[[ | |
The MIT License (MIT) | |
Copyright (c) Cheyi Lin <[email protected]> | |
]] | |
local bit_xor | |
if jit and jit.version_num > 20000 then | |
bit_xor = bit.bxor | |
else | |
bit_xor = bit32.bxor |
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
local print = print -- upvalue index 1 | |
local a = 100 -- upvalue index 2 | |
function func() | |
print("in func: ", a, b) | |
end | |
-- set global 'a', 'b' to function 'func' | |
setfenv(func, { a = 200, b = 101 }) |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "18" | |
kubectl.kubernetes.io/last-applied-configuration: | | |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{"kubernetes.io/change-cause":"kubectl apply --filename=deploy\\system\\ingress\\nginx-ingress-controller.yaml --record=true"},"name":"nginx-ingress-controller","namespace":"nginx-ingress"},"spec":{"replicas":4,"revisionHistoryLimit":2,"selector":{"matchLabels":{"k8s-app":"nginx-ingress-lb"}},"strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0},"type":"RollingUpdate"},"template":{"metadata":{"annotations":{"prometheus.io/port":"10254","prometheus.io/scrape":"true"},"labels":{"k8s-app":"nginx-ingress-lb"}},"spec":{"containers":[{"args":["/nginx-ingress-controller","--default-backend-service=$(POD_NAMESPACE)/default-http-backend","--configmap=$(POD_NAMESPACE)/nginx-config","--tcp-services-configmap=$(POD_NAMESPACE)/nginx-tcp-ingress-configmap","-- |
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
No 001: 09/07 | |
No 002: 05/20 | |
No 003: 09/06 | |
No 004: 03/15 | |
No 005: 10/28 | |
No 006: 12/24 | |
No 007: 11/11 | |
No 008: 11/03 | |
No 009: 09/18 | |
No 010: 07/26 |
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
on idle | |
set checkIval to 60 | |
set vpnName to "YOUR_VPN_NAME" | |
set pingDest to "PING_DEST_THRU_VPN" | |
tell application "System Events" | |
tell current location of network preferences | |
set vpnConn to service vpnName | |
if vpnConn is not null then | |
if current configuration of vpnConn is connected then |
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
# https://www.techjunkie.com/hidpi-mode-os-x/ | |
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true | |
defaults write com.apple.dock autohide-delay -int 0 | |
defaults write com.apple.dock autohide-time-modifier -float 0.4 | |
killall Dock | |
defaults write bluetoothaudiod "Enable AptX codec" -bool true | |
defaults write bluetoothaudiod "Enable AAC codec" -bool 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
package main | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
"time" | |
"golang.org/x/time/rate" | |
) |