Skip to content

Instantly share code, notes, and snippets.

View AlexRex's full-sized avatar
🐙
js

Alex Torres AlexRex

🐙
js
View GitHub Profile
@AlexRex
AlexRex / slideShow PH2
Created April 19, 2015 16:20
Slideshow PH2
function slideShow(origen, posOrigen){
var idRuta = getRuta();
var next = document.getElementById('next');
var back = document.getElementById('back');
var img = document.getElementById('slideShowImg');
var caption = document.getElementById('slideShowCaption');
var slideShowWrapper = document.getElementById('slideShowWrapper');
var close = document.getElementById('closeSlideShow');
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<canvas width="300" height="50" id="canvas"></canvas>
<script id="jsbin-javascript">
@AlexRex
AlexRex / results.ts
Last active August 20, 2021 17:31
Result type helpers
import { ApplicationErrorCodes } from './application-error-codes'
export class ApplicationError extends Error {
constructor(
public readonly errorCode: string,
description?: string
) {
super(description || errorCode)
// Need to override the prototype