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
I would like to change this | |
$LOGIN_INFORMATION = array( | |
'username' => 'password' | |
); | |
into this | |
$LOGIN_INFORMATION = array( | |
$page->username() => $page->password() |
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
# The Snippet | |
<?php | |
// getting the username and password | |
$LOGIN_INFORMATION = array( | |
(string)$page->benutzernamen() => $page->passwort() | |
// 'user' => 'password', | |
); |
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
Let's say I have 30 items then the scrubber will move off screen. How can I manage that out of the amount of object it is calculated how far the scrubber moves - the more items the shorter is the distance the scrubber moves every time? This means the scrubber starts always at left end ends at right - how many items I would have. |
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
/* | |
###### ###### ### ## ######## | |
## ## ## ## ## ## ## ## | |
## ## ## ## ## ## | |
###### ## ## ## ## ###### | |
## ## ######### ## ## | |
## ## ## ## ## ## ## ## | |
###### ###### ## ## ######## ######## | |
Short URL: http://scalecss.com |
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
Title: Your Title | |
---- | |
Background: #ececec | |
---- | |
Background-Banner: #ffffff |
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 foreach($page->children()->visible()->flip() as $article): ?> | |
<li> | |
<a href="<?php echo $article->url() ?>"><?php echo html($article->title()) ?> <span><?php echo html($article->published()) ?></span></a> | |
</li> | |
<?php endforeach ?> |
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($page->hasPrev()): ?> | |
« <a href="<?php echo $page->prev()->url() ?>">Previous</a> | |
<?php endif ?> | |
| //Separator: Should only show up between "Previous | Next" but not if there is just one. | |
<?php if($page->hasNext()): ?> | |
<a href="<?php echo $page->next()->url() ?>">Next</a> » | |
<?php endif ?> |
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
<img src="<?php $image = $article->images()->find('thumb.gif') ?><?php echo $image->url() ?>"> //that works | |
<img src="<?php $image = $article->images()->find('thumb.gif') ?><?php echo thumb($img, array('width' => 200), false); ?>"> //and this does not |
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
In KirbyText I can do this: | |
##Text | |
and it will give me | |
<h2>Text</h2> | |
I can also do this (link: http://getkirby.com text: getkirby popup: yes) which will give me a link. Brilliant would be if I could generate span classes or even direct classes or IDs out of this. As an Idea: |
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/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
OlderNewer