Skip to content

Instantly share code, notes, and snippets.

@mkgin
mkgin / .gitignore
Last active June 27, 2023 20:33 — forked from nhasbun/.gitignore
Git ignore file for quartus II projects
# Seen first here: https://gist.github.com/nhasbun/71918796044b7ba89d6662133495f754
#
#
# Working with Altera Quartus II (Q2) and do proper versioning is not that easy
# but if you follow some rules it can be accomplished. :)
# This file should be placed into the main directory where the .qpf file is
# found. Generally Q2 throws all entities and so on in the main directory, but
# you can place all stuff also in separate folders. This approach is followed
# here. So when you create a new design create one or more folders where your
# entities will be located and put a .gitignore in there that overrides the
@mkgin
mkgin / promise_http_get_data_example_node.js
Created September 13, 2024 14:05
Using a Promise to return http.get response data
/*
* Returning the "data" part of a http response
* with Node.js using "Promise"
*
* Based on example code in the Node.js Documentation:
* https://nodejs.org/api/http.html#httpgetoptions-callback
*/
const http = require('node:http');