This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
version: 1.0.0 | |
title: PetStore on Heroku | |
host: petstore-api.herokuapp.com | |
basePath: /pet | |
schemes: | |
- http | |
- https | |
consumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workflows":{ | |
"asksi": {"triggerEmail":"asksi@sharepointportal.equinix.com"} , | |
"feedback": {"triggerEmail":"Sales_intelligence_admin@equinix.com"} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
letter frequency | |
A .08167 | |
B .01492 | |
C .02782 | |
D .04253 | |
E .12702 | |
F .02288 | |
G .02015 | |
H .06094 | |
I .06966 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |