Skip to content

Commit

Permalink
feat: add OG images
Browse files Browse the repository at this point in the history
fixes: #21
  • Loading branch information
hmajid2301 committed Nov 12, 2022
1 parent 9f3d113 commit dbfa160
Show file tree
Hide file tree
Showing 123 changed files with 304 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tasks:

new_post:
cmds:
- hugo new --kind post-bundle posts/{{now | date "1995-01-23"}}-{{.ARTICLE_NAME}}
- hugo new --kind post-bundle posts/{{now | date "2006-01-02"}}-{{.ARTICLE_NAME}}
env:
ARTICLE_NAME: foo

Expand Down
2 changes: 1 addition & 1 deletion archetypes/post-bundle/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: {{ replace .Name "-" " " | title }}
date: {{ dateFormat "1995-01-23" .Date }}
date: {{ dateFormat "2006-01-02" .Date }}
canonicalUrl: {{ site.BaseURL }}posts/{{ replace .Name "-" " " | title }}/
draft: true
tags:
Expand Down
2 changes: 1 addition & 1 deletion archetypes/talk-bundle/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: {{ replace .Name "-" " " | title }}
date: {{ dateFormat "1995-01-23" .Date }}
date: {{ dateFormat "2006-01-02" .Date }}
canonicalUrl: {{ site.BaseURL }}talks/{{ title }}/
ShowToc: false
ShowReadingTime: false
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- android
- virtualbox
- expo
cover:
image: images/cover.png
---
My home PC runs Windows for various conveniences, such as gaming. However, for development, I run an Ubuntu virtual
machine (VM) and Genymotion (on Windows) for testing my app. Genymotion also uses VirtualBox to run its Android
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- debugging
- vscode
- webstorm
cover:
image: images/cover.png
---
Visual Studio Code and WebStorm are two popular editors for developing React Native/Expo apps. These editors have lots
of useful features, such as syntax highlighting, git integration and auto completion. However working out to debug
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- python
- sqlalchemy
- database
cover:
image: images/cover.png
---
SQLAlchemy is an Object-relational mapping (ORM) made for the Python programming language. ORMs in theory allow
programmers to abstract away SQL. In simple terms they allow us to interact with a database using purely Python
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- react-native
- expo
- debugging
cover:
image: images/cover.png
---
The _core_ logic of my React Native app involves using WebViews because I need to access the HTML5 canvas. Whilst
developing this code there are bound to be errors and issues with the WebView code. Figuring out how to debug
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- docker
- expo
- docker-compose
cover:
image: images/cover.png
---
Running Expo/React Native in a Docker container can sometimes cause issues. In this example, I will be running
Docker 🐳 within a guest VM (Ubuntu) which will run on my host machine (Windows). My host machine will also
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- python
- pytest
- testing
cover:
image: images/cover.png
---
Recently I had to test some of my Python :snake: :snake: :snake: code which required an external dependency and communicating by using TCP sockets :electric_plug: . You can think of this dependency as essentially a database because it stored information. However, when testing my Python code, I couldn't rely on there always being a TCP server to send messages to.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- python
- docker-compose
- flask
cover:
image: images/cover.png
---
## Terminology

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- docker-compose
- python
- sqlalchemy
cover:
image: images/cover.png
---
SQLAlchemy is an object-relational mapper (ORM), it allow us to interact with a database using Python functions and objects. For example, if we have a table called
`Cats` we could retrieve every row with a command like `Cats.query.all()`. The main advantage of this is that it allows us to abstract away the SQL.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- python
- pytest
- flask
cover:
image: images/cover.png
---
Pytest is a popular Python library used for testing. It is my preferred testing library because it requires less boilerplate code than the alternatives such as (the builtin) unittest, the built in testing library.
In this article, I will show you how you can use `pytest-flask` and `pytest-mock` to test your Flask app. These two
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- react-native
- react-navigation
- expo
cover:
image: images/cover.png
---
Recently whilst developing a React Native app (with Expo),
I built a simple tab navigator using React Navigation library.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- react-native
- react-navigation
- expo
cover:
image: images/cover.png
---

In this article, we will create a simple React Native (with [Expo](https://expo.io/)) application using React
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ canonicalURL: https://haseebmajid.dev/posts/2019-04-19-how-to-add-your-own-type-
date: 2019-04-19
tags:
- typescript
cover:
image: images/cover.png
---
Recently I started using TypeScript (TS) with React Native. Now I won't be going over the benefits of
typescript in this article there are plenty for other articles that will explain the benefits (and drawbacks).
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ tags:
- flask
- python
- connexion
thumbnail: images/swagger-ui.gif
cover:
image: images/cover.png
---
RESTful APIs are very popular at the moment and Python is a great language to develop
web APIs with. In this article we will go over a documentation first approach to building APIs.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- ci-cd
- gitlab
- android
cover:
image: images/cover.png
---
In this article I will show how you can use the GitLab CI with React Native to create a binary which can be published to the
Google Play Store.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ tags:
- ci-cd
- gitlab
- android
thumbnail: images/json-key.png
cover:
image: images/cover.png
---
In this article, I will show you how can automate the publishing of your AAB/APK to the `Google Play Console`.
We will be using the [Gradle Play Publisher](https://github.com/Triple-T/gradle-play-publisher) (GPP) plugin to do
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ date: 2019-11-09
tags:
- react-native
- android
thumbnail: images/android-studio.gif
cover:
image: images/cover.png
---
In this article, we will go over how you can use add the new adaptive app icons to your Android app.
In his article I will be using a React Native project, so the structure of your Android app may vary.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ date: 2019-12-01
tags:
- typescript
- javascript
cover:
image: images/cover.png
---
In this article, I will explain how you can use typescript aliases with Babel or TSPath.
If you have been using TypeScript/JavaScript (TS/JS) and have a nested folder structure,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- python
- tox
- makefile
cover:
image: images/cover.png
---
In this article, we will go over how we can use a makefile and tox to automate various Python related tools.
This article assumes you are running bash (or equivalent).
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ tags:
- react-native
- react
- react-hooks
thumbnail: images/main.png
cover:
image: images/cover.png
---
In this article, I will show you how you can change the theme of your app depending on
the time of the day. We will change the theme of the app depending on if the sun has set or risen.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ tags:
- firebase
- gitlab
- ci-cd
thumbnail: images/firebase.gif
cover:
image: images/cover.png
---
In this article, we will talk about how you can use React Native with [Firebase Cloud Functions](https://firebase.google.com/docs/functions).
We will also go over how we can automate the process of updating the cloud functions using [Gitlab CI](https://docs.gitlab.com/ee/ci/).
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- react-native
- ci-cd
- gitlab
cover:
image: images/cover.png
---
A bit of backstory when I first started developing React Native apps, I found there weren't
any good example of Gitlab CI files. So in this article, I will show you an example `.gitlab-ci.yml`
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ tags:
- gitlab
- ci-cd
- docz
thumbnail: images/docs.png
cover:
image: images/cover.png
---
In this article I will show you how you can deploy a Docz website on Gitlab pages, using `.gitlab-ci.yml`.
Most of this article should be applicable to Github pages as well.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- react
- react-hooks
- react-context
cover:
image: images/cover.png
---
In this article, I will show how you can use React Context with React Hooks to store global state across a React app,
then store that state in local storage. This can be used for example to store light vs dark theme, then whenever the
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tags:
- docker
- gitlab
- ci-cd
cover:
image: images/cover.png
---
Like most developers, we want to be able to automate as many and as much of processes as possible. Pushing Docker
images to a registry is a task that can easily be automated. In this article, we will cover how you can use
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ date: 2020-05-10
tags:
- ajax
- javascript
cover:
image: images/cover.png
---

![demo](images/main.gif)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ date: 2020-05-31
tags:
- react-native
- structure
cover:
image: images/cover.png
---
In this article, I will go over an example project structure you can use for your React Native projects.
This of couse my opinion so feel free to tweak the structure to your needs/preferences.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags:
- flask
- testing
- pytest
cover:
image: images/cover.png
---
In this article, I will show you how you can test a Python web service that was built using [Connexion](https://github.com/zalando/connexion/)
(a wrapper library around Flask). We will go over how you can mock functions and how you can test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ tags:
- pytest
- gitlab
- ci-cd
cover:
image: images/cover.png
---
On a recent project, I was working on, I wanted to test my web service using docker-compose where I can run and kill
Docker containers used by the application and see how my web application reacts to that. In this article, we will
Expand Down
Loading

0 comments on commit dbfa160

Please sign in to comment.