Skip to content

Instantly share code, notes, and snippets.

View figital's full-sized avatar
💭
github status lol

figital figital

💭
github status lol
View GitHub Profile
xrandr --newmode "nano-full" 245.75 2160 2312 2544 2928 1350 1353 1359 1400 -hsync +vsync
xrandr --addmode Virtual1 "nano-full"
xrandr --output Virtual1 --mode "nano-full"
Once upon a time, there was a little toy bear who was feeling bored and restless. He had been sitting on the shelf for days with nothing to do, and he longed for some excitement. One day, he decided to take matters into his own hands and find something fun to do.
The little toy bear thought long and hard about what he could do to have some fun. He considered going for a walk or reading a book, but those activities didn't seem exciting enough. Finally, he came up with a brilliant idea: he would dig a giant hole! With his little paws and determination, he dug and dug until the hole was big enough to fit his entire body.
Feeling very pleased with himself, the little toy bear wanted to make his hole even more exciting. So he went to the store and bought some cool fish and aquatic plants. He carefully placed them in the hole and waited patiently for them to settle in. When the fish and plants were happy and comfortable, the little toy bear jumped into the water and swam around with his new friends.
From that da
@figital
figital / lew-svg-path
Created May 7, 2021 15:41
svg path of lew sig
M35.167,33.025c-5.388,0.496-10.979,0.139-16.232-1.126c-4.052-0.976-7.994-2.891-10.237-6.536
c-2.483-4.035-1.031-8.467,3.36-9.978c7.354-2.53,17.166,1.789,20.857,8.354c5.541,9.853-4.753,21.687-13.725,24.564
c-5.382,1.726-10.103-0.546-12.206-5.735c-2.619-6.461,0.908-13.397,5.104-18.216c7.892-9.063,24.986-14.604,33.271-3
c2.233,3.127,4.928,11.066,1.11,13.875C42.704,38,36.226,35.374,34.729,31.303c-1.923-5.23,3.748-8.361,7.856-9.25
c4.844-1.047,10.296,0.096,14.442,2.712c3.026,1.909,6.65,10.83,0.74,7.442c-5.502-3.154-3.688-8.892,1.102-11.599
c4.902-2.771,11.429-0.707,15.532,2.524c1.626,1.281,3.065,3.104,3.181,5.235c0.139,2.552-3.605,4.172-5.587,3.117
c-3.318-1.766-1.048-6.672,0.798-8.453c4.353-4.196,13.177-3.378,18.171-1.085c3.453,1.586,6.361,5.935,3.3,9.26
c-2.777,3.016-10.857,1.957-9.917-3.135c0.877-4.752,7.26-6.804,11.219-7.647c6.676-1.421,13.839,0.123,19.176,4.371
c3.048,2.426,6.593,7.492,3.567,11.206c-3.146,3.861-9.37,2.538-11.514-1.416c-5.057-9.327,4.522-19.215,12.87-21.259
c12.708-3.111,25.905,2.59,26.994,16.
@figital
figital / ports.py
Created March 12, 2021 16:13
list serial ports on windows
import serial.tools.list_ports
from pprint import pprint
ports = serial.tools.list_ports.comports()
print("\n" * 2)
for port in ports:
pprint(vars(port))
print("-----------------------------------")
#define ALICEBLUE 0xF7DF
#define ANTIQUEWHITE 0xFF5A
#define AQUA 0x07FF
#define AQUAMARINE 0x7FFA
#define AZURE 0xF7FF
#define BEIGE 0xF7BB
#define BISQUE 0xFF38
#define BLACK 0x0000
#define BLANCHEDALMOND 0xFF59
#define BLUE 0x001F
powershell "taskkill /IM notepad.exe /F"
@figital
figital / spanish-chars-windows.txt
Created August 4, 2017 19:14
windows spanish character ALT codes
á = Alt + 0225
é = Alt + 0233
í = Alt + 0237
ó = Alt + 0243
ú = Alt + 0250
ñ = Alt + 0241
ü = Alt + 0252
¡ = Alt + 0161
¿ = Alt + 0191
{
"code": 200,
"status": "Ok",
"copyright": "© 2017 MARVEL",
"attributionText": "Data provided by Marvel. © 2017 MARVEL",
"attributionHTML": "<a href=\"http://marvel.com\">Data provided by Marvel. © 2017 MARVEL</a>",
"etag": "f7ae8704ea32cc99319512387ca51853185ff50b",
"data": {
"offset": 0,
"limit": 20,
@figital
figital / example.sql
Created April 18, 2017 20:06 — forked from wolever/example.sql
A simple Postgres aggregate function for calculating a trimmed mean, excluding values outside N standard deviations from the mean: `tmean(v, standard_deviations)` (for example: `tmean(rating, 1.75)`).
DROP TABLE IF EXISTS foo;
CREATE TEMPORARY TABLE foo (x FLOAT);
INSERT INTO foo VALUES (1);
INSERT INTO foo VALUES (2);
INSERT INTO foo VALUES (3);
INSERT INTO foo VALUES (4);
INSERT INTO foo VALUES (100);
SELECT avg(x), tmean(x, 2.0), tmean(x, 1.5) FROM foo;
@figital
figital / game7-ws.csv
Created November 11, 2016 23:15
starter data from initial view
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
side,inning,out,home_team_runs,away_team_runs,pitcher_name,batter_name,atbat_des,event,bpos,bbats,team_abbrev,bid,pid
TOP,1.0,0.0,0,1,"Corey Kluber","Dexter Fowler","Dexter Fowler homers (2) on a fly ball to center field. ","Home Run",CF,S,CHC,451594,446372
TOP,1.0,0.0,0,1,"Corey Kluber","Kyle Schwarber","Kyle Schwarber singles on a soft ground ball to shortstop Francisco Lindor. ",Single,LF,L,CHC,656941,446372
TOP,1.0,1.0,0,1,"Corey Kluber","Kris Bryant","Kris Bryant flies out to right fielder Lonnie Chisenhall. ",Flyout,3B,R,CHC,592178,446372
TOP,1.0,2.0,0,1,"Corey Kluber","Anthony Rizzo","Anthony Rizzo flies out to center fielder Rajai Davis. ",Flyout,1B,L,CHC,519203,446372
TOP,1.0,3.0,0,1,"Corey Kluber","Ben Zobrist","Ben Zobrist flies out to right fielder Lonnie Chisenhall. ",Flyout,2B,S,CHC,450314,446372
BOTTOM,1.0,1.0,0,1,"Kyle Hendricks","Carlos Santana","Carlos Santana lines out sharply to right fielder Jason Heyward. ",Lineout,D,S,CLE,467793,543294
BOTTOM,1.0,2.0,0,1,"Kyle Hendricks","Jason Ki