Skip to content

Instantly share code, notes, and snippets.

View lostintangent's full-sized avatar

Jonathan Carter lostintangent

  • GitHub Staff
  • Seattle, WA
  • 03:31 (UTC -07:00)
  • X @lostintangent
View GitHub Profile
@lostintangent
lostintangent / index.pug
Created February 22, 2020 18:41
Pure CSS Claw Crane
form.machine
input(type="checkbox",id="fire",name="fire",value="fire")
button.machine__btn(type="button",aria-labelledby="left-btn",ontouchstart="")
span.left-arrow
span.sr(id="left-btn")="Left"
button.machine__btn(type="button",aria-labelledby="right-btn",ontouchstart="")
span.right-arrow
span.sr(id="right-btn")="Right"
button.machine__btn(type="button",aria-labelledby="up-btn",ontouchstart="")
span.up-arrow
@lostintangent
lostintangent / it-s-raining-colors-hallelujah.markdown
Last active March 31, 2020 04:48
It's raining colors, hallelujah

It's raining colors, hallelujah

Propagation of color from a central point.
Combine two to make rings.
It makes me think of drops of rain in a puddle.

A Pen by Dillon on CodePen.

License.

<script src="https://threejs.org/build/three.min.js"></script>
<script src="https://threejs.org/examples/js/utils/BufferGeometryUtils.js"></script>
<script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script>
<script>
var noise = `
//
// Description : Array and textureless GLSL 2D/3D/4D simplex
// noise functions.
// Author : Ian McEwan, Ashima Arts.
// Maintainer : stegu
@lostintangent
lostintangent / index.html
Last active August 15, 2023 21:26
Rock paper scissors
<span id="pc" class="hidden">✊</span>
<div id="player">
<span id="rock">✊</span>
<span id="paper">🤚</span>
<span id="scissor">✌️</span>
</div>
<p class="hidden">You Win</p>
@lostintangent
lostintangent / 3d-truchet-doshirak-inside-use-wsad-and-mouse.markdown
Created March 18, 2020 04:48
3d truchet - doshirak inside - use WSAD and mouse
@lostintangent
lostintangent / index.html
Last active March 27, 2020 03:23
Stay At Home Be Safe
<div class="page-content">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12">
<svg width="100%" viewBox="0 0 752 500" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group">
<g id="BACKGROUND">
<path id="Vector" d="M750 0H0V500H750V0Z" fill="#FFDCD6"/>
</g>
@lostintangent
lostintangent / 1 - Type Selector---README.md
Last active March 18, 2025 20:34
CSS Dinner [Archived]

Type Selector

Select elements by their type. Selects all elements of type A. Type refers to the type of tag, so div, p and ul are all different element types.

Examples

  • div selects all div elements.
  • p selects all p elements.
@lostintangent
lostintangent / index.html
Last active March 31, 2020 05:13
Rock'N'Roll Half-Marathon animation
<svg class="rnr" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 790.59 1071">
<defs>
<style>
.cls-1,
.cls-10,
.cls-11,
.cls-12,
.cls-13,
.cls-14,
.cls-15,
@lostintangent
lostintangent / glsl-fire.markdown
Last active February 21, 2025 11:12
GLSL: fire