Skip to content

Instantly share code, notes, and snippets.

View edwardtanguay's full-sized avatar

Edward Tanguay edwardtanguay

View GitHub Profile
==foray
category::GitHub
title::Setup SSH for GitHub on Ubuntu
rank::3.4
body::[[
- try to clone directory
- `git clone https://github.com/edwardtanguay/exercise-cashier-problem testcashier`
]]
@edwardtanguay
edwardtanguay / index.js
Created December 15, 2021 01:00
The test files
// this is the index.js file

Info Test

This is just a test.

Intro

This is the intro.

  • point one
  • point two
import https from 'https';
import fs from 'fs';
const options = {
hostname: "www.lemonde.fr",
port: 443,
path: "/culture/article/2021/12/12/ilya-repine-peindre-l-ame-russe-au-petit-palais-les-contradictions-d-un-peintre-realiste_6105725_3246.html",
method: "GET"
}
@edwardtanguay
edwardtanguay / .main.md
Last active August 22, 2020 16:37
How to get Jest unit tests running in React
  • go to web directory
  • npx create-react-app testjest
  • VSCode, open directory
  • look at /src/App.test.js
  • npm test
    • you see that the test passes
  • an example of an App.test.js file is:
@edwardtanguay
edwardtanguay / curl.md
Last active August 22, 2020 16:25 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

#!/usr/bin/env node
console.log("test gist");
<script src="http://jashkenas.github.io/underscore/underscore-min.js"></script>
<script src="http://jashkenas.github.io/backbone/backbone-min.js"></script>