Skip to content

Instantly share code, notes, and snippets.

View Aqzhyi's full-sized avatar
:fishsticks:

__aqzhyi__ Aqzhyi

:fishsticks:
  • みなみけ
View GitHub Profile
@Aqzhyi
Aqzhyi / tsconfig.json
Last active November 21, 2023 10:18
ts5.2.2, strictest tsconfig.json
/** also see https://www.totaltypescript.com/tsconfig-cheat-sheet */
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Strictest",
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowUmdGlobalAccess": true,
"allowUnreachableCode": true,
"allowUnusedLabels": false,
@Aqzhyi
Aqzhyi / @aqzhyi _ esling-config _ eslint.config.js + prettier
Last active November 21, 2023 13:55
ESLint 8.53 Flat Config + prettier + typescript-eslint
import antfu from '@antfu/eslint-config'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import valtio from 'eslint-plugin-valtio'
import jest from 'eslint-plugin-jest'
import jestDom from 'eslint-plugin-jest-dom'
import testingLibrary from 'eslint-plugin-testing-library'
import nextjs from '@next/eslint-plugin-next'
import ts from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
@Aqzhyi
Aqzhyi / EA.mq5
Created June 11, 2021 11:26
mt5 mql5 Positions Trailing Stop
#define TicketPositionsForEach(ticket, i) \
HistorySelect(0, TimeCurrent()); \
ulong ticket = PositionGetTicket(0); \
int po_total = PositionsTotal(); \
for (int i = 1; i <= po_total; i++, ticket = PositionGetTicket(i - 1))
input string _____185512940 = "_____自動交易功能:移動止損停利第一階段"; // -
input bool SLSTOn_inp = false; // 啟用?(作用於所有倉位)
input int SLSTStepStartAt_inp = 40; // 當點數高於點數時,開始第一步步幅移動, 0=停用
input int SLSTStep_inp = 15; // 每步幅移動點數, 0=停用
@Aqzhyi
Aqzhyi / twstocks.ts
Created November 1, 2020 15:06
台灣股票證卷代碼
const twstocks = {
'705848':'禾昌元富96購01',
'705869':'穩懋元大96購01',
'707157':'同致兆豐96購01',
'707158':'威剛兆豐96購01',
'707159':'網龍兆豐96購01',
'707161':'元太國票96購01',
'707162':'旺矽國票96購01',
'707163':'信昌電國票96購01',
'707164':'宣德國票96購01',
@Aqzhyi
Aqzhyi / .screenrc
Created December 24, 2014 07:11
Mac OS X Terminal .screenrc
vbell off
autodetach on
startup_message off
shell -$SHELL
allpartial off
defc1 off
defencoding utf8
bind b encoding big5 utf8
bind u encoding utf8 utf8
@Aqzhyi
Aqzhyi / all.js
Last active November 2, 2023 15:22
facebook-restaurant-stealer
!function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t){!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=K.type(e);return"function"===n||K.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(K.isFunction(t))return K.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return K.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(at.test(t))retu
@Aqzhyi
Aqzhyi / 註冊hotmail帳號.js
Last active August 29, 2015 13:56
hotmail register
// Generated by CoffeeScript 1.7.1
(function() {
var getRandomName, getRandomNumber, getRandomStr, iAltEmail, imembernameeasi;
getRandomNumber = function(max, min) {
var range;
if (max == null) {
max = 25;
}
if (min == null) {