Skip to content

Instantly share code, notes, and snippets.

View nerdfiles's full-sized avatar
⚕️
bringing about the end-times of the philosophy

aha hah nerdfiles

⚕️
bringing about the end-times of the philosophy
View GitHub Profile
@Julynx
Julynx / 15_python_tips.md
Last active April 4, 2024 06:20
15 Python Tips To Take Your Code To The Next Level!
@charlag
charlag / mastodon.md
Last active November 13, 2022 19:09
Getting started with Mastodon API

So you want to use Mastodon API! Great!

Overview

Mastodon API is a simple REST api. What's REST? Not important, it's a kind of HTTP API. What's HTTP? It's what web pages are loaded with and kind of thing that everyone is using these days.

How do you load something from Mastodon? You do request like

@rogerallen
rogerallen / 0_tweegeemee.txt
Last active March 16, 2022 05:35
Archive February 12, 2022
Archive of the code for images posted to https://twitter.com/tweegeemee
Started February 12, 2022 with the Top 10 from the last week.
:clisk-random-seed 220212
Learn more at https://tweegeemee.com
// how to create a clockwise rotate animation with SwitchTransition and CSSTransition approach
// jsx
<div className="rotating-icon">
<SwitchTransition>
<CSSTransition
key={state ? 'faChevronDown' : 'faChevronUp'}
addEndListener={(node, done) => node.addEventListener('transitionend', done, false)}
classNames="rotate"
@kerenren
kerenren / preloadImgs.js
Created September 27, 2021 13:06
Preload images into caches in react
// exmpale to use Promise.all to preload all the iamges in the array to the app
// [loading, setLoading] = useState(false);
const cacheImages = async (srcArray) => {
const promises = await srcArray.map((src)=>{
return new Promise((resolve, reject) => {
const img = new Image();
img.src = src;
img.onload = resolve;
@GiovaniPM
GiovaniPM / Six Sigma.md
Last active August 7, 2022 22:04
Six Sigma

Six Sigma - Introduction

Six Sigma is a highly disciplined process that helps us focus on developing and delivering near-perfect products and services.

Features of Six Sigma

  • Six Sigma's aim is to eliminate waste and inefficiency, thereby increasing customer satisfaction by delivering what the customer is expecting.
  • Six Sigma follows a structured methodology, and has defined roles for the participants.
  • Six Sigma is a data driven methodology, and requires accurate data collection for the processes being analyzed.
  • Six Sigma is about putting results on Financial Statements.
@GiovaniPM
GiovaniPM / 00 - Cover.md
Last active August 7, 2022 22:01
Behavior Driven Development Tutorial

Learn Behavior Driven Development

@rauschma
rauschma / impatient-js-es2021.md
Last active August 31, 2023 07:02
ES2021 edition of “JavaScript for impatient programmers”

What is new in the ES2021 edition of “JavaScript for impatient programmers”?

Free to read online: exploringjs.com/impatient-js/

  • The exercises now run as native ESM modules on Node.js. Previously, they were run via the esm package.
  • Material on new ES2021 features:
    • String.prototype.replaceAll()
    • Promise.any()
    • Logical assignment operators
  • Underscores (_) as separators in number literals and bigint literals
const _ = require("lodash");
const { defineAbility, an } = require("@casl/ability");
const { permittedFieldsOf } = require("@casl/ability/extra");
function Article(attrs) {
Object.assign(this, attrs);
}
const user = {
id: 1,