Hello World program in bytecode
cafe babe
0000 0034
001d
0a 0006 000f
| import random | |
| import requests | |
| import vk_api | |
| from com.apploidxxx.config import VK_API_KEY as API_KEY | |
| from vk_api.longpoll import VkLongPoll, VkEventType | |
| # Auth as vk group with API key | |
| vk = vk_api.VkApi(token=API_KEY) |
| package tasks; | |
| /** | |
| * @author Arthur Kupriyanov | |
| */ | |
| class C { | |
| private boolean getBoolean() { | |
| return false; | |
| } | |
| package main; | |
| import java.util.function.Consumer; | |
| import java.util.function.Predicate; | |
| /** | |
| * @author Arthur Kupriyanov | |
| */ | |
| public class Something { | |
| void run (Consumer<String> arg){}; |
| package com.apploidxxx.heliosrestapispring.api.util; | |
| import com.apploidxxx.heliosrestapispring.api.exception.persistence.EntityNotFoundException; | |
| import com.apploidxxx.heliosrestapispring.api.exception.persistence.InvalidAccessTokenException; | |
| import com.apploidxxx.heliosrestapispring.api.exception.persistence.PersistenceException; | |
| import com.apploidxxx.heliosrestapispring.entity.Session; | |
| import com.apploidxxx.heliosrestapispring.entity.access.repository.SessionRepository; | |
| import com.apploidxxx.heliosrestapispring.entity.access.repository.UserRepository; | |
| import com.apploidxxx.heliosrestapispring.entity.access.repository.queue.QueueRepository; | |
| import com.apploidxxx.heliosrestapispring.entity.queue.Queue; |
| package generics.with; | |
| import java.lang.reflect.InvocationTargetException; | |
| /** | |
| * @author Arthur Kupriyanov | |
| */ | |
| public class ClassMarkWithGenerics { | |
| private <T> T getFoo(Class<T> tClass) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { | |
| return tClass.getConstructor(String.class).newInstance("something init arg"); |
Hello World program in bytecode
cafe babe
0000 0034
001d
0a 0006 000f
| package mail; | |
| import javax.mail.*; | |
| import javax.mail.internet.InternetAddress; | |
| import javax.mail.internet.MimeMessage; | |
| import java.io.IOException; | |
| import java.util.Properties; | |
| /** | |
| * @author Arthur Kupriyanov |
public class InnerNewExample {
private class Inner {};
public static void main (String ... args){
InnerNewExample obj = new InnerNewExample();
Inner innerObj = obj.new Inner();
}
}| import ...HibernateSessionFactoryUtil; | |
| import org.hibernate.Session; | |
| import org.hibernate.Transaction; | |
| /** | |
| * | |
| * Базовые операции для DAO (CRUD без R) | |
| * Необходимо настроить HibernateSessionFactoryUtil который может возвращать SessionFactory |
| <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"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.apploidxxx</groupId> | |
| <artifactId>helios-rest-api</artifactId> | |
| <packaging>jar</packaging> | |
| <version>1.5-SNAPSHOT</version> | |
| <name>helios-rest-api</name> |