Skip to content

Instantly share code, notes, and snippets.

View lancejpollard's full-sized avatar
😍
Lots of coding

Lance Pollard lancejpollard

😍
Lots of coding
View GitHub Profile
@lancejpollard
lancejpollard / klass.rb
Created October 30, 2011 22:13
How modules are added to the inheritance chain in Ruby
module ModuleA
def method
puts "method called from ModuleA"
end
end
module ModuleB
def method
puts "method called from ModuleB"
super
@lancejpollard
lancejpollard / minimal-pairs.csv
Last active October 25, 2023 02:06
Minimal Pairs for French, English, Arabic, Punjabi, Russian, Finnish, Hebrew, Georgian, and more
language native call-script
arabic سُؤَال su'aal
arabic سُعَال suQ~aal
arabic كشع kaxuQ~Q~
arabic كشغل kaxuQl
arabic لدع ladaQ~Q~a
arabic لدغا ladaQaa
arabic معاز maQ~Q~aaz
arabic معاص maQ~aas~
arabic سيفاصل seIufaas~il
@lancejpollard
lancejpollard / generator.js
Last active September 8, 2023 12:25
Korean Hangul Breakdown Generator
let initial = [
'ㄱ',
'ㄲ',
'ㄴ',
'ㄷ',
'ㄸ',
'ㄹ',
'ㅁ',
'ㅂ',

The lojban I speak

coi ro do mi’e la saski’o tu’a dei cu ve ciksi tu’a lo me mi moi jbobau

Introduction

@lancejpollard
lancejpollard / css.css
Last active August 8, 2023 16:31
Example CSS Utilities
.every-2n-child-background-fill-white-2:nth-child(2n) > * {
background: rgb(244, 244, 244);
}
@lancejpollard
lancejpollard / example.terraform.1.tfstate.json
Last active July 4, 2023 21:07
Example Terraform State File Output (.tfstate)
{
"version": 4,
"terraform_version": "1.5.2",
"serial": 4,
"lineage": "d5d29458-464d-ade8-e0cd-686ea1854a73",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "google_cloudfunctions_function",
@lancejpollard
lancejpollard / notes.md
Last active June 4, 2023 07:41
Ideas for Optimal Software Implementations

Ideas for Optimal Software Implementations

This gist is a potentially slowly evolving collection of ideals when it comes to coding. It's hard to think of it all at once, and sometimes it's hard to find an answer ever until you discover it for yourself. So going to try and capture that kind of stuff here. Going to try and include the reason why each note is important to consider as well.

Show all of the errors at once

When writing code like in TypeScript, it shows you all of the possible errors in your code at once (here is the bottom of an error trace showing 9 errors):

...
@lancejpollard
lancejpollard / code.ts
Last active May 24, 2023 13:51
600 line TypeScript error
export type FormLink<
B extends Base,
N extends BaseName<B>,
I extends InterpolateForm<B> = InterpolateForm<B>,
> = JoinReferenceExpression<I, ExtractTableAlias<I, N>, string>
call = call.innerJoin(
link.head.form,
`${link.head.form}.${link.head.name}` as unknown as FormLink<
@lancejpollard
lancejpollard / readme.md
Last active May 9, 2023 23:58
Genesis 1 Brain Translation

1

In the beginning God created the heavens and the earth.

Upon emergence, the great brain mapped out perfection and chaos.

2

Now the earth was formless and desolate, and there was darkness upon the surface of the watery deep, and God's active force was moving about over the surface of the waters.