Skip to content

Instantly share code, notes, and snippets.

View mikhail-chystsiakou's full-sized avatar

Mikhail Chystsiakou mikhail-chystsiakou

View GitHub Profile
// SPDX-License-Identifer: MIT
pragma solidity ^0.8.0;
contract PiggyWallet {
address payable private owner;
mapping (address => uint256) private wallet;
function putMoney() public payable {
wallet[msg.sender] += msg.value;
<html>
<head>
<title>Проверка пароля</title>
<link rel='stylesheet' href='style.css' type='text/css'>
<meta charset="utf-8" />
</head>
<body>
<?php
require 'flag.php';
.model SMALL
.386
.data
EXTRN _begin:DWORD
EXTRN _end:DWORD
EXTRN _step:DWORD
EXTRN _x:DWORD
EXTRN _f:DWORD
tmp dw 0
.code
class A {
public:
int a;
};
class AA : public A {
public:
int b;
};
02:28:55.302 [http-listener-1(4)] INFO com.citycon.dao.mysql.RouterConnectionDAO - Get count elements failed. With parameters: City(Horki), Country(Belarus)
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'routers on (`RouterConnection`.`ID_From` = `routers`.`ID` or `RouterConnection`.' at line 1
<build>
<finalName>cityCon</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
/*
required imports
*/
puclic class StatementQuestion {
Connection cn;
PreparedStatement ps;
public StatementQuestion() throws ClassNotFoundException, SQLException{
cn = DriverManager.getConnection("path", "user", "pass");
ps = cn.prepareStatement("select `data` from table where id > ?");
}