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 | |
| snippet('header'); | |
| $tag = urldecode(param('tag')); | |
| if(param('tag')) | |
| $articles=$pages->visible()->filterBy('tags',$tag,',')->sortBy('date')->flip(); | |
| ?> | |
| <main class="main"> | |
| <section> | |
| <h1><?php echo $page->title() . ' ' . $tag ?></h1> |
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 | |
| /* | |
| Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
| --------- | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> |
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/python | |
| import requests | |
| import re | |
| def start(): | |
| chapter_links=[] | |
| course="http://try.jquery.com/" | |
| response=requests.get(course) | |
| chapter_pattern=re.compile(r'(http[s]?://try.jquery.com/levels/\d)"') |
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 | |
| /** | |
| * Exite翻訳(英語→日本語)の野良API サンプル | |
| */ | |
| $text = 'This is a pen.'; | |
| $to = 'ENJA'; // ENJA or JAEN | |
| $q = http_build_query(array( | |
| '_id' => '6855579bdcb52e1a0a3822af4b5a9c88', |
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 | |
| # Install csvkit with csvpys | |
| # (csvpys hasn't been pulled back into the main csvkit repo that you can pip install) | |
| git clone https://github.com/cypreess/csvkit.git | |
| cd csvkit | |
| python setup.py build | |
| sudo python setup.py install | |
| cd ~ |
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 | |
| #Pages have these fields, the can have comma separated values for group, category and option | |
| # Title: Event1 | |
| # ---- | |
| # Group: Group1 | |
| # ---- | |
| # Category: Cat2 | |
| # ---- |
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 | |
| #Pages have these fields, they can have comma separated values for group, category and option | |
| # Title: Event1 | |
| # ---- | |
| # Group: Group1 | |
| # ---- | |
| # Category: Cat2 | |
| # ---- | |
| # Option: Option1 |
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
| // Send Email | |
| require_once 'Mandrill.php'; | |
| $mandrill = new Mandrill($apikey); | |
| $message = new stdClass(); | |
| $message->html = "html message"; | |
| $message->text = "text body"; | |
| $message->subject = "email subject"; | |
| $message->from_email = "address@test.com"; |
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
| # Installation | |
| curl -o laravel.phar http://laravel.com/laravel.phar | |
| chmod 755 laravel.phar | |
| mv laravel.phar /usr/local/bin/laravel | |
| # Usage | |
| laravel new <application_name> |
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 /*?>* function csv_to_array | |
| * @link http://gist.github.com/385876 | |
| * @author Jay Williams <http://myd3.com/> | |
| * @copyright Copyright (c) 2010, Jay Williams<?php */?> | |
| <?php | |
| $imagelist= $page->imagelist(); | |
| if ($imagelist != ''){ | |
| function csv_to_array($filename='', $delimiter=',') { |