Skip to content

Instantly share code, notes, and snippets.

View decebals's full-sized avatar
👀
Looking for new opportunities

Decebal Suiu decebals

👀
Looking for new opportunities
View GitHub Profile
@decebals
decebals / Http2Application.java
Last active March 7, 2020 15:28
A POC for HTTP/2 with Pippo
/*
* Copyright (C) 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@decebals
decebals / demo.md
Last active April 23, 2017 15:36
pippo-demo-websocket
  • pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <parent>
        <groupId>ro.pippo</groupId>
        <artifactId>pippo-demo-parent</artifactId>
        <version>0.7.0-SNAPSHOT</version>
@Override
public void startRender()
{
System.out.println("Fragment.startRender >>> " + this);
onRender();
for( Fragment childFragment : childrenFragments )
{
pendingRenderMessages++;
childFragment.startRender();
@decebals
decebals / PathRegexBuilder.java
Last active August 29, 2015 14:26
An utility class that help me to create complex regex paths using only includes and excludes.
package ro.fortsoft.matilda.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @author Decebal Suiu
*/
public class PathRegexBuilder {
#include <AccelStepper.h>
const int stepsPerRevolution = 50; // change this to fit the number of steps per revolution for your motor
const int cm = stepsPerRevolution * 4.935; // number of steps required to move 1cm
const int button1Pin = 10;
const int button2Pin = 11;
const int button3Pin = 12;
int limitSwitch = 1;
@decebals
decebals / run-pippo-demo.sh
Created January 22, 2015 10:04
Run a demo Pippo module in Apache Tomcat
#!/bin/sh
# set apache tomcat home
TOMCAT_HOME=../../apache-tomcat-7.0.57
echo TOMCAT_HOME=$TOMCAT_HOME
# shutdown tocmat
$TOMCAT_HOME/bin/shutdown.sh
# create WAR file
https://code.google.com/p/sparrow-etl/
Application.java
=========================
public void GET(String urlPattern, Class<? extends Controller> controllerClass, String methodName) {
// TODO verify that `action` exists
addRoute(urlPattern, HttpConstants.Method.GET, new ControllerHandler(controllerClass, methodName));
}
Controller.java
=========================
@decebals
decebals / cnc-build-log.txt
Last active February 29, 2016 14:49
Jurnal constructie CNC
Generalitati
--------------------
- cursa utila: 900x620x240
Mecanica
--------------------
- structura din profile de aluminiu 80x40
- tabla aluminiu calibrata de 12 si 15mm
- ghidaje profilate de 20mm pe X si Y si 15mm pe Z
- transmisie cu surub cu bile de 16x10/20x10mm pe x si y si 16x5/20x5mm pe z
@decebals
decebals / nextreports-release.md
Last active March 1, 2016 15:21
Pasi de urmat pentru release NextReports

Engine

  • testeaza ca totul e verde pe github (nu sunt erori la build-uire)
  • publica de test un SNAPSHOT (optional)
  • creaza un branch release-<version> din origin
cd /tmp/nextreports-oss/nextreports-engine
git clone https://github.com/nextreports/nextreports-engine.git <version>
cd <version>
git checkout -b release-<version>