Skip to content

Instantly share code, notes, and snippets.

View MrPetovan's full-sized avatar
🙃
Heyyyy

Hypolite Petovan MrPetovan

🙃
Heyyyy
View GitHub Profile
@MrPetovan
MrPetovan / youtube_embed.html
Created March 30, 2018 18:36
Friendica Asynchronous Youtube Embed
<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 December 5, 2012 16:05 — forked from Shipow/robot.js
Shipow#001
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();
};