Skip to content

Instantly share code, notes, and snippets.

@claudialexa
claudialexa / README.md
Last active January 18, 2016 21:59
This is a database about myths

This is a Dataset about Myths

The idea is to visualize myths and the truth behind them

@claudialexa
claudialexa / index.html
Created January 20, 2016 00:31
Loading Myth Data from CSV File
<!DOCTYPE html>
<!-- This was one of Scott Murray's Knight D3 course files, modified a bit. -->
<!--This was displayed in Lynn Cherney's class and modified by Claudia Aguirre-->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Myths Data: Columns</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
</head>
@claudialexa
claudialexa / index.html
Last active January 25, 2016 20:38
Two Charts About Myths
<html>
<head>
<style>
body {
font-family: Arial, sans-serif;
font-size: 12px;
}
@claudialexa
claudialexa / category_myths.csv
Created January 31, 2016 22:01
A styled table loaded in D3 about Myths
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 7 columns, instead of 2. in line 6.
myth,description,google_hits,y_n,category,percentString,percent
An 'Autism Epidemic',"There's only been an increase in diagnoses of autism, caused by heightened awareness of the ailment, not incidence.",1130000,,body,0.11%,0.00114
The Left and right brains have different capabilities,No solid functional division; some functions activate some areas more than others. Left brain can learn 'right brain' functions and vice-versa.,2600000,"""left brain"" ""right brain"" different",brain,0.26%,0.00262
Adding salt to water makes it boil more quickly,"Naturally salted water will boil more quickly, because of the low heat capacity of the salt content but adding salt to fresh water will not make any difference.",11300000,,cooking,1.14%,0.01139
Oil stops pasta sticking,Does not prevent sticking. But it can stop the water foaming or boiling over.,5200000,,Cooking,0.52%,0.00524
You can get high from banana peel,"A hoax, perpetuated through the Internet. ",3390000,,drugs,0.34%,0.00342
George Washington smoked cannabis,He gr
@claudialexa
claudialexa / index.html
Created February 8, 2016 19:26
Fixing SVGs
<html lang="en">
<head>
<meta charset="utf-8">
<title>SVG Shapes</title>
<style type="text/css">
.ellipse {
fill: blue;
}
@claudialexa
claudialexa / category_myths.csv
Last active February 9, 2016 03:31
A Very Basic Chart About Myths
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 7 columns, instead of 2. in line 6.
myth,description,google_hits,y_n,category,percentString,percent
An 'Autism Epidemic',"There's only been an increase in diagnoses of autism, caused by heightened awareness of the ailment, not incidence.",1130000,,body,0.11%,0.00114
The Left and right brains have different capabilities,No solid functional division; some functions activate some areas more than others. Left brain can learn 'right brain' functions and vice-versa.,2600000,"""left brain"" ""right brain"" different",brain,0.26%,0.00262
Adding salt to water makes it boil more quickly,"Naturally salted water will boil more quickly, because of the low heat capacity of the salt content but adding salt to fresh water will not make any difference.",11300000,,cooking,1.14%,0.01139
Oil stops pasta sticking,Does not prevent sticking. But it can stop the water foaming or boiling over.,5200000,,Cooking,0.52%,0.00524
You can get high from banana peel,"A hoax, perpetuated through the Internet. ",3390000,,drugs,0.34%,0.00342
George Washington smoked cannabis,He gr
@claudialexa
claudialexa / category_myths.csv
Created February 9, 2016 22:19
A sortable heatmap table
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 7 columns, instead of 2. in line 6.
myth,description,google_hits,y_n,category,percentString,percent
An 'Autism Epidemic',"There's only been an increase in diagnoses of autism, caused by heightened awareness of the ailment, not incidence.",1130000,,body,0.11%,0.00114
The Left and right brains have different capabilities,No solid functional division; some functions activate some areas more than others. Left brain can learn 'right brain' functions and vice-versa.,2600000,"""left brain"" ""right brain"" different",brain,0.26%,0.00262
Adding salt to water makes it boil more quickly,"Naturally salted water will boil more quickly, because of the low heat capacity of the salt content but adding salt to fresh water will not make any difference.",11300000,,cooking,1.14%,0.01139
Oil stops pasta sticking,Does not prevent sticking. But it can stop the water foaming or boiling over.,5200000,,Cooking,0.52%,0.00524
You can get high from banana peel,"A hoax, perpetuated through the Internet. ",3390000,,drugs,0.34%,0.00342
George Washington smoked cannabis,He gr
@claudialexa
claudialexa / betterlifeindex.csv
Created February 10, 2016 01:02
The co-relation between studying a lot and working long hours
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 25 columns, instead of 1. in line 6.
country,dwellingsWithoutBasicFacilities,housingExpenditure,roomsPerPerson,householdNetAdjustedDisposableIncome,householdNetFinancialWealth,employmentRate,jobSecurity,longTermUnemploymentRate,personalEarnings,qualityOfSupportNetwork,educationalAttainment,studentSkills,yearsInEducation,airPollution,waterQuality,consultationOnRuleMaking,voterTurnout,lifeExpectancy,selfReportedHealth,lifeSatisfaction,assaultRate,homicideRate,employeesWorkingVeryLongHours,timeDevotedToLeisureAndPersonalCare
Australia,1.1,20,2.3,31197,38482,72,4.4,1.06,46585,93,74,512,18.8,13,93,10.5,93,82,85,7.4,2.1,0.8,14.23,14.41
Austria,1,21,1.6,29256,48125,73,3.4,1.07,43837,95,82,500,16.9,27,95,7.1,75,81.1,69,7.5,3.4,0.5,8.61,14.46
Belgium,1.9,20,2.3,27811,78368,62,4.5,3.37,47276,91,71,509,18.8,21,84,4.5,89,80.5,74,7.1,6.6,1.2,4.41,15.71
Brazil,6.7,21,1.4,10310,6875,67,4.8,2.17,7909,90,43,402,16.3,18,67,4,79,73.4,69,7.2,7.9,25.5,10.74,14.97
Canada,0.2,22,2.5,30212,63261,72,6.6,0.9,44017,94,89,522,17,15,90,10.5,61,81,88,7.6,1.3,1.7,3.98,14.25
C
@claudialexa
claudialexa / category_myths.csv
Created February 15, 2016 02:47
A nicer chart about myths
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 7 columns, instead of 2. in line 6.
myth,description,google_hits,y_n,category,percentString,percent
An 'Autism Epidemic',"There's only been an increase in diagnoses of autism, caused by heightened awareness of the ailment, not incidence.",1130000,,body,0.11%,0.00114
The Left and right brains have different capabilities,No solid functional division; some functions activate some areas more than others. Left brain can learn 'right brain' functions and vice-versa.,2600000,"""left brain"" ""right brain"" different",brain,0.26%,0.00262
Adding salt to water makes it boil more quickly,"Naturally salted water will boil more quickly, because of the low heat capacity of the salt content but adding salt to fresh water will not make any difference.",11300000,,cooking,1.14%,0.01139
Oil stops pasta sticking,Does not prevent sticking. But it can stop the water foaming or boiling over.,5200000,,Cooking,0.52%,0.00524
You can get high from banana peel,"A hoax, perpetuated through the Internet. ",3390000,,drugs,0.34%,0.00342
George Washington smoked cannabis,He gr
@claudialexa
claudialexa / 2014_terrorism.csv
Created February 15, 2016 02:50
Terrorist Attacks 2014: In the Works
We can't make this file beautiful and searchable because it's too large.
year,country_id,country,region,latitude,longitude,success,suicide,attack_type,target_type,gname,weapon_type,nperps,nkill,nkillus,nkillter,nwound
2014,45,Colombia,South America,8.86879,-73.194094,1,0,Bombing/Explosion,Utilities,National Liberation Army of Colombia (ELN),Explosives/Bombs/Dynamite,-99,0,0,0,0
2014,182,Somalia,Sub-Saharan Africa,2.033333,45.35,1,1,Bombing/Explosion,Business,Al-Shabaab,Explosives/Bombs/Dynamite,2,4,0,1.5,20
2014,153,Pakistan,South Asia,30.191332,67.003051,1,1,Bombing/Explosion,Private Citizens & Property,Jaish-e-Islam,Explosives/Bombs/Dynamite,1,3,0,1,31
2014,153,Pakistan,South Asia,29.033333,69.15,0,0,Bombing/Explosion,Unknown,Unknown,Explosives/Bombs/Dynamite,-99,0,0,0,0
2014,182,Somalia,Sub-Saharan Africa,1.097128,42.598368,1,0,Hostage Taking (Kidnapping),NGO,Al-Shabaab,Unknown,-99,,0,0,
2014,95,Iraq,Middle East & North Africa,36.37658,43.18292,1,1,Bombing/Explosion,Military,Unknown,Explosives/Bombs/Dynamite,1,2,0,1,6
2014,95,Iraq,Middle East & North Africa,33.9976,44.365196,1,