This file contains 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 logStyles() { | |
var doc_style = document.body.style; | |
console.log(doc_style.border, | |
doc_style.margin, | |
doc_style.padding); | |
} |
This file contains 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 logStyles() { | |
var a = document.body.style; | |
console.log(a.border, a.margin, a.padding); | |
}; |
This file contains 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
// Version originale | |
var mine = document.getElementById('mine'); | |
var his = document.getElementById('his'); | |
var hers = document.getElementById('hers'); |
This file contains 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
// Compression naïve et théorique | |
var a = document.getElementById; | |
var mine = a('mine'), | |
his = a('mine'), | |
hers = a('mine'); |
This file contains 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
var a = function() { | |
return document.getElementById.apply(document, arguments); | |
}; |
This file contains 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
// Original | |
function forgetVar() { | |
myLongVariableName = 2; | |
} | |
function dontForgetVar() { | |
var myVeryVeryLongVariableName = 2; | |
} |
This file contains 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
// uglify -b | |
function forgetVar() { | |
myLongVariableName = 2; | |
} | |
function dontForgetVar() { | |
var a = 2; | |
} |
This file contains 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
Warning: addEventListener is not a function | |
Warning: addEventListener is not a function | |
Warning: createAccessibilityImplementation is not a function | |
Warning: _endInit is not a function | |
Warning: 'mx' has no property 'setDataProvider' | |
Warning: 'mx' has no property 'getDataProvider' | |
Warning: 'mx' has no property 'addItem' | |
Warning: 'mx' has no property 'addItemAt' | |
Warning: 'mx' has no property 'removeAll' | |
Warning: 'mx' has no property 'removeItemAt' |
This file contains 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
*******Show room info 2 | |
*******Get room info : http://preprod.blindtest.com/xml/room_infos/2.xml?lang=fr&server_id=1&key=4880 | |
Join by simple click | |
locked undefined | |
joinRoom | |
roomSelected.id 2 | |
roomSelected.eventSy undefined | |
joinRoom: roomId:2 pwd: undefined force:undefined | |
*** getRoomInfo *** | |
id 2 |
This file contains 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
separator = String.new | |
8.times { separator += '-' } | |
separator = "\n" + separator + "\n" | |
def newblock(text) | |
puts "\n#{separator}" + text + + "#{separator}\n" | |
end | |
newblock "Prerequisites (iconv)" | |
if not system("which iconv") |