Skip to content

Instantly share code, notes, and snippets.

View Frankie-B's full-sized avatar
💭
New Day New Code

Frankie Bukenya Frankie-B

💭
New Day New Code
  • The Netherlands
View GitHub Profile

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@Frankie-B
Frankie-B / update_canary.sh
Created February 20, 2024 09:21 — forked from silvadev/update_canary.sh
chrome canary for linux
#!/bin/bash
#
# Update to latest chromium nightly on linux
# Script requires root to properly set up the sandbox
# https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment
#
# I use it with a line like the following in my .bashrc:
# alias canary='CHROME_DEVEL_SANDBOX="/home/tif/bin/chrome-linux/chrome_sandbox" /home/tif/bin/chrome-linux/chrome-wrapper'
#
# ----------------------------------------------------------------------
@Frankie-B
Frankie-B / Cloning Function with Default Implementation.md
Created February 10, 2024 16:11
This code snippet defines a cloning function that takes an element as input and returns a clone of its first child element. If a cloning function is not provided, it uses a default implementation.

Cloning Function with Default Implementation

Preview:
// Define a cloning function if not provided.
                const cloneFn = clone || (el => {
                    let clone = el.children[0].cloneNode(true);
                    el.insertBefore(clone, el.children[0]);
                    return clone;
                });
@Frankie-B
Frankie-B / .aliases
Created June 4, 2023 14:47 — forked from trulyronak/.aliases
Awesome Terminal Aliases (Featuring Brilliant Bash)
# fun stuff
alias lenny='echo \_(ツ)_/¯ | pbcopy'
alias tuxsay='cowsay -f tux '
alias fortunes='sh ~/.fortunes.sh'
alias life='figlet 42 | lolcat'
alias lol='while true; do sl; done;'
alias starwars='telnet towel.blinkenlights.nl'
alias fancy='figlet $@'
# to make people confused xD
@Frankie-B
Frankie-B / starship.toml
Created June 4, 2023 14:19 — forked from pythoninthegrass/starship.toml
Starship prompt setup
# SOURCE: https://starship.rs/config
# DEBUG via: `starship explain`
# Timeout for commands executed by starship (ms)
command_timeout = 500
# Replace the "❯"
[character]
success_symbol = "[λ](green)"
@Frankie-B
Frankie-B / webdev_online_resources.md
Created June 24, 2020 05:53 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@Frankie-B
Frankie-B / React .gitignore
Created March 11, 2021 14:16 — forked from vidaaudrey/React .gitignore
React Gitignore
node_modules
ncp-debug.log
npm-debug.log
bower_component
src/config/configSec.js
.DS_STORE
node_modules
*~
*.pyc
@Frankie-B
Frankie-B / The ultimate gitignore!
Created March 11, 2021 14:10 — forked from KSkodje/The ultimate gitignore!
The ultimate gitignore!
# Created by Adamino @ https://www.gitignore.io/api/java,android,netbeans,intellij,windows,csharp,wordpress,drupal,sass,linux,bluej,unity,unrealengine,grunt,yeoman,adobe,c++,bower,coffeescript,composer,eclipse,jetbrains,magento,joomla,laravel,lua,meteorjs,node,kobalt,python,objective-c,rails,swift,visualstudio,umbraco,visualstudiocode,webstorm,xamarinstudio,xcode,sublimetext
### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak
/* http://coding.smashingmagazine.com/2013/08/20/semantic-css-with-intelligent-selectors/ */
[rel="prev"] {
/* styling for "previous links" */
}
[role="button"] {
/* semantic CSS for modified elements that are announced as “button” in assistive technologies */
}
@Frankie-B
Frankie-B / CodeSnippets
Created March 1, 2022 16:02 — forked from magicpotion/CodeSnippets
Code Snippets
Code Snippets