Skip to content

Instantly share code, notes, and snippets.

View Vadorequest's full-sized avatar

Vadorequest Vadorequest

View GitHub Profile
/nbproject/private/
/.idea/
info: Analyzing application dependencies in node app.js
info: Checking app availability TripAnalyzer
info: Creating app TripAnalyzer
info: Creating snapshot 0.0.1
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*
* Force to load the vendor application loader to load all vendor files.
@Vadorequest
Vadorequest / default.js
Created April 10, 2014 20:57
File generated via JSMinPlus, fails at fancybox/jquery-fancybox-thumbs.js
This file has been truncated, but you can view the full file.
/* File: application\cache\assets\themes\default/js/jquery/jquery.min.js
Compiled at: 2014-04-10 22:47:51
================================ */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){re
@Vadorequest
Vadorequest / test.js
Created April 10, 2014 20:58
Fails that doesn't fails at fancybox/jquery-fancybox-thumbs.js
/* File: application\cache\assets\themes\default/js/fancybox/jquery-fancybox.js
Compiled at: 2014-04-10 22:51:31
================================ */
(function(window,document,$,undefined){"use strict";var H=$("html"),W=$(window),D=$(document),F=$.fancybox=function(){F.open.apply(this,arguments)},IE=navigator.userAgent.match(/msie/i),didUpdate=null,isTouch=document.createTouch!==undefined,isQuery=function(obj){return obj&&obj.hasOwnProperty&&obj instanceof $},isString=function(str){return str&&$.type(str)==="string"},isPercentage=function(str){return isString(str)&&str.indexOf('%')>0},isScrollable=function(el){return(el&&!(el.style.overflow&&el.style.overflow==='hidden')&&((el.clientWidth&&el.scrollWidth>el.clientWidth)||(el.clientHeight&&el.scrollHeight>el.clientHeight)))},getScalar=function(orig,dim){var value=parseInt(orig,10)||0;if(dim&&isPercentage(orig))value=F.getViewport()[dim]/100*value;return Math.ceil(value)},getValue=function(value,dim){return getScalar(value,dim)+'px'};$.extend(F,{version:'2.1
///<reference path='./def/defLoader.d.ts'/>
import populate = require('./../../shared/lib/core/lib/CorePopulate');
/**
* Used to populate the database to fill it with the default values.
*/
export class Populate extends populate.CorePopulate {
private static _added = 0;
///<reference path='./def/defLoader.d.ts'/>
import populate = require('./../../shared/lib/core/lib/CorePopulate');
/**
* Used to populate the database to fill it with the default values.
*/
export class Populate extends populate.CorePopulate {
/**
/**
* UserController
*
* @module :: Controller
* @description :: A set of functions called `actions`.
*
* Actions contain code telling Sails how to respond to a certain type of request.
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL)
*
* You can configure the blueprint URLs which trigger these actions (`config/controllers.js`)
///<reference path='./../../../lib/def/defLoader.d.ts'/>
/**
* Package that contains all Models used to interact with the database.
*/
export module Models {
/**
* Interface for all Models, except the parent class.
*/
export interface CoreIModel{
///<reference path='./../def/defLoader.d.ts'/>
///<reference path='./ValidatorMessage.ts'/>
///<reference path='./MessageLang.ts'/>
import messageLang = require('./MessageLang');
export interface IMessage{
isCustomMessage: boolean;
getMessage(args: any, translate: boolean, language: string): string;
getData(): any;