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
| function plotF( f, elem, scaleWindow) { | |
| var scaleWindow = scaleWindow || { | |
| xMin: -8, | |
| xMax: 8, | |
| yMin: -8, | |
| yMax: 8 | |
| }; | |
| scaleWindow.yMax = [-scaleWindow.yMin, (scaleWindow.yMin = -scaleWindow.yMax)][0]; //Swap Max/Min to make more intuitive | |
| var pdy = elem.height/(scaleWindow.yMax-scaleWindow.yMin), | |
| pdx = elem.width/(scaleWindow.xMax-scaleWindow.xMin); |
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
| function( | |
| n, //Number | |
| i,a //PLaceholders | |
| ){ | |
| for( //Loop | |
| a=[i=0]; //Initialize (Avoid comma in assignment) | |
| a[i]=n>>i&1, //Save bit | |
| n>>i++; //Check if there are more bits and increment | |
| ); | |
| return a |
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
| function toColor(grayscale) { | |
| var hexes = [0, 64, 128, 192, 255], | |
| answers = [[]]; | |
| for( var i = 0; i < 5; i++ ) { | |
| //Cycle through first value | |
| for( var j = 0; j < 5; j++ ) { | |
| //Cycle through second value | |
| for( var k = 0; k < 5; k++ ) { | |
| //Cycle through third value |
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
| Test |
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
| Test |
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
| Test |
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
| Test |
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
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
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
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
OlderNewer