pip install flask paste
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
/* | |
Run on https://www.openerp.com/partners/directory/ | |
*/ | |
var countries = Array(); | |
$(".oe_countries ul li a").each(function(){ | |
if ($(this).attr("href") != undefined) | |
countries.push({ | |
"Link": $(this).attr("href"), | |
"Name": $(this).html(), |
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
#!/usr/bin/env python | |
''' | |
Install package from .travis.yml | |
usage: travis_setup.py | |
@author Tarun Bhardwaj | |
@license FreeBSD Licence | |
''' |
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
#!/usr/bin/env python | |
""" tryton_shell: A dirty shell for Tryton to quickly interact with it | |
usage: tryton_shell.py [-h] --config CONFIG --database DATABASE | |
arguments: | |
--config CONFIG Tryton config file. | |
--database DATABASE Tryton database. | |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Jinja2 static site renderer using Flask | |
@author Tarun Bhardwaj | |
@license FreeBSD Licence | |
""" | |
from flask import Flask, abort, render_template | |
from jinja2 import TemplateNotFound |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
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
<AddressValidationResponse> | |
<Response> | |
<TransactionReference> | |
<CustomerContext>unspecified</CustomerContext> | |
</TransactionReference> | |
<ResponseStatusCode>1</ResponseStatusCode> | |
<ResponseStatusDescription>Success</ResponseStatusDescription> | |
</Response> | |
<AddressValidationResult> | |
<Rank>1</Rank> |
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 | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
This script set ownership for all table, sequence and views for a given database | |
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto |
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
// For https://pypi.python.org/pypi | |
// Inject jquery before following script | |
// My quick jquery injector: | |
// javascript:var b=document.body;if(b){void(z=document.createElement('script'));void(z.type='text/javascript');void(z.src='https://code.jquery.com/jquery-1.10.2.min.js');void(b.appendChild(z));}else{} | |
var links = $("#document-navigation ul a"); | |
var test = links.each(function(index, link){ | |
var package = $(link).html(); |
OlderNewer