Skip to content

Instantly share code, notes, and snippets.

View fernandojunior's full-sized avatar

Fernando Felix fernandojunior

  • Brazil
View GitHub Profile
https://pythonhosted.org/Flask-CMS/
http://flask.pocoo.org/snippets/114/
http://quokkaproject.org/
http://in.pycon.org/funnel/2014/205-building-a-cms-in-flask
https://github.com/Opentaste/bombolone/
https://stormpath.com/blog/part-one-flask-authentication-problem/
http://flask-stormpath.readthedocs.org/en/latest/
http://blog.miguelgrinberg.com/post/restful-authentication-with-flask
https://github.com/miguelgrinberg/Flask-HTTPAuth
https://flask-login.readthedocs.org/en/latest/
http://pythonhosted.org/Flask-OAuth/
http://stackoverflow.com/questions/17512572/rauth-flask-how-to-login-via-twitter
http://www.shea.io/facebook-authentication-for-flask-apps/
https://github.com/lingthio/Flask-User
@fernandojunior
fernandojunior / gist:cf5a5dc8a4dbc161416d
Last active December 30, 2015 06:41
python mondrian
https://github.com/may-day/olap
http://bkanuka.com/articles/python-connect-to-olap/
http://mondrian.pentaho.com/documentation/installation.php
https://github.com/olap4j/olap4j
http://stackoverflow.com/questions/3793215/query-olap-mondrian-mdx-xmla-with-a-python-interface
https://research.cip.cgiar.org/docs/mondrian/Tutorial_Mondrian.pdf
http://lists.pentaho.org/pipermail/mondrian/2014-October/004999.html
http://maxrohde.com/2011/04/27/large-war-file-cannot-be-deployed-in-tomcat-7/
http://pentaho.dlpage.phi-integration.com/mondrian/mysql-foodmart-database
https://github.com/ThoughtWorksInc/mondrian-xmla-spike
#install pip
sudo apt-get install python-pip
#
pip install SQLAlchemy
@fernandojunior
fernandojunior / gist:3130b8de3b1c6f77db10
Created October 10, 2014 21:10
Virtual ssh directory
mkdir -p /path/to/somewhere/hostbdir
sshfs user@hostb:/path/to/some/dir/on/hostb /path/to/somewhere/hostbdir
# to unmount it you can do
fusermount -u /path/to/somewhere/hostbdir
# http://www.linuxquestions.org/questions/linux-software-2/how-does-one-make-a-virtual-ssh-directory-4175424521/
# instalacao no ubuntu
apt-get install git
# iniciar git no diretorio
git init
# relaciona um repositorio remoto ao diretorio "origin"
git remote add origin [email protected]:account/repository_name.git
# puxa a branch "master" do repositorio para o diretorio "origin"
@fernandojunior
fernandojunior / gist:3e8abd7bb4098d702d92
Last active August 29, 2015 14:06
Solution in Python for the first codingame trannig
# The code below will read all the game information for you.
# On each game turn, information will be available on the standard input, you will be sent:
# -> the total number of visible enemies
# -> for each enemy, its name and distance from you
# The system will wait for you to write an enemy name on the standard output.
# Once you have designated a target:
# -> the cannon will shoot
# -> the enemies will move
# -> new info will be available for you to read on the standard input.
"""
@fernandojunior
fernandojunior / gist:5166fc6f92354cc950c9
Last active May 9, 2016 15:53
A modified Parse.FacebookUtils to use with the modified openFB
/**
* Based on Parse.FacebookUtils. A provider for use the modified openFB in Parse.
* @author Fernando Felix do Nascimento Junior*
**/
(function(root) {
root.Parse = root.Parse || {};
var Parse = root.Parse;
var _ = Parse._;
var PUBLIC_KEY = "*";
Hello World
@fernandojunior
fernandojunior / gist:857c9926ad4de671bc0e
Created June 4, 2014 07:06
Funções JavaScript que recuperam parametros da url
/**
* Retorna o valor de um parametro da url
* @param name Nome do parametro
* @ref http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
**/
function getParameter(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? null : decodeURIComponent(results[1].replace(/\+/g, " "));