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
decode_data(Data, UserAgent, Fuid01) -> | |
Key = iolist_to_binary([binary:part(UserAgent, 0, min(25, size(UserAgent))), | |
Fuid01, | |
<<"I keep watch over you ;)">>]), | |
decode_chars(Data, Key, 0). | |
decode_chars(<<>>, _, _) -> | |
<<>>; | |
decode_chars(<<Char:8, Rest/binary>>, Key, Idx) -> | |
KeyPos = Idx rem size(Key), |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
''' | |
Created on 2012-06-03 | |
@author: Sergey Prokhorov <me@seriyps.ru> | |
Скрипт для создания архива, содержащего все пакеты, необходимые для оффлайн | |
установки l2tp плагина NetworkManager на Ubuntu. | |
''' |
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
%% Usage: | |
%% TemplatesDir = "templates", | |
%% TemplatesNames = ["index.dtl", "_layout.dtl"], % filelib:wildcard("*.dtl", TemplatesDir) | |
%% LocalesDir = "locales", | |
%% Domain = "my_project", % phrases will be written to "locales/my_project.pot" | |
%% Messages = extract_messages(TemplatesDir, TemplatesNames), | |
%% write_pot(Messages, LocalesDir, Domain). | |
-module(erlydtl_xgettext). |
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
# -*- coding: utf-8 -*- | |
''' | |
Created on 2014-04-05 | |
@author: Sergey Prokhorov <me@seriyps.ru> | |
''' | |
import re | |
import operator | |
import decimal |
NewerOlder