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
<html> | |
<head> | |
<script src="angular-1.4.8.js"></script> | |
</head> | |
<body ng-app="myapp"> | |
<div ng-controller="aController"> | |
{{ aValue | date}} <br/> | |
{{bValue | uppercase}} | |
<br/> |
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
===== index.html================ | |
<html> | |
<head> | |
<script src="angular-1.4.8.js"></script> | |
<script src="angular-route-1.4.8.js"></script> | |
<script src="app1-main.js"></script> | |
<script src="app1-claim.js"></script> | |
</head> | |
<body> |
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
====package.json========== | |
{ | |
"name": "app1", | |
"version": "1.0.0", | |
"devDependencies": { | |
"grunt": "^1.0.1" | |
} | |
} | |
======Gruntfile.js=================== |
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
==== app.js -======= | |
var app = angular.module("app",["module1", "module2"]); | |
=== module-1.js ================ | |
var module1 = angular.module("module1",[]); | |
module1.controller("controllerOne",["$scope", function($scope){ | |
$scope.name = "Matt"; | |
}]); |
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
{ | |
"name": "app1", | |
"description": "", | |
"main": "", | |
"authors": [ | |
"dileep" | |
], | |
"private": true, | |
"dependencies": { | |
"angular": "1.4.8" |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
"bower-install-simple": { | |
options: { | |
color: true, | |
directory: "lib" | |
}, |
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
@Override | |
public void visit(ClassOrInterfaceDeclaration n, Struts2InputOutput io) { | |
// System.out.println("Name of class: " + n.getn.getName()); | |
final StringBuilder fullClassName = new StringBuilder(); | |
final List<ImportDeclaration> imports = new ArrayList<>(); | |
n.getParentNode().ifPresent(parent -> { | |
((CompilationUnit) parent).getPackageDeclaration() | |
.ifPresent(packageName -> fullClassName.append(packageName.getNameAsString())); | |
imports.addAll(((CompilationUnit) parent).getImports()); | |
}); |
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
import java.util.AbstractMap.SimpleEntry; | |
import java.util.Collections; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class TagPatterns { | |
public static Map<PatternKey, String> tagdirectiveURLPatternMap() { |
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
final Pattern scriptletstartreg = Pattern.compile("<%[^-|@]"); | |
final Pattern scriptletendreg = Pattern.compile("[^-]%>"); | |
final List<Scriptlet> scripts = new ArrayList<>(); | |
//--start else--// | |
//--current code --// | |
currentPageTldPrefix.keySet().forEach(key -> { | |
Pattern regexForEachTagPrefixPattern = Pattern.compile(key); |
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
package com.my.crawler; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.function.Supplier; | |
public class QueryBuilder { | |
private Map<String, Object> parameterMap = new HashMap<>(); |