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
<div class="trigger"> | |
{% for page in site.pages %} | |
{% if page.title %} | |
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a> | |
{% endif %} | |
{% endfor %} | |
</div> |
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
#import <Foundation/Foundation.h> | |
int foo(int start, int end) { | |
NSLog(@"Hello"); | |
int result; | |
int i; | |
int max = end + 1; |
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 | |
class LividUtil { | |
public static function parseUserAgent($ua = '') { | |
if ($ua == '') { | |
if (isset($_SERVER['HTTP_USER_AGENT'])) { | |
$ua = $_SERVER['HTTP_USER_AGENT']; | |
} else { | |
if (isset($_SERVER['HTTP_VIA'])) { | |
if (preg_match('/(infoX)|(Nokia WAP Gateway)|(WAP)/i', $_SERVER['HTTP_VIA'], $z)) { | |
$o['ua'] = $_SERVER['HTTP_VIA']; |