Skip to content

Instantly share code, notes, and snippets.

View bekindtoyourself's full-sized avatar
🎯
Focusing

Be kind to yourself. bekindtoyourself

🎯
Focusing
View GitHub Profile
@0x4D31
0x4D31 / beautiful_idiomatic_python.md
Last active November 23, 2025 09:16 — forked from JeffPaine/beautiful_idiomatic_python.md
[Beautiful Idiomatic Python] Transforming Code into Beautiful, Idiomatic Python #python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@califat
califat / script.babel
Created June 3, 2017 03:33 — forked from anonymous/script.babel
Waterdroplet WebGL Shader
/**
* Raindrop fragment shader, being used by PIXI.js in the EffectCanvas object
* {{uniforms: {time: {type: string, value: number}, iResolution: {type: string, value: [*]}}, fragment: string}}
*/
const shaderData = {
uniforms: {
iResolution: {
type: 'v2',
value: [
window.innerWidth,
@guxiaobai
guxiaobai / js_fav.md
Created May 22, 2016 20:58
常用js 收藏
@reorx
reorx / python_tutorials.rst
Last active May 10, 2022 03:39
Python 中英文教程及其他进阶资源

Python 代码规范

Contents

  • 尽量简单明了。
@ximan
ximan / reset.css
Last active April 1, 2018 20:48
mobile reset
*{
margin: 0;
padding: 0;
/* 防止点击闪烁 */
-webkit-tap-highlight-color:rgba(0,0,0,0);
/* 缩放网页,文字大小不变 */
-webkit-text-size-adjust:none;
}
/* 去除虚线 */
input:focus,select:focus,textarea:focus,button:focus{