Skip to content

Instantly share code, notes, and snippets.

View dungsaga's full-sized avatar
👻
ghost in the machine

DungSaga dungsaga

👻
ghost in the machine
View GitHub Profile
@lostintangent
lostintangent / expandable-animated-card-slider.markdown
Created July 18, 2023 21:51
Expandable Animated Card Slider

Expandable Animated Card Slider

We have made an expandable animated card slider, it will expand and collapse based on card click. We used owl carousel and jQuery for variable width and responsive slider.

A Pen by Yudiz Solutions Limited on CodePen.

License.

@lostintangent
lostintangent / index.pug
Last active August 21, 2023 08:20
Only CSS: Summer Dream
.summerdream
.sea
.surface
//- .inner
//- .fishes
//- .fish
//- .body
.ship
.rotate
.move
@lostintangent
lostintangent / index.html
Last active August 21, 2023 08:28
Stick Hero with Canvas
<div class="container">
<div id="score"></div>
<canvas id="game" width="375" height="375"></canvas>
<div id="introduction">Hold down the mouse to stretch out a stick</div>
<div id="perfect">DOUBLE SCORE</div>
<button id="restart">RESTART</button>
</div>
<a id="youtube" href="https://youtu.be/eue3UdFvwPo" target="_blank">
<span>See how this game was made</span>
@lostintangent
lostintangent / index.html
Created November 28, 2020 04:42
ScrollTrigger Underwater world #anydayshaders 15
<digital-art dpr="auto" aria-hidden="true">
<script type="buffer" name="position" data-size="2">
[-1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, 1]
</script>
<script type="vert">
precision highp float;
uniform float time;
uniform vec2 resolution;
varying vec4 vPos;
attribute vec4 position;
@lostintangent
lostintangent / codeswing.json
Last active August 21, 2023 08:39
Happy Birthday JavaScript!
{
"scripts": [
"react",
"react-dom"
],
"styles": []
}
@mbostock
mbostock / .block
Last active August 21, 2023 08:45 — forked from mbostock/.block
Symbol Map
license: gpl-3.0
@denisfitz57
denisfitz57 / understanding-word-vectors.ipynb
Created April 21, 2017 16:46 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@denisfitz57
denisfitz57 / prepack-svelte.md
Created May 4, 2017 21:11 — forked from Rich-Harris/prepack-svelte.md
Is Prepack like Svelte?

Note: I'm not involved in Prepack in any way — please correct me if I say anything incorrect below!

A few people have asked me if Prepack and Svelte are similar projects with similar goals. The answer is 'no, they're not', but let's take a moment to explore why.

What is Prepack?

Prepack describes itself as a 'partial evaluator for JavaScript'. What that means is that it will run your code in a specialised interpreter that, rather than having some effect on the world (like printing a message to the console), will track the effects that would have happened and express them more directly.

So for example if you give it this code...