Skip to content

Instantly share code, notes, and snippets.

View dysen's full-sized avatar

Andrii Lemdianov dysen

  • Kraków, Lesser Poland
View GitHub Profile
@dysen
dysen / LambdaConstants.java
Created February 12, 2019 11:36 — forked from seeebiii/LambdaConstants.java
Available default environment variables in AWS Lambda. Just copy&paste into your Node or Java project.
public class Constants {
/**
* Contains the path to your Lambda function code.
*/
public static final String LAMBDA_TASK_ROOT = System.getenv("LAMBDA_TASK_ROOT");
/**
* The environment variable is set to one of the following options, depending on the runtime of the Lambda function:
* AWS_Lambda_nodejs, AWS_Lambda_nodejs4.3, AWS_Lambda_nodejs6.10
@dysen
dysen / AnnotationBuilder.java
Created November 5, 2018 09:26 — forked from nickman/AnnotationBuilder.java
Example of adding annotations at runtime
package com.heliosapm.aop.retransformer;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.lang.instrument.Instrumentation;
@dysen
dysen / setup-sublime3-for-angular2.md
Created February 6, 2018 15:41 — forked from dwmkerr/setup-sublime3-for-angular2.md
Quickly setup Sublime Text 3 for Angular 2

Quick Setup for Sublime Text 3 for Angular 2

Easy to remember, easy to forget.

Step 1: Download Sublime Text 3

Sublime Text 3 Download

Step 2: Create a bash shortcut

It's nice to be able to run subl in a terminal.

@dysen
dysen / Java8DateTimeExamples.java
Created April 19, 2017 15:05 — forked from mscharhag/Java8DateTimeExamples.java
Examples for using the Java 8 Date and Time API (JSR 310)
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjusters;
import java.util.*;
import static java.time.temporal.TemporalAdjusters.*;
public class Java8DateTimeExamples {