Skip to content

Instantly share code, notes, and snippets.

View RWOverdijk's full-sized avatar
🤠
What's going on!?

Roberto Wesley Overdijk RWOverdijk

🤠
What's going on!?
View GitHub Profile
module.exports = {
attributes: {
name: 'string',
ip: {
type: 'string',
ip: true
},
groups: {
collection: 'ServerGroup'
module.exports = {
attributes: {
name: 'string',
ip: {
type: 'string',
ip: true
},
groups: {
collection: 'servergroup',
via: 'servers',
/**
* 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.
{
"directory": "assets/vendor"
}
module.exports = {
attributes: {
name: 'string',
ip: {
type: 'string',
ip: true
},
tags: {
collection: 'servertag',
via: 'servers',
module.exports = {
index: function(req, res) {
var routes = sails.router._slave.routes
, docRoutes = {}
, methods = ['post', 'get', 'put','delete']
, method;
for (method in routes) {
/**
* Name model.
*
* This model is used to fetch names, belonging to lastNames.
*/
;
(function setupNameModel() {
// The module
var module = angular.module('core.models', ['core.providers']);
///<reference path='SailsSocketProvider.ts'/>
module SailsProvider {
import SocketProvider = SailsProvider.SailsSocketProvider;
interface ModelOptions {
name: string;
path: string;
primaryKey: string;
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 {
/**
* SailsProvider
*
* @author RWOverdijk
* @license MIT
*
* @uses ./module
*/
;
(function setupSailsProvider() {