Skip to content

Instantly share code, notes, and snippets.

View averrin's full-sized avatar
🇨🇿
Looking for new home

Averrin averrin

🇨🇿
Looking for new home
View GitHub Profile
using System.Collections.Generic;
using UnityEngine;
using Zenject;
public class RegionsManager {
[Inject]
public List<IRegionMesh> prefabs;
[Inject]
@averrin
averrin / keybase.md
Created May 8, 2018 08:41
keybase.md

Keybase proof

I hereby claim:

  • I am averrin on github.
  • I am averrin (https://keybase.io/averrin) on keybase.
  • I have a public key whose fingerprint is 1017 5A25 53F6 74FA DF2C 1AE7 ADC0 6D87 4A58 C42B

To claim this, I am signing this object:

select
p.person_id,
p.full_name, p.mail, p.phone, p.location, p.tier
, COALESCE(json_agg(json_build_object(
'date_start', v.date_start,
'date_end', v.date_end,
'type_id', v.type_id,
'type', ty.title
)) FILTER (WHERE v.vacation_id IS NOT NULL), '{}')
as vacations, p.scopes::json
@averrin
averrin / _cvim.rc
Last active July 27, 2016 14:46
cvim.rc
let hintcharacters = "asdfghjkl"
set smoothscroll
let scrollstep = 180
set noautofocus
set cncpcompletion
map <C-;> B
map о j
map л k
map е t
site '*://bazqux.com/*' {
departments = []
monthes = getMonthList()
p = {}
pp = {}
for m in monthes:
pipe = [
{'$group': {
'_id': '$department',
m: {'$sum': '$' + m}
}}
@averrin
averrin / ua_fetch.py
Created October 1, 2015 10:06
Fetch popular UAs
#!env python3
import requests
from lxml import html
page = requests.get('https://techblog.willshouse.com/2012/01/03/most-common-user-agents/')
page = html.fromstring(page.text)
path = '//*[@id="post-2229"]/div[2]/table/tbody'
table = page.xpath(path)[0]
for row in table[:10]:
ua = row[1].text_content()
@averrin
averrin / hints.py
Last active September 21, 2015 16:45
#!env python
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from functools import partial
import sys
import os
import time
from queue import LifoQueue
@averrin
averrin / slingbox_bookmarklet_full.js
Last active August 29, 2015 14:24
slingbox_bookmarklet_full.js
(function() {
$('#notification_area_static, #rc_notification_area_static, #rc_notification_area, #notification_area').remove();
Sling.watch.slingboxSelector.localDiscoveryProxy();
window.show = function() {
var list = $('#receivers_popup_wrapper');
$('#selector').hide();
$('#receivers_popup_wrapper').hide();
// list.attr('id', 'list');
$('body').off("click");
$('body').off("mousemove");
@averrin
averrin / attendance.py
Last active August 29, 2015 14:22
attendance + trackstudio tracker
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from lxml import html
from datetime import datetime, timedelta
averageTimePath = '//*[@id="wrapper"]/div/div[3]/div[3]/div'
def fetchAttendance():
@averrin
averrin / keybase.md
Created April 15, 2015 11:34
keybase.md

Keybase proof

I hereby claim:

  • I am averrin on github.
  • I am averrin (https://keybase.io/averrin) on keybase.
  • I have a public key whose fingerprint is E8F9 31B5 4CB6 C073 9203 AD62 508F D1AC D8B8 C5CB

To claim this, I am signing this object: