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
{ | |
"provider_url": "http:\/\/twitter.com", | |
"description": "The notes! https:\/\/t.co\/Mxl5HU2KjE", | |
"title": "Lin-Manuel Miranda on Twitter", | |
"author_name": "lin_manuel", | |
"thumbnail_width": 73, | |
"html": "<blockquote class=\"twitter-tweet\"><a href=\"https:\/\/twitter.com\/lin_manuel\/status\/814152634655444992\"><\/a><\/blockquote><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>", | |
"author_url": "http:\/\/twitter.com\/lin_manuel", | |
"version": "1.0", | |
"provider_name": "Twitter", |
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
2016/12/06 06:52:10 [verbose] 'resty' found at /usr/local/openresty/bin/resty uses incompatible OpenResty. Kong requires OpenResty version 1.11.2.1, got 1.9.15.1 | |
2016/12/06 06:52:10 [debug] resty -V: 'sh: 1: resty: not found' | |
2016/12/06 06:52:10 [debug] OpenResty 'resty' executable not found at resty | |
2016/12/06 06:52:10 [verbose] could not start Kong, stopping services | |
2016/12/06 06:52:10 [verbose] leaving serf cluster | |
2016/12/06 06:52:10 [verbose] stopped services | |
Error: | |
./kong/cmd/start.lua:34: ./kong/cmd/start.lua:20: could not find OpenResty 'resty' executable. Kong requires version 1.11.2.1 | |
stack traceback: | |
[C]: in function 'error' |
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
{ | |
"space": { | |
"id": "580143607d80d75b21280fa0", | |
"name": "Qasim Soomro", | |
"vanityUrl": "qasim-soomro" | |
}, | |
"header": { | |
"author": { | |
"id": "580143607d80d75b21280fa0", | |
"name": "Qasim Soomro", |
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
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
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
/** | |
* Create a Contact | |
*/ | |
exports.create = function(req, res) { | |
var contact = new Contact(req.body), | |
user = req.user; | |
user.contacts.push(contact); | |
user.save(function(err) { |
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
'use strict'; | |
angular.module('core'). | |
factory('mySocket', function (socketFactory) { | |
var myIoSocket = io.connect('http://localhost'); | |
mySocket = socketFactory({ | |
ioSocket: myIoSocket | |
}); |
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
<?php | |
class BindFieldBehavior extends ModelBehavior { | |
/** | |
* Settings to configure the behavior | |
* | |
* @var array | |
*/ | |
public $settings = array(); |
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
CREATE TABLE oauth_clients (client_id VARCHAR(80) NOT NULL, client_secret VARCHAR(80) NOT NULL, redirect_uri VARCHAR(2000) NOT NULL, grant_types VARCHAR(80), scope VARCHAR(100), user_id VARCHAR(80), CONSTRAINT client_id_pk PRIMARY KEY (client_id)); | |
CREATE TABLE oauth_access_tokens (access_token VARCHAR(40) NOT NULL, client_id VARCHAR(80) NOT NULL, user_id VARCHAR(255), expires TIMESTAMP NOT NULL, scope VARCHAR(2000), CONSTRAINT access_token_pk PRIMARY KEY (access_token)); | |
CREATE TABLE oauth_authorization_codes (authorization_code VARCHAR(40) NOT NULL, client_id VARCHAR(80) NOT NULL, user_id VARCHAR(255), redirect_uri VARCHAR(2000), expires TIMESTAMP NOT NULL, scope VARCHAR(2000), CONSTRAINT auth_code_pk PRIMARY KEY (authorization_code)); | |
CREATE TABLE oauth_refresh_tokens (refresh_token VARCHAR(40) NOT NULL, client_id VARCHAR(80) NOT NULL, user_id VARCHAR(255), expires TIMESTAMP NOT NULL, scope VARCHAR(2000), CONSTRAINT refresh_token_pk PRIMARY KEY (refresh_token)); | |
CREATE TABLE oauth_users (username VARCHAR(2 |