Example of how to use stdout and stdin from other programs in golang
Requires go
go run parentprocess.go
| ;; Regular Expressions | |
| ;; import re; re.search(r'ab.*', 'cabbage').group(0) # -> 'abbage' | |
| (re-find #"ab.*" "cabbage") ; "abbage" | |
| ;; re.match(r'ab.*', 'cabbage') # -> None | |
| (re-matches #"ab.*" "cabbage") ; nil | |
| ;; re.match(r'ab.*', 'abracatabra').group(0) # -> 'abracatabra' | |
| (re-matches #"ab.*" "abracatabra") ; "abracatabra" | |
| ;; Sequences & Map/Filter |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
Dockerfile со следующим содержанием:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
| <?php | |
| function get_tls_version($sslversion = null) | |
| { | |
| $c = curl_init(); | |
| curl_setopt($c, CURLOPT_URL, "https://www.howsmyssl.com/a/check"); | |
| curl_setopt($c, CURLOPT_RETURNTRANSFER, true); | |
| if ($sslversion !== null) { | |
| curl_setopt($c, CURLOPT_SSLVERSION, $sslversion); | |
| } |
vsix-bookmarklet, create a bookmark in your browser.
*.vsix.
| ; source https://github.com/woodrush/sectorlisp-examples/blob/main/lisp/basic.lisp | |
| ; Common Lisp translation: joswig@lisp.de, 2022 | |
| ; https://gist.github.com/lispm/a2f56a1a6dc5599a039eb7134d99cd4a | |
| (defun basic-example () | |
| (BASICINTERPRETER | |
| (QUOTE ( | |
| (10 REM FIND AND PRINT PRIME NUMBERS BELOW N_MAX. ) | |
| (20 LET N_MAX = (1 1 1 1 1 1 1 1 1 1 1 1 1 1 1) ) | |
| (30 LET I = (1 1) ) |