Skip to content

Instantly share code, notes, and snippets.

@jackilyn
jackilyn / gist:5682660
Created May 31, 2013 02:38
WordPress Query Comprehensive Reference
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@jackilyn
jackilyn / browser-notepad.txt
Last active December 13, 2015 23:28
browser notepad
data:text/html, <html contenteditable style="font-family: source code pro">
@jackilyn
jackilyn / gist:4535185
Last active February 10, 2022 07:28
How to move your Creative Cloud Connection folder with a symbolic link.

How to Move Your Creative Cloud Connection Folder with a Symbolic Link.

  1. Stop the sync and exit the Creative Cloud Connection App.
  2. Move the 'Creative Cloud Files' Folder to a different location.
  3. Open up Terminal.app.
  4. Create symlink by typing this in the terminal: ln -s /Volumes/hdd/Creative\ Cloud\ Files ~/Creative\ Cloud\ Files
  5. Start the Creative Cloud Connection App again.
@jackilyn
jackilyn / Contract Killer 3.md
Created November 27, 2012 17:46
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@jackilyn
jackilyn / invert.svg
Created November 27, 2012 17:42
Print CSS
@media print {
header {
background: none;
color: #000;
}
header img {
filter: url(inverse.svg#negative);
-webkit-filter: invert(100%);
filter: invert(100%);
}
@jackilyn
jackilyn / media-queries.css
Created November 19, 2012 18:13
Media Queries for Standard Devices
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@jackilyn
jackilyn / meta-tags.md
Created October 5, 2012 22:59 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content="your website's subject">
<meta name='copyright' content='company name'>
@jackilyn
jackilyn / gist:3782921
Created September 25, 2012 16:23
iOS 6 File Uploads
<!-- To let users take a picture from your web app, you’d use a file input tag something like this: -->
<input type="file" accept="image/*" capture="camera">
<!-- others -->
<input type="file" accept="video/*" capture="camcorder">
<input type="file" accept="audio/*" capture="microphone">
@jackilyn
jackilyn / gist:3753045
Created September 19, 2012 23:37
Detecting iPhone 5
@media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) {
/* iPhone 5 or iPod Touch 5th generation */
}
@jackilyn
jackilyn / gist:3035146
Created July 2, 2012 19:28
jQuery Smooth Scroll to #anchor
$(document).ready(function() {
$("a.topLink").click(function() {
$("html, body").animate({
scrollTop: $($(this).attr("href")).offset().top + "px"
}, {
duration: 500,
easing: "swing"
});
return false;