Skip to content

Instantly share code, notes, and snippets.

View judithdrive's full-sized avatar

judithdrive judithdrive

  • Connecticut, USA
View GitHub Profile
"""
This code does the following.
First, obtains an upwind DG1 approximation to div(u*D).
Then, tries to find a BDFM2 flux F such that div F is
equal to this upwind approximation.
we have
\int_e phi D_1 dx = -\int_e grad phi . u D dx

Published to HN: https://news.ycombinator.com/item?id=5643342

Keep calm and continue rebasing

Quite recently an article calling to stay away from rebase was published, in which the author states that you should absolutely never rebase. Well... that's bullshit.

// Marker, a bookmarklet for Markdownifying webpage selections
// javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading&hellip;</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/8078727/raw/Marker.js?x="+(Math.random());})();
(function () {
function callback() {
(function ($) {
var raw, userSelection;
if (window.getSelection) {
// W3C Ranges
userSelection = window.getSelection ();
// Get the range:
@judithdrive
judithdrive / clipto.js
Last active February 20, 2025 09:41 — forked from technocrat/clipslate.py
Clipslate.py adapted for Editorial.
javascript:
(function (t,r) {
window.location = 'pythonista://clipto?action=run&argv=' + encodeURIComponent(document.title) + '&argv=' + encodeURIComponent(location.href) + '&argv=' + t + '&argv=' + r + '&argv=' + encodeURIComponent(document.getSelection()||'');
})('Sublime','Dropbox')
@judithdrive
judithdrive / 0_reuse_code.js
Created January 3, 2014 04:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console