Skip to content

Instantly share code, notes, and snippets.

Avatar

gordielachance

View GitHub Profile
View afac
{"properties":{"selectors":{"properties":{"track":{"properties":{"artist":{"properties":{"path":"artist"}},"title":{"properties":{"path":"title"}},"album":{"properties":{"path":"album"}},"image":{"properties":{"path":"cover"}}}}}}},"station_slug":"radio17bis"}
View afac
Hi, i've got problems validating parameters sent to my API route.
puts "PARAMS"
puts params.to_json
=begin
{
"url":"http://www.last.fm/user/grosbouff/loved",
"options":{
"selectors":{
"playlist":{
@gordielachance
gordielachance / AE expression : check for backfacing (2D layer)
Last active Nov 6, 2019
AE expression : check for backfacing (2D layer)
View AE expression : check for backfacing (2D layer)
var rot = transform.xRotation;
var flipAngle = 180;
var flips = Math.round(rot / flipAngle);
var isFront = (flips%2) ? false : true;
@gordielachance
gordielachance / nthObjectSelector.py
Last active Apr 10, 2018
Blender script that reduce your section of objects to nth objects.
View nthObjectSelector.py
"""
nthObjectSelector by gordielachance
This will reduce your current selection of object to nth objects.
https://gist.github.com/gordielachance/ba32a3087f8d327bfdeb9d0ea7fb4935
"""
import bpy
#SETUP
nth = 3 #Specify your nth value here !
@gordielachance
gordielachance / openprice.php
Last active Mar 7, 2018
The Events Calendar - Open Price module
View openprice.php
<?php
//Add this in your functions.php file
add_action( 'tribe_events_cost_table', 'event_backend_open_price', 9 );
add_action( 'tribe_events_event_save', 'event_save_open_price', 10, 3 );
add_filter( 'tribe_get_cost','event_get_open_price',10,3);
function event_backend_open_price($event_id){
$isOpenPrice = ($event_id) ? get_post_meta( $event_id, '_EventOpenPrice', true ) : false;
?>
@gordielachance
gordielachance / After Effects Expression : Reveal text (TypeOn + blinking cursor)
Last active Nov 6, 2019
After Effects Expression : Reveal text (TypeOn + blinking cursor)
View After Effects Expression : Reveal text (TypeOn + blinking cursor)
//put this expression for the 'Source Text' value on your text layer, and add 4 markers on the layer : 'cursorStart', 'textStart', 'textStop', 'cursorStop'
cursor="|";
cursorBlink = 1; //seconds
txt = value;
timeIn = thisLayer.inPoint; //seconds
txtSize = text.sourceText.length;
animateText = true;
showCursor = true;
You can’t perform that action at this time.