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
| The Daily Beast is seeking a News Apps / Data intern starting in January for the Spring semester. | |
| The intern would work directly with our current Data and News Apps Reporter and assist in working | |
| between the Social Media and Developer teams. An interest in working on both deadline stories as well | |
| as longer term newsroom projects is required. Knowledge of HTML/CSS and JavaScript is required and | |
| knowledge of SQL, PostGIS, R, Python, or Ruby preferable. | |
| As a part of the News Apps / Data team, you'll be working on projects like this | |
| (http://www.thedailybeast.com/articles/2012/11/15/not-so-super-pacs-2012-s-winners-and-losers.html) | |
| and this (http://www.thedailybeast.com/articles/2012/09/19/the-dark-money-shuffle-a-map.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
| STATE|STUSAB|STATE_NAME|STATENS | |
| 01|AL|Alabama|01779775 | |
| 02|AK|Alaska|01785533 | |
| 04|AZ|Arizona|01779777 | |
| 05|AR|Arkansas|00068085 | |
| 06|CA|California|01779778 | |
| 08|CO|Colorado|01779779 | |
| 09|CT|Connecticut|01779780 | |
| 10|DE|Delaware|01779781 | |
| 11|DC|District of Columbia|01702382 |
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
| $(this).children()[0].textContent |
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
| SELECT ST_Multi(ST_Union(the_geom)) as the_geom, cols... FROM table GROUP BY cols... |
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
| // An improved ajax call removing the callback parameter | |
| $.ajax({ | |
| url:'http://open.mapquestapi.com/geocoding/v1/address?&inFormat=kvp&outFormat=json&location='+city+','+state, | |
| dataType:'JSONP', | |
| city:city, | |
| state:state, | |
| success: function(data){ | |
| console.log(y,this.city,this.state,data) | |
| } | |
| }); |
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
| #states_from_esri_subc{ | |
| text-name: [state_abbr]; | |
| text-face-name: 'DejaVu Sans Book'; | |
| text-size: 10; | |
| text-fill: #000; | |
| text-allow-overlap: true; | |
| text-halo-fill: #ccc; | |
| text-halo-radius: 0; | |
| } |
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
| // BEGIN GEOCODING | |
| $adrsInput = $('#address-submit'); | |
| $adrsText = $('#address-text') | |
| var geocoder, | |
| firstRun = true, | |
| markerGroup; | |
| var geoCode = function(address) { | |
| $.ajax({ | |
| url:'http://open.mapquestapi.com/geocoding/v1/address?&inFormat=kvp&outFormat=json&location='+address, |
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>Ganttttttttttttt</title> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script> | |
| <style> | |
| .axis path, | |
| .axis line { | |
| fill: none; | |
| stroke: none; | |
| shape-rendering: crispEdges; |
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
| d <- read.csv("all_posts.csv", stringsAsFactors=F) | |
| pattern <- "regex here" | |
| d$guns <- 0 | |
| d$guns[grep(pattern, d$text)] <- 1 | |
| d_guns <- d[d$guns==1,] | |
| write.csv(d_guns, "gun_posts.csv", row.names=F) |
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
| CNN — Mauritania: Slavery's Last Stronghold (http://bit.ly/H7vA26) | |
| Pitchfork — Glitter in the dark: Bat for Lashes Profile (http://bit.ly/TBuXDU) | |
| USA Today — Smelting and Lead Contamination (http://usat.ly/TBuZMa) | |
| NY Times — Coming Out (http://nyti.ms/TBw9Hu) | |
| Guardian US — America: Elect! The action-packed journey to US election day in graphic novel form (http://bit.ly/SWM1Gx) | |
| NY Times — This Land (http://nyti.ms/11KDHBY) | |
| National Film Board of Canada — This Land (http://bit.ly/11KDJKn) |