Skip to content

Instantly share code, notes, and snippets.

@sean9999
sean9999 / koomol_schema_01.adoc
Last active August 29, 2015 14:03
people and cars

People and Cars

This Graph desrcribes a social network centered around files. The application’s mandate is to offer users the ability to organize and share files in an efficient, intuitive, and privacy-preserving way. Specifically, it allows users to:

  1. tag their own files

  2. share their files with friends

  3. tag files that have been shared to them by friends

  4. see tags that friends of friends have applied to files, but not have privacy state changed by this event

  5. share tags themselves, so that the shareability of files can be managed in sets

<!-- begin coupon code -->
<a href="http://www.bulkbarn.ca/en-ca/index.html" onclick="document.getElementById('c').src=document.getElementById('v5').src;window.print();document.cookie='sawcoupon=yes';return true"><img src="http://sjc.io/bulkbarn/coupon_v6_en.jpg" style="display: none;" onload="if ( /sawcoupon/.test(document.cookie) ) { this.style.display = &quot;none&quot;; } else { this.style.display = &quot;inline-block&quot; }" id="c">
<img src="http://sjc.io/bulkbarn/coupon_v5_en.jpg" hidden="hidden" style="display: none" id="v5" />
<!-- end coupon code -->
@sean9999
sean9999 / index.html
Created March 2, 2013 22:03
A CodePen by Sean Macdonald.
<h1>JSON Pretty Print</h1>
<p>When developing php applications, it is often helpful to dump variables. <code class="language-clike">var_dump()</code> or <code class="language-clike">print_r()</code> can used, but are not very readable for large complex data structures. <a href="http://dbug.ospinto.com/">The <code class="language-clike">dBug()</code> class</a> is a great alternative which improves readability, but is bad at distinguishing numbers, strings, null values, and boolean values. JSON Pretty Print (<code class="language-clike">jpp()</code>) seeks to address these issues by displaying data as colour-coded and formatted JSON. Let's dive in...</p>
<h2>Initialize you data</h2>
<pre><code class="language-clike">&lt;?php
require 'class.JSON.php';
$json = new JSON($data);
?&gt;</code></pre>
@sean9999
sean9999 / jquery.important.js
Created August 13, 2012 03:53
adding important css
$("#pantry_boxes-products").on("mouseover",".box-product",function(event) {
$(this).children(".box-product-expanded").stop(true,false).animate({
opacity: 1,
"z-index": "50 !important"
},
{ "duration": 150 }
);
});
$("#pantry_boxes-products").on("mouseout",".box-product",function(event) {
@sean9999
sean9999 / smt.php
Created August 10, 2012 21:04
solsmart mongo thingy
<?php
$criteria = array(
'content.Testimonial.en' => array('$ne' => '')
);
$fields = array(
'content.Testimonial.en'
);
$q = array(
'criteria' => $criteria,
'fields' => $fields,
<div class="marquee">
<div>
<ul>
<li>...</li>
<li>...</li>
</ul>
</div>
</div>
<div class="marqueecontainer">
<div>
<ul>
<li><p>slide #1</p></li>
<li><img src="slide_two.png" /></li>
</ul>
</div>
</div>