float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains hidden or 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
package de.jungblut.benchmark; | |
import java.util.Random; | |
import com.google.caliper.Param; | |
import com.google.caliper.Runner; | |
import com.google.caliper.SimpleBenchmark; | |
import de.jungblut.math.DoubleMatrix; | |
import de.jungblut.math.cuda.JCUDAMatrixUtils; |
This file contains hidden or 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 sys | |
from enum import * | |
import cozmo | |
from cozmo.util import degrees | |
from Triggers import * | |
# Log Error | |
def error(message): | |
print("*********************ERROR:", message) |
This file contains hidden or 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
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
devtool: 'source-map', | |
context: path.resolve('src'), | |
entry: [ | |
'webpack-dev-server/client?http://0.0.0.0:8080', // WebpackDevServer host and port |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
A non-exhaustive list of WebGL frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are outdated/not maintained anymore.
- three.js: JavaScript 3D library
- stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
- PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
- Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
- Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
- AwayJS: AwayJS is a graphics library for javascript written in typescript
- SceneJS: An extensible WebGL-based engine for high-detail 3D visualisation
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
This file contains hidden or 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
package graphql | |
import ( | |
"bytes" | |
"encoding/json" | |
"net/http" | |
"net/http/httptest" | |
"testing" | |
"github.com/graphql-go/graphql" |
This file contains hidden or 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
/** | |
* <p>Shows how files in the class path can be accessed when using the standard | |
* Maven directory layout.</p> | |
* | |
* <p>The test file is "src/test/resources/accessFileOnClasspath/test.txt". | |
* It is accessed using either {@link ClassLoader#getResource(String)} or | |
* {@link ClassLoader#getResourceAsStream(String)}. Note that the file's | |
* path is always relative to the class path's root. Thus the test file is | |
* accessed using "accessFileOnClasspath/test.txt".</p> | |
* |
NewerOlder