Skip to content

Instantly share code, notes, and snippets.

jeremypetrequin

Block or report user

Report or block jeremypetrequin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeremypetrequin
jeremypetrequin / footer.php
Created Jan 10, 2018
Track SQL numbers in wordpress
View footer.php
@jeremypetrequin
jeremypetrequin / script
Created May 26, 2014
Find what f***** DOM element break your responsive by adding a horz scrollbar
View script
//put this in your console, and see the red elements
var breakpoint = 320;
$('*').each(function() {
($t = $(this)).outerWidth() + $t.offset().left > breakpoint && console.log($t.css('background', 'red'));
});
@jeremypetrequin
jeremypetrequin / article.md
Last active Dec 25, 2016
How to convert a Flash/After Effects animation into a JSMovieclip animation
View article.md

How to convert a Flash/After Effects animation into a JSMovieclip animation

Intro

JSMovieclip is a little javascript framework. It allows you to play, control... animations like a Movieclip object in AS3. It uses a sprite which contains all frames of the animation.

Purpose : We'll create a sprite to use with JSMovieclip, from a Flash animation, using TexturePacker

Requirement : We'll use Flash/After Effects, Texture Packer, and JSMovieclip script

View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
alert('okdoked');
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
You can’t perform that action at this time.