Skip to content

Instantly share code, notes, and snippets.

View clarkhacks's full-sized avatar
🏢
Working from the office

Clark Weckmann clarkhacks

🏢
Working from the office
View GitHub Profile
@clarkhacks
clarkhacks / about_sheldon.md
Last active August 23, 2016 15:27
Owner Info for SheldonTheTurtle.com

Sheldon The Turtle 🐢

Bio:

Sheldon is a curious little critter that is very sociable. Most people love him from the start. I adopted him on May 7th, 2016. Every since that day he's been my best friend. His favorite food is grapes and he loves tea every once and awhile. Everyone in my family adores Sheldon and spoils him!


Why the blog?

@clarkhacks
clarkhacks / QuatraticForumalCalc.html
Created November 1, 2016 15:08
Quadratic Formula Calculator
<SCRIPT language="JavaScript">
<!--
//Quadratic Calculator, by Taydron
//http://www.taydron-domain.net
//Visit JavaScript Kit (http://javascriptkit.com) for script
function quadData1() {
var valA = document.quadCalc.valA.value;
var valB = document.quadCalc.valB.value;
@clarkhacks
clarkhacks / CHshare.js
Created December 2, 2016 18:47
Just a simple, responsive, adaptive share button plugin. It automatically detects the url and title of the page. Requires JQuery.
$(document).ready(function() {
$("#twit").attr("href", "http://twitter.com/intent/tweet?status=" + document.title + window.location);
$("#gplus").attr("href", "https://plus.google.com/share?url=" + window.location);
$("#fb").attr("href", "http://www.facebook.com/sharer/sharer.php?u=" + window.location + "&title=" + document.title);
});
var btnVar = "<div>\n<div class=\"share-btns\">\n\n<a href=\"#\" class=\"buttons\" id=\"gplus\" tooltip=\"Google+\"></a>\n\n<a href=\"#\" id=\"twit\" class=\"buttons\" tooltip=\"Twitter\"></a>\n\n<a href=\"#\" class=\"buttons\" id=\"fb\" tooltip=\"Facebook\"></a>\n\n<a style=\"text-align: center\" class=\"buttons\" tooltip=\"Share\" href=\"#\"></a>\n\n</div>\n</div>";
document.write("<style>.share-btns{position:fixed;bottom:0;right:0;width:auto;height:auto}.share-btns .buttons{box-shadow:0 5px 11px -2px rgba(0,0,0,.18),0 4px 12px -7px rgba(0,0,0,.15);border-radius:50%;display:block;width:56px;height:56px;margin:20px auto 0;position:relative;-webkit-transition:all .1s ease
@clarkhacks
clarkhacks / a-tribute-to-kelley-liljegren.markdown
Created March 3, 2017 16:44
A Tribute To Kelley Liljegren

Keybase proof

I hereby claim:

  • I am clarkhacks on github.
  • I am clarkhacks (https://keybase.io/clarkhacks) on keybase.
  • I have a public key whose fingerprint is AE87 52F2 1C83 B6EE AE52 00E7 898D 4826 41B8 6FF6

To claim this, I am signing this object:

@clarkhacks
clarkhacks / Alzheimers.md
Last active May 17, 2024 07:18
Reddit Short Stories I Like

u/SlowCrates

I put my 5 year old daughter, Emily, in the elevator, and waited until the doors closed before running down the hall to the stairs. I'd done this trick before, and seeing my daughter's 5 year old face light up filled me with an unforgettable sense of joy.

I heard the 'ding' just as I dismounted from the staircase on the first floor, and with no time to spare I haulted myself in my best casual pose just as the doors opened. Normally I'd hear her giggles before the door opened, then I'd see her soul-saving smile.

But that's not what happened this time.

"Hello Dad," an adult woman said. "We have a lot to talk about."

@clarkhacks
clarkhacks / Logger.js
Created December 4, 2017 15:23
Logger Function With FS
var fs = require('fs')
var logger = fs.createWriteStream('log.txt', {
flags: 'a' // 'a' means appending (old data will be preserved)
})
// logger.write('some data') // append string to your file
// logger.write('more data') // again
// logger.write('and more') // again
@clarkhacks
clarkhacks / Arduino_Servo_Web.ino
Created January 11, 2018 22:16
Control servo from arduino ethernet.
/*
Created by Rui Santos
Visit: http://randomnerdtutorials.com for more arduino projects
Arduino with Ethernet Shield
*/
#include <SPI.h>
#include <Ethernet.h>
#include <Servo.h>
@clarkhacks
clarkhacks / encodeHTML.js
Last active May 17, 2024 07:18
Retrieve Url Parameter Values.
function encodeHTML(s) {
return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;');
}
/*!
* =====================================================
* Ratchet v2.0.2 (http://goratchet.com)
* Copyright 2014 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
*
* v2.0.2 designed by @connors.
* =====================================================
*/