Skip to content

Instantly share code, notes, and snippets.

View duplxey's full-sized avatar
🔋
Charging...

Nik Tomazic duplxey

🔋
Charging...
View GitHub Profile

x64 NASM cheat sheet

Registers

64 bit 32 bit 16 bit 8 bit
A (accumulator) RAX EAX AX AL
B (base, addressing) RBX EBX BX BL
C (counter, iterations) RCX ECX CX CL
D (data) RDX EDX DX DL
@duplxey
duplxey / app_index.html
Created February 10, 2021 19:02
django-interactive-charts/shop/templates/admin/shop
{% extends "admin/index.html" %}
{% load i18n %}
{% block bodyclass %}{{ block.super }} app-{{ app_label }}{% endblock %}
{% if not is_popup %}
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
&rsaquo;
@duplxey
duplxey / django-ajax-messages.txt
Created April 13, 2020 11:22
Django form + messages + AJAX
https://stackoverflow.com/questions/13256817/django-how-to-show-messages-under-ajax-function
@duplxey
duplxey / PROBLEMS.md
Last active April 13, 2020 11:23
These are the problems, that were way too easy to solve and took me way too much time.

Intellij IDEA SwingBuilder + Maven

Your program might throw NullPointerException if you used SwingBuilder and Maven at the same time. A lot of solutions don't work, but the most simple one is to add com.intellij.forms_rt as a dependency.