Skip to content

Instantly share code, notes, and snippets.

{
"swagger": "2.0",
"info": {
"title": "Swagger Petstore (Simple)",
"description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
"version": "1.0.0"
},
"produces": ["application/json"],
"host": "localhost:8080",
"basePath": "/api",
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "RAMP Push notifications",
"description": "API for apns/gcm push notifications"
},
"host": "rampdi.corp.equinix.com",
"basePath": "/push",
"schemes": [
@cjonagam
cjonagam / index.html
Created June 1, 2015 23:53 — forked from anonymous/index.html
Angular Interceptor Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angular JS</title>
</head>
<body ng-app="jsbin">
<div ng-controller="DemoCtrl as demo">
<h1>Hello {{demo.name}}</h1>
<button ng-click='test()'>tst</button>
letter frequency
A .08167
B .01492
C .02782
D .04253
E .12702
F .02288
G .02015
H .06094
I .06966
@cjonagam
cjonagam / temp
Last active August 29, 2015 14:16
{
"workflows":{
"asksi": {"triggerEmail":"asksi@sharepointportal.equinix.com"} ,
"feedback": {"triggerEmail":"Sales_intelligence_admin@equinix.com"}
}
}
@cjonagam
cjonagam / Install Fig on Boot2Docker
Created November 25, 2014 00:08
Install Fig on Boot2Docker
docker@boot2docker:~$ rm -rf /home/docker/.local/bin/fig
# Installing python into boot2docker with TCZ package
docker@boot2docker:~$ wget http://www.tinycorelinux.net/5.x/x86/tcz/python.tcz && tce-load -i python.tcz && rm -f python.tcz
python.tcz 100% |****************************************************************************| 8892k 0:00:00 ETA
python.tcz: OK
docker@boot2docker:~$ python --version
Python 2.7.6
# Installing setup tools
docker@boot2docker:~$ curl -LO https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py && sudo /usr/local/bin/python2.7 ez_setup.py && rm ez_setup.py
<bunch of lines>
@cjonagam
cjonagam / redis-express-example.js
Created November 21, 2014 18:36
express + redis example
var express = require('express');
var app = express();
var redis = require('redis');
var client = redis.createClient(6379,'172.20.136.159',{});
app.get('/', function (req, res) {
client.get("myname", function(err, reply) {
res.send(reply)
});
});
var server = app.listen(3000, function () {
swagger: '2.0'
info:
version: 1.0.0
title: PetStore on Heroku
host: petstore-api.herokuapp.com
basePath: /pet
schemes:
- http
- https
consumes: