Skip to content

Instantly share code, notes, and snippets.

View ThatGuySam's full-sized avatar
🍉
Discovering the wonders of JAMStack

Sam Carlton ThatGuySam

🍉
Discovering the wonders of JAMStack
View GitHub Profile
@ThatGuySam
ThatGuySam / new_gist_file
Created June 11, 2013 21:02
Guts Chop Campus Javascript
WebFontConfig = {
google: { families: [ 'Oswald:400,300,700:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
@ThatGuySam
ThatGuySam / holidays.php
Created May 23, 2013 21:01
Just thought I'd post this save someone some time: Auto generates american holidays for the current year for FullCalendar by arshaw
<?php $year = date('Y'); ?>
[
{
start: new Date( <?php echo $year . ', 1-1, 1'; ?> ),
url: "http://wikipedia.org/wiki/New_Year%27s_Day" ,
title: "New Year's Day",
allDay: true,
category: "Holidays",
},
{
@ThatGuySam
ThatGuySam / dabblet.css
Created February 15, 2013 22:32 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
<div id="hero-carousel" class="sliderContainer visibleNearby fullWidth clearfix royalSlider-preview">
<div id="hero-gallery" class="royalSlider rsDefault">
<?php
function gallery_func( $atts ) {
extract( shortcode_atts( array(
'ids' => 'something'
), $atts ) );
$sep_ids = explode(",", $ids);
<?php if(get_field('posts_category') != ""): ?>
<?php $slide_posts = new WP_Query(); ?>
<?php $slide_posts->query('category_name=' . get_field(posts_category) ); ?>
<?php $count = $slide_posts->post_count; ?>
<section>
<div class="sliderContainer visibleNearby fullWidth clearfix royalSlider-preview">
<div class="rsHeight">
<div id="four-up-gallery" class="carousel-gallery royalSlider rsDefault">
<div class="carouselSlide">