I hereby claim:
- I am zeknas on github.
- I am zeknas (https://keybase.io/zeknas) on keybase.
- I have a public key ASCuZjTAcVZtjSUCROiGgCa4lihTck7gXj4p5UnsDIsZ6go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### Testing if the client is a mobile or a desktop. | |
### The selection is based on the usual UA strings for desktop browsers. | |
## Testing a user agent using a method that reverts the logic of the | |
## UA detection. Inspired by notnotmobile.appspot.com. | |
map $http_user_agent $is_desktop { | |
default 0; | |
~*linux.*android|windows\s+(?:ce|phone) 0; # exceptions to the rule | |
~*spider|crawl|slurp|bot 1; # bots | |
~*windows|linux|os\s+x\s*[\d\._]+|solaris|bsd 1; # OSes |
different implementations of the simple counter app... code verbosity vs expressiveness |
{ | |
"presets": ["es2015"], | |
"plugins": [ | |
[ | |
"transform-react-jsx", | |
{ | |
"pragma": "h" | |
} | |
] | |
] |
<!doctype html> | |
<html> | |
<body> | |
<script src="bundle.js"></script> | |
</body> | |
</html> |
{ | |
"presets": ["es2015"], | |
"plugins": [ | |
[ | |
"transform-react-jsx", | |
{ | |
"pragma": "h" | |
} | |
] | |
] |