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 | |
# Thanks to https://ubuntuforums.org/showthread.php?t=2074098 | |
[[ -z "$HOME" ]] && exit 1 | |
[[ -z "$TMPDIR" ]] && exit 1 | |
# $bing is needed to form the fully qualified URL for | |
# the Bing pic of the day | |
bing="www.bing.com" |
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 mdcd { | |
local OPTARG OPTIND REPLY | |
local opt list dryrun query a s len home i ilen ihome | |
# switches | |
list= | |
dryrun= | |
OPTIND= | |
while getopts "ln" opt; do | |
case $opt in | |
l) list=1 ;; |
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
package body adaside is | |
use type Interfaces.C.int; | |
function Constructor (n : Interfaces.C.int) return T is | |
begin | |
return (cppclass_hpp.Class_cppclass_t.New_cppclass_t (n) | |
with null record); | |
end Constructor; | |
overriding function get (this : access T) return Interfaces.C.int is | |
begin | |
return this.n_u * 2; -- replace the body |
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
{ | |
"title": "using", | |
"rules": [ | |
{ | |
"description": "Commands to EISUU/Kana", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_command", |
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
#titlebar-min, | |
#titlebar-max, | |
#titlebar-close { | |
/* -moz-appearance: -moz-window-button-minimize !important; */ | |
-moz-appearance: none !important; | |
list-style-position: outside; | |
-moz-image-region: rect(0, 18px, 18px, 0); | |
padding: 0px 0px 0px 0px !important; | |
margin: 0px 0px 0px 4px !important; | |
} |
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 | |
import fnmatch | |
import os | |
import re | |
import sys | |
msgtype = "gcc" | |
rootdir = os.getcwd() | |
workdir = rootdir |
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 | |
function usage { | |
echo "$0 [--gcc=...] [--name=...] --RTS=... > FILENAME.pc" > /dev/stderr | |
exit 1 | |
} | |
LOG=/dev/null | |
URL=https://github.com/ytomino/drake |
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
-- This file is translated by "headmaster" version 0.30-886eb78 (devel). | |
-- The original C header's license should be applied to this file. | |
-- All conditional-directives are expanded for the exclusive use of your | |
-- environment, it is not recommended to commit this file to any repository. | |
------------------------------------------------------------------------------- | |
with C.stddef; | |
package C.alloca is | |
pragma Preelaborate; | |
function alloca (size : stddef.size_t) return void_ptr; | |
pragma Import (C, alloca, "alloca"); |
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 zshaddhistory { | |
local cmdline cmd dir | |
cmdline=( ${=1} ) | |
if [[ ${cmdline[1]} =~ '[`(]' ]]; then | |
return 0 # do not want to exec something on expansion | |
else | |
cmd=${(e)~cmdline[1]} | |
if [[ ${cmd} == cd ]]; then | |
if [[ ${cmdline[2]} =~ '[`(]' ]]; then | |
return 0 # do not want to exec something on expansion |
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
-- This file is translated by "headmaster" version 0.30-18d0286 (devel). | |
-- The original C header's license should be applied to this file. | |
-- All conditional-directives are expanded for the exclusive use of your | |
-- environment, it is not recommended to commit this file to any repository. | |
------------------------------------------------------------------------------- | |
with C.stddef; | |
package C.alloca is | |
pragma Preelaborate; | |
function alloca (a1 : stddef.size_t) return void_ptr; | |
pragma Import (C, alloca, "alloca"); |