Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Darryl Dias DarrylDias

🎯
Focusing
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am darryldias on github.
  • I am darryldias (https://keybase.io/darryldias) on keybase.
  • I have a public key ASBqBc8oQOgXZ8LeDlgDx7bbJRFB8j0cpmstQp_QRBfWBwo

To claim this, I am signing this object:

View rtorrent.rc
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
View ghost-contact-form-example.hbs
<form id="contactform" action="//formspree.io/me@example.com" method="POST"><input name="name" type="text" placeholder="Your name" /> <input name="_replyto" type="email" placeholder="Your email" /> <textarea name="message" placeholder="Your message"></textarea> <input type="submit" value="Send" /></form>
@DarrylDias
DarrylDias / hb-snippet-variable-example.md
Created Jul 10, 2017 — forked from kennethormandy/hb-snippet-variable-example.md
A quick example Harp app that uses the correct title for your blog in the correct place.
View hb-snippet-variable-example.md

A quick example Harp app that uses the correct title for your blog in the correct place.

The App

app/
  |- _harp.json
  |- _layout.ejs
  |- index.ejs
  |+ posts/
      |- _data.json
@DarrylDias
DarrylDias / live-tile.hbs
Created Jun 27, 2017
Live TIle for Ghost blogging platform
View live-tile.hbs
<meta name="application-name" content="{{@blog.title}}"/>
<meta name="msapplication-TileColor" content="#00acff"/>
<meta name="msapplication-square70x70logo" content="{{@blog.logo}}"/>
<meta name="msapplication-square150x150logo" content="{{@blog.logo}}"/>
<meta name="msapplication-wide310x150logo" content="{{@blog.logo}}"/>
<meta name="msapplication-square310x310logo" content="{{@blog.logo}}"/>
<meta name="msapplication-notification" content="frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=5; cycle=1"/>
<!-- Created by Darryl Dias http://darryldias.me/live-tile-for-ghost -->
@DarrylDias
DarrylDias / live-tile.html
Created Jun 27, 2017
Live Tile for Jekyll
View live-tile.html
<meta name="application-name" content="{{site.title}}"/>
<meta name="msapplication-TileColor" content="#00acff"/>
{% if site.logo %}
<meta name="msapplication-square70x70logo" content="{{site.logo}}"/>
<meta name="msapplication-square150x150logo" content="{{site.logo}}"/>
<meta name="msapplication-wide310x150logo" content="{{site.logo}}"/>
<meta name="msapplication-square310x310logo" content="{{site.logo}}"/>
{% endif %}
<meta name="msapplication-notification" content="frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=5; cycle=1"/>
<!-- Created by Darryl Dias http://darryldias.m
@DarrylDias
DarrylDias / adsense-amp.html
Created Jun 8, 2017
AdSense optimised for AMP.
View adsense-amp.html
<!-- AdSense Snippet -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block;"
data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@DarrylDias
DarrylDias / single.php
Last active Jun 8, 2017
AdSense supported WordPress AMP single.php
View single.php
<?php
$publisher_id = "ca-pub-xxxxxxxxxxxxxxxx";
$ad_slot = "xxxxxxxxxx";
?>
<!doctype html>
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
@DarrylDias
DarrylDias / postachio-gridly-theme.html
Created May 9, 2016 — forked from bmann/postachio-gridly-theme.html
Custom Postachio theme based on the Gridly base theme. Modified to focus on highlighting link posts over "original" posts. Home page links go directly to original article.
View postachio-gridly-theme.html
<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<title>{% if is_home %}{{ site.author }} {% elif is_post %} {{ post.title }} {% elif is_link %} {{ link.title }} {% elif is_tag %} {{ tag }} {% elif is_page %} {{ page.title }} {% endif %} | {{ site.name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
View grav-sample-front-matter
---
title: Lorem Ipsum
date: 2015/08/17
description: A sample post
taxonomy:
tag: [sample]
category: [blog]
---
You can’t perform that action at this time.