This file contains hidden or 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 | |
# Git push then pull over ssh | |
# | |
# Supposing you have these environments on the same ssh git remote: | |
# project/origin.git | |
# project/dev/.git | |
# project/prod/.git | |
# | |
# You can then push the current branch and pull it in dev/ and prod/ by doing: | |
# $ git deploy dev |
This file contains hidden or 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
# Console log | |
window.log = -> | |
console?.log?(arguments...) | |
# Vérification de l'historique du navigateur | |
history_enabled = -> | |
return Boolean( | |
window.history and window.history.pushState \ | |
and window.history.replaceState \ | |
and not (RegExp(" Mobile\\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))", "i")).test(navigator.userAgent) or (/AppleWebKit\/5([0-2]|3[0-2])/i).test(navigator.userAgent) |
This file contains hidden or 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
$.fn.twitterCallback = (twitters) -> | |
return @ if @length == 0 | |
statusHTML = [] | |
i = 0 | |
while i < twitters.length | |
username = twitters[i].user.screen_name | |
status = twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g, (url) -> | |
"<a href=\"" + url + "\">" + url + "</a>" | |
).replace(/\B@([_a-z0-9]+)/g, (reply) -> |
This file contains hidden or 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 | |
/* | |
Plugin Name: Sunnytize | |
Plugin URI: | |
Description: A better file name sanitizer | |
Version: 1.0 | |
Author: Sunny Ripert | |
Author URI: http://sunfox.org | |
*/ |