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
package com.gleason.banks.resource; | |
import java.net.Authenticator; | |
import java.net.MalformedURLException; | |
import java.net.PasswordAuthentication; | |
import java.rmi.RemoteException; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.xml.rpc.ServiceException; |
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
callback = function (body, next) { | |
var b = body; | |
var res = b.split("\r\n"); | |
var line1 = res[0].split("\t"); | |
var collection = []; | |
for(var i=1;i<res.length;i++){ | |
var local = res[i].split("\t"); | |
var object = new Object(); | |
for(var i2=0;i2<line1.length;i2++){ | |
var test = local[i2]; |
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
miao.put('ProcessedReports', req.filename, JSON.stringify(report)) | |
.then(function (result) { | |
console.log("Added a report "+result); | |
return next(); | |
}) | |
.fail(function (err) { | |
console.log("There was an error:"+JSON.stringify(err)); | |
return next(); | |
}) |
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
each product, pindex in category.products | |
if((pindex % 3) === 0) | |
.row | |
.col-sm-4 | |
+product-sm | |
// should produce | |
<row> | |
<div class="col-sm-4> |
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
exports.index = function(req, res){ | |
db.list('category') | |
.then(function (result) { | |
var categories = result.body.results; | |
var catsArr = new Array(); | |
console.log(JSON.stringify(categories)); | |
for(var i=0,len=categories.length; i<len; i++){ | |
console.log(i); | |
db.newGraphBuilder() | |
.get() |
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
connectRule.use(function (req) { | |
if(typeof req.user !== 'undefined'){ | |
req.user.role.active.contains('admin', function(found) { | |
console.log("Something was found "+found); | |
return found; | |
}) | |
} | |
else{ | |
return 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
package com.test.itext; | |
import java.util.Arrays; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration |
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
package com.gleason.itext; | |
import java.util.Arrays; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.boot.builder.SpringApplicationBuilder; | |
import org.springframework.boot.context.web.SpringBootServletInitializer; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.bind.annotation.PathVariable; |
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
<g:set var="myarray" value="[accountId: accountInfo.id,location: i]" /> | |
<a href="${createLink(controller:'billingPreferences', action:'preferences', params:myarray)}">${it?.name?:" "}</a> |
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
scope.roundETD = function(etd){ | |
var start = (etd - scope.currentDate.now())/360000; | |
var fixed = start.toFixed(3); | |
var rounded = Math.round(fixed) | |
return Number(rounded+"e-1"); | |
} |
OlderNewer