- High level overview https://yogthos.github.io/ClojureDistilled.html
- An Animated Introduction to Clojure https://markm208.github.io/cljbook/
- Interactive tutorial in a browser https://tryclojure.org/
- Interactive exercises http://clojurescriptkoans.com/
- More interactive exercises https://4clojure.oxal.org/
- Lambda Island tutorials https://lambdaisland.com/
- Functional Programming with Clojure resources https://practicalli.github.io/
- Getting started guide https://grison.me/2020/04/04/starting-with-clojure/
This file contains hidden or 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
| # Kernel sysctl configuration file for Linux | |
| # | |
| # Version 1.12 - 2015-09-30 | |
| # Michiel Klaver - IT Professional | |
| # http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant | |
| # | |
| # This file should be saved as /etc/sysctl.conf and can be activated using the command: | |
| # sysctl -e -p /etc/sysctl.conf | |
| # | |
| # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details. |
This file contains hidden or 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 | |
| # version 2 thanks to @dhx-mike-palandra | |
| echo "Creating /etc/NetworkManager/conf.d/99-forticlient.conf..." | |
| sudo cat > /etc/NetworkManager/conf.d/99-forticlient.conf << 'EOF' | |
| [keyfile] | |
| unmanaged-devices=interface-name:~vpn*,type:tun | |
| EOF | |
| if [ $? -eq 0 ] |
This file contains hidden or 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
| (def my-vec [1 0 0 2 0 3 0 4 5 0 6]) | |
| (concat (filter #(not= 0 %) my-vec | |
| (filter zero? my-vec)) |
This file contains hidden or 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
| import numpy as np | |
| import cv2 | |
| import sys | |
| def median_cut(img, K): | |
| K = int(K) | |
| Z = img.reshape((-1, 3)) | |
| Z = np.float32(Z) |
This file contains hidden or 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
| import cv2 # pip install opencv-contrib-python | |
| import numpy as np # pip install numpy | |
| # load image | |
| img = cv2.imread('/path/to/img.jpg') | |
| # convert to grayscale | |
| gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) |
This file contains hidden or 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
| <?php | |
| $client = new SoapClient("http://www.pttplc.com/webservice/pttinfo.asmx?wsdl"); | |
| //echo("func"); | |
| var_dump($client->__getFunctions()); | |
| //echo("types"); | |
| var_dump($client->__getTypes()); | |
| $params = array( |
This file contains hidden or 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
| 00 00 01 */1 * /opt/certbot-auto renew --pre-hook="service nginx stop" --post-hook="service nginx start" |
NewerOlder