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
SET @rownum =0; | |
SET @rank =0; | |
SET @prev_val=0; | |
SELECT @rownum := @rownum + 1 AS row | |
, @rank := IF(@prev_val!=uxp,@rownum,@rank) AS rank | |
, @prev_val := uxp AS uxp, | |
userId | |
FROM | |
( |
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
#!/bin/bash | |
#----------------------------------------------------------- | |
# | |
# Purpose: Just run this script to install the required | |
# ubuntu/pear packages for php development. | |
# | |
# Tested on Ubuntu 10.04 | |
#----------------------------------------------------------- | |
echo "Installing basic packages for development." |
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
#!/bin/sh | |
if [ `which perl` = "/usr/bin/perl" ]; then | |
echo -n -e "\e[1;31mUSING SYSTEM PERL OK? [y/n]\e[m: " | |
read ANSWER | |
if [ "$ANSWER" != "y" ]; then | |
exit 255 | |
fi | |
PERL_CPANM_OPT="$PERL_CPANM_OPT --sudo" | |
fi |
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
// | |
// Support API currying... | |
// | |
// e.g. var builder = buildCRUDService($rootScope, $http, $log); | |
// | |
// API url == http://services.mysite.com/classes/Book/ | |
// | |
// var Book = builder.serviceFor("Book"); | |
// var book = Book.get(123); | |
// |
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
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: hippsterkiller | |
* Date: 10/26/12 | |
* Time: 1:38 AM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
require __DIR__ . "/../src/Processus/Interfaces/NoSQLInterface.php"; |
OlderNewer