Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Building Products

Gabriel Castro GabrielCastro

🚀
Building Products
View GitHub Profile
@GabrielCastro
GabrielCastro / Actual Ouput.yaml
Last active Mar 25, 2021
Buggy swagger api schema
View Actual Ouput.yaml
openapi: 3.0.1
info:
title: Buggy Api
version: "1.0"
servers:
- url: /
paths:
/foo/bar1:
post:
responses:
@GabrielCastro
GabrielCastro / do_nothig.s
Last active Aug 29, 2015
Counting in x86 assembly
View do_nothig.s
.text
.globl _start
_start:
# set return status to 0
mov $0,%rdi
# set up exit syscall
mov $60,%rax
syscall
View designer.html
<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);
View MyView.java
...
public class MyView extends View {
...
public MyView(Context context) {
super(context);
init(context);
}
@GabrielCastro
GabrielCastro / LinkedList.cpp
Last active Dec 27, 2015
OOP-344 Doubly Linked List
View LinkedList.cpp
#include "LinkedList.h"
LinkedList::Node::Node(LinkedList::ListType val, Node* next, Node* prev)
: val(val), next(next), prev(prev)
{
}
LinkedList::Node::~Node()
{
}
@GabrielCastro
GabrielCastro / tester.js
Last active Dec 24, 2015
Assignment One tester
View tester.js
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");