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
'use strict'; | |
angular.module('app.default').directive('ckValidateOnClick', ckValidateOnClick); | |
function ckValidateOnClick($compile) { | |
return { | |
restrict: 'A', | |
require: '^form', | |
link: function compile(scope, element, attrs, form) { | |
var col = element.parent('form').find('[name]'), |
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 unflatten(input, delim) { | |
var k = []; | |
var groups = _.groupBy(input, function (n) { | |
var key = n.path.slice(0, n.path.lastIndexOf(n.key)); | |
if (key.lastIndexOf(delim) === key.length - 1) { | |
key = key.substr(0, key.length - 1); | |
} | |
return key; | |
}); |
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 all required Packages | |
import javax.swing.*; | |
import javax.swing.table.DefaultTableModel; | |
import javax.swing.table.TableColumn; | |
import java.awt.*; | |
import java.text.*; | |
import java.awt.event.*; | |
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> | |
<link rel="stylesheet" href="main.css"> | |
<script src="bower_components/angular/angular.min.js"></script> | |
<script src="bower_components/angular-sanitize/angular-sanitize.min.js"></script> |
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
.config(['$routeProvider', '$httpProvider', function($routeProvider, $httpProvider) | |
{ | |
// product overview | |
$routeProvider | |
.when('/products', { | |
templateUrl: 'views/products.html', | |
controller: 'ProductsController' | |
}) | |
// default |
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
// Prettier Log output | |
git config --global alias.logc "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(cyan) <%an>%Creset' --abbrev-commit" | |
// show all branches by owner | |
git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n |
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; | |
public class Main { | |
public static void main(String[] args) { | |
int range = 100; | |
for(int i = 1; i <= 20; i++){ | |
int number = (int)(range * Math.random()) + 1; | |
System.out.format("%-10s", number); |
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 com.company.Product; | |
import com.company.Tax; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) | |
{ | |
// create products |
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; | |
public class Computer | |
{ | |
public Computer(){ | |
} | |
private String graphicsCard; | |
public String getGraphicsCard(){ |
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
'use strict'; | |
module.exports = { | |
port: process.env.PORT || 3000, | |
mqUrl: 'amqp://owl.rmq.cloudamqp.com/nwudxprq', | |
assets: { | |
lib: { | |
js: [ | |
'client/assets/lib/jquery/dist/jquery.js', | |
'client/assets/lib/angular/angular.js', |