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
{ "_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 / 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",
| 524137 | problem | block-v1:mineduc-forma+LMN101+2015_07+type@problem+block@e9d02abbc79246709ec83458db95c193 | 35546 | {"correct_map": {"e9d02abbc79246709ec83458db95c193_7_1": {"hint": "", "hintmode": null, "correctness": "correct", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_4_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_13_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_8_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_9_1": {"hint": "", "hintmode": null, "correctness": "correct", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_6_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate":
create or replace view ppl_ubicacion as
select
prison_person.id, prison_person.name as ppl_name, prison_person.last_name, prison_person.location_id,
prison_location.name, (select prison_location.name FROM prison_location WHERE id=prison_person.etapa_id) as etapa_name,
(SELECT prison_location.name FROM prison_location WHERE id=prison_person.pabellon_id) as pabellon_name,
prison_person.etapa_id, prison_person.pabellon_id
from
prison_person
join
prison_location