Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
% Note: works only for XeLaTeX. | |
\documentclass[border=1mm]{standalone} | |
\usepackage{tikz} | |
\usepackage{zxjatype} | |
\setjamainfont[Scale=0.8]{Hiragino Kaku Gothic Pro W3} | |
\setmainfont[Mapping=tex-text,Scale=MatchLowercase]{Helvetica} % \sffamily | |
\setsansfont[Scale=MatchLowercase]{Helvetica} % \sffamily のフォント | |
\usepackage{xltxtra} | |
\begin{document} |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
(:identity req)
is auth backend independent way to access user data:current-user
doesn't imply that authentication is required, route should also have :auth-rules
if authentication is requiredimport html | |
import re | |
pua = { | |
'63233': 'ิ', | |
'63234': 'ี', | |
'63235': 'ึ', | |
'63236': 'ื', | |
'63237': '่', | |
'63238': '้', |
// npm install mailparser | |
// node parse_mail.js | |
var MailParser = require('mailparser').MailParser | |
var fs = require('fs') | |
var dirname = 'sample/' | |
var resultDir = 'result/' | |
if (!fs.existsSync(resultDir)){ | |
fs.mkdirSync(resultDir) | |
} |
I have been planning since months to put in a readable form some tests I did to check how Triple Stores deal with GeoSPARQL. Then a twitter discussion has eventually given me the motivation to start these notes. The word "benchmarking" I used in the mentioned twitter discussion is actually not the right one. It is not my intention to measure performance (how quick is the store to load data, how many trillions triples are managed, how fast is the response to a federated query over tens services): my main interest here is simply to load some geodata and run a basic GeoSPARQL query and see how the stores behave. I decided to use docker and run the images with the default configurations available in Docker Hub: sometimes I have quikly further investigated in case of failure.
For the tests I used a simple dataset containing the 26 Swiss Ca
(ns playground.transducer) | |
(def f1 (comp #(map str %) #(filter even? %) #(map inc %))) ; right -> left | |
(def nums [4 7 8 9 5 3]) | |
(f1 nums) | |
(defn f2 [x] | |
(map str (filter even? (map inc x)))) |
. /dev/null | |
set -- "$1" "`wc -c -- "$1" | tee /dev/stderr | awk '{print$1}'`" '' : | |
echo "${@:2}" ; | |
set -- "$1" "$2" "`gzip -c -- "$1" | wc -c`" "${@:4}" | |
echo "${@:2}" ; (( "$3" < "$2" )) && set -- "$1" "$3" '' gzip | |
set -- "$1" "$2" "`gzip -c -9 -- "$1" | wc -c`" "${@:4}" | |
echo "${@:2}" ; (( "$3" < "$2" )) && set -- "$1" "$3" '' gzip -9 |
# frozen_string_literal: true | |
module Handle::NetworkErrors | |
extend self | |
ERRORS = [ | |
EOFError, | |
Errno::ECONNREFUSED, | |
Errno::ECONNRESET, | |
Errno::EFAULT, |