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
Show hidden characters
[ | |
{ "keys": ["ctrl+shift+r"], "command": "revert" }, | |
{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["ctrl+shift+keypad_minus"], "command": "permute_lines", "args": {"operation": "unique"} }, | |
{ "keys": ["shift+f12"], "command": "jump_back" } | |
] |
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
from OrderedSet import OrderedSet | |
russianAlphabet = {'й', 'ф', 'я', 'ц', 'ы', 'ч', 'у', 'в', 'с', 'к', 'а', 'м', 'е', 'п', 'и', 'н', 'р', 'т', 'г', 'о', 'ь', 'ш', 'л', 'б', 'щ', 'д', 'ю', 'з', 'ж', 'х', 'э', 'ъ', 'ё'} | |
def compareTwoTexts(txt1, txt2, alphabet = russianAlphabet): | |
# txt1 should be the shorter one | |
ngramd1 = extractNGrams(txt1, alphabet) | |
ngramd2 = extractNGrams(txt2, alphabet) | |
return extractCommonPassages(getCommonNGrams(ngramd1, ngramd2)) |
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
echo "[" > begin.txt | |
echo "{}]" > end.txt | |
sed -rn "s=\"=\\\"=p" aneks.sql >aneks2.txt | |
sed -rn "s=.*\`anek\`.*\(([0-9]+), ([0-9]+), '(.*)'.*={\"id\":\"\1\", \"category\":\"\2\", \"text\":\"\3\", \"collections\":[{\"id\":\"anekdot\"}]},=p" aneks2.txt > 0.txt | |
cat begin.txt 0.txt end.txt >anekdots.json |
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
<div class="content"><div style="float:left;margin:0 8px 0 0"><div class="inline-attachment"> | |
<dl class="thumbnail"> | |
<dt><a href="./download/file.php?id=1519&sid=9b024f8e24bc36225eea4d488b279199&mode=view" data-lightbox="post-gallery1" data-title="mc.PNG"><img src="./download/file.php?id=1519&t=1&sid=9b024f8e24bc36225eea4d488b279199" class="postimage" alt="mc.PNG" title="mc.PNG (29.67 КБ) 10753 просмотра" style="max-width: 125px; border: 3px solid transparent; transition: border-color 0.1s ease-out; -webkit-transition: border-color 0.1s ease-out; border-radius: 6px; cursor: pointer;"></a></dt> | |
</dl> | |
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
В ворде: | |
1. Ctrl + Shift + Space | |
2. набрать 00A0, нажать Alt+X | |
Sublime Text: | |
Alt + 0160 |
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
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
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> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script type="text/javascript" src="dpd.js"></script> | |
</head> | |
<body> | |
<h1>Welcome to Deployd!</h1> |
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 string2Bin(str) { | |
var result = []; | |
for (var i = 0; i < str.length; i++) { | |
result.push(str.charCodeAt(i)); | |
} | |
return result; | |
} | |
function bin2String(array) { | |
return String.fromCharCode.apply(String, array); |
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 catalog = CatalogManager.Instance.LoadByCatalog(prop.SubTypeUid); | |
var checkView = true; | |
var checkAdd = true; | |
var checkDelete = true; | |
var checkEdit = true; | |
var checkExport = true; | |
if (catalog != null) { | |
//@: <strong>@catalog.Name</strong><br> | |
var securityService = Locator.GetServiceNotNull<ISecurityService>(); | |
checkView = securityService.HasPermission(PermissionProvider.CatalogViewPermission, catalog); |
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
string[] lstFiles = new string[3]; | |
lstFiles[0] = @"C:/pdf/1.pdf"; | |
lstFiles[1] = @"C:/pdf/2.pdf"; | |
lstFiles[2] = @"C:/pdf/3.pdf"; | |
PdfReader reader = null; | |
Document sourceDocument = null; | |
PdfCopy pdfCopyProvider = null; | |
PdfImportedPage importedPage; | |
string outputPdfPath = @"C:/pdf/new.pdf"; |
OlderNewer