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 | |
$I_Browser = true; | |
class Browser { | |
private $_agent = ''; | |
private $_browser_name = ''; | |
private $_version = ''; | |
private $_platform = ''; | |
private $_os = ''; | |
private $_is_aol = false; |
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 Dependencies | |
// ================================================================== | |
var auth = require('../lib/auth'), | |
db = require('../models'), | |
hash = require('../lib/hash'), | |
flash = require('../lib/flash'); | |
// | |
// Controller |
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 = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-clean'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-recess'); | |
grunt.loadNpmTasks('grunt-shell'); | |
grunt.loadNpmTasks('grunt-karma'); |
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
// set up ====================================================================== | |
// get all the tools we need | |
var express = require('express'); | |
var app = express(); | |
var port = process.env.PORT || 3001; | |
var mongoose = require('mongoose'); | |
var passport = require('passport'); | |
var flash = require('connect-flash'); | |
var logger = require('morgan'); |
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 = { | |
tableName: 'account_roles', | |
attributes: { | |
account_id: 'integer', | |
name: 'string', | |
description: 'text', | |
deleted: 'boolean', |
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 = { | |
tableName: 'account_roles', | |
attributes: { | |
account_id: 'integer', | |
name: 'string', | |
description: 'text', | |
deleted: 'boolean', |
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 = { | |
find: function (req, res) { | |
return User.findOne(req.param('id')) | |
.exec(function(err, user) { | |
return res.json({ | |
user: user | |
}); | |
}); | |
}, |
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 SCALE_FACTOR = 1.2; | |
self.center = function() { | |
var activeObject = self.canvas.getActiveObject(); | |
if (activeObject) { | |
activeObject.center(); | |
activeObject.setCoords(); | |
setUnsaved(); | |
} | |
}; |
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
// Keeps my theme synced in multiple apps | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var compass = require('gulp-compass'); | |
var clean = require('gulp-clean'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Config |
NewerOlder