Preprocessor: # #define #undef #if #ifdef #ifndef #else #elif #endif #error #pragma #extension #version #line
Operators: () + - ! * / % < > <= >= == != && ||
Comments: // /* */
#!/usr/bin/env python3 | |
# Updated: 2018-10-17 | |
import re, sys, os | |
""" | |
Converts the Nix profile SH script to a Fish-compatible profile using a | |
simple line-by-line replace algorithm. | |
""" |
function fish_hg_prompt --description 'Prompt function for Mercurial' | |
# BRANCH ⑂3 ‥+-?! [RNNN|D] | |
# 1 2 3 4 5 | |
# | |
# 1 = Current branch/bookmark | |
# 2 = Number of heads/branches | |
# 3 = Modified ‥ added + removed - untracked ? merge ! | |
# 4 = Revision number | |
# 5 = Time since last commit |
#!/usr/bin/env python3 | |
import sys, re, json | |
__doc__ = """ | |
A basic tool that lists modules imported by require.js | |
""" | |
RE_REQUIRE_JS = re.compile("require\s*\(\s*\[(.+)\]", re.MULTILINE) | |
def list_imports_requirejs( text ): |
// title : Pillars | |
// author : Sébastien Pierre | |
// license : MIT License | |
// revision : 0.003 | |
// file : pillars.jscad | |
// Gist : https://gist.github.com/d0198125390e0d798964 | |
// Preview : http://openjscad.org/#https://gist.githubusercontent.com/sebastien/d0198125390e0d798964/raw/5a4eb71ec5dd64714961fcbeb859d11dee21deb7/pillars.jscad | |
// Update : gist-pase -u d0198125390e0d798964 pillars.jscad | |
function getParameterDefinitions() { |
If you disable mobile access on Android, you can still use an unprepared offline network. If you have mobile networks enabled and connect to a not prepared offline network, the smartphone will fall back to mobile wifi. Sometimes, there is a message, that gives you some chance to use it, but the Samsung phone I had for test purposes denied to work with LibraryBox (which is not prepared yet).
iOS5 or iOS6 introduced a call-home function, that checks for the internet. If it does not receive a specific answer (see below), it opens up a lightweight browser, where you usually can login in hotels (the captive portal). If you don't solve the connection issue with logging in, I think < iOS9 does not fall back to mobile network. I read, that iOS9 will partialle use mobile internet, when the wifi connection is bad. As vague this statement is, so low my knowledge is. Fact is, my prepared PirateBox does not bring my iOS9 iPhone back into mobile n
#!/usr/bin/env python | |
# encoding=utf8 --------------------------------------------------------------- | |
# Project : Enextrcator | |
# ----------------------------------------------------------------------------- | |
# Author : Sébastien Pierre | |
# License : BSD License | |
# ----------------------------------------------------------------------------- | |
# Creation date : 2015-06-22 | |
# Last modification : 2015-06-22 | |
# ----------------------------------------------------------------------------- |
#!/usr/bin/env python | |
# encoding=utf8 --------------------------------------------------------------- | |
# Project : Enextrcator | |
# ----------------------------------------------------------------------------- | |
# Author : Sébastien Pierre | |
# License : BSD License | |
# ----------------------------------------------------------------------------- | |
# Creation date : 2015-06-22 | |
# Last modification : 2015-06-22 | |
# ----------------------------------------------------------------------------- |
var accents_map = { | |
"À": "A", | |
"Á": "A", | |
"À": "A", | |
"Â": "A", | |
"Ã": "A", | |
"Ä": "A", | |
"Å": "A", | |
"Ç": "C", | |
"È": "E", |