Skip to content

Instantly share code, notes, and snippets.

View mpgn's full-sized avatar
🕹️
Impose ta chance, serre ton bonheur et va vers ton risque.

mpgn

🕹️
Impose ta chance, serre ton bonheur et va vers ton risque.
View GitHub Profile
@mpgn
mpgn / app.js
Last active August 29, 2015 14:17
angular-vlc example
var app = angular.module('app', [
'ngResource',
'ngRoute',
'ui.bootstrap',
'kdarcel.vlc-player',
'kdarcel.vlc-player.tpl',
]);
@mpgn
mpgn / main.c
Last active August 29, 2015 14:07
C pow vs shift
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <time.h>
int main() {
const size_t nTests = 10000000;
@mpgn
mpgn / index.html
Created August 30, 2014 10:47
YouTube Javascript Player API Tutoriel : http://youtu.be/2liztlOx0NY.
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Player YouTube JS</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
@mpgn
mpgn / jsbin.cocatuta.html
Created August 9, 2014 19:57
YouTube Player paused when iframe is not visible on the screen. Live example http://jsbin.com/cocatuta/15/
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<script src="//code.jquery.com/jquery-2.1.0.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<iframe id="player" type="text/html" width="640" height="390"