View org-archive-subtree-hierarchical.el
;; org-archive-subtree-hierarchical.el | |
;; | |
;; version 0.2 | |
;; modified from https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html | |
;; modified from https://stackoverflow.com/a/35475878/259187 | |
;; In orgmode | |
;; * A | |
;; ** AA | |
;; *** AAA |
View mySurfingKeys.js
// an example to create a new mapping `ctrl-y` | |
mapkey('<Ctrl-y>', 'Show me the money', function() { | |
}); | |
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works. | |
map('?', 'u'); | |
// an example to remove mapkey `Ctrl-i` | |
unmap('<Ctrl-i>'); |
View 45fix-usb-wakup.sh
#!/bin/bash | |
# (/usr)/lib/systemd/system-sleep/45fix-usb-wakup | |
# Disable wakup from USB devices | |
# | |
# This is just modification of pm-utils script for systemd sleep hook | |
# from https://gist.github.com/rutsky/1ed8e9779f0b2941c5a6 | |
[[ "$1" = "pre" ]] || exit 0 |
View ukol.php
<?php | |
$pole_jak_svin = Array(76,101,105,97,32,79,114,103,97,110,97); | |
function c($x) | |
{ | |
$z = Array(); | |
foreach($x as $y) { | |
$z[] = $y/3; | |
} | |
return $z; |
View cust_cz_us
default | |
xkb_symbols "basic" { | |
include "us(basic)" | |
name[Group1]="Czech (custom US)"; | |
key <TLDE> { [ equal, plus, asciitilde, grave ] }; | |
key <AE01> { [ uring, exclam, 1, dead_tilde ] }; | |
key <AE02> { [ ecaron, at, 2, dead_caron ] }; | |
key <AE03> { [ scaron, numbersign, 3, dead_circumflex ] }; |