Skip to content

Instantly share code, notes, and snippets.

View Myvar's full-sized avatar

Emile Badenhorst Myvar

  • South Africa
View GitHub Profile
@Myvar
Myvar / x86-assembly-notes.md
Created December 11, 2022 05:17 — forked from mikesmullin/x86-assembly-notes.md
Notes on x86-64 Assembly and Machine Code

Mike's x86-64 Assembly (ASM) Notes

Assembling Binary Machine Code

Operating Modes:

These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.

Modern operating systems, booted inside Real mode,

var http = require('http');
var sockjs = require('sockjs-client');
var request = require('request');
var sock = new sockjs('https://screeps.com/socket');
var user_id = "";
var user_name = "";
var password = "";
var sleep = require('sleep');
sock.onopen = function() {
console.log('open');
@Myvar
Myvar / screeps.py
Created December 29, 2016 14:06 — forked from dzhu/screeps.py
description of the HTTP endpoints available from Screeps, and a Python wrapper to access them (requires requests library)
import json
from base64 import b64decode
from collections import OrderedDict
from cStringIO import StringIO
from gzip import GzipFile
import requests
## Python before 2.7.10 or so has somewhat broken SSL support that throws a warning; suppress it