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
# get excerpt of article ———————————————————————————————————————————————————————————————— | |
def get_excerpt(new_word, article_text, padding): | |
# Article text | |
text = article_text | |
# Find the index of the new_word in the text | |
# Convert both the text and the keyword to lowercase | |
keyword = new_word | |
text_lower = text.lower() |
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
00:00.000 --> 00:06.880 | |
Ora viva, a Itália vai a votos este domingo e por isso neste P24 estamos de olho no que | |
00:06.880 --> 00:13.120 | |
se passa nestas eleições antecipadas que vão definir o futuro deste país europeu. | |
00:13.120 --> 00:18.680 | |
Sofia Lorena está comigo ao telefone e vai começar por me explicar o que é que levou | |
00:18.680 --> 00:20.840 | |
os italianos às urnas mais cedo. | |
00:20.840 --> 00:26.640 | |
O que aconteceu nós sabemos e é fácil, relativamente fácil, não é fácil, fácil |
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
id | created_at | login | name | location | |
---|---|---|---|---|---|
1 | 2007-10-20 05:24:19 UTC | mojombo | Tom Preston-Werner | San Francisco | |
2 | 2007-10-20 05:24:19 UTC | defunkt | Chris Wanstrath | ||
3 | 2008-01-07 17:54:22 UTC | pjhyett | PJ Hyett | San Francisco | |
4 | 2008-01-12 05:38:33 UTC | wycats | Yehuda Katz | Portland, OR | |
5 | 2008-01-12 07:51:46 UTC | ezmobius | Ezra Zygmuntowicz | In the NW | |
6 | 2008-01-12 15:15:00 UTC | ivey | Michael D. Ivey | Tuscumbia, AL | |
7 | 2008-01-12 16:46:24 UTC | evanphx | Evan Phoenix | Los Angeles, CA | |
17 | 2008-01-13 05:57:18 UTC | vanpelt | Chris Van Pelt | San Francisco | |
18 | 2008-01-13 06:02:21 UTC | wayneeseguin | Wayne E. Seguin | Buffalo, NY |
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
PwC afasta sócios envolvidos com Isabel dos Santos | |
A PwC foi durante anos a auditora que Isabel dos Santos foi chamar para a apoiar na reestruturação da Sonangol | |
FOTO RUI DUARTE SILVA | |
Jaime Esteves e Ivo Faria, sócios históricos, foram suspensos e estão a negociar a saída | |
ANABELA CAMPOS | |
APricewaterhouseCoopers (PwC) prometeu que ia investigar a fundo o envolvimento dos sócios portugueses com os negócios sob suspeita de Isabel dos Santos e que isso iria ter consequências. Está a cumprir. O relatório de investigação interna, em que o presidente da PwC mundial, Bob Mortiz, acabou por se envolver pessoalmente, vindo a Lisboa, está concluído e já foram identificados os sócios do escritório português que estiveram implicados: Jaime Esteves e Ivo Faria. Sócios com décadas de casa, estão ambos suspensos e já começaram a negociar a sua saída da big four, um processo que foi conduzido pela casa mãe, que enviou a Portugal um quadro norte-americano para coordenar a investigação. |
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
endpoint: | |
POST https://wabi-north-europe-api.analysis.windows.net/public/reports/querydata?synchronous=true | |
request body: | |
{"version":"1.0.0","queries":[{"Query":{"Commands":[{"SemanticQueryDataShapeCommand":{"Query":{"Version":2,"From":[{"Name":"r","Entity":"REDE_URGENCIA_MONIT__AGR_DIA_URG"}],"Select":[{"Column":{"Expression":{"SourceRef":{"Source":"r"}},"Property":"Data"},"Name":"REDE_URGENCIA_MONIT__AGR_DIA_URG.Data"},{"Aggregation":{"Expression":{"Column":{"Expression":{"SourceRef":{"Source":"r"}},"Property":"Total epis. urg."}},"Function":0},"Name":"Sum(REDE_URGENCIA_MONIT__AGR_DIA_URG.Total epis. urg.)"}],"Where":[{"Condition":{"Comparison":{"ComparisonKind":2,"Left":{"Column":{"Expression":{"SourceRef":{"Source":"r"}},"Property":"ano"}},"Right":{"Literal":{"Value":"2016D"}}}}}]},"Binding":{"Primary":{"Groupings":[{"Projections":[0,1]}]},"DataReduction":{"DataVolume":4,"Primary":{"BinnedLineSample":{}}},"Version":1}}}]},"CacheKey":"{\"Commands\":[{\"SemanticQueryDataShapeCommand\":{\"Query\":{\"Version |
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
<style type="text/css"> | |
h1 { | |
font-family: sans-serif; | |
color: pink; | |
cursor: pointer; | |
font-size: 36px; | |
} |
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
open('base2ocds_corrected.json', 'a') do |f| | |
f << '[' | |
File.readlines('./base2ocds.json').each_with_index do |line, index| | |
puts index + 1 | |
f << line + ',' | |
end | |
f << ']' | |
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
Process: coconutBattery [60898] | |
Path: /Applications/coconutBattery.app/Contents/MacOS/coconutBattery | |
Identifier: com.coconut-flavour.coconutBattery | |
Version: 3.8.1 (3.8.1) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: coconutBattery [60898] | |
User ID: 501 | |
Date/Time: 2019-10-04 17:06:15.148 +0100 |
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
{ | |
"dias": ["2013-01-01", "2013-01-02", "2013-01-03", "2013-01-04", "2013-01-05", "2013-01-06"], | |
"ps": [140, 150, 200, 120, 150, 160], | |
"ps_area": [[150, 140, 110], [200, 150, 115], [300, 200, 50], [135, 120, 110], [180, 150, 130], [199, 160, 125] ], | |
"s-catolica-ps": [200, null, null, 400, 450] | |
} |
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/local/bin/python2.5 | |
import subprocess | |
import sys | |
import re | |
import os,pwd | |
from pprint import pprint | |
class TerminalController: | |
""" |
NewerOlder