Skip to content

Instantly share code, notes, and snippets.

View c0rp-aubakirov's full-sized avatar
🏠
Working from home

Sanzhar Aubakirov c0rp-aubakirov

🏠
Working from home
View GitHub Profile
@c0rp-aubakirov
c0rp-aubakirov / Bluetooth.csv
Created October 24, 2020 05:05
Bluetooth dataset
We can't make this file beautiful and searchable because it's too large.
_id,name,locationStatus,direction,timestamp,rssiOne,rssiTwo
4744423E612A1ED103904DB4F5987BA6,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367500637,-79,-90
C245BE3DABC6B3B534FD3D0E660049B2,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367501323,-81,-90
854BB66FF73F63F0FB15149B80434D80,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367502416,-83,-91
1E448462718ADB1DD73E9553A7B268B7,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367504813,-80,-91
0D4BAE97FE52DBAF3E596C72CC45C78F,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367504813,-80,-91
EA4B265D576D156E2738B3C47E1D8A9F,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367506037,-77,-90
F8496ECA0E550291E803C0657CD436AF,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367508214,-75,-90
0C4A677C7CED029B404DD02063691795,FF:FF:C2:1D:9B:54,OUTSIDE,FROM_INSIDE_TO_OUTSIDE,1551367508214,-75,-88
package kz.softrack.avtobys.models.logger;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.Date;
/**
* User: Sanzhar Aubakirov
* Date: 9/3/16
@c0rp-aubakirov
c0rp-aubakirov / Guide.README
Created March 31, 2019 12:25
Course preparation guide
---
:: folders ::
(a) create the "_AI_RL" folder for the course
(b) create the "_AI_RL\__vEnv_py3-x-y" folder for the python virtual environment
where x and y are the Python3 version numbers
---
Hands-On software:
- python3
- numpy, matplotlib
@c0rp-aubakirov
c0rp-aubakirov / iris.csv
Created March 14, 2019 05:31
Iris dataset
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
sepal length sepal width petal length petal width iris
5.1 3.5 1.4 0.2 Iris-setosa
4.9 3 1.4 0.2 Iris-setosa
4.7 3.2 1.3 0.2 Iris-setosa
4.6 3.1 1.5 0.2 Iris-setosa
5 3.6 1.4 0.2 Iris-setosa
5.4 3.9 1.7 0.4 Iris-setosa
4.6 3.4 1.4 0.3 Iris-setosa
5 3.4 1.5 0.2 Iris-setosa
4.4 2.9 1.4 0.2 Iris-setosa
@c0rp-aubakirov
c0rp-aubakirov / dataset.json
Created March 14, 2019 04:59
News dataset
[
{
"elasticSearchId": "",
"newsPortalName": "Arnapress.kz",
"date": "Mar 13, 2019 5:26:01 AM",
"title": "Осадки ожидаются в среду в ряде областей Казахстана",
"URL": "https://www.arnapress.kz:443/almaty/life/120074/",
"tags": [
"Общество"
],
var SignedXml = require('xml-crypto').SignedXml
, fs = require('fs')
var xml = `<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><certificateNumber xmlns="https://allpay.kz">27</certificateNumber></soap:Header><soap:Body><ns2:createCashInTransaction xmlns:ns2="http://www.allpay.kz/mfs/soap/TransactionManagement/1.1"><CashInRequest><header><lang>ru</lang><timestamp>2018-08-10T19:04:11.385+06:00</timestamp><requester>10124213</requester></header><toUserName>77072734954</toUserName><amount>10</amount><GUID>fa495ffa-4825-485e-9b14-a04c6d8315d2</GUID></CashInRequest></ns2:createCashInTransaction></soap:Body></soap:Envelope>`
var sig = new SignedXml(null)
sig.signatureAlgorithm = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
sig.canonicalizationAlgorithm = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
sig.addReference(
public class StreamTest {
@Test
public static void test () {
final List<Integer> list = new ArrayList<>();
list.add(1);
list.add(2);
list.add(3);
@c0rp-aubakirov
c0rp-aubakirov / JKHServiceController.java
Created March 30, 2018 06:08
Проект брифинг для Smart ЖКХ
public interface JKHServiceController {
UserJKH getUserInfo(final String login);
void registerNewUser(final UserJKH userJKH);
void login(final String login, final String password);
void pay(final String login, final String SMS);
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><certificateNumber xmlns="https://allpay.kz">36</certificateNumber><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>PVIv9uHD71ppV09xm8Fx6K45u1w=</DigestValue></Reference></SignedInfo><SignatureValue>f+GjHzmTmzjuzVQOxipfF5qlp8VHJx2U8bxI6YYryPEL3d9ly8NqQ1VC2heQvGIpInfb24TWcIM+
lxKdWBW+nm3zRMfUjVIEQzMC6/KieeZJ0GPMxInRxArsx52uHV09IGCpMXHKyCnD9Qs+0y7E/sC0
ciJPBEg+17VIMmrO3bQ=</SignatureValue></Signature></SOAP-ENV:Header><soap:Body><ns2:declineTransaction xmlns:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><certificateNumber xmlns="https://allpay.kz">36</certificateNumber><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>gZtqv3E2cvxv3etns9T7IA1w7GQ=</DigestValue></Reference></SignedInfo><SignatureValue>SlTFKlMwhS8y7ibG8gvWzUX50fYU0Y/QbJXMwJ9wtRgYc/Kp0q302RxjTQLeDqrYowq2KPKWkkfg
X7jjOjfrZLleq6iLj58+DhArlj37eLY3NDmAMk6UZ2jfuEh+tmkgMqTQZ96XFzF6aMV201d8Tagi
eHI0iGEoDVd7zPQjbpc=</SignatureValue></Signature></SOAP-ENV:Header><soap:Body><ns2:completeTransaction xmlns