http://stackoverflow.com/a/38849483
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
// by Bahtiyar Akbas :) | |
document.querySelectorAll('.deleteLink').forEach(function(e) { | |
var http = new XMLHttpRequest(); | |
var url = e.href; | |
var params = 'atl_token='+getCookieValue('atl.xsrf.token'); | |
http.open('POST', url, true); | |
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
http.onreadystatechange = function() { | |
console.log(http.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
find . -name '*.xm' -exec xmp {} \; |
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
<!-- source:http://stackoverflow.com/a/23217203 --> | |
<properties> | |
<start-class>com.batuhanbayrakci.acayipApp.BiAcayipApplication</start-class> | |
</properties> |
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
<!-- thanks to @umitunal --> | |
<properties> | |
... | |
<sonar.exclusions> | |
**/api/client/model/**/*, | |
**/api/client/request/**/*, | |
**/api/client/configuration/**/* | |
</sonar.exclusions> | |
</properties> |
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
// Source: https://stackoverflow.com/a/37575602 | |
var waitTill = new Date(new Date().getTime() + seconds * 1000); | |
while(waitTill > new Date()){} |
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
INSERT INTO order_summary (order_id, order_price) | |
SELECT o.id, o.price | |
FROM orders as o |
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 push origin --delete BRANCH_NAME | |
git branch -D BRANCH_NAME |
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
# libxmp installed via brew | |
libxmp_LIBS=-L/usr/local/Cellar/libxmp/4.4.1/lib \ | |
libxmp_CFLAGS=-I/usr/local/Cellar/libxmp/4.4.1/include \ | |
./configure | |
sudo make install |
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
cat << EOF >> ~/.zshrc | |
export PATH="$PATH:/my/fancy/app/path" | |
alias helehele="echo 'hele hele antepli'" | |
EOF |