Skip to content

Instantly share code, notes, and snippets.

View tsony-tsonev's full-sized avatar

Tsony Tsonev tsony-tsonev

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tsony-tsonev on github.
  • I am tsonevtsony (https://keybase.io/tsonevtsony) on keybase.
  • I have a public key ASAQK42pzobuosOCSCx02JXK929nxa74qEunbEQXc7SOkAo

To claim this, I am signing this object:

#/bin/sh
wget https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
sudo apt-mark hold libcurl4
sudo dpkg -i --ignore-depends=libcurl3 viber.deb
sudo apt install -f -y
sudo dpkg -i --ignore-depends=libcurl3 viber.deb
sudo apt-mark unhold libcurl4
public class PageRoutingServlet extends HttpServlet {
private Map<String, PageController> pages = Maps.newHashMap();
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
pages.put("/page1", new PageController() {
@Override
@tsony-tsonev
tsony-tsonev / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@tsony-tsonev
tsony-tsonev / designer.html
Last active August 29, 2015 14:09
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
width: 100%;
height: 100%;
@tsony-tsonev
tsony-tsonev / designer.html
Last active August 29, 2015 14:09
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@tsony-tsonev
tsony-tsonev / AngularJs
Last active August 29, 2015 14:06
AngularJs Readings and Tasks
READINGS
-1 Fundamentals - 7 lessons
http://weblogs.asp.net/dwahlin/creating-custom-angularjs-directives-part-i-the-fundamentals
0 AngularJs in 30 minutes
http://www.revillweb.com/tutorials/angularjs-in-30-minutes-angularjs-tutorial/
1 Freeman A. - Pro AngularJS (The Expert's Voice in Web Development) - 2014
2 Developers Tutorial
https://docs.angularjs.org/tutorial
3* (APP ENGINE ONLY) AngularJS + Cloud Endpoints: A Recipe for Building Modern Web Applications
@tsony-tsonev
tsony-tsonev / GaeExpectations
Last active November 29, 2020 13:37
Gooogl App Engine Minimal Expectations
1 DATASORE
-entities, properties and keys
-indexes
-transactions
*low level api
-jdo, jpa (основните работи)
-twig & objectify (основните работи)
https://developers.google.com/appengine/docs/java/datastore/
2 TAKSQ's API
@Singleton
public class PersistentBankDAO implements BankDAO {
private final Provider<Connection> connectionProvider;
@Inject
public PersistentBankDAO(Provider<Connection> connectionProvider) {
this.connectionProvider = connectionProvider;
}
@Override
@tsony-tsonev
tsony-tsonev / ConnectionPerRequestFilter.java
Created May 28, 2014 14:00
ConnectionPerRequestFilter
package com.clouway.task157;
import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;
import javax.inject.Singleton;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;