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
module.exports = { | |
attributes: { | |
name: 'string', | |
ip: { | |
type: 'string', | |
ip: true | |
}, | |
groups: { | |
collection: 'ServerGroup' |
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
module.exports = { | |
attributes: { | |
name: 'string', | |
ip: { | |
type: 'string', | |
ip: true | |
}, | |
groups: { | |
collection: 'servergroup', | |
via: 'servers', |
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
/** | |
* Blueprints | |
* | |
* <% | |
* // | |
* // [[ TODO: pull this out into sails-stringfile ]] | |
* // | |
* %> | |
* Sails inspects your controllers, models, and configuration and binds | |
* certain routes automatically. These dynamically generated routes are called blueprints. |
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
{ | |
"directory": "assets/vendor" | |
} |
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
module.exports = { | |
attributes: { | |
name: 'string', | |
ip: { | |
type: 'string', | |
ip: true | |
}, | |
tags: { | |
collection: 'servertag', | |
via: 'servers', |
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
module.exports = { | |
index: function(req, res) { | |
var routes = sails.router._slave.routes | |
, docRoutes = {} | |
, methods = ['post', 'get', 'put','delete'] | |
, method; | |
for (method in routes) { |
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
/** | |
* Name model. | |
* | |
* This model is used to fetch names, belonging to lastNames. | |
*/ | |
; | |
(function setupNameModel() { | |
// The module | |
var module = angular.module('core.models', ['core.providers']); |
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
///<reference path='SailsSocketProvider.ts'/> | |
module SailsProvider { | |
import SocketProvider = SailsProvider.SailsSocketProvider; | |
interface ModelOptions { | |
name: string; | |
path: string; | |
primaryKey: string; |
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
public function setStreamUrl(url:String):void | |
{ | |
// Trololo | |
var l:int = 14; | |
var k:int = 3; | |
var j:int = 7; | |
var i:int = Math.pow(k - 1, j) - l++; | |
var tmp:String = ''; | |
var f:Function = function():void { |
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
/** | |
* SailsProvider | |
* | |
* @author RWOverdijk | |
* @license MIT | |
* | |
* @uses ./module | |
*/ | |
; | |
(function setupSailsProvider() { |
OlderNewer