This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <math.h> | |
struct stack { | |
size_t size; | |
double *buff; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Build: | |
; ~$ nasm -felf64 hello-input.s -o hello-input.o | |
; ~$ ld hello-input.o | |
; ~$ ./a.out | |
global _start | |
section .data | |
null: equ 0x0 | |
stdoutf: equ null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; NOTE: to successfully build you must have a copy of kernel32.lib in the same directory! | |
; build: | |
; ml64 helloworld.asm /link /subsystem:console /entry:main | |
includelib kernel32.lib ; library - kernel functions (Windows Kit) (directory relative) | |
; external functions and handles | |
GetStdHandle proto ; function - gets an output handle | |
WriteConsoleA proto ; funciton - writes to a console handle | |
ExitProcess proto ; function - exits the current process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TwitterExtensibleError extends Error { | |
constructor(message) { | |
super(message) | |
this.name = this.constructor.name | |
if (typeof Error.captureStackTrace === 'function') { | |
Error.captureStackTrace(this, this.constructor); | |
} else { | |
this.stack = (new Error(message)).stack; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports System | |
Module Program | |
Sub PrintHelp() | |
Console.WriteLine("rpncalc - version 0.1 - 2022") | |
Console.WriteLine("To use: type integer or operator") | |
Console.WriteLine("") | |
Console.WriteLine("Operators:") | |
Console.WriteLine(" + Adds all values on the stack together.") | |
Console.WriteLine(" - Substracts all values on the stack from each other.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Frame { | |
constructor(width, height, pallet) { | |
this.width = width | |
this.height = height | |
this.pallet = pallet | |
this.buffer = new Uint8ClampedArray((width * height) * 4) | |
} | |
asBytes() { | |
return this.buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NAME | |
sketch - sketch an image | |
SYNOPSIS | |
sketch [-l -p -save -stat] [file] | |
DESCRIPTION | |
Sketch approximates the input image using randomly placed lines. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CheckAdoptions = function () { | |
this._adoptions = []; | |
this._concerns = []; | |
return this; | |
}; | |
CheckAdoptions.prototype.__fetchAdoptionsList = function () { | |
if (this._adoptions.length > 0) { | |
this._adoptions = []; | |
this._concerns = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window, document, mw) { | |
var ZION = function () { | |
this._scripts = []; | |
this.loaded = this.loaded(); | |
return this; | |
}; | |
ZION.prototype._getScriptURL = function (script) { | |
var split = script.split(':'); |
NewerOlder