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
tap 'caskroom/cask' | |
tap 'caskroom/fonts' | |
brew 'git' | |
brew 'node' | |
brew 'zsh' | |
brew 'bash-completion' | |
brew 'python' | |
cask '1password' | |
cask 'agenda' |
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
Array | |
( | |
[0] => 479018 | |
[1] => 470821 | |
[2] => 470714 | |
[3] => 470680 | |
[4] => 470549 | |
[5] => 470545 | |
[6] => 470500 | |
[7] => 470498 |
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
// add open class to dropdown menu when hovered over | |
$(function() { | |
$(".dropdown").hover( | |
function(){ $(this).addClass('open'); }, | |
function(){ $(this).removeClass('open'); } | |
); | |
}); |
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
// CUSTOM CODE that checks ustream and displays banner if it's live | |
// GET URL represented as https://api.ustream.tv/channels/CHANNEL_ID.json | |
$.getJSON('https://api.ustream.tv/channels/5817556.json', function(data) | |
{ | |
// if the channel status is live then do something | |
if (data.channel.status == 'live') | |
{ | |
// alert('Its live!'); | |
} | |
}); |
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
function setEqualHeight(columns) { | |
// define our variables | |
var tallestcolumn = 0; | |
var currentHeight = 0; | |
// .each() iterates over a jquery object (in this case our columns argument) | |
columns.each( | |
function() { | |
// assign currentHeight variable the height of the current DOM element in our loop | |
currentHeight = jQuery(this).height(); | |
// is the currentHeight variable larger than the currentHeight variable? |
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
.soliloquy-container { | |
.soliloquy { | |
ul.soliloquy-slides { | |
li.soliloquy-item { | |
img.soliloquy-item-image { | |
// make sure the image fills the width of the container |
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 | |
/* Add a custom field to the field editor (See editor screenshot) */ | |
add_action("gform_field_standard_settings", "my_standard_settings", 10, 2); | |
function my_standard_settings($position, $form_id){ | |
// Create settings on position 25 (right after Field Label) | |
if($position == 25){ | |
?> | |
<li class="admin_label_setting field_setting" style="display: list-item; "> |
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 | |
/* | |
---------------------------------------------------------------------------------------------------------- | |
On themes that already have built in support, all you have to do is add <!--nextpage--> via the html | |
editor on WordPress where you want to add a new page to your post. If your theme doesn't have | |
intrisic support already built in for this then you can add it with one line: | |
<?php wp_link_pages(); ?> | |
References: |
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 | |
// Use this to retrieve the URL of the featured post thumbnail. | |
// You can change the 'thumbnail' part to any wordpress image size (eg full, medium, thumbnail, etc.). | |
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', true); | |
echo $thumb_url[0]; | |
?> |
NewerOlder