Skip to content

Instantly share code, notes, and snippets.

@icezee
icezee / z2poem.py
Last active March 5, 2022 20:05
Haiku Machine
import spacy
from spacy.matcher import Matcher
import syllapy
import random
nlp = spacy.load("en_core_web_sm")
matcher2 = Matcher(nlp.vocab)
matcher3 = Matcher(nlp.vocab)
matcher4 = Matcher(nlp.vocab)
@icezee
icezee / Danse2.ts
Created September 10, 2020 22:27
Musical-Impulse (Babylon.js)
import * as BABYLON from 'babylonjs'
export default class Danse2 {
private _scene: BABYLON.Scene
// _t: timer for the accumulated time
private _t: number
private _tubes: BABYLON.Mesh[]
private _balls: BABYLON.Mesh[]
@icezee
icezee / Danse2.ts
Created September 5, 2020 18:16
Audioactive_Danse2.ts
import * as BABYLON from 'babylonjs'
export default class Danse2 {
private _scene: BABYLON.Scene
// _t: timer for the accumulated time
private _t: number
private _tubes: BABYLON.Mesh[]
private _balls: BABYLON.Mesh[]
@icezee
icezee / music.ts
Created September 5, 2020 18:02
Audioactive_Music.ts
import * as BABYLON from 'babylonjs'
export default class Music {
private _music: BABYLON.Sound
private _analyser: BABYLON.Analyser
constructor(scene: BABYLON.Scene) {
this._music = new BABYLON.Sound(
"Music",
"../music/m_lewin_arab.mp3",
@icezee
icezee / Dense2_MyScene
Created August 30, 2020 07:05
Modeling with Motion in Babylon.js
import * as BABYLON from 'babylonjs';
import Danse2 from './Danse2'
export default class MyScene {
private _canvas: HTMLCanvasElement;
private _engine: BABYLON.Engine;
private _scene: BABYLON.Scene;
private _camera: BABYLON.ArcRotateCamera;
private _light: BABYLON.Light;
@icezee
icezee / Danse2.ts
Last active August 30, 2020 05:52
Dense2 (Modeling with Motion in Babylon.js)
import * as BABYLON from 'babylonjs'
export default class Danse2 {
private _scene: BABYLON.Scene
// _t: timer for the accumulated time
private _t: number
private _tubes: BABYLON.Mesh[]
private _current: number = 0
@icezee
icezee / my-scene.ts
Created August 26, 2020 21:06
Dense-MyScene (Understanding Babylon.js Animation)
import * as BABYLON from 'babylonjs';
import Danse from './Danse'
export default class MyScene {
private _canvas: HTMLCanvasElement;
private _engine: BABYLON.Engine;
private _scene: BABYLON.Scene;
private _camera: BABYLON.ArcRotateCamera;
private _light: BABYLON.Light;
@icezee
icezee / Danse.ts
Created August 26, 2020 18:38
Dense (Understand Animation in Babylon.js)
import * as BABYLON from 'babylonjs'
export default class Danse {
private _scene: BABYLON.Scene
// _t: timer for the accumulated time
private _t: number
private _cat: BABYLON.LinesMesh
private _sphere: BABYLON.Mesh
@icezee
icezee / setup_babylon.index.html
Created August 23, 2020 04:48
Setup BabylonJS index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Six</title>
<style>
html,body {overflow: hidden;width: 100%;height: 100%;margin: 0;padding: 0;}
#renderCanvas {width: 100%;height: 100%;touch-action: none;}
</style>
@icezee
icezee / setup_babylon.js_tsconfig.json
Created August 23, 2020 03:59
Setup Babylon JS tsconfig.json
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "es2015",
"sourceMap": true,
"outDir": "./dist",
"types": [
"babylonjs",
"babylonjs-gui",