Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
jdsimcoe / base64.md
Created October 16, 2015 23:03
A guide to how to embed Base64 stuff in your web stuff.

HTML

Here is some code on how to embed Base64 in HTML:

JPEG

<img src="data:image/jpeg;base64,BASE64_STRING"/>

PNG

@jdsimcoe
jdsimcoe / image_index_preview.publish.js
Created October 25, 2012 18:51
Image Index Preview
(function($) {
/**
* This plugin adds image preview to the publish pages.
*
* @author: Nils Hörrmann, post@nilshoerrmann.de
* @source: http://github.com/nilshoerrmann/image_index_preview
*/
$(document).ready(function() {
@jdsimcoe
jdsimcoe / globals.xsl
Created March 29, 2013 15:43
Category All Template
<xsl:template match="/data/category-all/entry">
<xsl:call-template name="photo-by-category-entry"/>
</xsl:template>
<xsl:template name="photo-by-category-entry">
<div class="span3 photo">
<a href="{$root}/photo/category/{title/@handle}" class="photo-entry home">
<div class="metadata">
<h4>
@jdsimcoe
jdsimcoe / config.php
Created October 30, 2013 21:45
Symphony DB Config
if($_SERVER['HTTP_HOST'] == 'accf')
{
$settings['database'] = array(
'character_set' => 'utf8',
'character_encoding' => 'utf8',
'runtime_character_set_alter' => '1',
'query_caching' => 'default',
'host' => 'localhost',
'port' => '3306',
'user' => 'root',
@jdsimcoe
jdsimcoe / humans.txt
Created June 18, 2015 18:13
A really cool example humans.txt from Google Ventures.
_____) __ __)
/ /) (, ) /
/ ___ _______ // _ | / _ __ _/_ __ _ _
/ / ) (_)(_)(_/_(/__(/_ |/ _(/_/ (_(__(_(_/ (__(/_/_)_
(____ / .-/ |
(_/ Hand-crafted since 2009
/*
* Viktor's Roam Mobile Long tap to Exluce Filters and Right click on bullets + pages + title
* version: 0.3
* author: @ViktorTabori
*
* How to install it:
* - go to page [[roam/js]]
* - create a node with: { {[[roam/js]]}}
* - create a clode block under it, and change its type from clojure to javascript
* - allow the running of the javascript on the {{[[roam/js]]}} node
@jdsimcoe
jdsimcoe / Roam-youtube-resizer.css
Created June 5, 2020 22:41 — forked from ciceronianus/Roam-youtube-resizer.css
Roam - make Youtube video larger by @CatoMinor3
/* How to use: Simply put #make:yt-large infront of {{youtube: }} */
[data-tag*="make:yt-large"] ~ div iframe
{
width: 700px;
height: 400px;
}
@jdsimcoe
jdsimcoe / jon-roam-daily-template.md
Created February 29, 2020 00:51 — forked from jborichevskiy/jon-roam-daily-template.md
The daily template I use for Roam Research https://roamresearch.com/
  • Weekly Agenda (created on a different day, and embedded with /Block Reference)
  • [[Morning Questions]] [[2/24 -- 3/1/2020]]
    • {{[[slider]]}} How many hours of sleep did I get?
    • [[What's one thing top of mind today?]]
    • [[What's the one thing I need to get done today to make progress?]]
  • Agenda
    • {{[[TODO]]}} 2 hours focused time
    • {{[[TODO]]}} Read 30 minutes #goal-learning #habit
  • Health & self-care
  • {{[[TODO]]}} 30 minutes outside #goal-health #habit
@jdsimcoe
jdsimcoe / jon-roam-daily-template.md
Created February 29, 2020 00:51 — forked from jborichevskiy/jon-roam-daily-template.md
The daily template I use for Roam Research https://roamresearch.com/
  • Weekly Agenda (created on a different day, and embedded with /Block Reference)
  • [[Morning Questions]] [[2/24 -- 3/1/2020]]
    • {{[[slider]]}} How many hours of sleep did I get?
    • [[What's one thing top of mind today?]]
    • [[What's the one thing I need to get done today to make progress?]]
  • Agenda
    • {{[[TODO]]}} 2 hours focused time
    • {{[[TODO]]}} Read 30 minutes #goal-learning #habit
  • Health & self-care
  • {{[[TODO]]}} 30 minutes outside #goal-health #habit
@jdsimcoe
jdsimcoe / keybase.md
Created November 14, 2018 18:37
My public Keybase proof for GitHub: https://keybase.io/jd51mc03.

Keybase proof

I hereby claim:

  • I am jdsimcoe on github.
  • I am jd51mc03 (https://keybase.io/jd51mc03) on keybase.
  • I have a public key ASBcvfCiTgs1THmMiPf7czZmrb3ETDMl77vqM6bzN2nDQwo

To claim this, I am signing this object: