<!-- 1px Transparent -->
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7">
<!-- 1px Gray -->
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==">
<!-- 1px Black -->
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=">
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
function hasClass(element, className) { | |
return element.className && new RegExp("(^|\\s)" + className + "(\\s|$)").test(element.className); | |
} | |
var myDiv = document.getElementById('MyDiv'); | |
hasClass(myDiv, 'active'); | |
// OR |
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
CLS | |
locate 1, 30 : PRINT "Тест про компьютеры." | |
10 locate 2, 20 : PRINT "Начать? 1 да, 0 нет" | |
INPUT "", x | |
IF x = 0 THEN : END | |
IF x <> 1 THEN : GOTO 10 | |
y = 0 | |
PRINT "При ответе используйте соответствующую варианту цифру" | |
PRINT "без лишних символов и знаков" |
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 | |
// Любой скрипт любым скриптом. | |
/* я нашёл, из за touch. Ну почему так происходит, если данные уже обновлены? Сервер хранит старые копии для возможного отката? Хотя нет. Возможно, это просто кэш, основанный на дате изменения файла. Но все равно, где же тогда хранятся данные после уже изменение скрипта? */ | |
$f = "f.php"; | |
$time = @filemtime($f); | |
file_put_contents($f, "\n echo '".rand(111, 9999)."';", FILE_APPEND) or exit("error!"); | |
echo 'file updated. Changes will be applied in ~ 40 minutes. Check <a href="'.$f.'?'.uniqid().'">here</a>'; | |
@touch($f,$time,$time); |
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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Генератор ссылок NVDAREMOTE</title> | |
<style> | |
// http://pauljadam.com/demos/title-keyboard.html | |
// edited | |
input[title]:focus:after { content:attr(title); | |
background-color: black; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
</head> | |
<body> | |
<script> |
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
var messages = API.messages.getConversations({"count":200}); | |
var i=-1; | |
var d=0; | |
var ids=[]; | |
var peer_id=0; | |
while(i<200) { | |
i=i+1; | |
peer_id = messages.items[i].conversation.peer.id; | |
if(peer_id > 0 && peer_id < 2000000000) { | |
if(d<=23) { |
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
function arrayBufferToBase64(buffer) { | |
let binary = ''; | |
let bytes = new Uint8Array(buffer); | |
let len = bytes.byteLength; | |
for (let i = 0; i < len; i++) { | |
binary += String.fromCharCode(bytes[i]); | |
} | |
return window.btoa(binary); | |
} |
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
def smartsplit(t, s, e): | |
""" | |
smartsplit(text, start_position, end_position) | |
Splits a string into parts according to the number of characters. | |
If there is a space between the start and end positions, split before a space, the word will not end in the middle. | |
If there are no spaces in the specified range, divide as is, by the finite number of characters. | |
""" | |
t = t.replace("\r\n", "\n").replace("\r", "\n") | |
if(e >= len(t)): return [t] | |
l = [] |
OlderNewer