Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import uuid
from django.db import models
from django.core.exceptions import ObjectDoesNotExist
from django.utils import timezone
from django.contrib.auth.models import AbstractUser, Group
import os
import pandas
import openpyxl
writer = pandas.ExcelWriter('ruta al excel de salida', engine='openpyxl')
current_row = 0
all_excel_dir = 'ruta al directorio de exceles'
for fidx, one_file in enumerate(os.listdir(all_excel_dir)):
if one_file.split('.')[-1] == 'xlsx':
@alfonsokim
alfonsokim / keybase.md
Created October 16, 2017 01:33
keybase

Keybase proof

I hereby claim:

  • I am alfonsokim on github.
  • I am alfonsokim (https://keybase.io/alfonsokim) on keybase.
  • I have a public key whose fingerprint is D7BB 9335 8005 7A28 E4E7 1C0D 1D18 FEC4 E16E 835B

To claim this, I am signing this object:

@alfonsokim
alfonsokim / force.js
Created January 24, 2017 21:01 — forked from garkbit/force.js
Force Habitica quest to start
(function(){
let userid = window.amplitude.options.userId;
let groupid = window.amplitude.options.userProperties.partyID;
let token = JSON.parse(window.localStorage.getItem('habit-mobile-settings')).auth.apiToken;
let url = `/api/v3/groups/${groupid}/quests/force-start`;
let http = new XMLHttpRequest();
http.open('POST', url, true);
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.