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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"regexp" | |
"strings" | |
"sort" | |
) |
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
import re | |
with open('simple.txt', 'r') as f: | |
words = re.findall(r'\w+', f.read()) | |
for w in sorted(list(set([(w, words.count(w)) for w in words])), key=lambda x: x[1]): | |
print "%20s -> %d" % w |
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
// ==UserScript== | |
// @name VK video Data miner(bagulnik) | |
// @author boyo | |
// @description Жутко баджу и беру информацию о видео вконтакте, тестировался только в хроме | |
// @match http://vk.com/* | |
// ==/UserScript== | |
// Usage: добавь в браузер, зайди в видеозаписи на vk.com, набери в поиске запрос и смело нажимай "багульник вперед". | |
function addJQuery(callback) { | |
//выходим если это айфрейм |
NewerOlder