Skip to content

Instantly share code, notes, and snippets.

View vasil's full-sized avatar

Vasil Taneski vasil

View GitHub Profile
@vasil
vasil / gist:7ed4c1eeb58b74692d6faffc866b0a72
Created January 19, 2017 14:51
првите 10 реда од табелата со нарачки.
reporting=> select id, retailer_id, supplier_id, purchase_date, acknowledge_brag, dispatch_brag, cancellation_brag, del
ivery_brag, return_brag from orders limit 10;
id | retailer_id | supplier_id | purchase_date | acknowledge_brag | dispatch_brag | cancellation_brag | delivery_brag | return_brag
--------+-------------+-------------+------------------------+------------------+---------------+-------------------+---------------+-------------
119633 | 1 | 17 | 2016-11-03 11:39:39+01 | RED | BLUE | | BLUE | RED
76165 | 1 | 2 | 2016-11-02 19:16:11+01 | BLUE | RED | | AMBER | RED
76172 | 1 | 3 | 2016-11-02 19:17:52+01 | AMBER | RED | | GREEN | RED
76145 | 1 | 1 | 2016-11-04 22:04:24+01 | RED | RED | | GREEN | RED
76147 |
@vasil
vasil / gist:76a802ef89017a0e739013ff1e619e0f
Created January 19, 2017 14:51
првите 10 реда од табелата со нарачки.
reporting=> select id, retailer_id, supplier_id, purchase_date, acknowledge_brag, dispatch_brag, cancellation_brag, del
ivery_brag, return_brag from orders limit 10;
id | retailer_id | supplier_id | purchase_date | acknowledge_brag | dispatch_brag | cancellation_brag | delivery_brag | return_brag
--------+-------------+-------------+------------------------+------------------+---------------+-------------------+---------------+-------------
119633 | 1 | 17 | 2016-11-03 11:39:39+01 | RED | BLUE | | BLUE | RED
76165 | 1 | 2 | 2016-11-02 19:16:11+01 | BLUE | RED | | AMBER | RED
76172 | 1 | 3 | 2016-11-02 19:17:52+01 | AMBER | RED | | GREEN | RED
76145 | 1 | 1 | 2016-11-04 22:04:24+01 | RED | RED | | GREEN | RED
76147 |
@vasil
vasil / a.py
Last active February 15, 2016 12:52
STR e stringot od koj shto gi vadish delovite, sostaveno e vo out.
import re
from datetime import datetime
FILENAME = "ela pateka do fajlot"
def compose(line):
g = re.match("C\ (.+)\ (\d{2}):(\d{2}):(\d{2})\ (.+)\ snort(.+)]", line)
if g:
date, hour, minute, second = g.groups()
date = datetime.strptime("%d %s" % (datetime.now().year, date), "%Y %b %d")
@vasil
vasil / modal.html
Created October 26, 2015 09:03
Change question level modal.
<div class="modal-dialog" ng-class="size ? 'modal-' + size : ''">
<div class="modal-content" modal-transclude="">
<div class="modal-header ng-scope">
<h3 class="modal-title">Change question level</h3>
</div>
<div class="modal-body ng-scope">
<p>
Are you sure that you want to change question level to B2?
</p>
</div>
@vasil
vasil / pixmap
Created September 7, 2015 14:46
VT
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@vasil
vasil / cheeses.txt
Created February 18, 2015 12:30
These are cheeses, "mlechen kashkaval" isn't
Abbaye de Belloc
Abbaye du Mont des Cats
Abertam
Abondance
Ackawi
Acorn
Adelost
Affidelice au Chablis
Afuega'l Pitu
Airag
@vasil
vasil / pre-commit
Last active August 29, 2015 14:15 — forked from ashwoods/pre-commit
#!/bin/sh
# Tag revisions like this:
# $ git tag -a -m "Version 0.2" v0.2 HEAD
VF=VERSION
DEFAULT_VERSION=UNKNOWN
LF='
'
@vasil
vasil / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
@vasil
vasil / pdb-signal.py
Created September 8, 2014 22:38
Debugger on Ctrl-C
import signal
def int_handler(signal, frame):
import pdb
pdb.set_trace(frame)
signal.signal(signal.SIGINT, int_handler)
@vasil
vasil / features.md
Created December 20, 2013 09:31 — forked from spion/features.md

New features and changes workflow guide

This guide describes what steps usually work best when adding new features to a product. The guidelines are not mandatory; simpler features may not need any of these steps. They exist to help battle the hardest new features to add :)

The steps are not necessarily in the correct order - this is the usual order. Going back to an older step to add/change things is okay.

Brainstorming sessions

Goal: collect all that we can come up with for the new feature or change. Everything goes into an unorganized document (wiki page). Possible ways to organize this document is into proposal items (and proposal detail item for each proposal item).