Using d3.js and custom 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
<!-- GPT Asynchronous Header Code --> | |
<script type='text/javascript'> | |
var googletag = googletag || {}; | |
googletag.cmd = googletag.cmd || []; | |
(function() { | |
var gads = document.createElement('script'); | |
gads.async = true; | |
gads.type = 'text/javascript'; | |
var useSSL = 'https:' == document.location.protocol; | |
gads.src = (useSSL ? 'https:' : 'http:') + |
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
<!-- GPT Asynchronous Header Code --> | |
<script type='text/javascript'> | |
var googletag = googletag || {}; | |
googletag.cmd = googletag.cmd || []; | |
(function() { | |
var gads = document.createElement('script'); | |
gads.async = true; | |
gads.type = 'text/javascript'; | |
var useSSL = 'https:' == document.location.protocol; | |
gads.src = (useSSL ? 'https:' : 'http:') + |
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
-111,7 +111,7 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga | |
111 111 | |
<% [:confirmation, :notice, :warning, :error].each do |msg| %> | |
112 112 | |
<% if flash[msg].present? %> | |
113 113 | |
<div class="container alert <%= msg.to_s %>"> | |
114 | |
- <%= flash[msg] %>asdfasdf asdf as dfa | |
114 |
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
<% if HARK_CONFIG.enable_chartbeat %> | |
<script type="text/javascript"> | |
var _sf_async_config={uid:<%= HARK_CONFIG.chartbeat_uid %>, domain:<%= HARK_CONFIG.chartbeat_domain.inspect.html_safe %>}; | |
(function(){ | |
function loadChartbeat(){ | |
window._sf_endpt = (new Date()).getTime(); | |
var e = document.createElement('script'); | |
e.setAttribute('language', 'javascript'); | |
e.setAttribute('type', 'text/javascript'); | |
e.setAttribute('src', |
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
class ClipModel | |
attr_accessor :type, :owner, :time, :count, :title, :url, :description, :quote, :one_liner, :sponsored, :image, :characters, :actors | |
@@clip = {} | |
def initialize(clip) | |
@@clip = clip | |
end | |
def raw |
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
v = [ 1, 2, 3 ] | |
b = v | |
b = [ 2, 3, 4 ] | |
puts v | |
# expected output [ 2, 3, 4] actual output [ 1, 2, 3] | |
# in this case it appears that the [ ] operator does not overwrite the values in the | |
# array v as I would expect | |
v = [ 2, 5, 3 ] |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<style type="text/css"> | |
/* Rule 201 of /cache/stylesheets/all.css?1300904331 */ .partner_searches .partner_box { MARGIN: 0px 0px 25px} /* Rule 198 of /cache/stylesheets/all.css?1300904331 */ .partner_searches { CLEAR: both; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 10px; MARGIN: 0px 0px 30px; PADDING-TOP: 10px} /* Rule 91 of /cache/stylesheets/all.css?1300904331 */ #left { FLOAT: left; WIDTH: 644px} /* Rule 485 of /cache/stylesheets/all.css?1300904331 */ #left { MARGIN-TOP: 13px} /* Rule 129 of /cache/stylesheets/all.css?1300904331 */ #main { CLEAR: both; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; MIN-HEIGHT: 510px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} /* Rule 18 of /cache/stylesheets/all.css?1300904331 */ #content { TEXT-ALIGN: left} /* Rule 17 of /cache/stylesheets/all.css?1300904331 */ #wrap { MARGIN: 0px auto; WIDTH: 970px} /* Rule |
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
<div style='width:644px; height:200px;'> | |
<div class="ad_container" id="endemic_panel3_success_arc"> | |
<p id="wsfy_top_sponsor" class="ad_sponsored_top">Sponsored Links WSFY3</p> | |
<h2 id='wsfy_headline'>Other people searching for %%AAMGNRC1%% %%AAMGNRC2%%</h2> | |
<div id='wsfy_teaser_data'> | |
<h3 id='wsfy_teaser_count'>[[searchers_count]]+ people are searching for %%AAMGNRC1%% including...</h3> | |
<div id='wsfy_teaser_details_container'> | |
<div id='wsfy_teaser_repeat_placeholder'> </div> |