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
[CodeTable] | |
UniqueName=wubidv | |
Name=Wubidv | |
Name[ca]=Wubidv | |
Name[da]=Wubidv | |
Name[de]=Wubidv | |
Name[ja]=Wubidv | |
Name[ko]=Wubidv | |
Name[ru]=Уби (Wubidv) | |
Name[zh_CN]=五笔字型dv |
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 | |
# By: @alanxoc3 | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: repolink FILENAME" | |
exit 1; | |
fi | |
if ! git rev-parse --git-dir &> /dev/null; then | |
echo "Error: Must be in a git repository." |
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
g_gunvals_raw=[[ | |
0#{x=0,y=0,w=12,h=10}, | |
{x=12,y=0,w=12,h=10}, | |
{x=0,y=10,w=12,h=10}, | |
{x=12,y=10,w=12,h=10}, | |
{x=0,y=20,w=12,h=12}, | |
{x=12,y=20,w=12,h=12}, | |
{x=24,y=0,w=8,h=8}, | |
{x=24,y=8,w=8,h=8}, | |
{x=24,y=16,w=8,h=8}, |
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 | |
# Make your desktop environment treat two monitors as only one. | |
xrandr --output DP-1 --rotate left | |
xrandr --output DP-2 --rotate right | |
xrandr --output DP-2 --right-of DP-1 --auto | |
xrandr --setmonitor combined auto DP-1,DP-2 |
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
function nf() end | |
-- Recursively copies table attributes. | |
function tabcpy(src, dest) | |
dest = dest or {} | |
for k,v in pairs(src or {}) do | |
if type(v) == 'table' and not v.is_tabcpy_disabled then | |
dest[k] = tabcpy(v) | |
else | |
dest[k] = v |
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
#!/usr/bin/env python3 | |
# Railway Cipher, without a multidimensional array. | |
# Author: Alan Morgan | |
def get_rail_len(h): return 2*(h+1)-2 | |
def get_level_len(level, fence_height, s): | |
rail_length = get_rail_len(fence_height) | |
rem = len(s) % rail_length - 1 | |
level_len = len(s) // rail_length |
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 | |
# For running commands on xterm startup. | |
# The newline is needed, because bash does weird things with aliases. Bash | |
# needs a line before the shopt command takes effect. That was a wild goose | |
# chase! | |
# http://www.delorie.com/gnu/docs/bash/bashref_72.html | |
xtermcmd() { | |
xterm -e "bash --rcfile <(echo -e \"shopt -s expand_aliases; . ~/.bashrc;\n$*\")" |
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
// Thread demo by Alan Morgan. | |
// Empirically, this example seems thread safe. | |
// But, it may be possible for 2 children to exit the while loop at the same time. | |
// Thus I must ask the question. Is true thread safety even possible!!! | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <string.h> | |
#include <unistd.h> |