Skip to content

Instantly share code, notes, and snippets.

View yrochat's full-sized avatar
💭
Doing digital humanities

Yannick Rochat yrochat

💭
Doing digital humanities
View GitHub Profile
@yrochat
yrochat / all.gexf
Last active August 29, 2015 14:03
DH 2014 network based on abstracts : authors and keywords
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http://www.gexf.net/1.1draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
<meta lastmodifieddate="2014-05-21">
<creator>NodosChile</creator>
<description>A graph file writing in R using "rgexf"</description>
<keywords>gexf graph, NodosChile, R, rgexf</keywords>
</meta>
<graph mode="static" defaultedgetype="undirected">
<attributes class="node" mode="static">
<attribute id="att1" title="name" type="string"/>
@yrochat
yrochat / keywords.gexf
Created July 7, 2014 08:49
DH 2014 network based on abstracts : keywords
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http://www.gexf.net/1.1draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
<meta lastmodifieddate="2014-05-21">
<creator>NodosChile</creator>
<description>A graph file writing in R using "rgexf"</description>
<keywords>gexf graph, NodosChile, R, rgexf</keywords>
</meta>
<graph mode="static" defaultedgetype="undirected">
<attributes class="node" mode="static">
<attribute id="att1" title="name" type="string"/>
@yrochat
yrochat / authors.gexf
Created July 7, 2014 08:50
DH 2014 network based on abstracts : authors
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http://www.gexf.net/1.1draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
<meta lastmodifieddate="2014-05-22">
<creator>NodosChile</creator>
<description>A graph file writing in R using "rgexf"</description>
<keywords>gexf graph, NodosChile, R, rgexf</keywords>
</meta>
<graph mode="static" defaultedgetype="undirected">
<attributes class="node" mode="static">
<attribute id="att1" title="name" type="string"/>
rm(list=ls())
library(twitteR)
library(httr)
# 1. Find OAuth settings for twitter:
# https://dev.twitter.com/docs/auth/oauth
oauth_endpoints("twitter")
Sys.setenv(TWITTER_CONSUMER_SECRET = "")
@yrochat
yrochat / README.md
Created May 6, 2015 10:12
Network Transition v.0.0.1

Contexte

La toute première étape d'un système de visualisation dynamique (temporelle) de réseaux.

@yrochat
yrochat / CH_public_spending.csv
Last active August 31, 2015 19:49
Public spending for education and in total in Switzerland
Dépenses totales en milliers de francs Dépenses totales en francs par habitant Dépenses totales en francs par habitant Dépenses d'éducation en milliers de francs Dépenses d'éducation en francs par habitant Dépenses d'éducation en francs par habitant Pourcentage
Zurich 21235238 58469 16505 6290164 15919 4466 29.6
Berne 14420559 49497 13887 3769395 13648 3797 26.1
Lucerne 4567436 36992 11602 1387554 11584 3594 30.4
Uri 488755 45597 13747 112840 10643 3161 23.1
Schwyz 1667038 37325 10976 436568 10032 2914 26.2
Obwald 460599 44071 13477 116891 10717 3237 25.4
Nidwald 452261 44270 12575 131104 11207 3153 29
Glaris 456347 38949 11853 125035 10584 3176 27.4
Zoug 1855086 56970 16110 480909 14730 4125 25.9
<!DOCTYPE html>
<!-- Initial code was (long ago) 04_force.html by Scott Murray -->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Network transition</title>
<script src="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/js/d3.v3.js" charset="utf-8"></script>
<script src="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/js/d3.slider.js" charset="utf-8"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/css/d3.slider.css" />
<link rel="stylesheet" href="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/css/styles.css" />
<!DOCTYPE html>
<!-- Initial code was (long ago) 04_force.html by Scott Murray -->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Network transition</title>
<script src="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/js/d3.v3.js" charset="utf-8"></script>
<script src="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/js/d3.slider.js" charset="utf-8"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/css/d3.slider.css" />
<link rel="stylesheet" href="https://cdn.rawgit.com/maladesimaginaires/intnetviz/master/include/css/styles.css" />
  • $source
  • $entities
    • $user_mentions
      • $name
      • $screen_name
      • $indices
      • $id_str
      • $id
    • $media
  • $expanded_url
> tw[[5096]]
$source
[1] « web »
$entities
$entities$user_mentions
$entities$user_mentions[[1]]
$entities$user_mentions[[1]]$name
[1] « Dent de canard »