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
<div id="professional_address_address_widget"> | |
<div id="professional_address_input"> | |
<div id="professional_address"> | |
<div> | |
<label for="professional_address_address" class="required">Adresse</label> | |
<input type="text" id="professional_address_address" name="professional[address][address]" required="required" maxlength="255" class="span8" value="19 Ruelle de Vitrimont, 54000 Nancy, France" /> | |
</div> | |
<input type="hidden" id="professional_address_zip_code" name="professional[address][zip_code]" required="required" value="54000" /> | |
<input type="hidden" id="professional_address_location" name="professional[address][location]" required="required" value="Nanterre" /> | |
<input type="hidden" id="professional_address_latitude" name="professional[address][latitude]" required="required" value="48.7059551" /> |
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
git checkout $(git rev-list -n 1 HEAD -- "file.php")^ -- "file.php" |
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
sed ':a;N;$!ba;s/\n//g' fichier1.txt > fichier2.txt |
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
uuencode -m foo.png /dev/stdout | sed '1d' | sed '$d' | tr -d '\n' | xclip -selection clipboard |
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
git config --global color.ui auto |
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
powercfg -h off |
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
/** | |
* Simulate the read-only attribute on a select list (as it is not normalized). | |
* @see http://www.w3.org/wiki/HTML/Elements/select | |
* @param Object Select list element | |
**/ | |
function setReadOnlyOnSelect(selectList) | |
{ | |
// Ensure selectList exists | |
if(!selectList.length) { | |
console.warn("Unable to find specified select list."); |
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
// couvent.js - MIT license | |
Array.prototype.slice.call(document.querySelectorAll('*')).forEach(function (el) { | |
el.style.display = 'none'; | |
}); |
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
#!/bin/bash | |
# @see http://www.jonathan-petitcolas.com/2015/09/21/dump-docker-ized-database-to-amazon-s3.html | |
# Configuration | |
FILENAME="awesomeproject-`date +%Y-%m-%d-%H:%M:%S`.sql" | |
CONTAINER_NAME="awesomeproject_pgsql" | |
DUMPS_FOLDER="/home/awesomeproject/dumps" | |
BUCKET_NAME="awesomeproject-private" |
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 View from "./folder/View"; | |
class Application { | |
constructor() { | |
this.view = new View("I'm a view!"); | |
} | |
sayHello() { | |
console.log("Hello"); | |
} |