<GridView
Width="Auto"
Height="Auto"
ItemsSource="{x:Bind Chessboard}">
<GridView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid MaximumRowsOrColumns="8" Orientation="Horizontal" />
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
class GreenOutput: | |
# regex pattern to match URLs, IP and ports | |
url_pattern = re.compile( | |
r'((http|https|ftp|ftps):\/\/' # protocol | |
r'(\d{1,3}\.){3}\d{1,3}' # ip | |
r'(?::\d+)?' # port number if existing | |
r'(?:[\/\w.,@?^=%&:/~+#-]*)?' # rest of URL | |
r'|' # OR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import tkinter as tk | |
from tkinter import filedialog | |
import piexif | |
import piexif.helper | |
from PIL import Image | |
class PNGtoJPGConverterApp: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--sidebar-w-collapsed: 36px; /*used for collapsable sidebar*/ | |
--sidebar-h-extended: 240px; | |
--memberlist-collapsed: 62px; | |
--memberlist-expanded: 240px; | |
--memberlist-transition: 0.35s ease-in-out; | |
} | |
/*vc text is correct with channel sidebar and main chat margin*/ | |
.chat_f8f70f { margin-left: 0px !important; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://dev.exiv2.org/projects/exiv2/wiki/The_Metadata_in_PNG_files | |
// tEXt chunk: text that can be represented in ISO/IEC 8859-1. | |
// use exif package instead for jpeg, etc | |
import 'dart:io'; | |
import 'dart:typed_data'; | |
import 'package:png_chunks_extract/png_chunks_extract.dart' as pngExtract; // i thank that this exists. | |
void main() { | |
File file = File('path/to/image.png'); | |
final data = file.readAsBytesSync(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import os | |
import re | |
import subprocess | |
import obspython as obs | |
# Info for potential OBS Python hackers! | |
# Tip 1 - Read the "OBS Studio Backend Design" documentation page. Read the documentation table of contents. | |
# Tip 2 - be sure to add obspython.py to your script path to enable completion. |
change the following values in FireFox's about:config
general.smoothScroll.currentVelocityWeighting: 0.1
general.smoothScroll.stopDecelerationWeighting: 0.75
mousewheel.min_line_scroll_amount: 18
mousewheel.min_line_scroll_amount: 24
general.smoothScroll.msdPhysics.enabled: true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Do you want to install dotnet? (y/n)" | |
read answer | |
if [ "$answer" != "${answer#[Yy]}" ] ;then | |
curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz | |
sudo mkdir -p /usr/share/dotnet | |
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet | |
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Please forgive my shitty css, I'm not a web dev | |
Links: | |
https://www.reddit.com/r/FirefoxCSS/ | |
For live debug: ctrl+alt+shift+i, grant remote permission, StyleEditor > userChrome.css | |
https://www.reddit.com/r/FirefoxCSS/comments/73dvty/tutorial_how_to_create_and_livedebug_userchromecss/ | |
https://github.com/Timvde/UserChrome-Tweaks/blob/master/tabs/hide-tabs-windows.css | |
https://www.howtogeek.com/334716/how-to-customize-firefoxs-user-interface-with-userchrome.css/ | |
http://kb.mozillazine.org/index.php?title=UserChrome.css&printable=yes | |
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tutorial/Modifying_the_Default_Skin#Customize_with_userChrome.css | |
https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#for-version-2x |