Skip to content

Instantly share code, notes, and snippets.

View tinwritescode's full-sized avatar
🏝️
Working remotely

Tin Nguyen tinwritescode

🏝️
Working remotely
View GitHub Profile
@tinwritescode
tinwritescode / GiuaKi.java
Created November 17, 2021 07:52
Giữa kì
import javax.swing.*;
import java.awt.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
/**
* untitled
[{"id":"4fec2f64.670c5","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"6593bef4.238ff","type":"chartjs-horizontal-bar","z":"4fec2f64.670c5","name":"","path":"horizontal-bar","charttitle":"Chart title","xaxis":"Item","yaxis":"Value","x":690,"y":520,"wires":[[]]},{"id":"e45dae68.acc81","type":"inject","z":"4fec2f64.670c5","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"channel\":\"Population\",\"color\":\"Blue\",\"dataset\":[{\"x\":\"Europe\",\"y\":741},{\"x\":\"Australia\",\"y\":24},{\"x\":\"Africa\",\"y\":1.2},{\"x\":\"America\",\"y\":325},{\"x\":\"Asia\",\"y\":4.4}]},{\"channel\":\"Economy\",\"color\":\"Green\",\"dataset\":[{\"x\":\"Europe\",\"y\":12},{\"x\":\"Australia\",\"y\":13},{\"x\":\"Africa\",\"y\":3},{\"x\":\"America\",\"y\":22},{\"x\":\"Asia\",\"y\":18}]}]","payloadType":"json","x":260,"y":260,"wires":[["99a144c4.84db58"]]},{"id":"99a144c4.84db58","type":"function","z":"4fec2f64.670c5","name":"","func":"\n\nreturn
[{"id":"d7208ad0.df58b8","type":"ui_dropdown","z":"6adb49a5.2adcb8","name":"","label":"","tooltip":"","place":"Select option","group":"a02dd299.74ad6","order":2,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"Tỉnh An Giang","value":"1594446","type":"str"},
{"label":"Tỉnh Bà Rịa-Vũng Tàu","value":"1584534","type":"str"},
{"label":"Tỉnh Bạc Liêu","value":"1905675","type":"str"},
{"label":"Tỉnh Bắc Giang","value":"1905419","type":"str"},
{"label":"Tỉnh Bắc Kạn","value":"1905669","type":"str"},
{"label":"Tỉnh Bắc Ninh","value":"1905412","type":"str"},
{"label":"Tỉnh Bến Tre","value":"1587974","type":"str"},
{"label":"Tỉnh Bình Dương","value":"1905475","type":"str"},
{"label":"Tỉnh Bình Ðịnh","value":"1587871","type":"str"},
{"label":"Tỉnh Bình Dương","value":"1905475","type":"str"},
[{
"id": 1594446,
"name": "Tỉnh An Giang",
"state": "",
"country": "VN",
"coord": {
"lon": 105.166672,
"lat": 10.5
}
},
[{"id":"ec8a40a1.f2e4d","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"b573f57d.6290e8","type":"ui_button","z":"ec8a40a1.f2e4d","name":"","group":"1b214600.17935a","order":3,"width":0,"height":0,"passthru":false,"label":"Do stuff","tooltip":"","color":"","bgcolor":"","icon":"","payload":"textInput","payloadType":"flow","topic":"","x":300,"y":340,"wires":[["cc26e2d4.ffd35","b42b2908.665408"]]},{"id":"1330b995.eb0626","type":"ui_text_input","z":"ec8a40a1.f2e4d","name":"","label":"","tooltip":"","group":"1b214600.17935a","order":1,"width":0,"height":0,"passthru":true,"mode":"text","delay":"100","topic":"","topicType":"str","x":280,"y":280,"wires":[["7ba1f4df.b12a7c","2ffeee02.29d762"]]},{"id":"cc26e2d4.ffd35","type":"function","z":"ec8a40a1.f2e4d","name":"my function that does stuff","func":"msg.payload += \" - payload modified in my function\"\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":340,"wires":[["bcad70c7.b9db","a0241251.a9cc4"]]},{"id":"bcad70c7.b9db","type":"ui_text","z":"ec8a40a1.
//
/* https://t.me/BabyBUSDbsc
Hold BabyBUSD to earn crazy BUSD rewards, 100% of all busd reflect goes to holders! Best reflect around!
Tokenomics:
10% BUSD reflection
5% liquidity tax
// SPDX-License-Identifier: MIT
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/solc-0.7/contracts/token/ERC20/ERC20.sol";
// File: contracts/IUniswapV2Router01.sol
pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// File: contracts/IUniswapV2Router01.sol
pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
from PIL import Image
import numpy as np
import re
IMG_PATH = "map.bmp"
INPUT_PATH = "input.txt"
OUTPUT_PATH = "output.txt"
def bitmapToArray(path):
image = Image.open("map.bmp")
#include <windows.h>
#include <stdio.h>
#include <string>
#include <typeinfo>
#include <iostream>
using namespace std;
int ReadSector(LPCWSTR drive, int readPoint, BYTE sector[512])
{