A simple, fast, and intuitive command-line calculator written in Go.
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
///<reference path="./typings/jquery/jquery.d.ts"/> | |
'use strict'; | |
class Main { | |
constructor() { | |
jQuery(document).ready(() => { | |
console.log('Hello from app/scripts/ts/Main.ts'); | |
}); | |
} | |
} |
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
/** | |
* Basecamp Redmine | |
*/ | |
@-moz-document regexp(".*redmine.*") { | |
body, #wrapper { | |
background-color:#eee; | |
font-family:"Lucida Grande", verdana, arial, helvetica, sans-serif; | |
} | |
a:hover { | |
text-decoration: underline; |
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 | |
cat <<EOF | |
This utility will find <Search> string and replace it with <Replacement> string | |
in all files in current folder including their both filename and contents | |
EOF | |
# check if GNU rename utility exists | |
if [ ! -f /usr/local/bin/rename ] |
A curses library with wide char support (e.g. ncursesw), libc and libreadline (optional).
Utility deps | Install? | Operation |
---|---|---|
xdg-open (Linux), open(1) (macOS), cygstart (Cygwin), open (Haiku) | base | default opener |
file, coreutils (cp, mv, rm), xargs, sed (gnu-sed on macOS) | base | file type, copy, (re)move |
tar, (un)zip [atool/bsdtar for more formats] | base | create, list, extract bzip2, (g)zip, tar |
archivemount, fusermount(3)/umount (macOS) | optional | (un)mount archives |
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 | |
val1="testing" | |
val2='' | |
### Не пустая ли строка | |
if [ -n $val1 ]; then | |
echo "Строка '$val1' не пустая" | |
else | |
echo "Строка '$val1' пустая" |