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
#!/bin/bash | |
set_prompt() | |
{ | |
local last_cmd=$? | |
local txtreset='$(tput sgr0)' | |
local txtbold='$(tput bold)' | |
local txtblack='$(tput setaf 0)' | |
local txtred='$(tput setaf 1)' | |
local txtgreen='$(tput setaf 2)' |
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
<pre> | |
<?php | |
function buildBaseString($baseURI, $method, $params) { | |
$r = array(); | |
ksort($params); | |
print_r( $params ); | |
foreach($params as $key=>$value){ | |
$r[] = "$key=" . rawurlencode($value); | |
} | |
return $method."&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $r)); |
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
// Custom meta boxes for the homepage signs | |
add_action( 'add_meta_boxes', 'r6_add_sign_box' ); // Create meta box action | |
add_action( 'save_post', 'r6_save_postdata' ); // Save data for meta box | |
function r6_add_sign_box() | |
{ | |
add_meta_box( | |
'r6_sign_meta', | |
'Homepage Signs', | |
'r6_draw_sign_box', |
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
// | |
// main.m | |
// ch3q7 | |
// | |
// Created by Ellis Grouse on 15/05/2012. | |
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
// Book exercise: Chapter 3 Q7 | |
// Make a class called XYPoint that holds 2 coordinates x,y and can set/get them separately | |
// Write functionality to output the information | |
// |
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
$padding: 24px; | |
html { font-family: "Museo Sans", "Verdana", sans-serif; font-size: 62.5%; height: 100%; overflow-y: scroll; } | |
body { font-size: 1.2em; line-height: $padding; color: #444; | |
h1 { border-bottom: 1px solid #ddd; padding-bottom: $padding/4; margin-bottom: $padding/2; } | |
} | |
b, strong { color: #000; font-weight: bold; } | |
h1 { font-size: 1.5em; padding-bottom: $padding/2; } |
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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
[[$htmlhead]] | |
</head> | |
<body> | |
<section id="wrapper"> | |
[[$sidebar]] | |
<section id="main"> | |
<article class="post" id="post-[[*id]]"> |
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
http://egrouse.com/tool/grof.php?t=${title}&u=${url}&s=${source} |
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
%section#unit-settings | |
%h1 | |
= "Editing Unit: #{@unit.name}" | |
%a{ :href => '#', :class => 'toggle-box', :rel => 'unit-settings' } Hide | |
.box | |
= form_for @unit, :url => edit_unit_path( @unit ), :html => { :multipart => true } do |f| | |
.field | |
= f.label :name | |
= f.text_field :name | |
.field |
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
$(document).ready( function(){ | |
// Do the hidy boxes | |
$('a.toggle-box').click( function(){ | |
var rel = $(this).attr( 'rel' ), | |
section = $( 'section#' + rel ), | |
target = section.find( '.box' ); | |
if( section.hasClass( 'hidden' ) ) | |
{ |
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
http://www.mysterbin.com/advsearch?q=-.exe+%s&match=normal&minSize=1&maxSize=max&group=&maxAge=1269&nopasswd=on&complete=0 |
NewerOlder