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
function rails() { | |
if [ "$1" = "start" ]; then | |
if [ "$2" = "" ]; then | |
RENV="development" | |
else | |
RENV="$2" | |
fi | |
rails server -d -e "$RENV" | |
return 0 | |
elif [ "$1" = "stop" ]; then |
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
# Put in /etc/gdm3/Init/Default or ~/.xprofile | |
cvt 1280 720 60 | |
xrandr --newmode "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync | |
xrandr --addmode VGA-0 1280x720_60.00 |
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
xml.instruct! | |
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do | |
@locales.each do |locale| | |
::I18n.locale = locale | |
::Refinery::Page.live.in_menu.includes(:parts).each do |page| | |
# exclude sites that are external to our own domain. | |
page_url = if page.url.is_a?(Hash) | |
# This is how most pages work without being overriden by link_url |
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 | |
class AdminCustomersController extends AdminCustomersControllerCore | |
{ | |
public function afterAdd($customer) | |
{ | |
require_once _PS_MODULE_DIR_.'newsletterplus/newsletterplus.php'; | |
$newsletterplus = new Newsletterplus(); | |
$newsletterplus->hookActionCustomerAccountAdd(array( | |
'_POST' => $_POST, |
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
$(document).ready -> | |
$('.wym_tools_image a').click (e)-> | |
e.stopImmediatePropagation() | |
e.preventDefault() | |
id = $('.wym_iframe').find('iframe:visible').attr('id').slice(-1) | |
url = prompt('Insert external image link') | |
img = new Image() | |
img.src = url | |
alt = prompt('Insert alternative text for the image') | |
wym = jQuery.wymeditors(id) |
NewerOlder