Skip to content

Instantly share code, notes, and snippets.


kristian koci kkoci

Block or report user

Report or block kkoci

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bhaktipriya / SimplePolicy.ipynb
Created Mar 21, 2017 — forked from awjuliani/SimplePolicy.ipynb
Policy gradient method for solving n-armed bandit problems.
View SimplePolicy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
pkowalicki / .block
Last active Jan 6, 2017
Pivot table visualization with zoomable partition layout in d3.js
View .block
border: no
height: 900
license: gpl-3.0
lalviarez / _form.php
Last active Mar 13, 2017
Yii2 combolist ajax
View _form.php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use yii\helpers\Url;
use yii\web\View;
/* @var $this yii\web\View */
/* @var $model common\models\ConsejoComunal */
jacquestardie /
Last active May 31, 2020
Modern remote sensing image processing with Python
n0m4dz / python_pretty_time
Last active Oct 26, 2018
python pretty time with localization
View python_pretty_time
# coding: utf-8
from datetime import datetime
from datetime import timedelta
def calc_diff(delta):
delta = abs( delta )
return {
'year' : int(delta.days / 365),
'month' : int(delta.days % 365) / 30,
'day' : int(delta.days % 365) % 30,
vero4karu /
Last active Mar 24, 2020
Django (extreme case): How to raise form invalid inside form_valid method of a FormView (CreateView/UpdateView) and add an error message to not field errors
from django.forms.util import ErrorList
from django import forms
class ContractUpdateView(UpdateView):
model = Contract
template_name = 'contract/contract_form.html'
form_class = ContractForm
def form_valid(self, form):
if self.request.POST.get('finish'):
miguelgrinberg /
Last active Mar 4, 2020
Generate statistics about PyCon 2014 videos
import argparse
import re
from multiprocessing.pool import ThreadPool as Pool
import requests
import bs4
root_url = ''
index_url = root_url + '/category/50/pycon-us-2014'
anibal /
Last active Jan 12, 2020
¿Te gusta programar y quieres irte de Venezuela?


  • Quieres un trabajo con el que te puedas divertir mientras aprendes lo suficiente para irte de Venezuela con buenas oportunidades en el exterior.


  • Te encanta programar
  • En serio, es indispensable que te apasione programar.
  • Programas hasta en tu tiempo libre como un pasatiempo.
  • Te sientes cómodo en whatever shell de Linux.
gmodarelli / Multiple PHP under Ubuntu
Last active Sep 6, 2019
How to setup Ubuntu 13.04 to work with multiple PHP version at the same time
View Multiple PHP under Ubuntu

Multiple PHP version under Ubuntu 13.04

Update your machine

apt-get update
apt-get ugrade

Install some dependencies

apt-get install build-essential
Kerrick / gist:2716568
Created May 17, 2012
HOWTO install Sublime Text 2 in Debian Squeeze
View gist:2716568
# Download Sublime Text 2 from
# If you aren't root, sudo su
tar -xvjf Sublime\ Text\ 2*.tar.bz2
mv Sublime\ Text\ 2/ /opt/sublime-text-2/
ln -s /opt/sublime-text-2 /usr/local/sublime-text-2
ln -s /usr/local/sublime-text-2/sublime_text /usr/local/bin/sublime_text
rm Sublime\ Text\ 2*.tar.bz2
# Sublime Text 2 can now be run as normal user with command "sublime_text"
You can’t perform that action at this time.