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 / 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 / install_ruby_bundler.md
Last active May 29, 2021 07:50
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 / 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 / README.md
Last active March 5, 2024 22:06
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 / install-yarn-node.md
Last active September 2, 2022 14:10
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 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 / start-dev-server.md
Last active November 25, 2021 06:56
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 / bundle_install_gems.md
Last active September 17, 2020 11:04
Install gems with Bundler

Install gems with Bundler

Links:

  1. Navigate to your project root.
  2. Configure Bundler for your project (this will create .bundle/config).
@MichaelCurrin
MichaelCurrin / install_graphics_magick.md
Last active May 25, 2020 08:42
How to install GraphicsMagick
@MichaelCurrin
MichaelCurrin / README.md
Last active April 14, 2024 16:26
GitHub GraphQL - Get Pull Requests using GH's GraphQL API

Get Pull Requests using GH's GraphQL API

How to get Pull Requests data using Github in the browser, or using the API to allow for automating reporting or building in values into a website.

Resources