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 | |
| /** | |
| * Lietuviškų vardų linksniai. | |
| * | |
| * @author Maug Lee <mauglee@gmail.com> | |
| * @copyright Copyleft (ↄ) 2011, Maug Lee | |
| * @version 0.3 | |
| * @package Vardai | |
| */ |
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
| -- every 5 min: | |
| SELECT | |
| TO_char(TO_DATE('2014-03-25', 'yyyy-mm-dd'), 'YYYY-MM-DD HH24') as dien, | |
| TO_char(TO_DATE('2014-03-25', 'yyyy-mm-dd') + (LEVEL-1)/24/12, 'YYYY-MM-DD HH24:MI') AS DT | |
| FROM dual | |
| CONNECT BY LEVEL <= (TO_DATE('2014-03-27', 'yyyy-mm-dd') - TO_DATE('2014-03-25', 'yyyy-mm-dd') + 1)*24*12 | |
| ; | |
| select | |
| trunc(dt,'hh24') + (trunc(to_char(dt,'mi')/5)*5)/24/60, avg(value) |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic | |
| Made available under GNU GENERAL PUBLIC LICENSE | |
| # Modified Python I2C library for Raspberry Pi | |
| # as found on http://www.recantha.co.uk/blog/?p=4849 | |
| # Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library | |
| # added bits and pieces from various sources | |
| # By DenisFromHR (Denis Pleic) |