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 | |
| # | |
| # TO BE RUN EACH 5 MINUTES | |
| # | |
| BATTERY="/sys/class/power_supply/BAT0" | |
| CRITICAL=10 | |
| ICON="battery-caution" | |
| NOT_CHARGING="Discharging" |
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
| <?php | |
| /** | |
| * Build an URL with GET params | |
| * @param string $url The URL | |
| * @param array $params The GET params to append to the url | |
| * @return string The new builded URL | |
| */ | |
| function build_get_url($url, $params){ | |
| $index = 0; |
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
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-menu-button/core-menu-button.html"> | |
| <link rel="import" href="../core-icons/core-icons.html"> | |
| <link rel="import" href="../core-item/core-item.html"> | |
| <link rel="import" href="../core-menu/core-submenu.html"> | |
| <link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
| <link rel="import" href="../core-icons/iconsets/av-icons.html"> | |
| <link rel="import" href="../paper-fab/paper-fab.html"> |
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
| <?php | |
| $array = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); | |
| for($i = count($array)-1;$i >= 0; $i--) { | |
| echo $array[$i].", "; | |
| }; | |
| /* Will produce : | |
| 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, |
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
| <?php | |
| // <input type="checkbox" name="checkbox" value="1" /> | |
| $checked = isset($_GET['checkbox']) && $_GET['checkbox'] ? true : false; |
NewerOlder