Skip to content

Instantly share code, notes, and snippets.

View ovnicraft's full-sized avatar
🎯
Focusing

Christian Salamea ovnicraft

🎯
Focusing
View GitHub Profile
<autorizacion><estado>AUTORIZADO</estado><numeroAutorizacion>3011201801019011579800120370010004861270000000112</numeroAutorizacion><fechaAutorizacion>2018-12-01T14:25:13-05:00</fechaAutorizacion><ambiente>PRODUCCI&#211;N</ambiente><comprobante>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;factura id="comprobante" version="1.0.0"&gt;&lt;infoTributaria&gt;&lt;ambiente&gt;2&lt;/ambiente&gt;&lt;tipoEmision&gt;1&lt;/tipoEmision&gt;&lt;razonSocial&gt;COOPERATIVA DE AHORRO Y CREDITO JUVENTUD ECUATORIANA PROGRESISTA LTDA&lt;/razonSocial&gt;&lt;nombreComercial&gt;JEP&lt;/nombreComercial&gt;&lt;ruc&gt;0190115798001&lt;/ruc&gt;&lt;claveAcceso&gt;3011201801019011579800120370010004861270000000112&lt;/claveAcceso&gt;&lt;codDoc&gt;01&lt;/codDoc&gt;&lt;estab&gt;037&lt;/estab&gt;&lt;ptoEmi&gt;001&lt;/ptoEmi&gt;&lt;secuencial&gt;000486127&lt;/secuencial&gt;&lt;dirMatriz&gt;AV ORDONEZ LASSO VIA CUENCA NARANJAL&lt;/dirMatriz&gt;&lt;/infoTributaria&gt;&lt;infoFactura&gt;&lt;fechaEmision&gt;30/11/2018&lt;/fechaEmision&gt;&lt;d
# -*- coding: utf-8 -*-
import datetime
import cStringIO
import base64
import xlwt
from pytz import timezone
from odoo import models, fields, api
class InventoryExcelExtended(models.Model):
@ovnicraft
ovnicraft / git-loglive
Created June 9, 2016 15:16 — forked from tlberglund/git-loglive
Log Live Git Command
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit -15 --decorate --all $*
sleep 1
done
@ovnicraft
ovnicraft / .gitconfig
Created June 7, 2016 00:23 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

{ "_id" : { "tag" : "i4x", "org" : "CNE", "course" : "PECDRE", "category" : "course", "name" : "2015_12", "revision" : null }, "definition" : { "data" : { "textbooks" : [ ], "syllabuses" : [ ], "grading_policy" : { "GRADE_CUTOFFS" : { "Pass" : 0.03 }, "GRADER" : [ ] }, "wiki_slug" : "CNE.PECDRE.2015_12" }, "children" : [ "i4x://CNE/PECDRE/chapter/baaa0033c96249fa9e11a55324d12acd", "i4x://CNE/PECDRE/chapter/dac67ac0b9054c358732eca53fbc5ea1", "i4x://CNE/PECDRE/chapter/e9bffbcf26be40b89fbc8aa5f796d510", "i4x://CNE/PECDRE/chapter/1046e1e7deb948f2b587b609efe8ee74", "i4x://CNE/PECDRE/chapter/410dd8d1ba3f477c8dfc87f43b02b990" ] }, "edit_info" : { "edited_by" : NumberLong(6), "subtree_edited_on" : ISODate("2015-12-21T15:26:09.559Z"), "edited_on" : ISODate("2015-12-21T15:26:09.559Z"), "subtree_edited_by" : NumberLong(6) }, "metadata" : { "advanced_modules" : [ "carousel" ], "end" : "2016-02-28T05:00:00Z", "invitation_only" : true, "graceperiod" : "", "enrollment_start" : "2015-12-15T00:00:00Z", "discussion_topics" : {
@ovnicraft
ovnicraft / gist:4740432
Last active December 12, 2015 07:58 — forked from anonymous/gist:4740427
nohup python openerp-server --addons-path=../addons/,../web6.1/addons &
@ovnicraft
ovnicraft / employee.xml
Created September 22, 2015 18:02 — forked from palichis/employee.xml
employee view
<record model="ir.ui.view" id="view_employee_modified_form">
<field name="name">hr.employee.modified.form</field>
<field name="model">hr.employee</field>
<field name="type">form</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<field name="company_id" position="replace">
<field name="company_id" invisible="1"/>
<field name="work_email" widget="email" colspan="3"/>
</field>
__author__ = 'name1984'
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import MySQLdb
import json
import csv
import sys
"section_breakdown": [
{
"category": "Prueba 1\u00b0",
"prominent": true, "percent": 0,
"detail": "Prueba 1\u00b0 = 0%",
"label": "PRB1"
},
{
"category": "Prueba 2\u00b0",