Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

kristian koci kkoci

🎯
Focusing
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
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
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
lalviarez / _form.php
Last active Mar 13, 2017
Yii2 combolist ajax
View _form.php
<?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
jacquestardie / modern-geospatial-python.md
Last active Sep 12, 2019
Modern remote sensing image processing with Python
@n0m4dz
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
vero4karu / views.py
Last active Jun 18, 2019
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
View views.py
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
miguelgrinberg / pycon-views.py
Last active Jun 13, 2019
Generate statistics about PyCon 2014 videos
View pycon-views.py
import argparse
import re
from multiprocessing.pool import ThreadPool as Pool
import requests
import bs4
root_url = 'http://pyvideo.org'
index_url = root_url + '/category/50/pycon-us-2014'
@anibal
anibal / te-gusta-programar-y-quieres-irte-de-venezuela.md
Last active Aug 29, 2015
¿Te gusta programar y quieres irte de Venezuela?
View te-gusta-programar-y-quieres-irte-de-venezuela.md

SI

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

Y

  • 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
gmodarelli / Multiple PHP under Ubuntu 13.04.md
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 13.04.md

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
Kerrick / gist:2716568
Created May 17, 2012
HOWTO install Sublime Text 2 in Debian Squeeze
View gist:2716568
# Download Sublime Text 2 from http://www.sublimetext.com/2
# 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.