Skip to content

Instantly share code, notes, and snippets.

View lazypower's full-sized avatar
💭
Bring back independent blogs, rss feeds, and the small web.

Charles "Chuck" Butler lazypower

💭
Bring back independent blogs, rss feeds, and the small web.
View GitHub Profile
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
using namespace std;
#include "person.h"
void Person::setName(string aName)
{
//Complex.cpp
#include <iostream>
#include "Complex.h"
using std::cout;
using std::endl;
/**
* Creates a new Complex with default values for real and imaginary
// TO save time i'm going with a single file class. Prototyped at the top, defined at the bottom.
#ifndef COMPLEX_H
#define COMPLEX_H
#include <iostream>
using namespace std;
class Complex
{
// Page initialization - The root of all evil
$(document).ready(function ()
{
// hide the template container
$('#TemplateContainer').hide();
// Initialize the Notification Daemon
$('#StatusBar').jnotifyInizialize({
oneAtTime: true
@lazypower
lazypower / gist:1047749
Created June 26, 2011 16:28
Jquery Failing to strip html, and show visible info
@using CCBlog.Classes
@model IEnumerable<CCBlog.Classes.LastFmWrapper.Track>
@{
ViewBag.Title = "About Me";
}
<script type="text/javascript">
$(document).ready(function () {
@using CCBlog.Classes
@model IEnumerable<CCBlog.Classes.LastFmWrapper.Track>
@{
ViewBag.Title = "About Me";
}
@* embed the json string for LFM *@
<script type="text/javascript">
var lfmData = @Html.Raw(ViewBag.Json)
<html>
<head>
<style type="text/css">
.border{
border: 2px solid #000;
width: 600px;
overflow: hidden;
margin-left: 400px;
}
.steps {
<section><!-- about-more -->
<div class="about-more">
<div id="experience-div" class="experience"><h3>EXPERIENCE</h3>
<ul class="menu noaccordion">
<li>
<a href="#"><h3>Linux Advocacy <span>//</span> Advocate & PowerUser</h3>
Early 1995 - Present</a>
<ul class="acitem">
<li>Recently, due to my job and learning the intricacies of ASP.Net have I migrated back onto the windows platform. I was an early
adopter back in the mid 1990's running Redhat 5.3. Its amazing how far the free operating system has come. To anyone looking for a
@lazypower
lazypower / faildrive.pos
Created August 26, 2011 23:04
Get Failing Hard-drive
[cmdletbinding()]
Param (
[parameter(ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
[string[]]$Computername,
[parameter()]
[System.Management.Automation.PSCredential]$Credential
)
Begin {
$queryhash = @{}
$BadDriveHash = @{}
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int hash_string(char str_name[]);
int main()
{