This file contains 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
delimiter $$ | |
CREATE TABLE `receivables` ( | |
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
`user_id` bigint(20) unsigned NOT NULL, | |
`project_id` bigint(20) unsigned NOT NULL, | |
`pledge_id` char(36) NOT NULL, | |
`token` varchar(50) NOT NULL, | |
`amount` double(10,2) unsigned NOT NULL, | |
`due_by_date` datetime DEFAULT NULL, |
This file contains 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
SELECT | |
DATE(DATE_ADD(NOW(), INTERVAL 2 DAY)) as `period_date`, | |
PrjPledge.id, | |
User.id, | |
Project.id | |
FROM | |
receivables AS Receivable | |
LEFT JOIN | |
prj_pledges AS PrjPledge ON (Receivable.pledge_id = PrjPledge.id) | |
LEFT JOIN |
This file contains 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
var http = require('http'); | |
var MessageHandler = function () { | |
// yeah yeah, functions in the constructor = bad | |
// but its a singleton and I'd like to keep these | |
// private | |
// non-api auth message handling function | |
this._auth = function (client, msg) { | |
session = this.session_store.get('username', msg.username); |
This file contains 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
[root@test1 ~]# ls -lah /opt/python2.7.1/bin/ | |
total 104K | |
drwxr-xr-x 2 root root 4.0K Jun 8 11:55 . | |
drwxr-xr-x 6 root root 4.0K Jun 8 11:35 .. | |
-rwxr-xr-x 1 root root 107 Jun 8 10:55 2to3 | |
-rwxr-xr-x 1 root root 286 Jun 8 10:55 easy_install | |
-rwxr-xr-x 1 root root 294 Jun 8 10:55 easy_install-2.7 | |
-rwxr-xr-x 1 root root 304 Jun 8 11:55 echo_supervisord_conf | |
-rwxr-xr-x 1 root root 105 Jun 8 10:55 idle | |
-rwxr-xr-x 1 root root 278 Jun 8 11:55 pidproxy |
This file contains 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
total 88K | |
drwxr-xr-x 2 root root 4.0K Jun 8 11:35 . | |
drwxr-xr-x 6 root root 4.0K Jun 8 11:35 .. | |
-rwxr-xr-x 1 root root 107 Jun 8 10:55 2to3 | |
-rwxr-xr-x 1 root root 286 Jun 8 10:55 easy_install | |
-rwxr-xr-x 1 root root 294 Jun 8 10:55 easy_install-2.7 | |
-rwxr-xr-x 1 root root 105 Jun 8 10:55 idle | |
-rwxr-xr-x 1 root root 238 Jun 8 10:55 pip | |
-rwxr-xr-x 1 root root 246 Jun 8 10:55 pip-2.7 | |
-rwxr-xr-x 1 root root 90 Jun 8 10:55 pydoc |
This file contains 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
$tags = array(); | |
foreach ( $raw_rags as $tag ) { | |
$tags['AND'][] = trim( $tag ); | |
} |
NewerOlder