- Postico client for mac
- pgcli - Postgres CLI with autocompletion and syntax highlighting
- pghero - Server and query performance dashboard
- PEV - Query planning / Explain analyze visualisation
- PostgreSQL's explain analyze made readable
#include <AK/DistinctNumeric.h> | |
#include <AK/NonnullOwnPtr.h> | |
#include <AK/Vector.h> | |
#include <LibMain/Main.h> | |
#include <sys/mman.h> | |
// JS::Bytecode::Executable (jitme) | |
// 1: | |
//[ 0] Store $5 | |
//[ 20] LoadImmediate 0 |
""" | |
Django ORM Optimization Tips | |
Caveats: | |
* Only use optimizations that obfuscate the code if you need to. | |
* Not all of these tips are hard and fast rules. | |
* Use your judgement to determine what improvements are appropriate for your code. | |
""" | |
# --------------------------------------------------------------------------- |
""" | |
An implementation of TOTP as described in https://tools.ietf.org/html/rfc6238#section-4 aka Google Authenticator Style 2-factor Auth | |
""" | |
import base64 | |
import datetime | |
import hashlib | |
import hmac | |
import sys | |
import struct | |
import time |
# hglookup.py | |
# | |
# Lookup a revision hash in a bunch of different hgwebdir repos. | |
# Also includes special treatment for subversion revisions from | |
# the CPython repo. | |
# | |
# Written by Georg Brandl, 2010. | |
import io | |
import json |
from __future__ import unicode_literals | |
from django.db import models | |
from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor # noqa | |
class RelationNotLoaded(Exception): | |
pass | |
from django.utils.translation import ugettext_lazy as _ | |
from rest_framework import serializers | |
class SomeSerializer(serializers.ModelSerializer): | |
""" | |
Demostrating How to Override DRF UniqueTogetherValidator Message | |
""" | |
class Meta: |
#define _CRT_SECURE_NO_WARNINGS | |
#include <string.h> | |
#include <stdio.h> | |
#include <windows.h> | |
#pragma warning (disable: 4146) | |
#include <stdint.h> | |
#ifdef _DEBUG | |
#define Assert(x) \ | |
if (!(x)) { MessageBoxA(0, #x, "Assertion Failure", MB_OK); __debugbreak(); } |
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <windows.h> | |
#include <stdint.h> | |
#define Assert(x) \ | |
if (!(x)) { MessageBoxA(0, #x, "Assertion Failure", MB_OK); __debugbreak(); } | |
enum Register { | |
RAX = 0, |
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { | |
output_file = CreateFileA("output.txt", GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); | |
Xeno_PrintType(&xeno_uint8); | |
Printf("\n"); | |
Xeno_PrintType(&xeno_uint32); | |
Printf("\n"); | |
Xeno_PrintType(&xeno_uint64); | |
Printf("\n"); |