Skip to content

Instantly share code, notes, and snippets.

View ManuLinares's full-sized avatar

Manu Linares ManuLinares

View GitHub Profile
const allATags = document.querySelectorAll('a');
const matchingATags = [];
allATags.forEach((aTag) => {
const href = aTag.getAttribute('href');
if (href && href.startsWith('/messages/t/')) {
matchingATags.push(aTag);
}
});
function findParentWithRoleRow(element) {
@ManuLinares
ManuLinares / vscode-for-linux-kernel.md
Created April 30, 2024 05:41 — forked from itewqq/vscode-for-linux-kernel.md
Configure vscode for linux kernel source code
  1. Disable or uninstall the official C/C++ plugin.
  2. Install the clangd plugin.
  3. Build the kernel with clang:
/path/to/kernel_source$ make CC=clang defconfig
/path/to/kernel_source$ make CC=clang -j16
  1. Generate the compile_commands.json:
/path/to/kernel_source$ python ./scripts/clang-tools/gen_compile_commands.py
@ManuLinares
ManuLinares / index.html
Created November 15, 2023 22:13
just an index
No, no es viernes! :(
@ManuLinares
ManuLinares / pythagorasTree.html
Created March 15, 2014 16:11
Creates beautiful Flowers using pythagoras tree. Javascript
<canvas id="c">
</canvas>
<script>
var b = document.body;
var c = document.getElementsByTagName('canvas')[0];
var a = c.getContext('2d');
document.body.clientWidth; // fix bug in webkit: http://qfox.nl/weblog/218
</script>