This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.layout.StackPane; | |
import javafx.scene.web.WebEngine; | |
import javafx.scene.web.WebView; | |
import javafx.stage.Stage; | |
public class Test extends Application { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <limits> | |
// climits for intmax value | |
using namespace std; | |
void print_array(int *a, int size) { | |
for (int i = 0; i < size; i++) | |
cout << a[i] << ' '; | |
cout << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function e($str, $modul) { | |
$intLength = strlen($str) / 4; | |
$sum = 0; | |
$MUL = 256; | |
for($j = 0; $j < $intLength; $j++) { | |
$c = substr($str, $j * 4, 4); | |
$mult = 1; | |
for ($k = 0; $k < strlen($c); $k++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class A { | |
// ..... | |
public static function prepareDbQuery($sql, $cut_args_array = []) | |
{ | |
global $wpdb; | |
return array_map(function ($e) use ($cut_args_array) { | |
if ($cut_args_array != null) | |
foreach ($cut_args_array as $arg) unset($e[$arg]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Быстрый отчёт по структуре товаров по XML от Yandex | |
* | |
* USING: php yml_parce.php "http://some.site/products_data_for_yandex.xml | |
* | |
* User: akim aka [email protected] | |
* Date: 10/5/17 | |
* Time: 9:27 PM | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function req($type, $name='Atcom AT10700', $geoid = 213) { | |
$encodedname = urlencode($name); | |
$APIKey = "<yandex_content_api_here>"; | |
$url = "https://api.content.market.yandex.ru/v2/models/match?geo_id=$geoid&name=$encodedname&match_types=$type"; | |
$headers = [ | |
"Host: api.content.market.yandex.ru", | |
"Accept: */*", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17:59:06.223 [background-preinit] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Log4j2LoggerProvider | |
17:59:06.229 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 6.0.10.Final | |
17:59:06.251 [background-preinit] DEBUG org.hibernate.validator.internal.engine.resolver.TraversableResolvers - Found javax.persistence.Persistence on classpath containing 'getPersistenceUtil'. Assuming JPA 2 environment. Trying to instantiate JPA aware TraversableResolver | |
17:59:06.253 [background-preinit] DEBUG org.hibernate.validator.internal.engine.resolver.TraversableResolvers - Instantiated JPA aware TraversableResolver of type org.hibernate.validator.internal.engine.resolver.JPATraversableResolver. | |
17:59:06.261 [background-preinit] DEBUG org.hibernate.validator.internal.xml.ValidationXmlParser - Trying to load META-INF/validation.xml for XML based Validator configuration. | |
17:59:06.263 [background-preinit] DEBUG org.hibernate.validator.internal.xml.ResourceLoade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Public { | |
public static void main(String[] args) { | |
Anon ext = new Anon() { | |
@Override | |
public void doit() { | |
System.out.println("Anon"); | |
} | |
}; | |
ext.doit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bt2=# SET enable_seqscan = off; | |
SET | |
bt2=# explain(analyze, buffers) select distinct serial_number from telemetry; | |
QUERY PLAN | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Unique (cost=0.56..29452499.56 rows=608 width=4) (actual time=1.886..75483.005 rows=874 loops=1) | |
Buffers: shared hit=68873 read=884486 dirtied=56 | |
-> Index Only Scan using concurently on telemetry (cost=0.56..29347579.02 rows=41968215 width=4) (actual Buffers: shared hit=68873 read=884486 dirtied=56 | |
time=1.884..71989.949 rows=42559723 loops=1) | |
Heap Fetches: 9134141 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
import AuthService from "./service/AuthService"; | |
const headers = { | |
"Content-Type": "application/json", | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Credentials": "true" | |
}; | |
const HTTP = new axios.create({ | |
responseType: "json", |
OlderNewer