Skip to content

Instantly share code, notes, and snippets.

@maciekish
maciekish / Anet+A6_settings.inst.cfg
Last active September 21, 2024 10:47
Anet A6 profile for Cura 3.5. Start Cura once, create a custom printer called "Anet A6" without changing any of the settings and close Cura. Save and overwrite both files in "AppData\Roaming\cura\3.1\definition_changes" and start Cura again.
[general]
version = 4
name = Anet A6_settings
definition = custom
[metadata]
setting_version = 5
type = definition_changes
[values]
@johnkvang
johnkvang / four-column-acf-list
Created August 19, 2016 15:24
Create a 4-Column list looping through an ACF Repeater Field
// This snippet will loop through my ACF Repeater Field and create a large list of websites (or whatever you want).
// Then it will create 4 individual lists from that large list of websites. Making it easier for me
// to style and/or create a 4-column list.
<?php
// Name of Repeater field
$names_array = get_field( 'field_name' );
// Counts Users
$name_count = count( $names_array );
@luetkemj
luetkemj / wp-query-ref.php
Last active February 3, 2025 10:58
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/