I hereby claim:
- I am jacktasia on github.
- I am jack (https://keybase.io/jack) on keybase.
- I have a public key whose fingerprint is 5810 04B5 0B06 B765 0F82 2F33 2FC5 F3ED 263E A8ED
To claim this, I am signing this object:
| # dummy file |
| import java.io.BufferedReader; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import javax.net.ssl.HttpsURLConnection; | |
| import java.net.URL; | |
| import java.util.Base64; | |
| import java.io.OutputStream; | |
| public class ImgixPurgeExample { |
| <?php | |
| // find your api key on the bottom of page @ https://webapp.imgix.com | |
| define('IMGIX_API_KEY', ''); | |
| // pass the url you want to purge | |
| function imgix_purge($url) { | |
| $headers = array( | |
| 'Content-Type:application/json', | |
| 'Authorization: Basic '. base64_encode(IMGIX_API_KEY.':') |
I hereby claim:
To claim this, I am signing this object:
| (use 'clojure.pprint) | |
| (require ' [clojure.edn :as edn]) | |
| (let [file-contents (slurp "clojure_test2.clj") | |
| process-file (with-out-str | |
| (clojure.pprint/write | |
| (edn/read-string (str "[" file-contents "]")) | |
| :dispatch | |
| clojure.pprint/code-dispatch))] | |
| (println (subs process-file 1 (- (.length process-file) 1)))) |
| import os | |
| import time | |
| import subprocess | |
| def is_illustrator_open(): | |
| """ probably a better way to do this! """ | |
| ps = subprocess.Popen(['ps', 'ax'], stdout = subprocess.PIPE) | |
| grep = subprocess.Popen(['grep', 'Adobe Ill'], stdin = ps.stdout, stdout = subprocess.PIPE) | |
| wc = subprocess.Popen(['wc', '-l'], stdin = grep.stdout, stdout = subprocess.PIPE) | |
| open = int(wc.communicate()[0]) |
| Moved this here: https://github.com/jacktasia/dotemacs24 |
| ps ax | grep [g]calc | ack-grep -oh '[0-9]{3,}' |