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
// Version originale | |
var mine = document.getElementById('mine'); | |
var his = document.getElementById('his'); | |
var hers = document.getElementById('hers'); |
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
// Compression naïve et théorique | |
var a = document.getElementById; | |
var mine = a('mine'), | |
his = a('mine'), | |
hers = a('mine'); |
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
var a = function() { | |
return document.getElementById.apply(document, arguments); | |
}; |
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
// Original | |
function forgetVar() { | |
myLongVariableName = 2; | |
} | |
function dontForgetVar() { | |
var myVeryVeryLongVariableName = 2; | |
} |
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
// uglify -b | |
function forgetVar() { | |
myLongVariableName = 2; | |
} | |
function dontForgetVar() { | |
var a = 2; | |
} |
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
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 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
*******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 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
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") |
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
# requires root permissions in /usr/bin/ | |
star = String.new | |
8.times { star += "*" } | |
Star = "\n#{star * 3}\n" | |
def newblock string | |
puts "\n#{Star}#{string}#{Star}\n" | |
end |
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
#!/usr/bin/env ruby | |
require 'sinatra/base' | |
require './models/data' | |
require './models/business' | |
class EphemereApplication < Sinatra::Base | |
get '/' do | |
business.display_home | |
end |