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.company; | |
import java.util.AbstractList; | |
import java.util.LinkedList; | |
public class Main { | |
public static void main(String[] args) { | |
B b = new B<Integer>(); |
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
server { | |
listen 80; | |
root /home/wndlust; | |
index index.html index.htm; | |
listen 443 ssl; | |
# Make site accessible from http://localhost/ | |
server_name wndlust.ru; |
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
// <script src="http://pollfu.com/public/js/embed.v1.js" data-id="9"></script> | |
(function () { | |
var scriptName = "embed.js"; //name of this script, used to get reference to own tag | |
var jQuery; //noconflict reference to jquery | |
var jqueryPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"; | |
var jqueryVersion = "1.8.3"; | |
var scriptTag; //reference to the html script tag | |
/******** Get reference to self (scriptTag) *********/ |
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
#!/bin/bash | |
PROJECTNAME=`mvn help:evaluate -Dexpression=project.artifactId 2>/dev/null| grep -v "^\["` | |
VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null| grep -v "^\["` | |
JARFile="$PROJECTNAME-$VERSION.jar" | |
PIDFile="app.pid" | |
PID="-1" | |
NOPID="-1" | |
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
/** | |
* Naive AngularJS module autoloader; depends on require.js. | |
* | |
* Usage: | |
* | |
* angular.autoLoad({ | |
* 'ngResource': '/js/angular-resource-1.0.1.min.js', | |
* 'google-maps': '/js/angular-google-maps.js', | |
* 'ui.bootstrap': '/js/ui/ui-bootstrap-custom-tpls-0.4.0.min.js', | |
* 'module.split.over.multiple.files': ['/js/file1.js', '/js/file2.js'] |
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
import java.util.*; | |
class Main { | |
public static void main(String[] args) { | |
Scanner s = new Scanner(System.in); | |
String nextLine = null; | |
int n = 0; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title of the document</title> | |
</script> | |
</head> | |
<body> | |
Content of the document..... | |
</body> |
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
http. | |
csrf().disable(). | |
sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS). | |
and(). | |
authorizeRequests(). | |
// antMatchers(HttpMethod.OPTIONS, "/**").permitAll(). | |
antMatchers(actuatorEndpoints()).hasRole(backendAdminRole). | |
antMatchers(ApiController.AUTHENTICATE_URL).permitAll(). | |
antMatchers(HttpMethod.GET, ApiController.API_TRIPS).permitAll(). |
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-karma'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-jsdoc'); | |
grunt.initConfig({ | |
'pkg': grunt.file.readJSON('package.json'), |
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
def a = [1,5,7,8,45,7,45,34,45,78,9] | |
k = 10 | |
k0 = 0 | |
void printArr(a) { | |
a.each{i -> | |
print i + ', ' |