Skip to content

Instantly share code, notes, and snippets.

import sys
import json
import struct
FILES = ['surf_reg_model_both_inflate_high.json',
'surf_reg_model_both_inflate_middle.json',
'surf_reg_model_both_inflate_low.json',
'surf_reg_model_both_normal.json']
def bin():
PhiloGL.unpack();
var modelLeft, modelRight, pos, completed, $ = function(d) { return document.getElementById(d); };
document.onreadystatechange = function() {
if (document.readyState == 'complete') {
completed = true;
if (modelLeft) {
init();
}
/* posible implementation en la creacion del treemap...
onPlaceLabel: function(domElement, node) {
var width = node.getData('width'),
height = tm.leaf(node) ? node.getData('height') : tm.config.titleHeight,
fontStyle = 'Arial',
fontSize = calculateFontSize(node.name, fontStyle, width, height);
domElement.style.font = fontSize + 'px ' + fontStyle;
}
var page = new WebPage(),
fs = require('fs'),
svg, output, size;
if (phantom.args.length < 4 || phantom.args.length > 4) {
console.log('Usage: svg2Image.js svg width height output');
phantom.exit();
} else {
svg = phantom.args[0];
width = phantom.args[1];
<!DOCTYPE html>
<html>
<head>
<title>WebGL Shader Lab</title>
<script id="shader-vs" type="x-shader/x-vertex">
attribute vec3 aPos;
attribute vec2 aTexCoord;
varying vec2 pixel;
void main(void) {
new Ext.chart.Spark({
store: store1,
renderTo: 'glucose-chart',
series: [{
type: 'line',
xField: 'name',
yField: 'glucose',
fill: true,
style: {
fill: '#777'
$(document).ready(function(){
var N = 1000, r = 5;
PhiloGL.unpack();
//Create cubes
var cubes = [];
for(var i=0; i<N; i++) {
var cube = new O3D.Cube({});
cube.colors = false;
PhiloGL.unpack();
function BrowserSize() {
return {
width: window.innerWidth || document.body.clientWidth,
height: window.innerHeight || document.body.clientHeight
};
}
var browserSize;
* (asdf-install:install 'cl-ppcre)
Install where?
1) System-wide install:
System in /usr/local/Cellar/sbcl/1.0.52/lib/sbcl/site-systems/
Files in /usr/local/Cellar/sbcl/1.0.52/lib/sbcl/site/
2) Personal installation:
System in /Users/philogb/.sbcl/systems/
Files in /Users/philogb/.sbcl/site/
--> 1
Downloading 157665 bytes from http://weitz.de/files/cl-ppcre.tar.gz ...