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
| let hasBlobConstructor = typeof(Blob) !== 'undefined' && (function () { | |
| try { | |
| return Boolean(new Blob()); | |
| } catch (e) { | |
| return false; | |
| } | |
| }()); | |
| let hasArrayBufferViewSupport = hasBlobConstructor && typeof(Uint8Array) !== 'undefined' && (function () { | |
| try { |
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
| git config --global merge.tool kdiff3 | |
| git config --global mergetool.keepBackup false | |
| #on windows | |
| git config --global mergetool.kdiff3.path 'G:\win\KDiff3\kdiff3.exe' | |
| #remove backups option in kdiff3 settings |
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
| 'use strict'; | |
| var gulp = require('gulp'), | |
| uglify = require('gulp-uglify'), | |
| ngAnnotate = require('gulp-ng-annotate'), | |
| concat = require('gulp-concat'), | |
| rename = require('gulp-rename'), | |
| sourcemaps = require('gulp-sourcemaps'); | |
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
| var gulp = require('gulp'); | |
| var sequence = require('run-sequence'); | |
| var es = require('event-stream'); | |
| var clean = require('gulp-clean'); | |
| var htmlReplace = require('gulp-html-replace'); | |
| var inject = require('gulp-inject'); | |
| var compass = require('gulp-compass'); | |
| var minifyCSS = require('gulp-minify-css'); | |
| var ngAnnotate = require('gulp-ng-annotate'); | |
| var uglify = require('gulp-uglify'); |
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
| var common = angular.module('common', []); | |
| /** allows numbers to be displayed from a model value with the correct decimal rounding */ | |
| common.directive('inputCurrency', function ($filter, $locale) { | |
| return { | |
| terminal: true, | |
| restrict: 'A', | |
| require: '?ngModel', | |
| link: function (scope, element, attrs, ngModel) { |
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
| var injector = angular.injector(["ng"]); | |
| var func = function($http) { | |
| }; | |
| injector.invoke(func); |
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 | |
| @Repository | |
| public class InvoiceByLastNameRepository extends IndexRepository<String> { | |
| public InvoiceByLastNameRepository() { | |
| super("invoice_by_lastname", "lastname", Invoice::getLastName); | |
| } | |
| } | |
| public abstract class IndexRepository<T> { |
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 org.robotninjas.util.concurrent; | |
| import com.google.common.base.Function; | |
| import com.google.common.base.Predicate; | |
| import com.google.common.util.concurrent.*; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.concurrent.*; |
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
| /** | |
| * @see https://github.com/siongui/palidictionary/blob/master/static/js/draggable.js | |
| * @see http://docs.angularjs.org/guide/compiler | |
| */ | |
| angular.module('draggableModule', []). | |
| directive('draggable', ['$document' , function($document) { | |
| return { | |
| restrict: 'A', | |
| link: function(scope, elm, attrs) { |
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
| server { listen 80; | |
| server_name example.com; | |
| access_log /var/log/example.com/nginx.access.log; | |
| error_log /var/log/example.com/nginx.error.log; | |
| root /var/www/apps/example.com/public; | |
| charset utf-8; | |
| location / { | |
| rewrite ^ https://$host$request_uri? permanent; | |
| } |