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
class Animal { | |
constructor(public name) { } | |
move(meters) { | |
alert(this.name + " moved " + meters + "m."); | |
} | |
} | |
class Snake extends Animal { | |
constructor(name) { super(name); } | |
move() { |
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
[user] | |
name = user | |
email = mail | |
[color] | |
ui = true | |
diff = auto | |
interactive = auto | |
[alias] | |
st = status |
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
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export GIT_PS1_SHOWUPSTREAM=verbose GIT_PS1_DESCRIBE_STYLE=branch | |
alias sfc='php app/console' | |
alias sf2-shell='sfc --shell' | |
alias composer='php /c/wamp/www/Composer/composer.phar' |
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
leave = * -> * | |
leave.name = Ne rien faire | |
leave.default = 9 | |
leave.operations = leave_status | |
reject = new -> rejected | |
reject.name = Rejeter (à re-qualifier) | |
reject.default = 8 | |
reject.permissions = TICKET_MODIFY | |
propose = rejected -> new | |
propose.name = Soumettre à nouveau |
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(){ | |
var post_to_url = function(path, params, method) { | |
var openWindow = window.open(path); | |
method = method || "post"; | |
var form = openWindow.document.createElement("form"); | |
form.setAttribute("method", method); | |
form.setAttribute("action", path); | |
for(var key in params) { | |
var hiddenField = document.createElement("input"); | |
hiddenField.setAttribute("type", "hidden"); |
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
if (!premiers) | |
var premiers = []; | |
function PremiersInferieursA(maxNumber, fromNumber) { | |
if (!fromNumber) | |
fromNumber = 0; | |
function estPremierSachantInferieursTestes(n) { | |
// Si on l'a déjà testé, on sait |
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 () { | |
// The Unicode keys | |
var characterKeys = { | |
u: 38, | |
d: 40, | |
l: 37, | |
r: 39, | |
a: 65, | |
b: 66 | |
}; |
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 () { | |
var verb = prompt("Verbe à chercher sur LeConjugueur.com :", ""); | |
var openWindow = window.open("http://leconjugueur.lefigaro.fr/php5/index.php?verbe=" + verb); | |
})() |
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 () { | |
function shuffle(array) { | |
var currentIndex = array.length, | |
temporaryValue, | |
randomIndex | |
; | |
// While there remain elements to shuffle... | |
while (0 !== currentIndex) { | |
// Pick a remaining element... | |
randomIndex = Math.floor(Math.random() * currentIndex); |
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
@ECHO OFF | |
IF "%1"=="" GOTO HAVE_0 | |
:Loop | |
IF "%1"=="" GOTO Continue | |
set "template=%1\.*" | |
ECHO."Hiding 'dot directories' in folder %1" | |
ATTRIB +H /s /d %template% | |
SHIFT | |
GOTO Loop | |
GOTO Continue |
OlderNewer