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
A = thisComp.layer("yratof_1_2017-10-09_0051_C0008.mov").effect( "Face Track Points" )( "Mouth Right" ); | |
B = thisComp.layer("yratof_1_2017-10-09_0051_C0008.mov").effect( "Face Track Points" )( "Mouth Left" ); | |
SideA = sub(A, B)[1]; | |
SideB = sub(A, B)[0]; | |
radiansToDegrees(Math.atan2(SideA, SideB)) + 180; |
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
jQuery(document).ready(function ($) { | |
$('.slider-for').slick({ | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
arrows: false, | |
fade: true, | |
asNavFor: '.slider-nav', | |
autoplay: true |
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
{ | |
"printer_type_id": "26", | |
"layer_height": "0.2", | |
"wall_thickness": "0.8", | |
"nozzle_size": "0.4", | |
"bottom_thickness": "0.2", | |
"filament_diameter": "1.75", | |
"filament_flow": "120", | |
"solid_top": "1", | |
"solid_bottom": "1", |
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 | |
class image_renaming { | |
// The filter runs when resizing an image to make a thumbnail or intermediate size. | |
static function image_renaming(){ | |
add_filter( 'image_make_intermediate_size', __CLASS__ . '::wpse_123240_rename_intermediates' ); | |
} | |
static function wpse_123240_rename_intermediates( $image ) { |
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 | |
class acf_filter_post_object { | |
static function setup() { | |
add_filter( 'acf/fields/post_object/query/name=FIELD_NAME', __CLASS__ . '::only_current_terms', 10, 3 ); | |
} | |
/* | |
Only current terms to be shown within the taxonomy |
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 | |
class order_status_customisation { | |
/** | |
* Setup actions | |
*/ | |
static function setup() { | |
add_action( 'init', __CLASS__ . '::adding_additional_order_statuses', 10 ); | |
add_filter( 'wc_order_statuses', __CLASS__ . '::add_awaiting_shipment_to_order_statuses', 10, 1 ); |
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
input.onButtonPressed(Button.A, () => { | |
radio.sendNumber(0) | |
for (let i = 0; i < 10; i++) { | |
basic.showLeds(` | |
. . # . . | |
. # . . . | |
# # # # # | |
. # . . . | |
. . # . . | |
`) |
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 imgLoaded(imgElement) { | |
return imgElement.complete && imgElement.naturalHeight !== 0; | |
} | |
$ = jQuery; | |
$('img').each( function(){ | |
if ( ! imgLoaded( $(this) ) ) { | |
$(this).addClass('failed'); | |
}}); |
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
#Shift + f10 | |
Diskpart | |
List Disk | |
Select Disk (and whatever number disk you want to change) | |
Clean | |
Convert GPT |
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
&.columns{ | |
/* Layout options */ | |
@for $i from 2 through 8 { | |
&-#{$i}{ | |
$value: 12 / $i; | |
.grid__image--item { | |
@include span( $value, 12 ); | |
&:nth-of-type(#{$i}n+#{$i}){ | |
margin-right: 0; | |
} |