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
@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;
};
@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
# ************************************************************************
# * 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
<!DOCTYPE HTML5(experimental)>
<html>
<head>
<title>
Jacked Phones
</title>
<link rel="stylesheet" type="text/css" href="WebPageScreen.css">
<style>
img {
<!DOCTYPE HTML5(experimental)>
<html>
<head>
<title>
Jacked Phones
</title>
<link rel="stylesheet" type="text/css" href="WebPageScreen.css">
<style>
img {
//this loads html content from the VU into the table
$(document).ready(function()
{
$.ajax({
//ajax request with paramaters to get a json file from the VU
url: 'https://wt.ops.labs.vu.nl/api18/f47cbdfe',
type: 'get',
dataType:'json',
success: function (response)
//if succesful do the following
<!DOCTYPE HTML>
<html>
<head>
<title>
Jacked Phones
</title>
<link rel="stylesheet" type="text/css" href="Screen_matthias.css">
<meta charset="UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
$(document).ready(function()
{
$.ajax({
//ajax request with paramaters to get a json file from the VU
url: 'https://wt.ops.labs.vu.nl/api18/f47cbdfe',
type: 'get',
dataType:'json',
success: function (response)
{
var trHTML = '';
//this loads html content from the VU into the table
$(document).ready(function()
{
$.ajax({
//ajax request with paramaters to get a json file from the VU
url: 'https://wt.ops.labs.vu.nl/api18/f47cbdfe',
type: 'get',
dataType:'json',
success: function (response)
{
<!DOCTYPE HTML>
<html>
<head>
<title>
Jacked Phones
</title>
<link rel="stylesheet" type="text/css" href="Screen_matthias.css">
<meta charset="UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>