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
<?php | |
#symfony/src/dwira/AnnoncesBundle/Entity/annonce.php | |
namespace dwira\AnnoncesBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** |
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 "Entrer le login de l'utilisateur souhaité :" | |
read user | |
adduser -a $user 2>/dev/null # 2>/dev/null redirection vers la | |
if [ $? -eq 0 ] # poubelle de la commande précédente | |
then # si le résultat est faux | |
echo -e "\033[31m L'utilisateur $user à bien été créé ! \033[00m" | |
else | |
echo -e "\033[31m Echec, l'utilisateur $user n'a pas été créé, vérifier vos données... \033[00m" | |
fi |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package edu.esprit.presentation; | |
import api.RSSReader; | |
import edu.esprit.dao.EquipeDAO; | |
import edu.esprit.dao.FavoritsDAO; | |
import edu.esprit.entite.Equipe; |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package mp3player; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; |
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
#include <iostream> | |
using namespace std; | |
int main(){ | |
int a,b,c,d; | |
a = rand() % 9+1 ; | |
b = rand() % 10; | |
c = rand() % 10; |
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
import bb.cascades 1.0 | |
Page { | |
property int x | |
property int y | |
Container { | |
id: container | |
layout: DockLayout { | |
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
<html> | |
<head> | |
<title>afficher dans le LocalStorga</title> | |
<script type="text/javascript"> | |
function show () { | |
document.write("<TABLE BORDER='5'><CAPTION> Meilleur score </CAPTION> <TR> <TH> Nom </TH> <TH> Score </TH> </TR> ") | |
for (var i=1; i<6; i++) { | |
document.write("<tr><td>") | |
document.write(localStorage.getItem("nom"+i),"</td><td>") | |
document.write(localStorage.getItem("score"+i),"</td></tr>") |
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
package edu.esprit.mariage.domain; | |
import java.io.Serializable; | |
import java.util.Date; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.Table; |
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
// | |
// main.cpp | |
// OpenCV | |
// | |
// Created by Slim Khan on 19/09/2014. | |
// Copyright (c) 2014 Slim Khan. All rights reserved. | |
// | |
#include <iostream> |
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 active = false; | |
function changeRefer(details) { | |
if (!active) return; | |
for (var i = 0; i < details.requestHeaders.length; ++i) { | |
if (details.requestHeaders[i].name === 'Referer') { | |
details.requestHeaders[i].value = 'http://www.google.com/'; | |
break; | |
} |