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
/* | |
There is an AST (Abstract syntax tree) in JSON format. | |
AST represents Excel spreadsheet formula. | |
Is it possible in JavaScript to make RPN (Reverse Polish Notation) faster than AST? | |
AST evaluation is recusive and RPN evaluation is iterative. | |
But in any case, AST evaluation is faster despite recursion. | |
I guess that the main problem is in using dynamic js arrays to emulate stack. | |
Would RPN win if it was written in C/C++? | |
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 | |
# Author: Alexander Schulz | |
VHOSTEN="/etc/nginx/sites-enabled/" | |
if [[ $1 == "-h" ]] || [[ $1 == "--help" ]] | |
then | |
echo 'Usage: n2dissite VHOST' | |
echo 'Disables Nginxs virtualhost VHOST.' |
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 | |
# From: http://askubuntu.com/questions/165192/how-do-i-install-drivers-for-the-atheros-ar8161-ethernet-controller | |
# must be runned as root | |
if [ "$(id -u)" != "0" ]; then | |
echo "$0 must be run as root" | |
exit 1 | |
fi | |
echo 'Rebuilding drivers for Atheros ar8161 Ethernet Controller...' |