Skip to content

Instantly share code, notes, and snippets.

View Noviny's full-sized avatar
🦋

Noviny Noviny

🦋
View GitHub Profile
export type Combine<T> = {
[K in keyof T]: T[K];
} & {};
type One = {
one: number;
};
type Two = {
two: number;
};

Some Thoughts on building a Big Bad

Okay, let's build a Big Bad for a DnD campaign, and think of approaches that will mean it's easier to run the Big Bad in your campaign, in a collection of neat ideas, which can be summarised as:

  • Have a theme for your campaign
  • Decide what your Big Bad poses a threat to
  • Give your Big Bad a clear long-term goal
  • Play them like a character
  • Give them allies and enemies in the world (make them embedded)
  • Let them have their moments
  • Make sure there are ways that your players can slow the long-term goal without undoing any final fight.

I've been dreaming about stories again. The shape of words pressed together getting a rise of emotion of thought and feels. I do so hate to edit, so maybe those words present are not the crispest ever told. But I've been dreaming of them all the same.

I found a person, calls themselves a bard. And hardly it seems could any thing to be so excite me. Should I see stories as I now see music? Something that so excites and delights me that to disengage from them is to leave a part of me to wither, languish, and otherwise despair?

And could it be enough? This watching and listening and consuming of stories. I thought it was enough to take them in from those I admire and let that complete me. But enough perhaps of such beliefs, for we must face the truths we find. I want to spin words again. I want to take a character who I know and let them speak. I want to pick a character I know little of and find them through prose.

The last story that I conjured up nears a finality it's hard to express. It's not a novel to b

codesandboxER codesandbox-client
bolt monorepo lerna monorepo
Packages are designed to be publishedin close to lockstep, often simultaneously, and interdepend very closely - symlinking them is very important to dev flow About half of the components are not published. Things that are published can mostly be published individually
Publishing is super easy - except for exceptional packages (vs-codesandboxer and atom-codesandboxer) ??? (It looks like you would cd in and manually publish?
Build process and debugging requires building some packages, even if you are working on another package. ???
Documentation is in READMEs, really wants a website with better info/examples. Was recently told they were confusing. Docs are built into codesandbox website, and are good.

Thoughts

Open Source Checklist

This checklist is aimed at javascript packages to be published to NPM. Let's break up the roles of various things

Code Necessities

  • package.json with the fields
    • name
    • version
    • description
    • main
    • author
import Props from 'pretty-proptypes';
export default () => (
<Props
heading="Props"
props={require('!!extract-react-types-loader!../src/components/InlineMessage')}
/>
);
@Noviny
Noviny / babelTypeDescriptions.md
Last active August 12, 2022 09:46
A list of all babels types with an explanation, and a link to astexplorer with an example

The goal is to have a link to ASTexplorer to demonstrate what each type is. Types have been broken into sections if they are not core parts of javascript (JSX, type annotations, typescript types), however are otherwise in alphabetical order.

WIP - un-added types have a leading ^^^^ while I am working on them.

Important Base Parts

Knowing these will help everywhere

  • identifier A named property, such as a declared variable or object property.
  • blockStatement Anything to be run as part of resolving an expression. (Effectively anything that would go between {} brackets, whether that is in a for statement, or function expression. It will be found as the body property of the expression.

Explain RESTful architecture.

Stands for REpresentational State Transfer Most APIs use restful architecture for retrieving data from them. They use HTTP requests, and so can have GET, POST, PUT, DELETE requests made to them. Are made when requesting a webpage, as well as in AJAX requests after page load to retrieve informatino from servers Provides structure and consistency when talking to lots of different servers.

Explain the difference between empty? and nil?

Nil is an object class, while Empty is a property of an object that contains nothing within ruby. Empty can only be used to return a boolean, whereas things can be set as nil.

Not sure how to get the filter to take two properties, so we can change the 'isNucleotide' function.

var nucleotides = {
	DNA: ["A", "C", "G", "T"],
	RNA: ["A", "C", "G", "U"],

	chosenString: "abcdaaaa",