Skip to content

Instantly share code, notes, and snippets.

View Ifycode's full-sized avatar
🎯
Always in Collabo mode 🤝

Mary @Ifycode Ifycode

🎯
Always in Collabo mode 🤝
View GitHub Profile
@Ifycode
Ifycode / README.md
Last active March 29, 2022 07:12
Just organising my thoughts about how to go about studying... @catlog-shop

Notes on Ifycode's study method

Basic idea

Generally for any course you take/study, to help your "ministry" move forward 😉:

  • You may want to take a full course more than once.
  • You may want to group sections based on what you've come across before or not. Let me just give the groupings the term "study-rounds"... You may want to do this grouping half way through the entire course, or at the end the first study-round of the entire course.
  • You don't want to add another course to the list of what you learning, if your brain still has to do a lot of work to process concepts/things from a previous course (applicable to group-sections as explained in the hints below).

One full course can be divided into group-sections. Every group-section is treated as though it is a separate course. Which technically means a full course that is not divided into any group-sections is equivalent to a typical group-section.

Each group-section can therefore have different number of study-rounds depending on the comple

@mjackson
mjackson / redirects-in-react-router-v6.md
Last active November 12, 2023 07:32
Notes on handling redirects in React Router v6, including a detailed explanation of how this improves on what we used to do in v4/5

Redirects in React Router v6

An important part of "routing" is handling redirects. Redirects usually happen when you want to preserve an old link and send all the traffic bound for that destination to some new URL so you don't end up with broken links.

The way we recommend handling redirects has changed in React Router v6. This document explains why.

Background

In React Router v4/5 (they have the same API, you can read about why we had to bump the major version here) we had a <Redirect> component that you could use to tell the router when to automatically redirect to another URL. You might have used it like this:

from random import shuffle
def generateCol(start, end):
num_pool = [num if num != 0 else 1 for num in range(start, end)]
shuffle(num_pool)
return num_pool[:5]
board = [
generateCol((x - 1) * 15, x * 15)
for x in range(1, 5 + 1)
@LeandroGabrielAyala
LeandroGabrielAyala / 01-zsh-command-not-found-gulp.md
Last active March 13, 2023 17:58
The "gulp" command is not found or does not work on node_modules (npm)

I recently wanted to install a new NPM module (that is Gulp). I followed the getting started guide and ran the needed command but it didn’t worked and I felt desperate… but I finally found the solution!

@lukas-h
lukas-h / license-badges.md
Last active April 20, 2025 12:09
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@tmpvar
tmpvar / my-first-module.md
Last active December 20, 2021 18:48
how to create your very first node.js module and publish it to the npm registry

building your first node module

This is pretty simple, lets dive in!

choose a name

Find a name that isn't taken and clearly describes what your module is doing

$ npm view your-first-node-module
@IlanFrumer
IlanFrumer / uiSrefParams.js
Created January 6, 2014 11:34
Angular.js ui-router directive to Reload current state with different params
app.directive("uiSrefParams", function($state) {
return {
link: function(scope, elm, attrs) {
var params;
params = scope.$eval(attrs.uiSrefParams);
return elm.bind("click", function(e) {
var button;
if (!angular.equals($state.params, params)) {
button = e.which || e.button;
if ((button === 0 || button === 1) && !e.ctrlKey && !e.metaKey && !e.shiftKey) {