Skip to content

Instantly share code, notes, and snippets.

View kalechao87's full-sized avatar

kale kalechao87

  • 深圳梵一网络科技有限公司
  • 中国,西安
View GitHub Profile
@akella
akella / setup.md
Last active March 1, 2026 21:51
My Setup
@Toolo
Toolo / vanilla-stick-to-bottom.js
Created March 15, 2019 16:04
Proper fixed: bottom in Safari
/**
* 44px is the height of the Safari overflow bar
*/
const SAFARI_MOBILE_BOTTOM_MENU_HEIGHT = 44;
/**
* Import from a library such as lodash or implement your own. Scroll events
* should always be throttled or debounced.
*/
const throttle = () => {};
@lewislepton
lewislepton / glsl.json
Last active October 2, 2025 19:19
GLSL snippets for visual studio code/kode studio
/*
AUTO-COMPLETE SNIPPETS FOR GLSL WITHIN VISUAL CODE STUDIO
Lewis Lepton
https://lewislepton.com
useful places that i grabbed info from
http://www.shaderific.com/glsl
https://www.khronos.org/opengl/wiki/OpenGL_Shading_Language
plus various other papers & books
*/
@bellbind
bellbind / spiral.html
Created August 15, 2014 06:31
[javascript][threejs] sphere spiral
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r68/three.min.js"
></script>
<script src="https://rawgit.com/mrdoob/three.js/master/examples/js/controls/Trac
kballControls.js"
></script>
<script src="spiral.js"></script>
@paulirish
paulirish / rAF.js
Last active January 6, 2026 14:22
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];