TODO: Write a project description
TODO: Describe the installation process
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
<?php | |
/** | |
* @package WordPress | |
* @subpackage themename | |
*/ | |
/** | |
* Add jQuery | |
*/ | |
function add_jquery_script() { | |
wp_deregister_script( 'jquery' ); |
<?php | |
function get_excerpt($count, $post_id){ | |
$permalink = get_permalink($post_id); | |
$excerpt = get_post($post_id); | |
$excerpt = $excerpt->post_content; | |
$excerpt = strip_tags($excerpt); | |
$excerpt = substr($excerpt, 0, $count); | |
$excerpt = substr($excerpt, 0, strripos($excerpt, " ")); | |
$excerpt = $excerpt; | |
// Want a read more link and ellipsis, remove the line above this and replace it with the one below. |
@main-font-size: 16px; | |
.x-rem (@property, @value) { | |
// This is a workaround, inspired by https://github.com/borodean/less-properties | |
@px-fallback: @value * @main-font-size; | |
-: ~`(function () { return ';@{property}: @{px-fallback}'; }())`; | |
-: ~`(function () { return ';@{property}: @{value}rem'; }())`; | |
} |
<?php | |
/* 1. Back End Usage | |
---------------------------------------------------------------------*/ | |
// add neccessary actions | |
// @see http://codex.wordpress.org/Function_Reference/add_action | |
add_action( 'add_meta_boxes', 'rg_add_custom_box' ); | |
add_action( 'save_post', 'rg_save_postdata', 10, 1 ); |
<?php | |
echo "<span>" . preg_replace('/ /', '</span> ', $block->subject, 1); |
<?php | |
//get artist photo | |
function getArtistPhoto($artist, $size) { | |
$artist = urlencode($artist); | |
$xml = "http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist={$artist}&api_key=YOUR_KEY"; | |
$xml = @file_get_contents($xml); | |
if(!$xml) { |
.hexagon { | |
width: 100px; | |
height: 55px; | |
position: relative; | |
} | |
.hexagon, .hexagon:before, .hexagon:after { | |
background: red; | |
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.8); | |
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.8); | |
box-shadow: 0 0 10px rgba(0,0,0,0.8); |