def check_url(url)
return true if /^(?:(?:https\:\/\/))|(?:(?:http\:\/\/))/.match(url)
return false
end
Verifying my Blockstack ID is secured with the address 1PCcZG6DpWgg2w686ebbiS9Q3L28qtGiTt https://explorer.blockstack.org/address/1PCcZG6DpWgg2w686ebbiS9Q3L28qtGiTt |
01-03-2017 @ 14:39:22 - Getting the order installments... | |
01-03-2017 @ 14:39:22 - request[headers]:Array | |
( | |
) | |
01-03-2017 @ 14:39:22 - request[body]:{"api_key":"recorrenteNet_b0c03713-a906-4f03-8d69-d668b68cd99c","amount":10300,"interest_rate":"1","max_installments":"12","free_installments":"10"} | |
01-03-2017 @ 14:39:22 - request[to]: https://recorrente.net/1/transactions/calculate_installments_amount | |
01-03-2017 @ 14:39:23 - Failed to get the installments: Array | |
( | |
[headers] => Requests_Utility_CaseInsensitiveDictionary Object |
#!/bin/sh | |
# example | |
# add this to crontab -e of odoo user | |
# curl -sL https://gist.github.com/shingonoide/1947a97e3c00168372e950a6788ce9ad/raw/cleanup_odoo_session.sh > /tmp/cleanup_sessions.sh && sh /tmp/cleanup_sessions.sh 4 | |
HOW_OLDER=${1:-6} | |
VERBOSE=${2:-0} | |
SESSION_FOLDER="$HOME/.local/share/Odoo/sessions" | |
TOTALFILES=$(find $SESSION_FOLDER -name '*.sess' | wc -l) |
I hereby claim:
To claim this, I am signing this object:
/* Checkbox Hack */ | |
input[type=checkbox] { | |
position: absolute; | |
top: -9999px; | |
left: -9999px; | |
} | |
label { | |
-webkit-appearance: push-button; | |
-moz-appearance: button; |
# code snip for clarification | |
class module_core_user_input(osv.Model): | |
_name = "module_core.user_input" | |
_description = 'Module Core User Input' | |
_columns = { | |
'master_document_id': fields.many2one('qdi_core.survey', 'Master Document', required=True, | |
readonly=1, ondelete='restrict'), | |
'user_input_line_ids': fields.one2many('module_core.user_input_line', | |
'user_input_id', 'Inputs'), |
This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:
This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features: