Skip to content

Instantly share code, notes, and snippets.

View LinZap's full-sized avatar
🔬
copilot

Zap LinZap

🔬
copilot
View GitHub Profile
@LinZap
LinZap / hk2.js
Created June 8, 2019 18:11
Node.js - HK2
var i = 0
function print() {
i++;
if (i <= 3) {
console.log(new Date(),'Hello world')
setTimeout(print, 2000)
}
else {
console.log(new Date(),'OK Done...')
@LinZap
LinZap / LICENSE
Created June 4, 2019 02:36
MPL 1.1 LICENSE
# MPL
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
https://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific language governing rights and limitations
var ele = [ document.querySelector('.TopBGTitle'),
document.querySelector('#ctl00_ContentPlaceHolder1_tdLeftArea'),
document.querySelector('#ctl00_ContentPlaceHolder1_tdRightArea'),
document.querySelector('.BottomBG'),
document.querySelector('#ctl00_ContentPlaceHolder1_btnMbr'),
document.querySelector('#ctl00_ContentPlaceHolder1_btnInner'),
document.querySelector('#ctl00_ContentPlaceHolder1_uplButton>table'),
document.querySelector('#ctl00_ContentPlaceHolder1_uplTab')]
ele.forEach(e=>e.style.display = "")
document.body.style.height = ""
@LinZap
LinZap / mini-iq-chat.js
Last active May 27, 2019 10:56
Mini IQ-Chat
var ele = [ document.querySelector('.TopBGTitle'),
document.querySelector('#ctl00_ContentPlaceHolder1_tdLeftArea'),
document.querySelector('#ctl00_ContentPlaceHolder1_tdRightArea'),
document.querySelector('.BottomBG'),
document.querySelector('#ctl00_ContentPlaceHolder1_btnMbr'),
document.querySelector('#ctl00_ContentPlaceHolder1_btnInner'),
document.querySelector('#ctl00_ContentPlaceHolder1_uplButton>table'),
document.querySelector('#ctl00_ContentPlaceHolder1_uplTab')]
ele.forEach(e=>e.style.display = "none")
document.body.style.height = "auto"
@LinZap
LinZap / vsc_ext.txt
Created April 16, 2019 01:42
my vs ext
PS C:\Users\zaplin> code --list-extensions | % { "code --install-extension $_" }
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension dakara.transformer
code --install-extension donjayamanne.githistory
code --install-extension dsznajder.es7-react-js-snippets
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.auto-rename-tag
code --install-extension hoovercj.vscode-power-mode
code --install-extension lihui.vs-color-picker
@LinZap
LinZap / Teleport.lua
Last active March 4, 2019 03:34
Teleport to Waypoint
{$lua}
-- 地圖標記
-- BlipPTR = aobscanmodule(BlipPTR,GTA5.exe,4C 8D 05 ? ? ? ? 0F B7 C1)
local a = getAddress("BlipPTR")
-- 掃描 0~2000
for i = 2000, 1, -1
do
-- 1 byte = 8 bit
-- 取得記憶體位置以8為倍數掃描 BlipPTR + (i * 8)

ZapLib 受到 jQuery, Node.js 的靈感啟發,在 C# 也提供一套非常輕巧的函式庫,開發人員能夠快速完成複雜的功能。無論您需要 Http 請求、SQL Server 的查詢、.NET Web Api 的擴充函式、SMTP 寄信、Regular Expression... 等,都能用簡單的程式碼來完成它!

Installation

Package Manager

PM&gt; Install-Package ZapLib -Version 1.19.1
[
{
"Name": "AdminPasswordStatus",
"Value": 3,
"Type": 18,
"IsLocal": true,
"IsArray": false,
"Origin": "Win32_ComputerSystem",
"Qualifiers": [
{
[
{
"Name": "Caption",
"Value": "主機板",
"Type": 8,
"IsLocal": true,
"IsArray": false,
"Origin": "CIM_ManagedSystemElement",
"Qualifiers": [
{
[
{
"Name": "Availability",
"Value": null,
"Type": 18,
"IsLocal": false,
"IsArray": false,
"Origin": "CIM_LogicalDevice",
"Qualifiers": [
{