This is my recommended path for learning Haskell.
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
{ | |
"Title": "Flags", | |
"URL": "http://orange.biolab.si/datasets.psp", | |
"Variables": ["Landmass", "Zone", "Area", "Population", "Language", "Religion", "Bars", "Stripes", "Colors", "Red"], | |
"Records name": ["Afghanistan", "Albania", "Algeria", "American-Samoa", "Andorra", "Angola", "Anguilla", "Antigua-Barbuda", "Argentina", "Argentine", "Australia", "Austria", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Botswana", "Brazil", "British-Virgin-Isles", "Brunei", "Bulgaria", "Burkina", "Burma", "Burundi", "Cameroon", "Canada", "Cape-Verde-Islands", "Cayman-Islands", "Central-African-Republic", "Chad", "Chile", "China", "Colombia", "Comorro-Islands", "Congo", "Cook-Islands", "Costa-Rica", "Cuba", "Cyprus", "Czechoslovakia", "Denmark", "Djibouti", "Dominica", "Dominican-Republic", "Ecuador", "Egypt", "El-Salvador", "Equatorial-Guinea", "Ethiopia", "Faeroes", "Falklands-Malvinas", "Fiji", "Finland", "France", "French-Guiana", "French-Polynesia", "Ga |
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
{ | |
"Title": "Flags", | |
"URL": "http://orange.biolab.si/datasets.psp", | |
"Variables": ["Landmass", "Zone", "Area", "Population", "Language", "Religion", "Bars", "Stripes", "Colors", "Red", "Green", "Blue", "Gold", "White", "Black"], | |
"Records name": ["Afghanistan", "Albania", "Algeria", "American-Samoa", "Andorra", "Angola", "Anguilla", "Antigua-Barbuda", "Argentina", "Argentine", "Australia", "Austria", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Botswana", "Brazil", "British-Virgin-Isles", "Brunei", "Bulgaria", "Burkina", "Burma", "Burundi", "Cameroon", "Canada", "Cape-Verde-Islands", "Cayman-Islands", "Central-African-Republic", "Chad", "Chile", "China", "Colombia", "Comorro-Islands", "Congo", "Cook-Islands", "Costa-Rica", "Cuba", "Cyprus", "Czechoslovakia", "Denmark", "Djibouti", "Dominica", "Dominican-Republic", "Ecuador", "Egypt", "El-Salvador", "Equatorial-Guinea", "Ethiopia", "Faeroes", "Falklands-Malvinas", "Fiji", "Finland", "France |
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 System.Xml.Linq | |
open FSharp.Data | |
/// Use F#'s awesome type provider to access arXiv's API. | |
type StatML = XmlProvider<"http://export.arxiv.org/api/query?search_query=stat.ML&start=0&max_results=1000"> | |
/// Request Stat.ML articles from 'a' to 'b'. | |
let APIReq (a: int) (b: int) = | |
"http://export.arxiv.org/api/query?search_query=stat.ML&start=" + (string a) + "&max_results=" + (string b) |
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
titleize = function(title) { | |
substr(title, 1, 1) = toupper(substr(title, 1, 1)) | |
return(title) | |
} |
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/python2 | |
import json | |
from TwitterAPI import TwitterAPI | |
c_key = '...' | |
c_sec = '...' | |
t_key = '...' | |
t_sec = '...' |
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr" class="client-nojs"> | |
<body> | |
<div class="x"> | |
<div id="y"> | |
<p>This is some <b>nice</b> <i>text</i>, right?</p> | |
<P>This is some nice text, right?</P> | |
</div> | |
<P class="Some text" id="xyz"> | |
<u>This</u> is some nice text, right? |
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
<html>Test</html> |
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
<html> | |
<section> | |
<p>AAA</p> | |
</section> | |
<p>BBB</P> | |
<P id='z'>CCC</p> | |
<div> | |
<p>DDD</p> | |
<div> | |
<p>EEE</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
from random import randint as rand | |
max = 10000000 | |
sum = 0 | |
sumR = 0 | |
for i in range(0, max): | |
x = rand(1, 1000) / 2.0 | |
sum += x | |
sumR += round(x) | |
print((sumR - sum) / max) |