parent
62f674c612
commit
f63f5b24c6
|
@ -186,35 +186,15 @@
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"links": [
|
"links": [
|
||||||
|
{
|
||||||
|
"label": "RSS for Dev Posts",
|
||||||
|
"icon": "fas fa-fw fa-rss-square",
|
||||||
|
"url": "/feed-dev.xml"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Email",
|
"label": "Email",
|
||||||
"icon": "fas fa-fw fa-envelope-square",
|
"icon": "fas fa-fw fa-envelope-square",
|
||||||
"url": "mailto:rob@tarasis.net"
|
"url": "mailto:rob@tarasis.net"
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Twitter",
|
|
||||||
"icon": "fab fa-fw fa-twitter-square",
|
|
||||||
"url": "https://twitter.com/tarasis"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Mastodon",
|
|
||||||
"icon": "fab fa-fw fa-mastodon",
|
|
||||||
"url": "https://social.tarasis.net/@tarasis"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Facebook",
|
|
||||||
"icon": "fab fa-fw fa-facebook",
|
|
||||||
"url": "https://www.facebook.com/tarasis"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "GitHub",
|
|
||||||
"icon": "fab fa-fw fa-github",
|
|
||||||
"url": "https://github.com/tarasis"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Instagram",
|
|
||||||
"icon": "fab fa-fw fa-instagram",
|
|
||||||
"url": "https://instagram.com/tarasis"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -331,30 +311,30 @@
|
||||||
},
|
},
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"posts": {
|
"posts": {
|
||||||
"path": "_posts",
|
"path": "_posts",
|
||||||
"type": "posts",
|
"type": "posts",
|
||||||
"layout": "single",
|
"layout": "single",
|
||||||
"classes": "wide",
|
"classes": "wide",
|
||||||
"author_profile": true,
|
"author_profile": true,
|
||||||
"read_time": true,
|
"read_time": true,
|
||||||
"share": true,
|
"share": true,
|
||||||
"related": true,
|
"related": true,
|
||||||
"comments": true,
|
"comments": true,
|
||||||
"sidebar":true,
|
"sidebar": true,
|
||||||
"show_date": true
|
"show_date": true
|
||||||
},
|
},
|
||||||
"pages": {
|
"pages": {
|
||||||
"path": "_pages",
|
"path": "_pages",
|
||||||
"type": "pages",
|
"type": "pages",
|
||||||
"layout": "single",
|
"layout": "single",
|
||||||
"author_profile": true
|
"author_profile": true
|
||||||
},
|
},
|
||||||
"recipies": {
|
"recipies": {
|
||||||
"path": "",
|
"path": "",
|
||||||
"type": "recipes",
|
"type": "recipes",
|
||||||
"layout": "single",
|
"layout": "single",
|
||||||
"author_profile": true,
|
"author_profile": true,
|
||||||
"share": true
|
"share": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"post_ext": "markdown",
|
"post_ext": "markdown",
|
||||||
|
@ -362,4 +342,4 @@
|
||||||
"post_layout": "single",
|
"post_layout": "single",
|
||||||
"page_layout": "page",
|
"page_layout": "page",
|
||||||
"titlecase": true
|
"titlecase": true
|
||||||
}
|
}
|
|
@ -5,6 +5,7 @@ tags:
|
||||||
- ios
|
- ios
|
||||||
- swift
|
- swift
|
||||||
- coding-challenges
|
- coding-challenges
|
||||||
|
- dev
|
||||||
category: coding-challenges
|
category: coding-challenges
|
||||||
date: 2020-04-20 15:28:00 +01:00
|
date: 2020-04-20 15:28:00 +01:00
|
||||||
---
|
---
|
||||||
|
|
|
@ -5,12 +5,13 @@ tags:
|
||||||
- ios
|
- ios
|
||||||
- swift
|
- swift
|
||||||
- coding-challenges
|
- coding-challenges
|
||||||
|
- dev
|
||||||
category: coding-challenges
|
category: coding-challenges
|
||||||
date: 2020-04-20 13:36:00 +01:00
|
date: 2020-04-20 13:36:00 +01:00
|
||||||
---
|
---
|
||||||
As an effort to improve and challenge myself I got a copy of Paul Hudson's [Swift Coding Challenges](https://www.hackingwithswift.com/store/swift-coding-challenges) book and I'm going to work through it and post my thoughts on it and about how I did. I (probably) won't post the answers because that might spoil it for some.
|
As an effort to improve and challenge myself I got a copy of Paul Hudson's [Swift Coding Challenges](https://www.hackingwithswift.com/store/swift-coding-challenges) book and I'm going to work through it and post my thoughts on it and about how I did. I (probably) won't post the answers because that might spoil it for some.
|
||||||
|
|
||||||
For Challenge 1 I basically had the first answer, however I ... um ... made it more complex than I needed to (I'm going to blame it on doing it at 1am). I ended up using a dictionary to store the character and the count of the occurrences of that character, yet I still dropped out of the function if the dictionary keys contained the current character.
|
For Challenge 1 I basically had the first answer, however I ... um ... made it more complex than I needed to (I'm going to blame it on doing it at 1am). I ended up using a dictionary to store the character and the count of the occurrences of that character, yet I still dropped out of the function if the dictionary keys contained the current character.
|
||||||
|
|
||||||
I was over thinking the challenge and for some reason thinking about actually counting the occurrences of letters.
|
I was over thinking the challenge and for some reason thinking about actually counting the occurrences of letters.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: What happens when I finish a Frontend Mentor Challenge (or how I build and deploy an 11ty site)
|
title: What happens when I finish a Frontend Mentor Challenge (or how I build and deploy an 11ty site)
|
||||||
tags: [webdev, site, frontendmentor]
|
tags: [webdev, site, frontendmentor, dev]
|
||||||
category: [programming, webdev]
|
category: [programming, webdev]
|
||||||
date: 2022-10-15
|
date: 2022-10-15
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Copy Code Blocks
|
title: Copy Code Blocks
|
||||||
tags: [webdev, site]
|
tags: [webdev, site, dev]
|
||||||
category: [site, webdev]
|
category: [site, webdev]
|
||||||
date: 2023-02-19
|
date: 2023-02-19
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Border Radius on an Outline in CSS
|
title: Border Radius on an Outline in CSS
|
||||||
tags: [webdev, css]
|
tags: [webdev, css, dev]
|
||||||
category: [css, webdev]
|
category: [css, webdev]
|
||||||
date: 2023-02-20
|
date: 2023-02-20
|
||||||
excerpt: A little note about using border-radius with an outline.
|
excerpt: A little note about using border-radius with an outline.
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
---json
|
||||||
|
{
|
||||||
|
"permalink": "feed-dev.xml",
|
||||||
|
"eleventyExcludeFromCollections": true,
|
||||||
|
"metadata": {
|
||||||
|
"title": "TDN: RMCG",
|
||||||
|
"subtitle": "👨💻 🚶♂️ 💭 🤯",
|
||||||
|
"language": "en",
|
||||||
|
"url": "https://tarasis.net/",
|
||||||
|
"author": {
|
||||||
|
"name": "Robert McGovern",
|
||||||
|
"email": "rob@tarasis.net"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.url }}">
|
||||||
|
<title>{{ metadata.title }}</title>
|
||||||
|
<subtitle>{{ metadata.subtitle }}</subtitle>
|
||||||
|
<link href="{{ permalink | absoluteUrl(metadata.url) }}" rel="self"/>
|
||||||
|
<link href="{{ metadata.url }}"/>
|
||||||
|
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
|
||||||
|
<id>{{ metadata.url }}</id>
|
||||||
|
<author>
|
||||||
|
<name>{{ metadata.author.name }}</name>
|
||||||
|
<email>{{ metadata.author.email }}</email>
|
||||||
|
</author>
|
||||||
|
{%- for post in collections.posts %}
|
||||||
|
{%- for tag in post.data.tags %}
|
||||||
|
{# {{ post | inspect }} #}
|
||||||
|
{%- if tag === "dev" %}
|
||||||
|
{%- set absolutePostUrl = post.url | absoluteUrl(metadata.url) %}
|
||||||
|
<entry>
|
||||||
|
<title>{{ post.data.title }}</title>
|
||||||
|
<link href="{{ absolutePostUrl }}"/>
|
||||||
|
<updated>{{ post.date | dateToRfc3339 }}</updated>
|
||||||
|
<id>{{ absolutePostUrl }}</id>
|
||||||
|
<content xml:lang="{{ metadata.language }}" type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
||||||
|
</entry>
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
|
{%- endfor %}
|
||||||
|
</feed>
|
Loading…
Reference in New Issue