- Functional language built on Erlang VM (BEAM)
- Immutable data - values never change
- Pattern matching as primary control flow
- Process-oriented concurrency (not OS threads)
This file contains hidden or 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-Module posh-git | |
Import-Module PSFzf | |
# Set initial directory | |
cd "$HOME\workspace\repos\UI" | |
# Git aliases | |
Set-Alias -Name g -Value git | |
Remove-Item alias:gc -Force -ErrorAction SilentlyContinue | |
function gs { git status $args } |
XScreenSaver is a collection of screen savers for X Window System. Each "module" is a standalone program that renders graphics to a window created by the XScreenSaver daemon.
- Any program can be a screensaver if it can draw on a window it didn't create
- You must use C (not C++) because other languages typically can't draw to external windows
- XScreenSaver provides utility functions to make development easier
This file contains hidden or 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
#NoEnv | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% | |
padding := 20 | |
; half screens | |
^#h::WinMove, A, , padding, padding, (A_ScreenWidth/2)-(padding*1.5), A_ScreenHeight-(padding*2) | |
^#j::WinMove, A, , padding, (A_ScreenHeight/2)+padding, A_ScreenWidth-(padding*2), (A_ScreenHeight/2)-(padding*2) | |
^#k::WinMove, A, , padding, padding, A_ScreenWidth-(padding*2), (A_ScreenHeight/2)-(padding*2) |
This file contains hidden or 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
; AHK v2 script | |
SetWorkingDir(A_ScriptDir) | |
; https://github.com/Ciantic/VirtualDesktopAccessor | |
VDA_PATH := A_ScriptDir . "\VirtualDesktopAccessor.dll" | |
hVirtualDesktopAccessor := DllCall("LoadLibrary", "Str", VDA_PATH, "Ptr") | |
GoToDesktopNumberProc := DllCall("GetProcAddress", "Ptr", hVirtualDesktopAccessor, "AStr", "GoToDesktopNumber", "Ptr") | |
GoToDesktopNumber(num) { |
This file contains hidden or 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
#include <X11/Xatom.h> | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <X11/extensions/shape.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
int main() { |
This file contains hidden or 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
#!/usr/bin/env python3 | |
from flask import Flask, request, redirect, url_for | |
from markupsafe import escape | |
import re | |
import json | |
import atexit | |
from urllib.parse import urlparse | |
app = Flask(__name__) |
This file contains hidden or 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
# simple bind mount - directly maps host directory to container | |
# pro: simple, direct | |
# con: less docker-native management | |
volumes: | |
- /opt/medusa/postgres:/var/lib/postgresql/data | |
# named volume with bind properties - docker managed but host-accessible | |
# pro: docker volume features (named reference, metadata, drivers) | |
# con: more verbose, possibly overengineered for simple needs | |
volumes: |
This file contains hidden or 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
owned |
NewerOlder