Skip to content

Instantly share code, notes, and snippets.

View confused-Techie's full-sized avatar
💨
Putting to much on my plate

confused_techie confused-Techie

💨
Putting to much on my plate
View GitHub Profile
@confused-Techie
confused-Techie / README.md
Created September 13, 2022 05:29
All Atom Packages with Wikis

The files you care about will be:

  • urlList.json
  • repoList.json

Within these files are links to every repo Atom owns, that within their config have "has_wiki": true

Now this doesn't mean that wiki has anything in it, but should still be checked.

This is a short document, intended to be eventually transfered to the new Pulsar Documentation site.

Package Naming Conventions

When you create a Pulsar Package, there are several package naming conventions that can assist you into making sure your package is discoverable and it's intent is easily understood.

  • SERVICE-snippets: Appending -snippets to the end of a package name indicates this package only provides snippets of the afformentioned service.
  • autocomplete-SERVICE: Prepending autocomplete- to the beginning of a package name indicates this package only provides
@confused-Techie
confused-Techie / how-pulsar-works.md
Last active July 3, 2023 03:10
How Pulsar Works

How Pulsar Works

It's no secret that Pulsar since inherited from Atom, is a big and complex application.

With many discrete, moving aspects, that not all developers have a concrete grasp on. The goal of this document is to make the architecture of Pulsar, as well as the logical flow more understandable and approachable.

This will be accomplished through a series of illustrations detailing the functional decomposition and detailed logical flow of Pulsar and it's parts, as well as lists of what's accomplished in each part.

@confused-Techie
confused-Techie / convert-tokens-to-spec.js
Created August 2, 2023 23:32
Convert tokens from Pulsar/Atom Spec into JS Spec expectations
/**
* Converts a 'tokens' array into a spec that can be dropped into your spec file.
* Assuming a setup with the following:
* `let { tokens } = grammar.tokenizeLine("your test text here"); const convert = require("convert-tokens-to-spec.js"); convert(tokens);`
*/
module.exports =
function convertTokensToSpec(tokens) {
let textOutput = "";
@confused-Techie
confused-Techie / index.js
Created October 10, 2023 01:32
Retry function and wait until success
/**
* This example shows how we can can preform some check multiple times, and if it
* fails we wait a predetermined amount of time and try again. Only returning
* once there is a successful attempt.
*
* This can be useful such as preforming a startup check if you have a Database
* Also starting up at the same time, and want rather simple logic to wait on
* the database fully starting up.
*
@confused-Techie
confused-Techie / modify_registry.md
Created March 21, 2024 22:22
One way to modify the Windows Registry safely that's language agnostic

Making Registry Edits on Windows via Pulsar

Best way seems to be via a .reg file. Which allows for a simple syntax of declaring Registry Changes, which can then be run via the command line.

Resouces

Example File: