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
(function() { | |
var app = angular.module('cf', []) | |
.filter('isCodiceFiscale', [codiceFiscale]); | |
/** | |
* taken from https://gist.github.com/TheHiddenHaku/6951634 | |
* | |
* A function for evaluating if a string is a valid codice fiscale | |
* | |
* @param String codiceFiscale |
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 | |
dir=$(dirname "${BASH_SOURCE[0]}") | |
# requires pandoc and sed | |
# example usage | |
# ./pandoc2redmine.sh README.md output.Redmine.textile | |
# | |
in=$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
#!/bin/bash | |
#### | |
# | |
# | |
# http://misc.flogisoft.com/bash/tip_colors_and_formatting | |
# | |
# | |
#### | |
echo-blue () { |
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
{ | |
"cloudflare": { | |
"root": "https://cdnjs.cloudflare.com/ajax/libs", | |
"relative-location" : "src/main/webapp/libs", | |
"dependencies": { | |
"font-awesome": { | |
"version": "4.4.0", | |
"css": [ | |
"font-awesome.min.css" | |
], |
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 | |
########## | |
# | |
# parameters: | |
# conf: (required) points a cdnjs-client.json file; eg. [cdnjs-client.json](https://gist.github.com/matthewbednarski/30dd4b65221a8c8c67ee) | |
# | |
# requires: jq, wget | |
# | |
########## |
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 | |
dir=$(dirname "${BASH_SOURCE[0]}") | |
find -wholename "*${1}" | |
find -wholename "*${1}" -exec vim '{}' \; -quit |
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', ['smart-table', 'cf', 'user']); | |
app | |
.controller('Cont', ['$scope', '$q', '$location', '$window', '$sce', 'service', '$filter', 'user', ControllerMethod]) | |
.service = app.service('service', ['$q', '$http', Service]) | |
.directive('iframeOnload', [ | |
function() { | |
return { | |
scope: { |