This is the code you need to align images to the left:
# | |
# ~/.bash_profile | |
# | |
# Do everything in bashrc | |
[[ -f ~/.bashrc ]] && . ~/.bashrc |
$ProgressPreference='SilentlyContinue' | |
Write-Host "Finding OS Architecture: " -ForegroundColor DarkCyan -NoNewline | |
# Find Os Architecture | |
if((Get-ComputerInfo).OsArchitecture -eq "64-bit"){ | |
$arch = "*win64*" | |
Write-Host "64-bit" -ForegroundColor Green | |
}else{ | |
$arch = "*win32*" | |
Write-Host "32-bit" -ForegroundColor Green |
# add this to your .zshrc | |
r-delregion() { | |
if ((REGION_ACTIVE)) then | |
zle kill-region | |
else | |
local widget_name=$1 | |
shift | |
zle $widget_name -- $@ | |
fi |
import pygame | |
pygame.init() #Start Pygame | |
screen = pygame.display.set_mode((640,480)) #Start the screen | |
running = True | |
while running: | |
for event in pygame.event.get(): | |
if event.type == pygame.QUIT: #The user closed the window! | |
running = False #Stop running |
#This code is licensed as CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode). | |
import sys | |
import pygame as pg | |
class Game(object): | |
""" | |
A single instance of this class is responsible for | |
managing which individual game state is active |
#!/usr/bin/env python3 | |
import sys | |
import json | |
import subprocess | |
direction=bool(sys.argv[1] == 't' or sys.argv[1] == 'T') | |
swaymsg = subprocess.run(['swaymsg', '-t', 'get_tree'], stdout=subprocess.PIPE) | |
data = json.loads(swaymsg.stdout) | |
current = data["nodes"][1]["current_workspace"] |
Gist is a nice service. We can write code so easily and manage files as repository.
But bad points are …
"workbench.colorCustomizations": { | |
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
"contrastActiveBorder": "", | |
"contrastBorder": "", | |
// Base Colors | |
"focusBorder": "", | |
"foreground": "", | |
"widget.shadow": "", | |
"selection.background": "", | |
"descriptionForeground": "", |
; c = case sensitive | |
; c1 = ignore the case that was typed, always use the same case for output | |
; * = immediate change (no need for space, period, or enter) | |
; ? = triggered even when the character typed immediately before it is alphanumeric | |
; r = raw output | |
;------------------------------------------------------------------------------ | |
; CHANGELOG: | |
; | |
; 2011-03-21 and after: See readme.md |