Skip to content

Instantly share code, notes, and snippets.

View benlk's full-sized avatar
🏡
Working from home

Ben Keith benlk

🏡
Working from home
View GitHub Profile

Number 17: the homepage as a clock

Parts:

  • post custom meta for scheduling ( begin, end )
  • posts sortable by scheduling ( if begin is not the post publish time )
  • homepage
  • homepage outputs posts in useful format without js
  • homepage outputs posts in useful format on mobile
  • progressive enhancement on large devices: the clock of posts appears, showing now and the post currently active
@benlk
benlk / comments-disqus.php
Last active December 19, 2015 19:58
Disqus-based comments system for @dropplets. Based on https://gist.github.com/jazzsequence/5144026
<?php ?>
<div id="disqus_thread"></div>
<!-- Disqus comment code from http://disqus.com/admin/universalcode/ -->
<script type="text/javascript" src="<?php print($template_dir_url); ?>custom/comments-disqus-js.js">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'benlk'; // required: replace example with your forum shortname
/* * * More information available at http://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables */
var disqus_identifier = <?php echo( "'" . $slug . "'" ) ?>; // optional . this line sets a unique identifier that disqus uses to track comments by post. Change it to something else if you want to.
var disqus_title = <?php echo( "'" . $post_title . "'" ) ?>; // this sets the post title, for Disqus\' purposes.
@benlk
benlk / 2020-12-20-test-draft.md
Last active December 19, 2015 15:49
Markdown testing posts for Dropplets ( https://github.com/circa75/dropplets/ ). Released under the WTFPL.

Draft testing post.

  • Ben Keith
  • benlkeith
  • 2020-12-22
  • Testing
  • draft

If you see this post, something's gone terribly wrong with your css.

Make sure that your style.css has the following css:

@benlk
benlk / summary.md
Last active December 11, 2015 14:39
OSU OSC Hackathon details

what

Hackathon

when

Feb 23, 1-5 p.m.

where

Ohio Union Interfaith/Prayer Room, 3rd floor

how much

$5 registration fee

who

Open to students and non-students

Wednesday:

  • shopping (see Google Keep)
  • Make cookies
  • ask Brian how early I can show up tomorrow to do cooking
  • what time is dinner?

Thursday

  • pack car, see Google Keep
<div class="pq-pA a-E-Pc Aq" role="log" aria-live="polite">
<hr class="Kc-Nd">
<div class=" Fm Eq Kc-we" data-from="undefined">
<div class="Kc-Oc">
<div class="Kc-Ca Fm">David Ryan joined group chat.</div>
</div>
</div>
<hr class="Kc-Nd">
<div class=" Fm Eq Kc-we" data-from="undefined">
<div class="Kc-Oc">
@benlk
benlk / 0-deprecated.md
Last active October 23, 2015 22:34
Updating largo-umbrella with a new commit

Check out inn/docs, folder projects/largo

This gist is out of date.

@benlk
benlk / gist:3494788
Created August 28, 2012 03:48
Linux Dualboot installation instructions with existing Windows partition
  1. Boot into Windows.

  2. Using Windows' partition tool Disk Management, resize the Windows partition to create a blank area as large as you desire.

  3. Insert your Linux install media.

  4. Reboot into your Linux install media.

  5. Do the Linux partitioning from your Linux install media.

@benlk
benlk / caches.txt
Last active September 15, 2015 19:14
A list of things we do to caches
break
bust
clear
dump
flip
invalidate
kick
purge
trash
@benlk
benlk / .sh
Last active August 29, 2015 14:28
# From https://twitter.com/addyosmani/status/633405466094120960
!! # run the last command executed
sudo !! # run the last command, but as root
!<word> # run the last command that started with the word
!<word>:p # List, but don't run that last command. :p is like "print"
<space>command # execute a command without saving it in history
echo "ls -l" | at midnight # execute command at a given time. `man at` has come really nice examples.
ls -lhS # sort files by sizes in directory
top -o vsize # why is your computer slow