Skip to content

Instantly share code, notes, and snippets.

View aqzhyi's full-sized avatar
💖
move your mouse away or i'll be shy

ねむけ aqzhyi

💖
move your mouse away or i'll be shy
View GitHub Profile
@aqzhyi
aqzhyi / .prettierrc.mjs
Last active September 13, 2025 05:12
prettier v3 with ESM setup
// @ts-check
/** @type {import('prettier').Config} */
const overrides = {
overrides: [
{ files: ['*.astro'], options: { parser: 'astro' } },
{ files: '*.vue', options: { parser: 'vue' } },
{ files: ['*.htm', '*.html', '*.htmlx'], options: { parser: 'html' } },
{ files: '*.scss', options: { parser: 'scss' } },
{ files: '*.css', options: { parser: 'css' } },
@aqzhyi
aqzhyi / tsconfig.json
Last active December 7, 2024 16:09
tsconfig.json for typescript^5
/** also see https://www.totaltypescript.com/tsconfig-cheat-sheet */
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowUmdGlobalAccess": true,
"allowUnreachableCode": true,
"allowUnusedLabels": false,
"alwaysStrict": true,
@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) {