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 | |
// Begin main loop to list page's static content | |
?> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<h2 class="post" id="post-<?php the_ID(); ?>"> | |
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> | |
</h2> | |
<?php the_content('Read on ›'); ?> | |
<?php endwhile; ?> |
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
<form method="get" name="srch" action="<?php bloginfo('home'); ?>/"> | |
<div style="margin:10px 0"> | |
<label style="display:inline"><?php _e('Search › '); ?></label> | |
<input type="text" size="27" value="<?php the_search_query(); ?>" name="s" id="s" /> | |
<input alt="" style="display:none" type="submit" value="search" /> | |
</div> | |
</form> |
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 | |
/* | |
Plugin Name: Subdomain to Domain redirect | |
Plugin URI: https://gist.github.com/ckunte/8596c95e4a575477b971 | |
Description: log subdomain address is redirected to root. | |
Author: Chyetanya Kunte (based on Matt Mullenweg's no-www plugin.) | |
Version: 1.0 | |
Author URI: https://github.com/ckunte | |
*/ |
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 | |
/* | |
Template Name: Linkroll | |
*/ | |
?> | |
<?php get_header(); ?> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<div class="post" id="post-<?php the_ID(); ?>"> | |
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
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
% | |
% Highlighted code example in LaTeX | |
% ckunte on 2015-03-08. | |
% | |
\documentclass[11pt,a4paper]{article} | |
% Use utf-8 encoding for foreign characters | |
\usepackage[utf8]{inputenc} | |
% Setup for fullpage use |
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 python | |
# encoding: utf-8 | |
""" | |
met.py -- Finding stats for regions | |
2015-7-1: Created by ckunte. | |
2015-9-11: More dataset options added. | |
NOTE: | |
Two regional sets are available: sarawak, sabah |
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
--- Get Filename (with any predefined path) -- I use for inserting images in posts | |
tell application "Finder" to get "/log/images/" & the name of (selection as alias) |
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
--- Get Filename with full path -- great for Terminal use | |
tell application "Finder" to return POSIX path of (parent of first item of (get selection as alias list) as alias) & name of (selection as alias) |
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
--- Get URL and title from Safari's active tab -- useful for inserting hyperlinks | |
tell application "Safari" to get the URL of the front document & " \"" & name of the front document & "\"" |
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
defaults delete com.oleganza.gitbox |