Skip to content

Instantly share code, notes, and snippets.

View lildude's full-sized avatar
🐶
Puppeeeeeeee

Colin Seymour lildude

🐶
Puppeeeeeeee
View GitHub Profile
'use strict';
const React = require('react')
module.exports = React.createClass({
render: function() {
let {feeds, log} = this.props;
log.info(feeds);
return <div className="feed-list">
@lildude
lildude / making_language_grammar.md
Created May 7, 2021 09:32 — forked from Aerijo/making_language_grammar.md
Guide to writing an Atom language grammar

A guide to writing a language grammar (TextMate) in Atom

Tree sitter

  • Atom is transitioning to an entirely new way of defining grammars using tree-sitter. This will be enabled by default quite soon now. It is theoretically faster and more powerful than regex based grammars (the one described in this guide), but requires a steeper learning curve. My understanding is that regex based grammars will still be supported however (at least until version 2), so this guide can still be useful. To enable it yourself, go to Settings -> Core and check Use Tree Sitter Parsers

Links for tree-sitter help:

/*
1) Open your calendar on trainerroad
2) Press F12 to open developer tools, select console and paste the script below
3) OPTIONAL - modify the two dates (beg & end) to suit your needs
4) Copy the result of the execution (something like TRData = ...)
*/
(function () {
var beg = '2021-01-01';
var end = '2022-01-01';
function normalizeDate(dat) {
#!/usr/bin/env bash
#
# Export all Omnivore saves to a bookmarks.html file to easy importing into things like Pocket.
#
# Sets the added and modified dates to order is retained in the receiving service if it honours those fields. Pocket does.
#
# Instructions:
#
# 1. Save file to your Linux, macOS or WSL on Windows
# 2. Get an API key from Omnivore. See https://docs.omnivore.app/integrations/api.html