A comprehensive reference for using your Inspiroy H640P drawing tablet with OpenTabletDriver on Fedora Linux.
comprehensive patterns from junegunn choi's everything.fzf collection
execute:CMD- run command in terminal, show outputexecute-silent:CMD- run command, hide output
Peter Naur, 1985
(copied from http://alistair.cockburn.us/ASD+book+extract%3A+%22Naur,+Ehn,+Musashi%22)
The present discussion is a contribution to the understanding of what programming is. It suggests that programming properly should be regarded as an activity by which the programmers form or achieve a certain kind of insight, a theory, of the matters at hand. This suggestion is in contrast to what appears to be a more common notion, that programming should be regarded as a production of a program and certain other texts.
| 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
| #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) |
| ; 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) { |
| #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() { |
| #!/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__) |