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
// code updates are now there: | |
// https://github.com/Bleuje/processing-animations-code/blob/main/code/hilbertcurvetransforms/hilbertcurvetransforms.pde | |
// Processing code by Etienne JACOB | |
// motion blur template by beesandbombs | |
// CC BY-SA 3.0 license because it's using code from Wikipedia | |
// View the rendered result at: https://bleuje.com/gifanimationsite/single/hilbertcurvetransforms/ | |
int[][] result; | |
float t, c; |
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
var btn = $('<button class="button">Bulk Trash</button>'), | |
room = document.forms[0].elements.room.value; | |
btn.on('click', function() { | |
var modal = $('<div><h4>Trash Who?</h4></div>'), | |
$users = $('#present-users:not(.more)').clone(); | |
modal.append($users).addClass('popup room-popup').css({ | |
bottom: btn.position().top, | |
left: btn.position().left | |
}).on('click', function(e) { | |
if (confirm("Would you like to trash all posts by " + e.target.title)) { |
- Ribbit Smash by Loktar
- Flappy Box by towc
- Balls Juggle by easwee
- Turnometry by SomeGuy and mikedidthis
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
let io = undefined, found = []; | |
const addScript = url => { | |
return new Promise((resolve, reject) => { | |
let script = document.createElement('script'); | |
script.onload = resolve; | |
script.onerror = reject; | |
script.src = url; | |
document.body.appendChild(script); | |
}); | |
}; |
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
const room = document.forms[0].elements.room.value; | |
const parseNode = node => { | |
if (node.classList && node.classList.contains('popup')) { | |
if( node.parentNode && node.parentNode.classList && node.parentNode.classList.contains('message') ) { // this is probably overkill. | |
addButton(node); | |
} | |
} | |
}; | |
const addButton = node => { | |
let elm = document.createElement('a'); |
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
const parseNode = (node) => { | |
if( node.classList && node.classList.contains('user-container') ) { | |
let meta = node.querySelectorAll('.meta'); | |
[].forEach.call(meta,m=>{ | |
let del = document.createElement('span'); | |
del.textContent = 'x'; | |
del.classList.add('vote-count-container'); | |
del.style.cursor = 'pointer'; | |
del.onclick = function() { // fuck you I want `this` | |
let id = this.parentNode.parentNode.id.split('-')[1]; |
This document will list the subjects for the upcoming room meeting, scheduled for 2015-04-25.
Feel free to suggest topics in the comment section.
- subscription to javascript tag on codereview.stackexchange.com
- Assigning people to execute room meeting (or other) conclusions.
- Contributors to room rules.
- Rss feeds.
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
(function() { | |
"use strict"; | |
function parseNode(node) { | |
if (node.classList && node.classList.contains('message') && !node.classList.contains('pending')) { | |
var content = node.querySelector('.content'); | |
if ([].filter.call(content.childNodes, function(child) { | |
return (child.nodeType === 1 || child.nodeType === 3) | |
}).length > 1) return; // shut up | |
var link = content.querySelector('a'); |
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.
NewerOlder