This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @version 2.1 | |
* @author Alexis BOUHET | |
* Email: [email protected] | |
* Tribute to JayJay 97 | |
* | |
* 19 Mai 2010 : MAJ pour cache universel le 20/04/2011 | |
* 22 Mai 2010 : Ajout des méthodes d'enregistrement et de l'option zip dans les contextes. | |
* Ajout de la méthode statique flush |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (THREE) | |
{ | |
/** | |
* @author Felix Turner / www.airtight.cc / @felixturner | |
* | |
* Static effect. Additively blended digital noise. | |
* | |
* amount - amount of noise to add (0 - 1) | |
* size - size of noise grains (pixels) | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fixer la hauteur du header | |
$('.EtudesDeCas_topContainer').css({ | |
height: 500 | |
}); | |
$('.EtudesDeCas_bottomContainer').css({ | |
top: 500 | |
}); | |
// Supprimer les éléments en trop | |
$('s-menu-button').remove(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static function angleBetweenPoints (p0:Point, p1:Point, p2:Point):Number | |
{ | |
var a:Number = Math.pow(p1.x - p0.x, 2) + Math.pow(p1.y - p0.y, 2); | |
var b:Number = Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2); | |
var c:Number = Math.pow(p2.x - p0.x, 2) + Math.pow(p2.y - p0.y, 2); | |
return Math.acos((a + b - c) / Math.sqrt(4 * a * b)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Donnée sur les socket | |
*/ | |
protected function socketDataHandler (event:ProgressEvent):void | |
{ | |
// Cibler le socket | |
var socket:Socket = (event.target as Socket); | |
// Here we get our file on ByteArray |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Un gestionnaire de composants radio | |
var RadioComponent = function (pDOMGroupSelector, pSelectedHandler) | |
{ | |
// L'élément DOM associé | |
var $element; | |
// La nouvelle DOM | |
var _newDOM = '<div class="radioComponent">'; | |
_newDOM += ' <span class="radioBack"></span>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Déclaration d'une classe | |
var MyClass = function (pParam1, pParam2) | |
{ | |
// Scope fake publique | |
var that; | |
// Propriété privée | |
var _privateVar = 5; | |
// Méthode privée |