Skip to content

Instantly share code, notes, and snippets.

@KinnaT
KinnaT / customstyles.css
Created August 18, 2015 19:02 — forked from anonymous/customstyles.css
Shortcodes Ultimate 4-Post Template
a {
//color: #1E1E1E: ;
// you can change the color of the hyperlinked title here: ;
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
@KinnaT
KinnaT / Technic_log.txt
Created March 20, 2016 03:04
Copy of the contents from Technic\logs\techniclauncher_2016-03-19.log
This file has been truncated, but you can view the full file.
***
NOTES:
I had given the game 6GB of RAM (out of 16) but it crashed more. It's more stable with 4GB, probably due to the inherent limitations of Java.
System specs available upon request, but my system wasn't struggling at this point. This is just the full dump from teh Technic launcher log because the crashes aren't consistent from a gameplay standpoint.
I changed teh keybinds, because E for inventory makes zero sense. Most of them are the defaults though. When I go into the keybind GUI, it WILL crash the game. Every time. It won't if I access it from the world selection screen though.
I really like this pack and just want it to stop crashing :(
End transmission.
***
[B#347] 2016/03/19 21:09:54 [INFO] [21:09:54] [Client thread/INFO] [TabbyChat2]: [CHAT] KinnaT has just earned the achievement [Monster Hunter]
@KinnaT
KinnaT / sliders-functional.php
Last active August 19, 2016 09:41
Functional selectable sliders as page meta option - accounts for the Revolution Slider and Smart Slider 3 plugins, trivial to add support for more plugins
<?php
//
// Adding meta boxes for sliders to page options:
//
$config = array(
'title' => __('General Options', 'theme_admin'),
'group_id' => 'general',
'context' => 'normal',
'priority' => 'low',
'types' => array( 'page' )
@KinnaT
KinnaT / sliders-functional-clean.php
Last active May 3, 2016 19:36
Functional selectable sliders as page meta option, uncommented version - accounts for the Revolution Slider and Smart Slider 3 plugins, trivial to add support for more plugins
<?php
// content.php
$config = array(
'title' => __('General Options', 'theme_admin'),
'group_id' => 'general',
'context' => 'normal',
'priority' => 'low',
'types' => array( 'page' )
);
$options = array(
@KinnaT
KinnaT / responsive-header-functions.js
Created June 23, 2016 14:58
jQuery header functions for making header sticky and moving the content down to match the responsive (variable) height
// Because the header changes height based on the variable height of the logo, position of the social box and height of the mobile menu
// Changes top margin of main content on resizing browser width
// Uncomment console.logs to check values against element heights
$j=jQuery.noConflict();
$j(window).on("load resize", function () {
if (window.innerWidth > 600) {
var headerHeight = jQuery(".header").height();
var navHeight = jQuery(".menu-container").outerHeight();
var combinedHeight = headerHeight + navHeight;
@KinnaT
KinnaT / doorLock.as
Created September 15, 2016 03:06
Glitch locked door functions - embedded in .fla
import flash.utils.setTimeout;
// public!
// key_id is a string number, 1 though 12, which corresponds to the keyhole(1-12) symbols on the stage
function showLock(key_id:String):void {
chains.visible = true;
showKeyhole(key_id);
}
// public!
@KinnaT
KinnaT / content-espresso_events-datetimes.php
Created September 20, 2016 21:23
Filter EE4 Datetime view on single event page to collapse datetimes behind a "show" link if there are more than 3 datetimes.
/********
Required:
Add the following JS to your custom plugin or child theme (requires jQuery):
$('.toggle-button').click(function(){ $('div.datetime-container').toggle(); });
Add the following CSS to your custom plugin or child theme, but style as necessary to fit your needs:
.datetime-container { display: none; }
********/
@KinnaT
KinnaT / people_type_event_metabox_details.template.php
Last active November 3, 2016 18:36
EE4 People add-on - filter out all but current user's people, also show only people of that type in each type's metabox
<?php
/**
* This is a custom template for people metabox(es) content on the EE Event CPT page.
*/
?>
<div id="cpt_to_people_container_<?php echo $people_type->get('term_taxonomy_id'); ?>">
<p class="description"><?php echo $people_type->get('description'); ?></p>
<?php if ( empty( $people ) ) { ?>
<?php printf( __( 'There are no people in the system. Go ahead and %screate one now%s.', 'event_espresso' ), '<a href="' . $create_person_link . '" target="_blank">', '</a>' ); ?>
@KinnaT
KinnaT / people_type_event_metabox_details.template.php
Created November 4, 2016 16:33
EE4 People - filter out all but current user's people (with bypass for admins), also show only people of that type in each type's metabox
<?php
/**
* This is a custom template for people metabox content on the EE CPT page.
*
* Template Args available are:
* @type $people_type EE_Term_Taxonomy people type taxonomy term object
* @type $type EE_Term Term being displayed.
* @type $people EE_Person[] All the published people from the db (@todo need to do paging/filtering here)
* @type $assigned_people EE_Person[] Currently assigned persons for this display.
* @type $create_person_link string URL to create a new person.
@KinnaT
KinnaT / loop-espresso_event_details.php
Last active January 12, 2017 21:14
EE4 - grabbing various info from the db inside the WP loop for template use
<?php
if( have_posts() ){
while ( have_posts() ){ the_post(); // enter the WordPress loop
$id = get_the_ID(); // get the ID of the current post in the loop, post ID = EVT_ID
$terms = get_the_terms( $id, 'espresso_event_categories' ); // get the event categories for the current post
if ( $terms && ! is_wp_error( $terms ) ) {
$cats = array();
foreach ( $terms as $term ) {