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
if ( | |
$request.method === 'POST' && | |
$request.headers['Content-Type'] === 'application/json' && | |
$request.headers['User-Agent'].includes('Tangem') | |
) { | |
try { | |
let response = JSON.parse($response.body); | |
let baseFeesPerGas = response.result?.baseFeePerGas; |
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 {spawn} from 'child_process'; | |
const CONTROL_MY_MONITOR_PATH = | |
'C:\\Utilities\\controlmymonitor\\ControlMyMonitor.exe'; | |
const MONITORS = ['JPKRZG3', '6ZWV123']; | |
const MONITOR_INPUTS_DICT = { | |
'vane-station': [15, 15], | |
'vane-mbp': [27, 27], |
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
<body></body> | |
<script> | |
try{ | |
var w=20, h=20; | |
var s=10; | |
var t=2500; | |
var sl=5; | |
var lx=1, ly=0; | |
var ax=1, ay=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
import Cheerio from 'cheerio'; | |
const PROJECT_DEDUPLICATE_LIMIT = 10000; | |
const WEEKLY_STARS_THRESHOLD = 100; | |
type Context = ScriptContext<{ | |
projects: string[]; | |
}>; | |
export default async function (_payload: {}, {storage}: Context): Promise<ScriptMessage | undefined> { |
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
# Access host ports from WSL 2. | |
# https://gist.github.com/vilic/0edcb3bec10339a3b633bc9305faa8b5 | |
# Make sure WSL gets initialized. | |
bash.exe -c exit | |
# Record host name for /etc/hosts that points to host IP. | |
$HOST_NAME = "host.wsl"; | |
# Ports listened on host localhost to forward, you don't need to add the port if it listens all addresses. |
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 {Agent as HttpsAgent} from 'https'; | |
import Debug = require('debug'); | |
import _ = require('lodash'); | |
import {inflate} from 'pako'; | |
import * as ProxyAgent from 'proxy-agent'; | |
import {Subject} from 'rxjs'; | |
import WebSocket = require('ws'); | |
const US_API_URL = 'wss://api.huobipro.com/ws'; |
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
# Save this file as $PROFILE (run `echo $PROFILE` in powershell) | |
Set-Alias gh Get-Help; | |
Set-Alias cd Push-Location -Option AllScope; | |
Set-Alias cdb Pop-Location -Option AllScope; | |
Set-PSReadLineOption -HistoryNoDuplicates; | |
# For `cdp` (cd project) | |
$ProjectDirectory = 'C:\Projects'; |
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 { | |
Directive, | |
EmbeddedViewRef, | |
Input, | |
OnInit, | |
TemplateRef, | |
ViewContainerRef, | |
} from '@angular/core'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; |
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
/* http://prismjs.com/download.html?themes=prism-twilight&languages=markup+css+clike+javascript+aspnet+c+csharp+cpp+css-extras+handlebars+java+json+less+typescript */ | |
/** | |
* prism.js Twilight theme | |
* Based (more or less) on the Twilight theme originally of Textmate fame. | |
* @author Remy Bach | |
*/ | |
code[class*="language-"], | |
pre[class*="language-"] { | |
color: white; | |
background: none; |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] | |
"MingLiU"=hex(7):4d,00,49,00,43,00,52,00,4f,00,53,00,53,00,2e,00,54,00,54,00,\ | |
46,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,53,\ | |
00,61,00,6e,00,73,00,20,00,53,00,65,00,72,00,69,00,66,00,2c,00,34,00,30,00,\ | |
2c,00,34,00,38,00,00,00,4d,00,49,00,43,00,52,00,4f,00,53,00,53,00,2e,00,54,\ | |
00,54,00,46,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,\ | |
20,00,53,00,61,00,6e,00,73,00,20,00,53,00,65,00,72,00,69,00,66,00,00,00,53,\ | |
00,49,00,4d,00,53,00,55,00,4e,00,2e,00,54,00,54,00,43,00,2c,00,53,00,69,00,\ |
NewerOlder