Skip to content

Instantly share code, notes, and snippets.

View activey's full-sized avatar
🙃
Doing some stuff ;P

Łukasz Grabski activey

🙃
Doing some stuff ;P
View GitHub Profile
@Slf4j
public class Test {
private final InetAddress machineAddress;
private MulticastSocket multicastSocket;
private InetAddress group;
public static void main(String[] args) {
Test test = new Test("tap0");
test.test();
package org.licket.demo.retrofit;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Headers;
import okhttp3.Protocol;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.internal.http.RealResponseBody;
import okio.Buffer;
package org.licket.core.view.hippo.vue.extend;
import org.licket.core.module.application.LicketRemote;
import org.licket.core.view.LicketComponent;
import org.licket.core.view.hippo.vue.annotation.LicketMountPoint;
import org.licket.framework.hippo.FunctionNodeBuilder;
import org.licket.framework.hippo.ObjectLiteralBuilder;
import static org.licket.framework.hippo.BlockBuilder.block;
import static org.licket.framework.hippo.ExpressionStatementBuilder.expressionStatement;
<%--
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Liferay Enterprise
* Subscription License ("License"). You may not use this file except in
* compliance with the License. You can obtain a copy of the License by
* contacting Liferay, Inc. See the License for the specific language governing
* permissions and limitations under the License, including but not limited to
* distribution rights of the Software.
(function(app) {
app.instance = new Vue({
el: "#contacts-page",
components: {
"contacts-page": {
template: "\n <div>\n <h1 class=\"ui center aligned header\">Contacts list</h1>\n\n <add-contact-panel ref=\"add-contact-panel\"></add-contact-panel>\n\n <contacts-panel ref=\"contacts-panel\"></contacts-panel>\n </div>\n ",
data: function() {
return {
model: {}
};
(function(app) {
app.AppModule = function (Vue, options) {
Object.defineProperties(Vue.prototype, {
$licketRemote: {
get: function () {
return {
handleActionLinkClick: function($linkCompositeId, $callback) {
$callback();
},
{
"name": "licket-angular2-libraries",
"version": "0.0.1-SNAPSHOT",
"repository": "https://github.com/activey/licket.git",
"license": "Apache2",
"dependencies": {
"@angular/core": "~2.0.0",
"@angular/common": "~2.0.0",
"@angular/compiler": "~2.0.0",
"@angular/platform-browser": "~2.0.0",
(function(app) {
app.ContactsPage_ContactsPanel = ng.core.Component({
selector: "contacts-panel",
templateUrl: "/licket/component/contacts-page:contacts-panel/view"
}).Class({
constructor: function() {
this.model = {
contacts: [{
pictureUrl: "picture1.jpg",
name: "Andrew Golota",
(function(app) {
app.ContactsPage = ng.core.Component({
selector: "contacts-page",
templateUrl: "/licket/component/contacts-page/view"
}).Class({
constructor: function() {
this.model = {
"value": null
}
}
@activey
activey / to.js
Created September 17, 2016 14:58
(function(app) {
document.addEventListener("DOMContentLoaded", function() {
ng.platform.browser.bootstrap(app.TodosComponent)
});
})(window.app || (window.app = {}));