Skip to content

Instantly share code, notes, and snippets.

View MichaelCurrin's full-sized avatar

Michael Currin MichaelCurrin

  • The Netherlands
View GitHub Profile
@MichaelCurrin
MichaelCurrin / start-dev-server.md
Last active August 28, 2024 11:53
Start a dev server

Start a dev server

Serve a local directory of static assets - using one-line solutions and no scripts

The first solution uses an IDE extension, while the rest involve using the command-line (intended for macOS and Linux, but they will hopefully work on Windows too).

Table of contents

@MichaelCurrin
MichaelCurrin / README.md
Last active March 6, 2024 10:19
Twitter GraphQL sample

Twitter GraphQL sample

Example of using a GraphQL service to explore the Twitter API

A great way to explore the Twitter API and returned data, without worrying about authorization or local setup. Just add a query in the explorer and hit run.

About

The GraphQL Hub website has an interactive GraphiQL service which allows access to Gitub, Twitter, Giphy and other APIs in the browser without authorization.

@MichaelCurrin
MichaelCurrin / install-yarn-node.md
Last active June 3, 2024 10:24
Install Yarn and Node.js

How to install Yarn and Node.js

This guide is for Yarn V1.

Links
@MichaelCurrin
MichaelCurrin / README.md
Last active April 6, 2025 18:23
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a given GitHub repo using the GraphQL API

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query

@MichaelCurrin
MichaelCurrin / python_sqlite_demo.py
Last active May 3, 2020 14:11
Insert tweet data into a database using SQLite
"""
Python SQLite demo.
The sqlite3 library is a Python builtin. Read more in the Python 3 docs:
https://docs.python.org/3/library/sqlite3.html
See also the SQLite docs:
https://www.sqlite.org/docs.html
"""
import sqlite3
@MichaelCurrin
MichaelCurrin / install_ruby_bundler.md
Last active February 21, 2025 05:53
Install Ruby and Bundler at the user level

Install Ruby and Bundler at the user level

Deprecated in favor of: gist.

Steps:

  1. Install Ruby at the user level.
    • Install with your package manager.
@MichaelCurrin
MichaelCurrin / vs_code_tasks.md
Last active February 6, 2022 19:31
VS Code tasks guide

Tasks

Guide for using tasks in VS Code

Tasks menu

How to open and use the tasks menu

Based on the Tasks tutorial.

Run any task

@MichaelCurrin
MichaelCurrin / bar.md
Last active April 22, 2020 12:58
Demo of multi-file gist with internal links

Bar

The order seems alphabetical for files.

@MichaelCurrin
MichaelCurrin / docsify-embed-gist.md
Last active May 8, 2023 14:50
Docsify - embed a gist that stays update to date
@MichaelCurrin
MichaelCurrin / install-python-3.md
Last active December 23, 2024 08:17
How to install Python 3