Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
Summary Goes Here| # STEP 1: Load | |
| # Load documents using LangChain's DocumentLoaders | |
| # This is from https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/csv.html | |
| from langchain.document_loaders.csv_loader import CSVLoader | |
| loader = CSVLoader(file_path='./example_data/mlb_teams_2012.csv') | |
| data = loader.load() |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| MIT License | |
| Copyright (c) 2016 Matt Menzenski | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal |
Alfred Workflow to toggle bluetooth devices. I use this workflow to toggle the connection to my Bluetooth Headphones.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // # Mocha Guide to Testing | |
| // Objective is to explain describe(), it(), and before()/etc hooks | |
| // 1. `describe()` is merely for grouping, which you can nest as deep | |
| // 2. `it()` is a test case | |
| // 3. `before()`, `beforeEach()`, `after()`, `afterEach()` are hooks to run | |
| // before/after first/each it() or describe(). | |
| // | |
| // Which means, `before()` is run before first it()/describe() |
| /** | |
| * Get a random floating point number between `min` and `max`. | |
| * | |
| * @param {number} min - min number | |
| * @param {number} max - max number | |
| * @return {number} a random floating point number | |
| */ | |
| function getRandomFloat(min, max) { | |
| return Math.random() * (max - min) + min; | |
| } |
This Twine macro lets you use the Wordnik API to get random nouns and adjectives for your story.
| ''' | |
| Command line script used to grab synonyms off the web using a thesaurus api. | |
| The words come from the "Big Huge Thesaurus", and I make no claims about the | |
| results. In order to use this script you will need a valid API key, which is | |
| available, for free (up to 10,000 calls / day), from here - http://words.bighugelabs.com/getkey.php | |
| If you're really lazy, you can just use my key - eb4e57bb2c34032da68dfeb3a0578b68 | |
| but I'd rather you didn't. Thanks. | |
| Examples: |