Skip to content

Instantly share code, notes, and snippets.

View namuol's full-sized avatar

Lou Acresti namuol

View GitHub Profile
@namuol
namuol / e1m1.esc.txt
Created September 10, 2022 16:11
DOOM E1M1 ESC tune
# DOOM E1M1 ESC tune
#
# Compatible with https://esc-configurator.com
#
# Originally adapted by Rox Wolf: https://www.youtube.com/watch?v=XQ5DpbyOHik
#
# Enjoy!
# ESC1:
e1m1:b=420,o=4,d=32:8c4,8p,4c4,4c5,8c4,8p,4c4,4a#4,8c4,8p,4c4,4g#4,8c4,8p,4c4,4f#4,8c4,8p,4c4,4g4,4g#4,8c4,8p,4c4,4c5,8c4,8p,4c4,4a#4,8c4,8p,4c4,4g#4,8c4,8p,4c4,1f#4
@namuol
namuol / sf-stop-the-spread.md
Last active March 10, 2020 17:32
Petitions to Stop the Spread of Coronavirus in San Francisco

🌱 This is a living document - please comment, fork, or tweet at @louroboros to contribute.

Thank you!

Citizens of San Francisco have a right to know what our leaders are planning to do to slow/stop the spread of Coronavirus in our city.

We know now that community spread is already happening here in SF, which means it's only a matter of time before we need to take more drastic measures to encourage (or enforce) a higher degree of social distancing to "flatten the curve" and avoid a worst-case-scenario where our healthcare infrastructure is overwhelmed, all at once, like it is happening today (March 9th) in Italy ([1], [2], [3]).

Even if we assume the Mayor London Breed, SFUSD Superintendent Dr. Vincent Matthews, and other local community leaders have a plan to take dramatic action when the time is right, th

@namuol
namuol / principals-of-the-american-cargo-cult.md
Last active December 30, 2019 15:40
Principals of the American Cargo Cult

Source: https://web.archive.org/web/20030812081806/http://klausler.com/cargo.html

Principles of the American Cargo Cult

I wrote these principles after reflecting on the content of contemporary newspapers and broadcast media and why that content disquieted me. I saw that I was not disturbed so much by what was written or said as I was by what is not. The tacit assumptions underlying most popular content reflect a worldview that is orthogonal to reality in many ways. By reflecting this skewed weltanschauung, the media reinforces and propagates it.

I call this worldview the American Cargo Cult, after the real New Guinea cargo cults that arose after the second world war. There are four main points, each of which has several elaborating assumptions. I really think that most Americans believe these things at a deep level.

Ignorance is a virtue

Button*
unlocked*
default*
mouseEnter -> hovered
hovered
mouseLeave -> default
mouseDown -> pressed
@namuol
namuol / Dataloader.js
Last active September 20, 2017 02:00 — forked from acdlite/Dataloader.js
Idea for Dataloader component
// The `loader` argument is a Dataloader instance
// https://github.com/facebook/dataloader
const makeLoader = (loader) => {
class Dataloader extends React.Component {
state = {data: null, isLoaded: false};
componentWillMount() {
this.prefetchData(this.props);
}
componentWillReceiveProps(nextProps) {
if (this.props.id !== nextProps.id) {
@namuol
namuol / .block
Last active September 6, 2016 06:32 — forked from monfera/.block
SVG heat shimmer
license: mit
border: no
height: 420
@namuol
namuol / SimpleList.js
Last active September 1, 2015 23:35
React Styles
const styles = StyleSheet.create({
list: { /* etc */ },
hover: { /* etc */ },
});
export default class List extends React.Component {
static propTypes = {
style: React.PropTypes.style,
hoverStyle: React.PropTypes.style,
};
var Style = require('react-free-style').create()
var BUTTON_STYLE = Style.registerStyle({
backgroundColor: 'red',
padding: 10
})
var ButtonComponent = Style.component(React.createClass({
// You must define `contextTypes` to access `freeStyle`.
@namuol
namuol / example.coffeex
Last active August 29, 2015 14:08
CoffeeX Syntax Concept (JSX for CoffeeScript)
MySimpleComponent = React.createClass
render: -> <pre>{@props.mytext}</pre>
MyComponent = React.createClass
render: ->
<ul>
@props.items.map (item) =>
<li><a href="#" onClick={@props.handleClick}>{item}</a></li>
</ul>