Skip to content

Instantly share code, notes, and snippets.

🙃
Heyyyy

Hypolite Petovan MrPetovan

🙃
Heyyyy
Block or report user

Report or block MrPetovan

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
@MrPetovan
MrPetovan / youtube_embed.html
Created Mar 30, 2018
Friendica Asynchronous Youtube Embed
View youtube_embed.html
<div class="oembed video">
<a class="embed_video"
href="https://www.youtube.com/watch?v=vZgDCngoa6w"
// Base64 encoded embed HTML from Youtube
onclick="this.innerHTML=window.atob('PGlmcmFtZSB3aWR0aD0iNDI1IiBoZWlnaHQ9IjIzOSIgc3JjPSJodHRwczovL3d3dy55b3V0dWJlLmNvbS9lbWJlZC92WmdEQ25nb2E2dz9mZWF0dXJlPW9lbWJlZCIgZnJhbWVib3JkZXI9IjAiIGFsbG93PSJhdXRvcGxheTsgZW5jcnlwdGVkLW1lZGlhIiBhbGxvd2Z1bGxzY3JlZW4+PC9pZnJhbWU+'); this.classList.add('active'); return false;">
<img width="160" height="120" src="https://i.ytimg.com/vi/vZgDCngoa6w/hqdefault.jpg">
<div style="width: 160px; height: 120px;"></div>
</a>
<h4>YouTube: <a href="https://www.youtube.com/watch?v=vZgDCngoa6w" rel="oembed">Présentation DojoCoin - EN</a> (NintendojoFR)</h4>
</div>
@MrPetovan
MrPetovan / robot.js
Created Dec 5, 2012 — forked from Shipow/robot.js
Shipow#001
View robot.js
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
You can’t perform that action at this time.