//*[not(*)]
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
<link rel="import" href="myComponentToImport.html" /> |
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 template = document.querySelector('#helloWord'); | |
var clone = document.importNode(template.content, true); | |
var host = document.querySelector('#container'); | |
host.appendChild(clone); |
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
<template id="helloWord"> | |
<style> | |
h1{ | |
color: green; | |
} | |
</style> | |
<div> | |
<h1>Hello Word</h1> | |
<h2>...</h2> | |
</div> |
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
# Teamspeak Licence | |
iptables -t filter -A INPUT -p tcp --dport 2008 -j ACCEPT | |
iptables -t filter -A OUTPUT -p tcp --dport 2008 -j ACCEPT | |
# Teamspeak Voix par défaut | |
iptables -t filter -A INPUT -p udp --dport 9987 -j ACCEPT | |
iptables -t filter -A OUTPUT -p udp --dport 9987 -j ACCEPT | |
# Teamspeak ServerQuery | |
iptables -t filter -A INPUT -p tcp --dport 10011 -j ACCEPT |
Auto use php-cs-fixer at save with PHPStorm and file watcher
- Open settings ( ctrl + alt + s)
- Menu file watchers
- Import watchers.xml
- Change settings like path for php and php-cs-fixer
- Enjoy ! PSRize at save.
NB: File watchers are linked to a specific project, so we have to re-import them for each project. External tools have IDE scope but we couldn't run them automaticaly - we could set a key bind.
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 | |
require_once("ApplicationInterface.php"); | |
class ApplicationA implements ApplicationInterface{ | |
public function run() | |
{ | |
echo "<br/> Application A start running"; | |
//some computation | |
echo "<br/> Application A finished"; |
#AdBlock Detection
One way to detect AdBlock is to create a file named advert.js, set a var inside and in another script detect if this specific variable has been created. If not the advert.js file has not been load probably by adBlock.
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
interface IVisitable { | |
void accept(IVisitor visitor); | |
} | |
class Book implements IVisitable | |
{ | |
public String support = "unknown"; | |
public void accept(IVisitor visitor) | |
{ |
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 | |
require_once('Document.php'); | |
class ConfigDocument extends Document | |
{ | |
} |
NewerOlder