Skip to content

Instantly share code, notes, and snippets.

Avatar
🌵
Yay!

Ania Warzecha aniav

🌵
Yay!
View GitHub Profile
View gist:a85c65e43f06cb3e2bbdd38788bc4f19
### 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 Mar 23, 2017
My almost generic .vscode/settings.json for python/Django projects
View settings.json
{
"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 Mar 9, 2016
A set of definitions to remove when moving from Solr 3.x to Solr 5.5.x
View solr.xml
<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 Feb 10, 2015
Send Confirmation Email with Google Forms
View send_email.gs
/* 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 Aug 16, 2012
Import runmania.com workouts to runkeeper.com
View runmania2runkeeper.py
#!/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 Nov 12, 2011
Show G+ notification box only in Google+ (modified to work also for .pl domains)
View googleplus.user.js
// ==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 Oct 2, 2011
Red-gray irssi theme by patrycki.
View pat2.theme
############################################
# 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 Oct 2, 2011
Green-white irssi theme by patrycki
View pat1.theme
############################################
# 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 Sep 12, 2011 — forked from mpasternacki/flakes.py
Django management command to run pyflakes against Django project
View flakes.py
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
You can’t perform that action at this time.