Skip to content

Instantly share code, notes, and snippets.

View GabrielCastro's full-sized avatar
🚀
Building Products

Gabriel Castro GabrielCastro

🚀
Building Products
View GitHub Profile
@GabrielCastro
GabrielCastro / tester.js
Last active December 24, 2015 22:29
Assignment One tester
function assert(msg, expected, result) {
if (expected !== result) {
setTimeout(function () {
var errMsg = "****** ASSERT ERROR ****** " + msg + " { expected " + expected + " !=== " + result + " } ";
console.log(errMsg);
//throw new Error(errMsg);
}, 0);
} else {
console.log("\t" + msg + " OK");
@GabrielCastro
GabrielCastro / LinkedList.cpp
Last active December 27, 2015 00:29
OOP-344 Doubly Linked List
#include "LinkedList.h"
LinkedList::Node::Node(LinkedList::ListType val, Node* next, Node* prev)
: val(val), next(next), prev(prev)
{
}
LinkedList::Node::~Node()
{
}
...
public class MyView extends View {
...
public MyView(Context context) {
super(context);
init(context);
}
@GabrielCastro
GabrielCastro / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
#paper_tabs {
width: 480px;
color: rgb(255, 255, 255);
@GabrielCastro
GabrielCastro / do_nothig.s
Last active August 29, 2015 14:08
Counting in x86 assembly
.text
.globl _start
_start:
# set return status to 0
mov $0,%rdi
# set up exit syscall
mov $60,%rax
syscall
@GabrielCastro
GabrielCastro / Actual Ouput.yaml
Last active March 25, 2021 18:16
Buggy swagger api schema
openapi: 3.0.1
info:
title: Buggy Api
version: "1.0"
servers:
- url: /
paths:
/foo/bar1:
post:
responses: