Skip to content

Instantly share code, notes, and snippets.

View psanders's full-sized avatar

Pedro Sanders psanders

View GitHub Profile
Java.type('spark.Spark').get("/hello", function() { return "Hello World" })
@psanders
psanders / API.md
Created February 14, 2018 22:20 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@psanders
psanders / timezones
Last active August 29, 2015 14:14 — forked from ykessler/timezones
[
{"group":"US (Common)",
"zones":[
{"value":"America/Puerto_Rico","name":"Puerto Rico (Atlantic)"},
{"value":"America/New_York","name":"New York (Eastern)"},
{"value":"America/Chicago","name":"Chicago (Central)"},
{"value":"America/Denver","name":"Denver (Mountain)"},
{"value":"America/Phoenix","name":"Phoenix (MST)"},
{"value":"America/Los_Angeles","name":"Los Angeles (Pacific)"},
{"value":"America/Anchorage","name":"Anchorage (Alaska)"},
package org.astivetoolkit.agi;
public enum HangupCause {
AST_CAUSE_NOT_DEFINED(0),
AST_CAUSE_UNALLOCATED(1),
AST_CAUSE_NO_ROUTE_TRANSIT_NET(2),
AST_CAUSE_NO_ROUTE_DESTINATION(3),
AST_CAUSE_MISDIALLED_TRUNK_PREFIX(5),
AST_CAUSE_CHANNEL_UNACCEPTABLE(6),