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 org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration; | |
/** | |
SpringBootNoDispatcherServlet.java SpringBootServletRegistrationOverrides.java Created by matthew.bednarski on 19/06/2015. | |
*/ | |
@SpringBootApplication(exclude = { DispatcherServletAutoConfiguration.class }) | |
public class Application { |
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
(function() { | |
var app = angular | |
.module('app',[]) | |
.controller('MyController', ['$q', '$sce', 'myService', Controller]) | |
.service('myService', ['$q', '$http', Service]); | |
function Controller($scope, $q, $sce, service) { | |
var ctl = this; | |
this.download = function(doc) { | |
service.downloadDoc(doc, ctl.x_auth) |
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 | |
if [[ "" == "$1" ]] && [[ "" == "$2" ]]; then | |
jmx=9010 | |
debug=8787 | |
elif [[ "" == "$2" ]]; then | |
jmx=$1 | |
debug=8787 | |
else | |
jmx=$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
// taken from | |
// https://groups.google.com/forum/#!topic/scmmanager/tvfhJWDlTO8 | |
// requires the scm-manager plugin scm-script-plugin | |
import sonia.scm.*; | |
import sonia.scm.cache.*; | |
import sonia.scm.repository.*; | |
import sonia.scm.repository.api.*; | |
import sonia.scm.activity.ActivityManager; | |
import sonia.scm.activity.ActivitySet; |
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 | |
IFS=: | |
set -- $* | |
param1=0 | |
param2=0 | |
param3=0 | |
if [ ${3} > 0 ]; then | |
param3=${3} | |
fi |
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 name="description" content="Angular 1.3 controller with directives applying filters to underlying data"> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>Angular 1.3 Filtering</title> | |
</head> |
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 name="description" content="An example of a parametrized callback for filtering by date range."> | |
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script> | |
<script src="http://momentjs.com/downloads/moment.min.js"></script> | |
<meta charset="utf-8"> | |
<title>Moment parametrized date range</title> | |
</head> | |
<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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="An AngularJS tree directive example"> | |
<meta name="link-inspiration" content="http://stackoverflow.com/questions/14430655/recursion-in-angular-directives"> | |
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> | |
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
<meta charset="utf-8"> |
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
var module = angular.module('app', []); | |
module | |
.controller('treeItems', ['$scope', | |
function($scope) { | |
$scope.family = { | |
name: 'test', | |
parent: undefined, | |
children: [] | |
}; | |
} |
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 name="description" content="D3 pie chart with changing random data"/> | |
<meta name="sources" content="http://bl.ocks.org/dbuezas/9306799" /> | |
<meta name="sources" content="http://bl.ocks.org/jonsadka/fa05f8d53d4e8b5f262e" /> | |
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<meta charset="utf-8"> |
OlderNewer