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 | |
| 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(): |
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
| 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(); | |
| } |
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
| /* 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; | |
| } |
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
| 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]; |
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
| <!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) { |
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
| new Ext.chart.Spark({ | |
| store: store1, | |
| renderTo: 'glucose-chart', | |
| series: [{ | |
| type: 'line', | |
| xField: 'name', | |
| yField: 'glucose', | |
| fill: true, | |
| style: { | |
| fill: '#777' |
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
| $(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; |
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
| PhiloGL.unpack(); | |
| function BrowserSize() { | |
| return { | |
| width: window.innerWidth || document.body.clientWidth, | |
| height: window.innerHeight || document.body.clientHeight | |
| }; | |
| } | |
| var browserSize; |
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
| * (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 ... |
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
| 1 l |