Skip to content

Instantly share code, notes, and snippets.

View dblodorn's full-sized avatar
🥁
Jamming @ourzora

ᦔꪖ꠸ꪀ ᥇ꪶꪮᦔꪮ᥅ꪀ ᛕ꠸ꪑ dblodorn

🥁
Jamming @ourzora
View GitHub Profile

Greensock TimelineLite / Tweenlite Starter

An extremely simplified greensock / tweenlite animation template to get an animation sketch started!

A Pen by dain blodorn on CodePen.

License.

@dblodorn
dblodorn / Vanilla JS ScrollChecker Snippet.markdown
Created December 1, 2015 20:01
Vanilla JS ScrollChecker Snippet
@dblodorn
dblodorn / Jquery ScrollChecker Snippet.markdown
Created December 1, 2015 20:01
Jquery ScrollChecker Snippet
@dblodorn
dblodorn / Downtown Boogie BBCN Woogie.markdown
Created December 11, 2015 07:57
Downtown Boogie BBCN Woogie
@dblodorn
dblodorn / DB13 Animated Logo.markdown
Created December 11, 2015 07:59
DB13 Animated Logo
@dblodorn
dblodorn / DB13 Animated Logo.markdown
Created December 13, 2015 19:52
DB13 Animated Logo
module.exports = function ( gulp, ftp ) {
return function () {
var user = '**username**',
// Insert your password, host, etc
password = '**password**',
host = '**host.host**',
port = 21,
// only upload files in the theme directory
localFilesGlob = ['*.php' , 'css/**/*.css', 'imgs/**/*', 'js/**/*.js','style.css'],
@dblodorn
dblodorn / post-exclude.php
Last active May 18, 2016 17:06
Repeat posts but exclude the current ID - Worpdress
<?php $excludePOST = get_the_ID(); // Set a variable with the value of the current post ?>
<h1>Current Post: <?php echo $excludePOST; ?></h1>
<?php $args = array( 'posts_per_page' => 100, 'post_type' => 'foo'); query_posts($args); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $currentID = get_the_ID(); // The post ID of each post to be repeated?>
<?php if ($currentID != $excludePOST): // Show posts other than the one we are looking at?>
<p>Preview Post: <?php echo $currentID; ?></p>
<?php endif ?>
<?php endwhile; ?>
<?php endif; ?>
@dblodorn
dblodorn / prev-next.php
Created May 18, 2016 17:27
Previous Next for Custom Post Type - Wordpress
<?php if(is_singular('foo')): ?>
<div class="prev-next-nav">
<div class="prev-post"><?php previous_post_link('%link', 'PREVIOUS') ?></div>
<div class="next-post"><?php next_post_link('%link', 'NEXT') ?></div>
</div>
<?php endif; ?>
@dblodorn
dblodorn / webpack.production.config.js
Created June 21, 2016 21:07
webpack production config:
/*eslint-env node */
'use strict';
const path = require('path');
const webpack = require('webpack');
const PATHS = {
app: path.join(__dirname, './public/_js/')
};
module.exports = {
entry: {