This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy.sparse | |
import scipy.sparse.linalg | |
def main() -> None: | |
diffusion = 1 | |
length = 1 | |
n_points = 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env playonlinux-bash | |
# Date : (2021-04-05 04-20) | |
# Last revision : (2021-04-05 06-09) | |
# Wine version used : 6.3 staging | |
# Distribution used to test : Ubuntu 20.04 LTS | |
# Author : tiagovla | |
# PlayOnLinux : 4.3.4 | |
# Script licence : MIT | |
[ "$PLAYONLINUX" = "" ] && exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PREFIX="$HOME/.grammarly" | |
GRAMMARLY_URL="https://download-editor.grammarly.com/windows/GrammarlySetup.exe" | |
grammarly_install(){ | |
WINEARCH=win32 WINEPREFIX=$PREFIX winetricks --force dotnet452 | |
cd $PREFIX | |
wget $GRAMMARLY_URL | |
WINEPREFIX=$PREFIX winetricks win7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twitch-videoad.js application/javascript | |
(function() { | |
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } | |
var realFetch = window.fetch; | |
window.fetch = function(input, init) { | |
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) { | |
var url = new URL(arguments[0]); | |
url.searchParams.forEach(function(value, key) { | |
url.searchParams.delete(key); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun c:lines_arc(/ obj ang1 dist ptt inc pt pts) | |
(princ "\nSelect an Arc: ") | |
(setq obj (ssget ":S")) | |
(princ "\nSelect a Point: ") | |
(setq ptt (getpoint)) | |
(if obj | |
(progn | |
(setq obj (vlax-EName->vla-Object (ssname obj 0)) | |
inc 10.0 |