document.write('<link rel="stylesheet" href="http://gist.github.com/stylesheets/gist/embed.css"/>')





document.write('<div id=\"gist-131712\" class=\"gist\">\n  \n  \n    \n            \n\n      <div class=\"gist-file\">\n        <div class=\"gist-data gist-syntax\">\n          \n          \n          \n            <div class=\"gist-highlight\"><pre><div class=\"line\" id=\"LC1\"><span class=\"nt\">&lt;Update&gt;<\/span><\/div><div class=\"line\" id=\"LC2\">	<span class=\"nt\">&lt;location&gt;<\/span>All over.<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC3\">	<span class=\"nt\">&lt;location&gt;<\/span>Tehran<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC4\">	<span class=\"nt\">&lt;location&gt;<\/span>So Cal<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC5\">	<span class=\"nt\">&lt;location&gt;<\/span>Van Ness Ave<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC6\">	<span class=\"nt\">&lt;location&gt;<\/span>Probably in a dark place<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC7\">	<span class=\"nt\">&lt;location&gt;<\/span>Tehran <span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC8\">	<span class=\"nt\">&lt;location/&gt;<\/span><\/div><div class=\"line\" id=\"LC9\">	<span class=\"nt\">&lt;location&gt;<\/span>Shangri La<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC10\">	<span class=\"nt\">&lt;location/&gt;<\/span><\/div><div class=\"line\" id=\"LC11\">	<span class=\"nt\">&lt;location&gt;<\/span>tehran<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC12\">	<span class=\"nt\">&lt;location&gt;<\/span>EVERYWHERE!!!!<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC13\">	<span class=\"nt\">&lt;location&gt;<\/span>God&#39;s Country<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC14\">	<span class=\"nt\">&lt;location&gt;<\/span>Tehran<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC15\">	<span class=\"nt\">&lt;location&gt;<\/span>Terahn <span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC16\">	<span class=\"nt\">&lt;location&gt;<\/span> Tehran<span class=\"nt\">&lt;/location&gt;<\/span><\/div><div class=\"line\" id=\"LC17\"><span class=\"nt\">&lt;/Update&gt;<\/span><\/div><div class=\"line\" id=\"LC18\">&nbsp;<\/div><\/pre><\/div>\n          \n        <\/div>\n\n        <div class=\"gist-meta\">\n          <a href=\"http://gist.github.com/raw/131712/29cd2075838de97ea0c6100691265847bc52b0aa/iranelection-tweet-locations-pg1.xml\" style=\"float:right;\">view raw<\/a>\n          <a href=\"http://gist.github.com/131712#file_iranelection_tweet_locations_pg1.xml\" style=\"float:right;margin-right:10px;color:#666\">iranelection-tweet-locations-pg1.xml<\/a>\n          <a href=\"http://gist.github.com/131712\">This Gist<\/a> brought to you by <a href=\"http://github.com\">GitHub<\/a>.\n        <\/div>\n      <\/div>\n    \n            \n\n      <div class=\"gist-file\">\n        <div class=\"gist-data gist-syntax\">\n          \n          \n          \n            <div class=\"gist-highlight\"><pre><div class=\"line\" id=\"LC1\">xquery version &quot;1.0&quot;;<\/div><div class=\"line\" id=\"LC2\">declare namespace atom=&quot;http://www.w3.org/2005/Atom&quot;;<\/div><div class=\"line\" id=\"LC3\">for $doc in doc(&quot;http://search.twitter.com/search.atom?q=iranelection&quot;)//atom:uri<\/div><div class=\"line\" id=\"LC4\">let $user := substring-after($doc, \'com/\')<\/div><div class=\"line\" id=\"LC5\">let $userURI := concat(&quot;http://twitter.com/users/show/&quot;, $user)<\/div><div class=\"line\" id=\"LC6\">for $loc in doc($userURI)//location<\/div><div class=\"line\" id=\"LC7\">return<\/div><div class=\"line\" id=\"LC8\">$loc<\/div><\/pre><\/div>\n        \n        <\/div>\n\n        <div class=\"gist-meta\">\n          <a href=\"http://gist.github.com/raw/131712/c192d0a1133becd58d6c0c80709222529dc8e293/iranelection-tweet-locations.xql\" style=\"float:right;\">view raw<\/a>\n          <a href=\"http://gist.github.com/131712#file_iranelection_tweet_locations.xql\" style=\"float:right;margin-right:10px;color:#666\">iranelection-tweet-locations.xql<\/a>\n          <a href=\"http://gist.github.com/131712\">This Gist<\/a> brought to you by <a href=\"http://github.com\">GitHub<\/a>.\n        <\/div>\n      <\/div>\n    \n  \n<\/div>\n')
