This file contains 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
mat4 old = uOldGeomMats[int(aGeomIndex)]; | |
mat4 new = uGeomMats[int(aGeomIndex)]; | |
mat4 final; | |
float a = new[0][0]; | |
float b = old[0][0]; | |
// works : | |
// final[0][0] = old[0][0]; | |
This file contains 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
# -*- coding: utf8 -*- | |
import os | |
import subprocess | |
def create_prelisten_ogg(mp3, ogg): | |
""" | |
Run en-code for a single file | |
Do 48 kbit files for prelisten. | |
""" |
This file contains 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
<html> | |
<head> | |
<title>Line graph over time with multiple data points using SVG and d3.js</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica; | |
} | |
/* tell the SVG path to be a thin blue line without any area fill */ |
This file contains 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
<DOCTYPE html> | |
<html> | |
<head> | |
<title>cannon.js - compound demo</title> | |
<meta charset="utf-8"> | |
<style>* {margin:0;padding:0}</style> | |
</head> | |
<body> | |
<script src="../build/cannon.js"></script> | |
<script src="../build/cannon.demo.js"></script> |
This file contains 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
""" | |
Example user case: | |
define rules: | |
rules = [ | |
("library_images / image id / init_from / *", image), | |
("library_effects / effect id / profile_COMMON / newparam sid / sampler2D / source / *", effect), | |
("library_materials / material id name / instance_effect url", material), | |
This file contains 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 gym | |
import random | |
env = gym.make('CartPole-v0') | |
env.monitor.start('/tmp/cartpole-experiment-3', force=True) | |
# its simulated annealing like | |
bestSteps = 0 |
This file contains 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 sdl2 | |
import sdl2.image | |
import os | |
import strutils | |
if not sdl2.init(INIT_EVERYTHING): | |
quit "Failed start SDL2" | |
if image.init(IMG_INIT_PNG) == -1: | |
quit "Failed start SDL2_Image" |
This file contains 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
/* | |
* A speed-improved perlin and simplex noise algorithms for 2D. | |
* | |
* Based on example code by Stefan Gustavson ([email protected]). | |
* Optimisations by Peter Eastman ([email protected]). | |
* Better rank ordering method by Stefan Gustavson in 2012. | |
* Converted to Javascript by Joseph Gentle. | |
* | |
* Version 2012-03-09 | |
* |
This file contains 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
+------------------+------+ | |
| name | rank | | |
+------------------+------+ | |
| Godde | 2029 | | |
| Mode | 1972 | | |
| Pemtyu | 1843 | | |
| Apo11o | 1646 | | |
| raaar | 1639 | | |
| TheDefiantOne | 1621 | | |
| 514484 | 1608 | |
This file contains 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
+---------+---------+ | |
| faction | sum | | |
+---------+---------+ | |
| N0V4 | 31424 | | |
| ELYS | 29525 | | |
| CNCR | 24335 | | |
| AI | 20686 | | |
| ISOI | 13966 | | |
| EVO | 12425 | | |
| AUTO | 12292 | |
OlderNewer