Skip to content

Instantly share code, notes, and snippets.

View lquenti's full-sized avatar
🍒
Less is more

Lars Quentin lquenti

🍒
Less is more
View GitHub Profile
@glor
glor / install_ijavascript_kernel.sh
Created June 16, 2022 10:48
Add a locally installed JavaScript (node.js) Kernel to a hosted Jupyter(Lab) instance, permanently
#!/bin/bash
# Dependency: node and npm must be installed on the jupyter(lab) instance. This could probably also be hacked around using nvm (node version manager)
cd
npm i ijavascript
npx ijsinstall
sed -i 's/ijskernel/node", "\/home\/jovyan\/node_modules\/ijavascript\/lib\/kernel\.js/g' .local/share/jupyter/kernels/javascript/kernel.json
echo "Try to refresh the page (F5). JavaScript notebook and console should be available then."
@LukeMathWalker
LukeMathWalker / audit.yml
Last active May 1, 2024 12:27
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@arieljannai
arieljannai / get_youtube_channel_rss_feed.js
Last active May 13, 2022 11:20
Get YouTube Channel RSS Feed
for (var arrScripts = document.getElementsByTagName('script'), i = 0; i < arrScripts.length; i++) {
if (arrScripts[i].textContent.indexOf('externalId') != -1) {
var channelId = arrScripts[i].textContent.match(/\"externalId\"\s*\:\s*\"(.*?)\"/)[1];
var channelRss = 'https://www.youtube.com/feeds/videos.xml?channel_id=' + channelId;
var channelTitle = document.title.match(/\(?\d*\)?\s?(.*?)\s\-\sYouTube/)[1];
console.log('The rss feed of the channel \'' + channelTitle + '\' is:\n' + channelRss);
break;
}
}
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 3, 2024 18:53
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@zhuowei
zhuowei / gaussian_elimination.py
Created October 25, 2013 04:28
Gaussian Elimination Algorithm
"""
Implementation of the Gaussian Elimination Algorithm for finding the row-reduced echelon form of a given matrix.
No pivoting is done.
Requires Python 3 due to the different behaviour of the division operation in earlier versions of Python.
Released under the Public Domain (if you want it - you probably don't)
"""
def like_a_gauss(mat):
"""
Changes mat into Reduced Row-Echelon Form.
@xav76
xav76 / index.html
Created October 24, 2012 17:18
A CodePen by Mario Gonzalez. Canvas PS3 homescreen wave
<div id="container">
@yozenci
yozenci / gausse.py
Created August 23, 2012 21:34
Gaussian Elimination to solve linear and non-linear system of equations.
"""
Gaussian Elimination with Partial Pivoting.
This module contains 5 functions which procedurally solve
the linear system Ax = b, A is an nxn matrix and b is a
column vector with n rows.
"""
import numpy
import math