Skip to content

Instantly share code, notes, and snippets.

View image72's full-sized avatar

image72 image72

View GitHub Profile
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active May 9, 2026 12:44
A collection of WebGL and WebGPU frameworks and libraries

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.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitH
@judy2k
judy2k / parse_dotenv.bash
Created March 22, 2017 13:34
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
anonymous
anonymous / index.html
Created March 22, 2017 07:31
Jiachun-li // source https://jsbin.com/luzeti
<!DOCTYPE html>
<!-- saved from url=(0032)http://jiachun-li.com/#portfolio -->
<html lang="en"><!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<title>Jiachun-li</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
@bryanrsmith
bryanrsmith / _error.js
Last active June 25, 2021 15:32
Next.js custom error handler that doesn't display for errors encountered on initial client render
import React, { PropTypes } from 'react';
import Head from 'next/head';
import Router from 'next/router';
// Script errors occuring during initial client render can cause the server-rendered
// content to be hidden by an error page. Track router events to determine if the
// error being handled happened during initial render, and throw within
// getInitialProps to allow the server-rendered content to remain visible.
const isClient = typeof window !== 'undefined';
let isInitialClientRender = isClient;
@kripken
kripken / hello_world.c
Last active March 19, 2025 06:14
Standalone WebAssembly Example
int doubler(int x) {
return 2 * x;
}
@jonathanvx
jonathanvx / json.sql
Last active November 26, 2020 17:12
Using JSON with MySQL Stored Procedures
delimiter $$
drop procedure if exists county_summary$$
create procedure county_summary(query JSON)
BEGIN
DECLARE i_county varchar(255) default null;
DECLARE i_year int default null;
DECLARE i_month int default null;
set i_county = JSON_UNQUOTE(JSON_EXTRACT(query,'$.county'));
set i_year = JSON_EXTRACT(query,'$.year');
@simonmysun
simonmysun / html2canvas-full.js
Last active September 19, 2017 09:49
render hidden / invisible area with html2canvas
var toImg = function toImg(targetNode) {
var tmpNode = function recreateNode(node) {
switch (node.nodeType) {
case 1:
{
var result = document.createElement(node.nodeName);
var style = getComputedStyle(node);
for (var i = style.length - 1; i >= 0; i -= 1) {
result.style[style[i]] = style[style[i]];
}
@webflo
webflo / xip.io
Created November 17, 2016 21:27
#!/usr/bin/env ruby
require 'socket'
require 'uri'
if ARGV.first
uri = URI::parse(ARGV.first)
if uri.scheme.nil?
uri = URI::parse("http://" + ARGV.first)
end
@bisubus
bisubus / ES5-ES6-ES2017-ES2019 omit & pick
Last active April 13, 2024 21:03
ES5/ES6/ES2017/ES2019 omit & pick
@mehak-sachdeva
mehak-sachdeva / Chart.js
Last active September 23, 2021 13:36
Interactive Charts
/*!
* Chart.js
* http://chartjs.org/
* Version: 2.3.0
*
* Copyright 2016 Nick Downie
* Released under the MIT license
* https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Chart = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,modul