Skip to content

Instantly share code, notes, and snippets.

View aresnick's full-sized avatar

Alec Resnick aresnick

View GitHub Profile

Pasteur on "applied science" and prepared minds

An excerpt from his "ELIMINATION OF CUMULATION IN EDUCATION PHYSICAL AND NATURAL SCIENCES" (1868)

via Œuvres de Pasteur:

Peu de personnes comprennent la véritablé origine des merveilles de l’industrie et de la richesse des nations. Je n’en veux d’autre preuve en ce moment que l’emploi de plus en plus lréquent, dans le discours, dans le langage officiel, dans des écrits de tous genres, d’une expression fort impropre, celle de sciences appliquées. On se plaignait naguère, en présence d’un ministre du plus grand talent, de l’abandon des carrières scientifiques par des hommes qui auraient pu les parcourir avec distinction. Cet homme d’Etat essaya de montrer qu’il ne fallait pas en être surpris, qu aujourd'hui le règne des sciences théoriques cédait la place à celui des sciences appliquées. Rien de plus erroné que cette opinion: rien de plus dangereux, oserai-

@aresnick
aresnick / gist.js
Last active September 13, 2020 03:33
document.addEventListener("DOMContentLoaded", function(){
document.querySelector('.tz-switcher').addEventListener('change',function() {
var getText = document.querySelector('.tz-switcher option:checked').innerHTML;
document.querySelector('body').classList.remove( ...document.querySelector('body').classList);
document.querySelector('body').classList.toggle("tz-" + getText);
});
});
#!/usr/bin/env node
var logging = false;
var raiseTo = function(number, power) {
var value = number;
for (var i = 1; i < power; i++) {
value = value*number;
}
return value;
var takeSnapshot = function() {
// A function to take a snapshot
var canvas = document.querySelector('canvas'); // Grab the canvas
var image = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream"); // Save the image
setTimeout(function() { window.location.href=image; }, 100); // Wait a bit to download the image; probably should use an event listener instead
}
// Regularly take a snapshot every 200ms
var timer = setInterval(takeSnapshot, 200)
/*
# A quick sketch of a few ways that variables in computer programming relate to algebraic variables
A common (a la Bednarz, Kieran, & Lee, 1996; Küchemann, 1981;
MacGregor & Stacey, 1993; Malle, 1993; Usiskin, 1988) breakdown
of the functions of variable are into:
📭 — placeholder for number
❔ — an unknown number
📈 — a varying quantity
🎁 — a generalized number
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#glitch-text {
position: absolute;
clip: rect(21px, 9999px, 64px, 0);
}
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
@-webkit-keyframes noise-anim {
0% {
clip: rect(21px, 9999px, 64px, 0);
}
@aresnick
aresnick / knowledge-learning-understanding-are-not-linear.md
Last active November 6, 2018 19:43
An excerpt from John Holt's _How Children Fail_ (https://www.amazon.com/dp/0201484021/) on the nonlinear nature of knowing.

via John Holt's How Children Fail:

Knowledge, learning, understanding, are not linear. They are not little bits of facts lined up in rows or piled up one on top of another. A field of knowledge, whether it be math, English, history, science, music, or whatever, is a territory, and knowing it is not just a matter of knowing all the items in the territory, but of knowing how they relate to, compare with, and fit in with each other. It is the difference between being able to say that a room in your house has so many tables, so many chairs, so many lamps, and being able to close your eyes and see that this chair goes here and that table there. It is the difference between knowing the names of all the streets in a city and being able to get from any place, by any desired route, to any other place.

I believe this now more strongly than ever, and it seems to me as important as any other idea set forth in this book.

Why do we talk and write about the world and

./Contents/Frameworks/HypertextApplicationLanguage.framework/Versions/A/_CodeSignature/CodeResources ./Contents/Frameworks/HypertextApplicationLanguage.framework/Versions/Current/_CodeSignature/CodeResources
./Contents/Frameworks/HypertextApplicationLanguage.framework/Resources/Info.plist ./Contents/Frameworks/HypertextApplicationLanguage.framework/Versions/A/Resources/Info.plist ./Contents/Frameworks/HypertextApplicationLanguage.framework/Versions/Current/Resources/Info.plist
./Contents/Frameworks/HypertextApplicationLanguage.framework/HypertextApplicationLanguage ./Contents/Frameworks/HypertextApplicationLanguage.framework/Versions/A/HypertextApplicationLanguage ./Contents/Frameworks/HypertextApplicationLanguage.framework/Versions/Current/HypertextApplicationLanguage
./Contents/Frameworks/SwiftAWSIam.framework/Versions/A/SwiftAWSIam ./Contents/Frameworks/SwiftAWSIam.framework/Versions/Current/SwiftAWSIam ./Contents/Frameworks/SwiftAWSIam.framework/SwiftAWSIam
./Contents/Frameworks/SwiftAWSIam.framework/
.
└── Contents
├── Frameworks
│   ├── AWSSDKSwiftCore.framework
│   │   ├── AWSSDKSwiftCore
│   │   ├── Resources
│   │   │   └── Info.plist
│   │   └── Versions
│   │   ├── A
│   │   │   ├── AWSSDKSwiftCore