This file contains hidden or 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
[ | |
{ | |
"op": "core/column-addition-by-fetching-urls", | |
"description": "Create column Facebook at index 2 by fetching URLs based on column URL using expression grel:value", | |
"engineConfig": { | |
"facets": [], | |
"mode": "row-based" | |
}, | |
"newColumnName": "Facebook", | |
"columnInsertIndex": 2, |
This file contains hidden or 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
https://gdata.youtube.com/feeds/api/videos/zpe4T0lXZcE?v=2&alt=json | |
value.parseJson()["entry"]["yt$statistics"]["viewCount"] | |
value.parseJson()["entry"]["yt$rating"]["numLikes"] | |
value.parseJson()["entry"]["yt$rating"]["numDislikes"] | |
value.parseJson()["entry"]["author"][0]["name"]["$t"] | |
value.parseJson()["entry"]["author"][0]["uri"]["$t"] | |
value.parseJson()["entry"]["author"][0]["yt$userId"]["$t"] |
This file contains hidden or 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
Toto je jen demonstrace moznosti, ktere Google Refine nabizi. Drive ci pozdeji narazite na limit. | |
1. Otverit Google Refine, zvolit vytvorit projekt z Web Addresses (URLs) a zadat | |
https://api.twitter.com/1/followers/ids.xml?screen_name=josefslerka | |
po té vybrat import ID po radku. | |
2. Aplikovat nasledujici formu v sekci UNDO/REDO, tlačítko Apply. |
This file contains hidden or 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
=COUNTA(E2:CF2) | |
=ImportXML(D2, "//div[@id='p-lang']/div/ul") | |
http://cs.wikipedia.org/wiki/Dominik_Ha%C5%A1ek | |
http://cs.wikipedia.org/wiki/Jarom%C3%ADr_J%C3%A1gr | |
http://cs.wikipedia.org/wiki/Karel_Rach%C5%AFnek | |
http://cs.wikipedia.org/wiki/Jan_Marek | |
http://cs.wikipedia.org/wiki/Patrik_Eli%C3%A1%C5%A1 | |
http://cs.wikipedia.org/wiki/Ivan_Hlinka | |
http://cs.wikipedia.org/wiki/Franti%C5%A1ek_Kaberle |
This file contains hidden or 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
tbl <- read.csv("tatrabanka.csv") | |
mydata.vector <- tbl$Content | |
mydata.vector <- iconv(mydata.vector, from="utf8", to="ASCII//TRANSLIT") | |
mydata.vector <- gsub("\'", "", mydata.vector) | |
twitter <- subset(mydata.vector, mydata.vector$Source == "twitter_cs") |
This file contains hidden or 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
library(tm) | |
library(corrplot) | |
# zde je treba vlozit korpus | |
# mydata.vectors <- character(0) | |
# mydata.vectors <- c("Dobre dopoledne Mateji,pokud jste pri registraci zvolil Moravskoslezsky kraj, zobrazila se vam v aplikaci informace, ze soutez probehne 30.1. Vcera 31.1. sef gangu navstivil Olomoucky a Zlinsky kraj. Zvoleny kraj naleznete v aplikaci v zalozce "Souboj kraju".Kazdopadne dnes hrajeme o 75 telefonu Samsung GALAXY mini. Online kolo zacina jiz ve 13:00.Drzim palce, Sandra, O2 Guru", mydata.vectors) | |
corpus <- Corpus(VectorSource(mydata.vectors)) | |
corpus <- tm_map(corpus, tolower) | |
corpus <- tm_map(corpus, removePunctuation) |
This file contains hidden or 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
library(tm) | |
require(wordcloud) | |
require(RColorBrewer) | |
# zde je treba vlozit korpus | |
# mydata.vectors <- character(0) | |
# mydata.vectors <- c("Dobre dopoledne Mateji,pokud jste pri registraci zvolil Moravskoslezsky kraj, zobrazila se vam v aplikaci informace, ze soutez probehne 30.1. Vcera 31.1. sef gangu navstivil Olomoucky a Zlinsky kraj. Zvoleny kraj naleznete v aplikaci v zalozce "Souboj kraju".Kazdopadne dnes hrajeme o 75 telefonu Samsung GALAXY mini. Online kolo zacina jiz ve 13:00.Drzim palce, Sandra, O2 Guru", mydata.vectors) | |
corpus <- Corpus(VectorSource(mydata.vectors)) | |
corpus <- tm_map(corpus, tolower) | |
corpus <- tm_map(corpus, removePunctuation) |
This file contains hidden or 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
mydata.vectors <- character(0) | |
mydata.vectors <- c("RT @LukasGren: Mam v telefonu @Vodafone_CZ a v iPadu O2. Temer vzdy a vsude je na tom Vodafone lepe s datovym pokrytim.", mydata.vectors) | |
mydata.vectors <- c("@LukasGren @Vodafone_CZ Co jsem nedavno presel, tak #O2 ma ve vlaku z Ostravy do Brna pokryti lepsi, a to i na prerovce. ", mydata.vectors) | |
mydata.vectors <- c("Mam v telefonu @Vodafone_CZ a v iPadu O2. Temer vzdy a vsude je na tom Vodafone lepe s datovym pokrytim.", mydata.vectors) | |
mydata.vectors <- c("@predraz_volani s timto ted utoci O2, 300min + neomezene sms do vlastni site a 500MB FUP za 350kc (O2 kul), kdyz prejdete!", mydata.vectors) | |
mydata.vectors <- c("@TheMoleCZ Zmenu je mozne provest na zakaznicke lince 800 020 202, nebo vam ji muzeme zajistit (http://t.co/t3ZH0g5V). Jarda, O2 Guru", mydata.vectors) | |
mydata.vectors <- c("@dluckyb No nevim, Strakonice nejsou zase tak male. Ale to same co ty jsem mel u o2. To si nevyberes.", mydata.vectors) | |
mydata.vectors <- c("@mrkvi |
This file contains hidden or 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
require 'rubygems' | |
def words text | |
text.downcase.scan(/[a-z]+/) | |
end | |
$words = words("V knize „Rok devaty“, ktera navazuje na predchazejici, svou strukturou podobne knihy, ktere vychazeji kazdorocne jiz od roku 2004 vzdy v breznu, ve vyroci me prvni prezidentske inaugurace, je pomerne plasticky predstaven devaty rok meho prezidentovani. Kniha obsahuje me publikovane i nepublikovane texty, prednasky, projevy, prohlaseni, vybrane dopisy, stanoviska k zakonum a spoustu dalsich dokumentu, ktere byly napsany ci proneseny v ceskem jazyce. Vynechany byly texty prilis kratke nebo mene vyznamne. Zadny jiny vyber delan nebyl. Je tam prakticky vsechno. | |
V knize nejsou me texty psane primo v anglictine a nemcine (kterych jsou vsak za rok desitky), pokud nemaji svou ceskou verzi. V knize neni obsazena jina kniha – Evropska integrace bez iluzi – ktera byla take v nakladatelstvi Knizni klub vydana v listopadu (uvadim zde jen jeji predmluvu). V roce 2011 vyslo i nekolik mych zahranicnich publikaci – ma „Modra, nikoli zelena p |
This file contains hidden or 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
require("igraph") | |
g <- read.graph("listalumia.txt", format="ncol", directed=TRUE) | |
pdf(file='site.pdf') | |
plot(g, vertex.size=10, vertex.label=V(g)$name, vertex.label.dist=0.7) | |
dev.off() |