as
has a few different contexts in Rust:
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
Shader "Universal Render Pipeline/Post-Processing/EdgeDetection" | |
{ | |
Properties | |
{ | |
[Toggle(ENABLED)] __enabled("Enabled", Float) = 1 | |
[MainTex] [HideInInspector] _MainTex ("Base Map", 2D) = "white" { } | |
[MainColor] _Color ("Color", Color) = (1, 1, 1, 1) | |
_Thickness ("Thickness", Float) = 0 | |
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
" This was taken from | |
" https://github.com/tjdevries/config_manager/blob/master/xdg_config/nvim/after/plugin/_load_lua.vim | |
let s:load_dir = expand('<sfile>:p:h:h:h') | |
exec printf('luafile %s/lua/init.lua', s:load_dir) |
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
; lie to gist that this is clojure for syntax highlighting | |
; vim: ft=clojure | |
(require-macros :meta-macros) | |
(local (mpack Session Tcp Socket) (values (require :mpack) | |
(require :nvim.session) | |
(require :nvim.tcp_stream) | |
(require :nvim.socket_stream))) | |
(local (fmt join) (values string.format table.concat)) | |
; an api.mpack file needs to be generated from /path/to/neovim/scripts/vim_gendoc.py |
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
{-# LANGUAGE DataKinds #-} | |
-- | My database API. | |
module DBAPI where | |
import Data.Defaults | |
data ConnSpec p = ConnSpec | |
{ username :: !(Required p String) |
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
syn match dartFunction "\zs\(\k\w*\)*\s*\ze(" | |
hi! link dartFunction Function | |
syn match myCamelCase '\v(<_*\u\i*>)+' | |
hi! link myCamelCase Type | |
syntax keyword flutterConstant immutable kAlwaysCompleteAnimation kAlwaysDismissedAnimation | |
\ kBackMouseButton kBottomNavigationBarHeight kDoubleTapMinTime kDoubleTapSlop kDoubleTapTimeout | |
\ kDoubleTapTouchSlop kElevationToShadow kFloatingActionButtonMargin kFloatingActionButtonSegue | |
\ kFloatingActionButtonTurnInterval kForwardMouseButton kHoverTapSlop kHoverTapTimeout kJumpTapTimeout |
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
import { app, h } from 'hyperapp'; // V2 | |
// DOM Effect | |
// Observer Implementation | |
// Will be moved to subscriptions package | |
const find = (query, nodes, cb) => nodes.forEach(node => { | |
if(node.nodeType !== 1 ) return | |
if(Object.keys(query).every(key => node.getAttribute(key) === query[key])) | |
return cb(node) | |
else if(node.childNodes.length) |
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
// https://davidpiesse.github.io/tailwind-md-colours/ | |
// | |
//Notes | |
// | |
//All colours are generated from Material Design Docs | |
//Colours have a base, a set of shades (50-900) accent colours | |
//In addition a companion set of contrast colours are included for colouring text / icons | |
// Example usage | |
// class="w-full bg-red-600 text-red-600-constrast" |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
NewerOlder