python --version
python3 --version
#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, |