This file contains hidden or 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
    
  
  
    
  | > node-gyp rebuild | |
| gyp WARN install got an error, rolling back install | |
| gyp ERR! configure error | |
| gyp ERR! stack Error: 404 status code downloading tarball | |
| gyp ERR! stack at Request.<anonymous> (/usr/local/lib/node_modules/cnpm/node_modules/pangyp/lib/install.js:251:14) | |
| gyp ERR! stack at emitOne (events.js:82:20) | |
| gyp ERR! stack at Request.emit (events.js:169:7) | |
| gyp ERR! stack at Request.onRequestResponse (/usr/local/lib/node_modules/cnpm/node_modules/pangyp/node_modules/request/request.js:1255:10) | |
| gyp ERR! stack at emitOne (events.js:77:13) | 
  
    
      This file contains hidden or 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 getScript = function (url) { | |
| var deferred = $.Deferred(); | |
| var el = document.createElement('script'); | |
| var head = document.head || jQuery("head")[0] || document.documentElement; | |
| el.async = true; | |
| el.onerror = function () { | |
| deferred.reject(); | |
| }; | |
| // Attach handlers for all browsers | |
| el.onload = el.onreadystatechange = function( _, isAbort ) { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?xml version="1.0"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>GROUP NAME HERE</groupId> | |
| <artifactId>PROJECT-KEY</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <name>PROJECT NAME</name> | |
| <properties> | |
| <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> | |
| <sonar.javascript.lcov.reportPath>target/lcov.info</sonar.javascript.lcov.reportPath> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | @font-face { | |
| font-family:'PingHei'; | |
| font-style:normal; | |
| font-weight:200; | |
| src:url("/v/fonts/b/pinghei/pinghei_light.eot?") format("eot"), url("/v/fonts/b/pinghei/pinghei_light.woff") format("woff"), url("/v/fonts/b/pinghei/pinghei_light.ttf") format("truetype"); | |
| /* Copyright (c) 2000-2008, Changzhou SinoType Technology Co., Ltd. All rights reserved. */ | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
| <title>Plupload - Getting Started</title> | |
| <script type="text/javascript" src="js/plupload.full.min.js"></script> | |
| </head> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // api/controllers/AuthController.js | |
| var passport = require('passport'); | |
| var AuthController = { | |
| login: function (req,res) | |
| { | |
| res.view(); | |
| }, | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // for demo: http://jsbin.com/jeqesisa/7/edit | |
| // for detailed comments, see my SO answer here http://stackoverflow.com/questions/8853396/logical-operator-in-a-handlebars-js-if-conditional/21915381#21915381 | |
| /* a helper to execute an IF statement with any expression | |
| USAGE: | |
| -- Yes you NEED to properly escape the string literals, or just alternate single and double quotes | |
| -- to access any global function or property you should use window.functionName() instead of just functionName() | |
| -- this example assumes you passed this context to your handlebars template( {name: 'Sam', age: '20' } ), notice age is a string, just for so I can demo parseInt later | |
| <p> | |
| {{#xif " this.name == 'Sam' && this.age === '12' " }} | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /** A helper function to handlebars | |
| * | |
| * @param name Template name | |
| * @returns {*} The promise object with template function as the parameter of done callback | |
| */ | |
| Handlebars.getTemplate = function(name) { | |
| if (Handlebars.templates === undefined){ | |
| Handlebars.templates = {}; | |
| } | |
| if (Handlebars.templates[name] === undefined) { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function queryStringToJSON(){ | |
| var pairs = location.search.slice(1).split('&'); | |
| var result = {}; | |
| pairs.forEach(function(pair){ | |
| pair = pair.split('='); | |
| result[pair[0]]=decodeURIComponent(pair[1] || ''); | |
| }); | |
| return JSON.parse(JSON.stringify(result)); | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | getMailSender().send(new MimeMessagePreparator(){ | |
| public void prepare(MimeMessage message) throws Exception { | |
| MimeMessageHelper helper = new MimeMessageHelper(message, getMailEncoding()); | |
| helper.setFrom(from); | |
| helper.setTo(to); | |
| if(cc!=null && cc.length > 0){ | |
| helper.setCc(cc); | |
| } | |
| if(bcc!=null && bcc.length > 0){ |