Skip to content

Instantly share code, notes, and snippets.

View FrancisVarga's full-sized avatar
🌴
On vacation

Francis Varga FrancisVarga

🌴
On vacation
  • Phili-Tech
  • Berlin, Germany
View GitHub Profile
@FrancisVarga
FrancisVarga / highscore.sql
Created March 25, 2011 11:48
Generate User highscore
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
(
@FrancisVarga
FrancisVarga / setup_ubuntu.sh
Created May 23, 2011 21:58
setup a virgin ubuntu thx to -> https://github.com/chluehr
#!/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."
@masaki
masaki / mqh_install.sh
Created December 11, 2011 15:09 — forked from xaicron/mqh_install.sh
Installing MySQL5.1 / Q4M / HandlerSocket
#!/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
@ThomasBurleson
ThomasBurleson / gist:2432662
Created April 20, 2012 23:36
REST services with function currying and promises.
//
// 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);
//
@FrancisVarga
FrancisVarga / benchmark.php
Created October 26, 2012 00:19
Benchmark Couchbase-1723
<?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";