We can't make this file beautiful and searchable because it's too large.
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
Date,News | |
2016-07-01,"A 117-year-old woman in Mexico City finally received her birth certificate, and died a few hours later. Trinidad Alvarez Lira had waited years for proof that she had been born in 1898." | |
2016-07-01,IMF chief backs Athens as permanent Olympic host | |
2016-07-01,"The president of France says if Brexit won, so can Donald Trump" | |
2016-07-01,British Man Who Must Give Police 24 Hours' Notice of Sex Threatens Hunger Strike: The man is the subject of a sexual risk order despite having never been convicted of a crime. | |
2016-07-01,100+ Nobel laureates urge Greenpeace to stop opposing GMOs | |
2016-07-01,Brazil: Huge spike in number of police killings in Rio ahead of Olympics | |
2016-07-01,Austria's highest court annuls presidential election narrowly lost by right-wing candidate. | |
2016-07-01,"Facebook wins privacy case, can track any Belgian it wants: Doesn't matter if Internet users are logged into Facebook or not" | |
2016-07-01,"Switzerland denies Muslim girls citizenship after they refuse to swim with boys at sc |
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
from urllib.request import urlopen, Request | |
from urllib.error import HTTPError | |
import logging | |
from lxml.html import parse | |
def yahoo_scrape(symbol_string): | |
""" | |
returns the string sector for a given symbol | |
""" | |
sector_string = '' |
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 Data.Char | |
import Test.QuickCheck | |
-- count str = length [c | c <- str, isUpper c || isDigit c] | |
count = length . filter c | |
where c x = isUpper x || isDigit x | |
countRec [] = 0 | |
countRec (c:str) = (if isUpper c || isDigit c then 1 else 0) + countRec str |
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
-- Informatics 1 - Functional Programming | |
-- Tutorial 3 | |
-- | |
-- Week 5 - Due: 19-20 Oct. | |
module Tutorial3 where | |
import Data.Char | |
import Test.QuickCheck |
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
halveEvens :: [Int] -> [Int] | |
halveEvens xs = [x `div` 2 | x <- xs, x `mod` 2 == 0] |
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
var href = 'remscroll.js:' + window.location.href; | |
window.addEventListener('load', () => { | |
let scrollPos = localStorage.getItem(href); | |
if(scrollPos) { | |
document.scrollingElement.scrollTop = Number(scrollPos); | |
} | |
}); | |
document.addEventListener('scroll', () => { |
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
const keva = require('keva'); | |
module.exports = (name, json) => { | |
let schema = { | |
definitions: {}, | |
title: name, | |
type: 'object', | |
properties: json | |
}; | |
schema.properties = convert(schema.properties, schema.definitions); |
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
console.log=(()=>{var c=console.log;return(...d)=>{c(...(1==d.length&&d[0].charAt?['%c'+d[0],'font:1em Comic Sans MS']:d))}})(); |
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
google-site-verification: googledf49824418c4dc3a.html |
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
let observer = new MutationObserver(mutations => { | |
mutations.forEach(mutation => { | |
if(mutation.attributeName === "attributeeditable") { | |
if(mutation.target.hasAttribute("attributeeditable") && mutation.target.getAttribute("attributeeditable") !== 'false') { | |
createPopovers(); | |
} else { | |
editAttributes(mutation.target); | |
mutation.target.removeAttribute("data-attributeeditable"); | |
} | |
} |