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
#new handler OnTextInput | |
%string=$0 | |
%string=$str.replace(%string,"À","A'",1)#,1 = case sensitive | |
%string=$str.replace(%string,"Á","A'",1) | |
%string=$str.replace(%string,"È","E'",1) | |
%string=$str.replace(%string,"É","E'",1) | |
%string=$str.replace(%string,"Ì","I'",1) | |
%string=$str.replace(%string,"Í","I'",1) | |
%string=$str.replace(%string,"Ò","O'",1) | |
%string=$str.replace(%string,"Ó","O'",1) |
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
\documentclass{article} | |
\usepackage{xcolor} | |
\usepackage{polyglossia} | |
\setmainlanguage{italian} | |
\definecolor{rosso}{RGB}{255,0,0} | |
\definecolor{arancio}{RGB}{255,127,0} | |
\definecolor{giallo}{RGB}{255,255,0} |
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
% !TEX encoding = UTF-8 Unicode | |
\documentclass{article} | |
\usepackage{lettrine} | |
\usepackage{luacode} | |
\usepackage{fontspec} | |
\usepackage[a4paper]{geometry} | |
\setmainfont{Adobe Caslon Pro} | |
\usepackage{multicol} | |
\usepackage{xcolor} | |
\usepackage{graphicx} |
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
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <algorithm> | |
#include <vector> | |
#include <sstream> | |
bool is_anagram(std::string s1, std::string s2) | |
{ | |
std::sort(s1.begin(), s1.end()); |
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
//forwardsearch | |
cd $(CURRENT_DIRECTORY) | |
npp_run sumatrapdf $(NAME_PART).pdf -reuse-instance | |
set riga~$(CURRENT_LINE)+1 | |
cl-2-dde-1.0.exe @' 'SUMATRA' 'control' '[ForwardSearch("$(CURRENT_DIRECTORY)\$(NAME_PART).pdf","$(CURRENT_DIRECTORY)\$(NAME_PART)$(EXT_PART)",$(riga),0,0,1)]' | |
//arara | |
NPP_SAVE |
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
\documentclass{article} | |
\begin{document} | |
\newlength{\myl} | |
Q | |
\settoheight{\myl}{Q} | |
height=\the\myl | |
\settodepth{\myl}{Q} | |
depth=\the\myl |
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=$0- | |
%string=$str.replace(%string," ","+") | |
%string=http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=%string | |
http.asyncGet -e=o -w=h -i=$window (%string,$file.localdir(result)) | |
{ | |
%string=$file.read($file.localdir(result)); | |
%url[]=$str.split(:\",%string); | |
for(%i=1;%i < %url[]#;%i+=2) | |
{ | |
%temp="" |
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
%l1=$0 | |
%l2=$1 | |
%string=$2- | |
say Traduzione di \"%string\" da $b%l1$b a $b%l2$b | |
%string=$str.replace(%string," ","+") | |
%string=http://mymemory.translated.net/api/get?q=%string&langpair=%l1|%l2 | |
http.asyncGet -e=o -w=h -i=$window (%string,$file.localdir(result)) | |
{ | |
%string=$file.read($file.localdir(result)); | |
%result[]=$str.split(:\",%string); |
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
#OnChannelMessage | |
%string=$3 | |
if ($str.contains($3,"http://pastebin.com/")) { | |
%string=$str.replace(%string,"http://pastebin.com/","http://pastebin.com/raw.php?i=") | |
http.asyncGet -e=o -w=h -i=$window (%string,$file.localdir(paste)) | |
{ | |
%string=$file.read($file.localdir(paste)); | |
echo -w=$3 %string | |
} | |
} |
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
#if input is like "user: message" | |
#and 'user' is a valid nickname in that chan, | |
#make that nickname bold | |
%users[]=$chan.users() | |
%input=$0 | |
%pos=$str.find(%input,":") | |
if(%pos!=-1){ | |
%nick=$str.left(%input,%pos) | |
%message=$str.rightfromfirst(%input,":") | |
for(%i=0;%i<%users[]#;%i++) if(%users[%i]==%nick) %input=$b%nick$b":"%message |
OlderNewer