Skip to content

Instantly share code, notes, and snippets.

body {
background-color:#CCCCCC;
background-image:url(assets/assets-2.jpg);
}
#topbar {
background-color:#b8ddf5;
height:20px;
width:530px;
}
<?php
//
// Gallery Child Theme Functions
//
function childtheme_menu_args($args) {
$args = array(
'show_home' => 'Home',
<?php
//Column 3: Create a function and div to hold all random category posts
function random_category_loop(){
if (is_home() & !is_paged()) { ?>
<div id="randomcategory" class="category span-14 last floatright">
<!-- Use html to create category titles -->
<div class="categoryheader">
<div id="randomthingscategory" class="floatright span-14 last categorytitle">
<p><a href="http://localhost:8888/blog/category/random/">RANDOM <br>THINGS I LIKE</p>
@mushon
mushon / gist:392328
Created May 6, 2010 16:29 — forked from skuter80/gist:391713
functions.php
<?php
// Adds a home link to your menu
// http://codex.wordpress.org/Template_Tags/wp_page_menu
//function childtheme_menu_args($args) {
// $args = array(
// 'show_home' => 'Home',
// 'sort_column' => 'menu_order',
// 'menu_class' => 'menu',
// 'echo' => true
<?php
//-----------------------ADDING BLUEPRINT CSS-----------------------------
function add_blueprint() {
// Include main screen styles css
$content = "\t";
$content .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
@mushon
mushon / README.md
Last active September 11, 2015 09:25
These bars are nicely grouped but they should be stacked

The bars here are nicely grouped ordinally by "saif" (top level item) categories which is something I actually wanted to achieve but the bars in each of these ordinal categories overlap rather than stack. I made them 0.2 transparent so this can be easily tracked. I would love to get some guidance as to how may I be able to aggregate the total per 'saif' and to stack them accordingly.

Keybase proof

I hereby claim:

  • I am mushon on github.
  • I am mushon (https://keybase.io/mushon) on keybase.
  • I have a public key whose fingerprint is 3967 34C1 7E8F 6F52 BDCD ED69 03D9 3A66 035B 448A

To claim this, I am signing this object:

@mushon
mushon / README.md
Last active September 21, 2015 05:56
How The Treasury Cuts The Budget (in retrospect)

This is my scatterplot excercise where I use two circles for each item to show the difference in radius between the 100% of the budgets and the percentage left in them at the end of the year.

@mushon
mushon / HokHofeshHameida.htm
Created October 15, 2010 09:55
חוק חופש המידע, התשנ"ח
<p dir="rtl"><strong>חוק חופש המידע, התשנ"ח</strong><strong>1998-</strong><strong> </strong><sup>1</sup></p>
<p dir="rtl"><strong>1. חופש מידע</strong></p>
<p dir="rtl">לכל אזרח ישראלי או תושב הזכות לקבל מידע מרשות ציבורית בהתאם להוראות חוק זה.</p>
<p dir="rtl"><strong>2. הגדרות</strong><sup>4</sup><strong> </strong></p>
<p dir="rtl">בחוק זה -</p>
<p dir="rtl"><strong>"ועדה משותפת"</strong> - ועדה משותפת של ועדת החוקה חוק ומשפט וועדת החוץ והבטחון של הכנסת;</p>
<p dir="rtl"><strong>"מידע"</strong> - כל מידע המצוי ברשות ציבורית, והוא כתוב, מוקלט, מוסרט, מצולם או ממוחשב;</p>
<p dir="rtl"><strong>"ממונה"</strong> - מי שמונה לפי סעיף 3;</p>
<p dir="rtl"><strong>"קבלת מידע"</strong> - לרבות עיון, צפיה, האזנה, העתקה, צילום, קבלת פלט מחשב או קבלת מידע בכל דרך אחרת בהתאם לסוג המידע וצורת החזקתו;</p>
<p dir="rtl"><strong>"רשות ציבורית"</strong><sup>4</sup> -</p>
<?php
// First we make our function
function childtheme_welcome_blurb() {
// We'll show it only on the HOME page IF it's NOT paged
// (so, not page 2,3,etc.)
if (is_home() & !is_paged()) { ?>
<!-- our welcome blurb starts here -->
<div id="welcome-blurb">
<p>Welcome to <?php bloginfo('name'); ?>.</p>
</div>