So I've created a TabsContainer block, which allows to nest other blocks inside it. I've used the same mechanics as reused code of Columns block does for its columns. It is indended to create Tabs only inside TabsContainer.
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/bash | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: gifify INPUT OUTPUT" | |
exit 1 | |
fi | |
ffmpeg -i "$1" -r 10 -f image2pipe -vcodec ppm - | convert -delay 10 - "$2" |
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 namespace App\Mailer\Swift\Mime; | |
use Swift_Encoder; | |
use Swift_Mime_Grammar; | |
use Swift_Mime_Header; | |
use Swift_Mime_HeaderEncoder; | |
use Swift_Mime_SimpleHeaderFactory; | |
/** | |
* Hack SwiftMailer SimpleHeaderFactory to support RFC 6531 |
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 | |
/** | |
* Convert PHP array to CSV. | |
* First line keys are used as column names. | |
* | |
* [ | |
* ['ID' => 1, 'Name' => 'John'], | |
* ['ID' => 2, 'Name' => 'Jane'], | |
* ] |
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
package main | |
import ( | |
"code.google.com/p/go-tour/tree" | |
"fmt" | |
) | |
// Walk walks the tree t sending all values (sorted ascending) | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int) { |
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
package main | |
import ( | |
"fmt" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. | |
Fetch(url string) (body string, urls []string, err error) |
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
for file in `ls`; \ | |
mv $file "`exiftool -d '%Y-%m-%d %H.%M.%S' -CreateDate $file | cut -d':' -f2,3,4,5,6,7 | cut -d' ' -f2,3`.jpg" |