This paper:
Finding the number of clusters in a data set: An information theoretic approach
CATHERINE A. SUGAR AND GARETH M. JAMES
>Marshall School of Business, University of Southern California
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A simple free camera to be added to a Unity game object. | |
| /// | |
| /// Keys: |
| defmodule RubyServer do | |
| use GenServer | |
| def start_link(opts \\ []) do | |
| GenServer.start_link(__MODULE__, nil, opts) | |
| end | |
| def cast(server, cmd) do | |
| GenServer.cast(server, {:cast, cmd}) | |
| end |
| defmodule Model do | |
| schema "models" do | |
| field :foo, :string | |
| has_many :children, Model, foreign_key: :parent_id | |
| belongs_to :parent, Model, foreign_key: :parent_id | |
| end | |
| @doc """ | |
| Recursively loads parents into the given struct until it hits nil | |
| """ |
| // Unity C# Cheat Sheet | |
| // I made these examples for students with prior exerience working with C# and Unity. | |
| // Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sine Wave</title> | |
| <script type="text/javascript"> | |
| function showAxes(ctx,axes) { | |
| var width = ctx.canvas.width; | |
| var height = ctx.canvas.height; | |
| var xMin = 0; |
| function readToken (token) { | |
| if (token === '(') { | |
| return { | |
| type: 'OPENING_PARENS' | |
| }; | |
| } else if (token === ')') { | |
| return { | |
| type: 'CLOSING_PARENS' | |
| }; | |
| } else if (token.match(/^\d+$/)) { |
| /** | |
| * @author knee-cola / https://github.com/knee-cola | |
| * Original file URL: https://gist.github.com/knee-cola/37875bc4359609b96c9f329cd2a68fa1 | |
| */ | |
| // This is a simple progressive image loader for Three.js | |
| // It enables the smaller image files to be loaded first, | |
| // before the big texture image is fully loaded. | |
| // | |
| // The images are loaded in the order they are passed |
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 |
| (function(){ | |
| var | |
| is_ios = /iP(ad|od|hone)/i.test(window.navigator.userAgent), | |
| is_safari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/); | |
| if ( is_ios && is_safari ) { | |
| var | |
| $html = document.documentElement, | |
| classes = $html.className.concat(' is-ios-safari'); | |
| $html.className = classes; | |
| } |