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
// Segment.io tracking: which modules were selected? | |
var props = {}; | |
var $chkboxes = $('.module-option input[type=checkbox]'); | |
$chkboxes.each(function() { | |
props[$(this).attr('name')] = $(this).attr('checked'); | |
}); | |
analytics.trackForm(form, 'Build Created', props); |
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 id="footer"> | |
<span id="footer-img"><img src="/images/logo-sm.png" width="58" height="22" alt="ZingCharts" /></span> | |
<div class="nav"> | |
<?php | |
$menu = array("Home"=>"$prefix/", "Download"=>"http://www.zingchart.com/download/", "Purchase"=>"$securePrefix/store/buy.php", "Learn"=>"/reference/", "Support"=>"$prefix/support/", "About"=>"$prefix/about/", "Privacy"=>"$prefix/privacy/", "Terms"=>"$prefix/legal/tc.php", "Site Map"=>"$prefix/sitemap/", "White Papers"=>"$prefix/assets/pdf/zc-brochure.pdf"); | |
foreach ($menu as $key => $value){ | |
if ($current_location == $key){ | |
echo $key . " "; | |
} else if ($key == "White Papers") { | |
echo "<a href='$value' target='_blank' id='white_papers_link'>$key</a> "; |
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
$('#tools li').each(function() { | |
analytics.trackLink($(this), 'Social Link', { | |
platform: $(this).attr('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
<ul data-zc-options id="track_render"> | |
<li class="active">HTML 5</li> | |
<li>Flash</li> | |
<li>SVG</li> | |
<li>Image</li> | |
<li>VML</li> | |
</ul> |
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": [ "order" ], | |
"properties": { | |
"orderNumber": 42, | |
"itemCount": 3, | |
"status": "pending" | |
}, | |
"entities": [ | |
{ | |
"class": [ "items", "collection" ], |
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
{ | |
"href": "http://api.x.io/orders/42", | |
"data": { | |
"properties": { | |
"orderNumber": 42, | |
"itemCount": 3, | |
"status": "pending" | |
}, | |
"links": [ | |
{ "rel": [ "profile" ], "href": "/profiles/order" }, |
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
$a = new Thing (a, b); | |
$cccc = new OtherThing (x, y, z); | |
$ddddd = new AnotherThing(m); |
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
// John's code | |
$array = [ | |
'fuwhefuiwe' => new Thing(wefuhwe, wefiuwehfuw, json_encode(weifuhwe)), | |
'uiwefhiwe' => new Thing(weuifhwegtrtrhrth, weoifwe, json_encode(weiufwe)), | |
'fuw' => new Thing(ef, gfe, json_encode(regfre)), | |
'fuwhefuiwe' => new Thing(wefuhwe, wefiuwehfuw, son_encode(weifuhwe)), | |
'uiwefhiwe' => new Thing(weuifdsfghwe, weoifwe, json_encode(weiufwe)), | |
'fuw' => new Thing(ef, gfe, json_encode(regfre)), | |
'fuwhefuiwe' => new Thing(wefuhwe, wefiuwehfuw, json_encode(weifuhwe)), | |
'uiwefhiwe' => new Thing(weuidfgfhwe, weoifwe, json_encode(weiufwe)), |
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
, | |
,-. _,---._ __ / \ | |
/ ) .-' `./ / \ | |
( ( ,' `/ /| | |
\ `-" \'\ / | | |
`. , \ \ / | | |
/`. ,'-`----Y | | |
( ; | ' | |
| ,-. ,-' | / | |
| | ( | | / |
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
<?php | |
namespace MyApplication\Controller; | |
use Hydrogen\Controller; | |
use Hydrogen\MultiTemplateRenderer; | |
class Error extends Controller | |
{ | |
use MultiTemplateRenderer; | |