Skip to content

Instantly share code, notes, and snippets.

<div class="marqueecontainer">
<div>
<ul>
<li><p>slide #1</p></li>
<li><img src="slide_two.png" /></li>
</ul>
</div>
</div>
<div class="marquee">
<div>
<ul>
<li>...</li>
<li>...</li>
</ul>
</div>
</div>
@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,
@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 / 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>
<!-- 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 / 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

@sean9999
sean9999 / keybase.md
Created September 3, 2015 06:53
keybase proof

Keybase proof

I hereby claim:

  • I am sean9999 on github.
  • I am code_monk (https://keybase.io/code_monk) on keybase.
  • I have a public key whose fingerprint is 7495 0A4D 15A7 704F 61DE 53D1 214B 608D D58B 5BCD

To claim this, I am signing this object:

@sean9999
sean9999 / keybase.md
Created September 15, 2015 04:47
keybase identity proof

Keybase proof

I hereby claim:

  • I am sean9999 on github.
  • I am code_monk (https://keybase.io/code_monk) on keybase.
  • I have a public key whose fingerprint is B526 710C C273 5665 E7EF 655A 455B 20A9 7C6B 0A7F

To claim this, I am signing this object:

@sean9999
sean9999 / .Xdefaults
Created September 27, 2016 22:08 — forked from yevgenko/.Xdefaults
URxvt settings with solarized theme
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight