Skip to content

Instantly share code, notes, and snippets.

View arsenikt's full-sized avatar

Arseniy Troshin arsenikt

  • Cyprus, Limassol
View GitHub Profile
@arsenikt
arsenikt / tgbot.js
Last active September 26, 2020 17:37
Telgram bot NodeJS
var TelegramBot = require('node-telegram-bot-api');
const tgToken = '1111-ABCDEF'; // Your token from Telegram Bot Father
const userId = "111111111" // User or Channel ID
function sendMessage(content) {
var bot = new TelegramBot(tgToken, { polling: false });
bot.sendMessage(userId , content, { parse_mode: "HTML" });
}
var txhash = "0x112233"
3892-9183
943-94
sasasas
32-93-
32-932-93jfdipfjdipf
Есть опасность нарваться на подобные символы: ด็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็็
@arsenikt
arsenikt / gist:bf9eac8dfae96b3280e1e30cbd578503
Created April 16, 2019 14:36
Test text and url loading
Hello, text and url
http://google.com
0xdb12524efaf41aa1a7bec813e0c5666722894166
@arsenikt
arsenikt / HideImpossibleFullscreenView.java
Last active October 8, 2015 09:08
Create hide impossible fullscreen view.Swipes for show status bar and navigation bar blocked.Show it after display power on (lock screen).
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
WindowManager.LayoutParams handleParams = new WindowManager.LayoutParams(
WindowManager.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_ERROR,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
package com.cdzlab.locks;
/**
* @author arsenik
*/
public class LockTester {
public LockTester() {
}
public void test() throws InterruptedException {