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
Verifying that +hans2103 is my blockchain ID. https://onename.com/hans2103 |
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
$ curl https://{username}:{password}@API.del.icio.us/v1/posts/all > bookmarks.xml |
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/magento setup:install \ | |
--base-url=http://mage2a.dev/ \ | |
--db-host=localhost \ | |
--db-name=mage2a \ | |
--db-user=user \ | |
--db-password=password \ # or leave this line out for dev | |
--admin-firstname=firstname \ | |
--admin-lastname=lastname \ | |
--admin-email=email@example.com \ | |
--admin-user=username \ |
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
#!/usr/bin/ruby | |
# encoding: utf-8 | |
# Grab google web fonts and embed them as base64 data URIs | |
# <http://brettterpstra.com/2015/03/14/embedding-google-web-fonts/> | |
require 'base64' | |
if ARGV.length > 0 | |
input = ARGV | |
elsif STDIN.stat.size > 0 | |
input = STDIN.read.strip.split(/\n+/) |
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
$helper = new ThisTemplateHelper(); | |
$helper->unsetSqueezeBox(); | |
class ThisTemplateHelper | |
{ | |
public function __construct() | |
{ | |
$this->doc = JFactory::getDocument(); | |
} | |
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 | |
if ($this->params->get('login_redirect_url')) | |
{ | |
$login_redirect_url = $this->params->get('login_redirect_url', $this->form->getValue('return')); | |
} | |
else | |
{ | |
$referer = htmlspecialchars($_SERVER['HTTP_REFERER']); | |
$uri = JUri::getInstance($referer); | |
$query = JFactory::getApplication()->getRouter()->parse($uri); |
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
// what is added | |
<script type="text/javascript"> | |
jQuery(function($) { | |
SqueezeBox.initialize({}); | |
SqueezeBox.assign($('a.modal').get(), { | |
parse: 'rel' | |
}); | |
}); |
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
# PHPStorm LESS watcher settings | |
- File type: less | |
- Scope: define scope of working template | |
- Program: /usr/local/bin/lessc | |
- Arguments: --clean-css="--compatibility=ie9 --advanced" --source-map-map-inline $FileName$ | |
- Output path to refresh: ../css/$FileNameWithoutExtension$.css | |
- [ ] Immediate file synchronization | |
- [X] Track only root files |
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
# $Id: robots.txt,v magento-specific 2010/28/01 18:24:19 goba Exp $ | |
# Edited: 2014/10/30 by Byte.nl | |
# | |
# robots.txt | |
# | |
# This file is to prevent the crawling and indexing of certain parts | |
# of your site by web crawlers and spiders run by sites like Yahoo! | |
# and Google. By telling these “robots” where not to go on your site, | |
# you save bandwidth and server resources. | |
# |
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 0} | |
<?php | |
function getCarouselContentByLayout($layout, $title = '', $text = '', $count = 0) | |
{ | |
if($layout == 'mobile') { | |
return '<div class="carousel-caption carousel-caption-mobile">' | |
. '<strong>' . $title . '</strong>' | |
. '<p><a href="#myModal-' . $count .'" data-toggle="modal">lees meer</a></p>' | |
. '</div>'; | |
} |