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 | ![GitH |
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 | ![GitH |
This is just a dump of some interesting undocumented features of webOS (3.8 specifically, on early 2018 4k LG TV) and other development-related tips.
| 2teams() { | |
| NOW=$(date +"%Y-%m-%d_%H%M") | |
| if [ ! -z $2 ] ; then | |
| echo $NOW"_"$2.mp4 | |
| ffmpeg -i $1 -codec copy $NOW"_"$2.mp4 | |
| else | |
| echo $NOW"_teamsvid".mp4 | |
| ffmpeg -i $1 -codec copy $NOW"_teamsvideo".mp4 | |
| fi | |
| } |
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
| // Open (or create) the database | |
| var open = indexedDB.open("MyDatabase", 1); | |
| // Create the schema | |
| open.onupgradeneeded = function() { | |
| var db = open.result; | |
| var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
| # My steps to: | |
| # Convert DVD Video to MPEG-4 in MKV without GUI, using only CLI (Command Line Interface) tools. | |
| # No need for MeGUI, Avisynth, Handbrake etc.. | |
| # ------------------------------------------------------------------------------ | |
| # Tools needed: `mediainfo`, `ffmpeg` & `ffprobe`, `x264`, `mkvmerge`, `mplayer` (optional). | |
| # Google for them. Use latest versions. Windows tip: avoid Cygwin and get | |
| # the official builds, x64, when possible. | |
| # Before start use `mediainfo` & `ffprobe` and note down informations about the source material: |
| # | |
| # Wide-open CORS config for nginx | |
| # | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| # |
I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.
I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.
Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.
It assumes the highest positive signed 32-bit float value for numbers.
In other words, 2147483647 (or 0x7FFFFFFF or 2^31-1).
UPDATE: You don't need shims anymore! We can just use this now, and eventually it'll even be in Ember core.
app.import() works with node_modules now! As of Ember 2.15. Previously it only worked with bower_components and vendor.
Docs for app.import are here:
https://ember-cli.com/managing-dependencies#standard-non-amd-asset
| #include <vector> | |
| #include <iostream> | |
| #include <cmath> | |
| using namespace std; | |
| #define EPSILON 1.0e-5 | |
| #define RESOLUTION 32 | |
| class Point2D |