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
url1 = "https://www.cse-cst.gc.ca/day/" | |
url2 = "/metadatafiles/" | |
codes.each do |code| | |
url = “#{url1}#{jour}#{url2}#{code}” | |
end |
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
codes = [ | |
“CAN_mar.json”, | |
“CAN_qc.json”, | |
“CAN_on.json”, | |
“CAN_pr.json”, | |
“CAN_bc.json”, | |
“CAN_ter.json” | |
] |
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
jour = Time.new.day |
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
#!/usr/bin/env ruby | |
# ©2015 Jean-Hugues Roy. GNU GPL v3. | |
fichier = "Équipes EDM4424 - automne2015 (TEST).txt" | |
# étudiants inscrits à la session précédente, regroupés en équipes | |
# j'ai remplacé le nom des étudiants par des personnalités connues | |
edm5242 = [ | |
["Cyrus le Grand", "Spartacus", "Siddhartha Gautama"], | |
["William Wallace", "Jeanne d'Arc", "Martin Luther"], |
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
#!/usr/bin/env ruby | |
# ©2014 Jean-Hugues Roy. GNU GPL v3. | |
# Ce script extrait des données du Système d'information géoscientifique pétrolier et gazier (SIGPEG) du ministère de l'Énergie et des Ressources naturelles du Québec | |
# Il s'agit de données sur tous les puits forés au Québec depuis 1860 pour exploration ou exploitation de gaz naturel ou de pétrole | |
require "csv" | |
require "nokogiri" | |
require "open-uri" | |
require "watir-webdriver" |
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
#!/usr/bin/env ruby | |
# require "csv" | |
partis = ["QS", "CAQ", "PQ", "PLQ"] | |
partis.each do |parti| | |
fichier = "wordcloud-assnat-" + parti + ".txt" | |
fichier3 = "wordcloud-assnat-liste-mots-" + parti + ".txt" |
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
#!/usr/bin/env ruby | |
require "nokogiri" | |
require "open-uri" | |
# Création d'un fichier pour accueillir les résultats | |
fichier = "AssNat_URLs_40e_legis.txt" | |
f = File.open(fichier, "w") |
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
# -*- coding: utf-8 -*- | |
# Jean-Hugues Roy GPL v2 | |
# la ligne ci-dessous est de-commentée si on se sert de python3 (il faut alors mettre la suivante en commentaire) | |
# import urllib.request as urllib2 | |
import urllib2 | |
import csv | |
from bs4 import BeautifulSoup | |
import requests |
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
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only"> | |
<info> | |
<title>Université Laval Communications</title> | |
<id>http://www.zotero.org/styles/universite-laval-com</id> | |
<link href="http://www.zotero.org/styles/universite-laval-com" rel="self"/> | |
NewerOlder