Skip to content

Instantly share code, notes, and snippets.

View aniav's full-sized avatar
🌵
Yay!

Ania Warzecha aniav

🌵
Yay!
View GitHub Profile
### Keybase proof
I hereby claim:
* I am aniav on github.
* I am pollenaniav (https://keybase.io/pollenaniav) on keybase.
* I have a public key ASCZZymJI-nc7NijHTh8Q9FzSWVz7N7zI7PPnU0PHXX7Ywo
To claim this, I am signing this object:
@aniav
aniav / settings.json
Created March 23, 2017 17:26
My almost generic .vscode/settings.json for python/Django projects
{
"python.pythonPath": "${workspaceRoot}/.venv/bin/python",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.pep8Enabled": true,
"python.formatting.autopep8Path": "${workspaceRoot}/.venv/bin/autopep8",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
@aniav
aniav / solr.xml
Created March 9, 2016 22:25
A set of definitions to remove when moving from Solr 3.x to Solr 5.5.x
<fieldType name="pint" class="solr.IntField"/>
<fieldType name="plong" class="solr.LongField"/>
<fieldType name="pfloat" class="solr.FloatField"/>
<fieldType name="pdouble" class="solr.DoubleField"/>
<fieldType name="pdate" class="solr.DateField" sortMissingLast="true"/>
<fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>
@aniav
aniav / send_email.gs
Created February 10, 2015 22:03
Send Confirmation Email with Google Forms
/* Send Confirmation Email with Google Forms */
function Initialize() {
var triggers = ScriptApp.getProjectTriggers();
for (var i in triggers) {
ScriptApp.deleteTrigger(triggers[i]);
}
@aniav
aniav / runmania2runkeeper.py
Created August 16, 2012 22:49
Import runmania.com workouts to runkeeper.com
#!/usr/bin/python 2.7
# -*- coding: utf-8 -*-
import csv
import json
import logging
import optparse
import os
import requests
@aniav
aniav / googleplus.user.js
Created November 12, 2011 22:44
Show G+ notification box only in Google+ (modified to work also for .pl domains)
// ==UserScript==
// @name Show G+ notification box only in Google+
// @namespace http://sagg.im/hidegplusnotifications
// @description To make sure we spend the entire day on Google+, we now have that big attractive notification box in the top right of all Google sites. When receiving a notification while searching the web or composing an email, the notification box turns all red and instantly draws your attention, taking you into the wrong conversation. This one line GreaseMonkey piece hides the notification box in all Google sites except Google+, where it belongs. Tested on Chrome and FF+GreaseMonkey.
// @include http://*.google.com/*
// @include http://*.google.pl
// @include https://*.google.com/*
// @include https://*.google.pl/*
// @exclude http://plus.google.com/*
// @exclude https://plus.google.com/*
@aniav
aniav / pat2.theme
Created October 2, 2011 11:34
Red-gray irssi theme by patrycki.
############################################
# pat2.theme - Last modification: 17/8/06 #
# Irssi-theme (c) patrycki #
############################################
# default foreground color (%N) - -1 is the "default terminal color"
default_color = "-1";
# print timestamp/servertag at the end of line, not at beginning
info_eol = "false";
@aniav
aniav / pat1.theme
Created October 2, 2011 11:33
Green-white irssi theme by patrycki
############################################
# pat1.theme - Last modification: 17/8/06 #
# Irssi-theme (c) patrycki #
############################################
# based on:
# hv.theme - 16/3/04
# Irssi-theme (c) cubik
# feel free to use, alter & etc..
# default foreground color (%N) - -1 is the "default terminal color"
@aniav
aniav / flakes.py
Created September 12, 2011 13:45 — forked from mpasternacki/flakes.py
Django management command to run pyflakes against Django project
import ast
import os
from pyflakes import checker, messages
import sys
from django.conf import settings
from django.core.management.base import BaseCommand
# BlackHole, PySyntaxError and checking based on
# https://github.com/patrys/gedit-pyflakes-plugin.git