A Dashing widget for displaying the number of current visitors (in real time) to your website, as reported by Google Analytics.
This widget is a fork of https://gist.github.com/mtowers/5986576
| sudo apt-get install python-glade2 python-appindicator | |
| git clone https://github.com/Kilian/f.lux-indicator-applet.git | |
| cd f.lux-indicator-applet | |
| chmod +x setup.py | |
| sudo ./setup.py install | |
| fluxgui |
A Dashing widget for displaying the number of current visitors (in real time) to your website, as reported by Google Analytics.
This widget is a fork of https://gist.github.com/mtowers/5986576
| --- | |
| Compression | |
| --- | |
| # Create folder.tar.bz2 from folder | |
| tar -cvjf folder.tar.bz2 folder/* | |
| --- | |
| Mysql | |
| --- | |
| # Dump selected table |
| [remote "origin"] | |
| url = [email protected]:username/reponame.git | |
| fetch = +refs/heads/*:refs/remotes/origin/* |
| [remote "origin"] | |
| url = https://[email protected]/username/reponame.git | |
| fetch = +refs/heads/*:refs/remotes/origin/* |
| <?php | |
| $default_form_data = array ('disabled_select' => true); | |
| $my_form = new my_form($default_form_data); | |
| $my_form->display(); |
| <?php | |
| require_once($CFG->dirroot.'/lib/formslib.php'); | |
| class my_form extends moodleform{ | |
| function definition() { | |
| //check if the select must be disabled | |
| isset($this->_customdata['disabled_select']) |
| file = File.new("input", "r") | |
| max = file.gets | |
| counter = 1 | |
| while (line = file.gets) | |
| result = 0 | |
| raw_range = line.split(" ") | |
| range = raw_range[0].to_i..raw_range[1].to_i | |
| computed = Hash.new |
| #googlerese to english | |
| mapping = { "a" => "y", "b" => "h", "c" => "e", "d" => "s", "e" => "o", | |
| "f" => "c", "g" => "v", "h" => "x", "i" => "d", "j" => "u", | |
| "k" => "i", "l" => "g", "m" => "l", "n" => "b", "o" => "k", | |
| "p" => "r", "q" => "z", "r" => "t", "s" => "n", "t" => "w", | |
| "u" => "j", "v" => "p", "w" => "f", "x" => "m", "y" => "a", | |
| "z" => "q"} | |
| file = File.new("input", "r") | |
| max = file.gets |
| file = File.new("input", "r") | |
| max = file.gets | |
| counter = 1 | |
| while (line = file.gets) | |
| data = line.split(" ") | |
| #num of cases | |
| cases = data[0].to_i | |
| #num of surprising cases | |
| s = data[1].to_i | |
| #min result |