start new:
tmux
start new with session name:
tmux new -s myname
| function sieveOfAtkin(limit){ | |
| var limitSqrt = Math.sqrt(limit); | |
| var sieve = []; | |
| var n; | |
| //prime start from 2, and 3 | |
| sieve[2] = true; | |
| sieve[3] = true; | |
| for (var x = 1; x <= limitSqrt; x++) { |
| #!/bin/bash | |
| # This is a short script to load applications using bumblebee and wine | |
| # on systems such as Ubuntu precise 12.04 64 bit using the discrete card. | |
| # Usage example (the -opengl would be a parameter of the program "Frozen Throne.exe"): | |
| # optiwine.sh "Frozen Throne.exe" -opengl | |
| # Extra information: | |
| # If you want to load programs with the integrated intel card instead, you may run them this way: |
| #!/bin/bash | |
| function msg { | |
| # Description: | |
| # This function echoes-with-colors the arguments passed in | |
| # Usage: | |
| # msg 'whatever you want to print :)' | |
| echo -e '\033[33m\033[44m'$@'\033[0m' | |
| } |