I hereby claim:
- I am vigo on github.
- I am vigo (https://keybase.io/vigo) on keybase.
- I have a public key whose fingerprint is 19CA CF8F 3AB4 06F6 D644 5842 D097 2B1B BE84 BBE4
To claim this, I am signing this object:
on run | |
tell application "Finder" | |
set DesktopSize to bounds of window of desktop | |
set DesktopWidth to item 3 of DesktopSize | |
set DesktopHeight to item 4 of DesktopSize | |
end tell | |
tell application "TextMate" | |
activate | |
set WindowsList to (every window where visible is true) |
VERSION = \"1.0.0\" | |
PREFIX ?= out | |
INCDIR = inc | |
SRCDIR = src | |
LANG = c | |
OBJDIR = .obj | |
MODULE = binary_name | |
CC = gcc |
# ######################################################################### | |
# This bash script adds tab-completion feature to django-admin.py and | |
# manage.py. | |
# | |
# Testing it out without installing | |
# ================================= | |
# | |
# To test out the completion without "installing" this, just run this file | |
# directly, like so: | |
# |
#!/usr/bin/env bash | |
# | |
# Created by Uğur "vigo" Özyılmazel on 2017-04-26. | |
# Copyright (c) 2017 VB YAZILIM. All rights reserved. | |
set -e | |
set -o pipefail | |
usage() { | |
cat <<EOF |
I hereby claim:
To claim this, I am signing this object:
:root { | |
--violation-color: red; /* used for clear issues */ | |
--warning-color: orange; /* used for potential issues we should look into */ | |
} | |
/* IMAGES */ | |
/* | |
* Lazy-Loaded Images Check | |
* ==== |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)task :default => [:menemen_yap] | |
task :menemen_yap => [:tereyag_al, :yumurta_al, :domates_al, :sivri_biber_al, :sahani_isit, :sebzeleri_pisir, :yumartayi_kir] do | |
puts "Menemen yapıyıyoruz" | |
end | |
task :tereyag_al => [:bakkala_git] do | |
puts "Tereyağı alıyoruz" | |
end |
# https://hakibenita.com/how-to-turn-django-admin-into-a-lightweight-dashboard | |
from django.contrib import admin | |
from django.db.models import Count, Sum, Min, Max, DateTimeField) | |
from django.db.models.functions import Trunc | |
from . import models | |
def get_next_in_date_hierarchy(request, date_hierarchy): |