| Opkodas, operandai | Opkodo aprašymas | Bitflagai |
|---|---|---|
ADDWF f, d |
Sumuoti W su f registrų turinį d registre |
C, DC, Z |
ADDLW k |
Sumuoti k su W |
C, DC, Z |
ANDWF f, d |
Vykdyti AND operaciją tarp W ir f registrų turinio d registre |
Z |
ANDLW k |
Vykdyti AND operaciją tarp k ir W |
Z |
CLRF f |
Išvalyti f registrą |
Z |
Since, I couldn't find any proper text clipping function for the typst documents on the internet, i've decided to make it myself. This function utilizes binary search to find the most optimal clipped text length, according to its rendered counterpart.
By default clipped text content is being suffixed by ... marker which you can change by setting marker function argument to anything else:
#let clip(text, content, length, marker: "...") = {
context {
let element = content(text)
if (measure(element).width <= length) {
return elementThis tutorial allows you to manually set version of microsoft/terminal to be used as default terminal with and without administrative privileges on Microsoft Windows 10 or 11.
Note
This tutorial is for educational purposes only. I am not responsible for any damages that may have caused this. By attempting to follow this guide, you are on your own risk.
- Download unpackaged version of Microsoft Terminal from GitHub. You can find latest working version for this guide here..
[!NOTE]
| // ==UserScript== | |
| // @name Hide Discord App Bar | |
| // @namespace Violentmonkey Scripts | |
| // @match *://discord.com/channels/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author Dovias | |
| // @source https://gist.github.com/Dovias/7f2a4d4cf86254e418a6adca9adb1f5f | |
| // @description 3/25/2025, 10:11:25 PM | |
| // ==/UserScript== |
Sukurti giją galime parašius šį kodą:
int pthread_create(pthread_t *, const pthread_attr_t *, void * (*)(void *), void *);int- skaičius, kurį gražina funkcija atitinkamai ar gija buvo sukurta, ar ne.pthread_t *(unsigned int *) - rodyklė į vietą, kur funkcija išsaugos gijos identifikatorių.pthread_attr_t *- rodyklė į tą vietą, kur saugomi gijai būdingi atributai (gali būtiNULL, tada bus naudojami numatyti atributai.)void * (*)(void *)- rodyklė į tą vietą, kur yra saugomas funkcijos kodas.void *- rodyklė į tą vietą, kur saugomas į funkciją paduodamas vienas parametras (gali būti bet kokia reikšmė)
| [Logitech M705 Marathon Mouse] | |
| MatchVendor=0x046D | |
| MatchProduct=0x406D | |
| AttrEventCode=-REL_WHEEL_HI_RES;-REL_HWHEEL_HI_RES; |
| --- config.def.h | |
| +++ config.def.h | |
| @@ -4,4 +4,5 @@ /* appearance */ | |
| static const unsigned int borderpx = 1; /* border pixel of windows */ | |
| static const unsigned int snap = 32; /* snap pixel */ | |
| +static const unsigned int minwsz = 20; /* Minimal height of a client for smfact */ | |
| static const int showbar = 1; /* 0 means no bar */ | |
| static const int topbar = 1; /* 0 means bottom bar */ | |
| @@ -35,3 +35,4 @@ /* layout(s) */ | |
| static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ |
| diff --git a/dwm.c b/dwm.c | |
| index f1d86b2..8b04e0b 100644 | |
| --- a/dwm.c | |
| +++ b/dwm.c | |
| @@ -48,7 +48,7 @@ | |
| #define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) | |
| #define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \ | |
| * MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy))) | |
| -#define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) | |
| +#define ISVISIBLEONTAG(C, T) ((C->tags & T)) |
| { | |
| "keyfiles": ["vite.config.ts", "vite.config.js"], | |
| "target": "terminus_exec", | |
| "cancel": "terminus_cancel_build", | |
| "variants": [ | |
| { | |
| "name": "Build", | |
| "shell_cmd": "npm run build" | |
| }, |