Skip to content

Instantly share code, notes, and snippets.

View y-ack's full-sized avatar
♻️
brain damage per second

ywy y-ack

♻️
brain damage per second
View GitHub Profile
@y-ack
y-ack / EditGrid.ps1
Created March 14, 2019 02:40
TextADinosaur
using namespace System.Collections.Generic
using namespace System.Management.Automation.Host
using module .\Widget.psm1
class EditGrid : Widget
{
[BufferCell[,]]$Grid
[Coordinates]$Cursor
[Bool]$CursorOn = $True
[CmdletBinding()]
Param(
[uint32]$first_packet = 0,
[int]$port = 26760,
[System.Net.IPAddress]$address = [System.Net.IPAddress]::Parse("127.0.0.1"),
[bool]$listen_thread = $false
)
$packetcount = $first_packet
#keeps track of how many more frames a packet should be sent for
$activePackets = @(0,0,0)
@y-ack
y-ack / find-missing.ps1
Last active March 19, 2019 04:04
mssing documentation
Set-Clipboard ((((Invoke-WebRequest "updog" -Credential "junkdata").Content) -split "`n") -match "missing!" | sort)
#IfWinActive ahk_exe citra-qt.exe
#Warn
; macOS/GNU+Linux: use "~/.config/citra-emu/config/qt-config.ini"
configDir := A_AppData . "\Citra\config\qt-config.ini"
global buttonA = "A"
global buttonB = "S"
global buttonY = "X"
global buttonX = "Z"
302e40: 7048
302e50: dbc8
302e60: dc7c
302e70: 7059
302e80: e37c
302e90: 703f
302ea0: 7058
302eb0: 705a
302ec0: d578
302ed0: dce8
let techspooks = ["NFT","Windows 11","swarm computing","massively multiplayer","6D","3D","4D","4.21-bit","5.0","5g","6g","8-bit","128-bit","10x engineer","adversarial","agile","AI","algorithm","always-online","as a Service","Assistant","big data","bitcoin","black box","blast processing","blockchain","brain interface","buffer overflow","C++","camel-case","CI/CD","cloud","Code of Conduct","coin","combinator","crowdfunding","crowdsourcing","crypto","cyber","data mining","database","decentralized","deep learning","deep web","DevOps","discrimination","E2EE","easy deployment","edge computing","encrypted","enterprise","emoji support","event-driven","federated","floating point","fog-computing","FPGA","free","functional","gaming","garbage collection","generative","generator","graphics","hardcoded","hardware","hash","infinite","instruction manual","IoT","Java","keylogger","L-system","lifelike","linear search","list","localhost","lootbox","low-latency","machine learning","man-in-the-middle","microservice","minimalist","
@y-ack
y-ack / d
Last active February 9, 2020 19:23
- 4EKX51F (PASCII_PLAT): 0, 0, 0, 0
- 4R4P3S3Q4 (PBRAINF): 0, 0, 0, 0
- 4DKXEQ3N4 (PDIMENSIONS): 2016, 3016, 0, 0
- 4KK8VPEY (PMID): 0, 0, 0, 0
- 424JQK3NJ (PJNK_DISLIKE): 2000, 0, 0, 0
- 4S2N4W3QV (PJNK_FLAPPADIDDLE): 0, 0, 0, 0
- 4XYV34J (PJNK_POPCORN): 0, 0, 0, 0
- 424PN33N4 (PJNK_BLOCKMAN_GETS): 0, 0, 0, 0
- 42RN383KV (PJNK_CENTIPONG): 0, 0, 0, 0
- 44ZK5JESD (PJNK_HS): 0, 0, 0, 0
@y-ack
y-ack / life.s
Last active March 15, 2021 00:00
.file "life.c"
.intel_syntax noprefix
.text
.Ltext0:
.p2align 4
.type neighbor_count._omp_fn.0, @function
neighbor_count._omp_fn.0:
.LVL0:
.LFB29:
.file 1 "life.c"
/* y */
/* zendesk */
/* for 12 frontend */
/* ~10% complete */
:root {
--navigation-hue-primary: rgb(15, 53, 84);
--navigation-hue-secondary: rgb(11, 39, 62);
--navigation-text-color: #FFFFFF;
--button-primary: rgb(31, 115, 183);
-- -*- coding: utf-8; mode: lua -*-
-- 筆(墨)3 by Medibang. Inc.
-- Modified by Y to allow dynamic pressure
first_call = true
point_count = 0
max_width = 0
max_alpha = 0
last_x = nil
last_y = nil