Skip to content

Instantly share code, notes, and snippets.

View matthiasdebernardini's full-sized avatar
💭
building trident vault

Matthias Debernardini matthiasdebernardini

💭
building trident vault
  • USA
View GitHub Profile
<!DOCTYPE HTML5(experimental)>
<html>
<head>
<title>
Jacked Phones
</title>
<link rel="stylesheet" type="text/css" href="WebPageScreen.css">
<style>
img {
# ************************************************************************
# * Program name : sieve *
# * Description : this program prints all the prime numbers below 1000 *
# ************************************************************************
.bss
NUMBERS: .skip 1000 # memory space for the number table
.text
formatstr: .asciz "%d\n" # format string for number printing
@matthiasdebernardini
matthiasdebernardini / sieve.s
Created November 27, 2017 09:07
Eratosthenes Sieve
1 .bss
2 NUMBERS: .skip 1000
3
4 .text
5 formatstr: .asciz "%d\n"
6
7 .global main
8
9 main:
10 movq %rsp, %rbp
@matthiasdebernardini
matthiasdebernardini / myvector.cpp
Created October 22, 2017 12:33
struct inside of custom vector
#include <iostream>
using namespace std;
struct Person
{
string name;
string room;
};