Simple word cloud based on a force directed layout using the d3js.org
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 java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import org.objectweb.asm.ClassReader; | |
import org.objectweb.asm.ClassVisitor; | |
import org.objectweb.asm.ClassWriter; | |
import org.objectweb.asm.MethodVisitor; | |
import org.objectweb.asm.Opcodes; | |
import org.objectweb.asm.commons.AnalyzerAdapter; |
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
public class DescSplitter { | |
public static void main(String[] args) { | |
splitMethodDesc(desc); | |
//simple test cases. | |
splitMethodDesc("([IFB[[[[[Ljava/lang/String;Ljava/lang/String;[I[S[BBLjava/lang/BLtring;)"); | |
splitMethodDesc("Ljava/lang/String;BBBBLjava/lang/String;"); | |
splitMethodDesc("ZBCSIFDJ[Z[B[C[S[I[F[D[JLZBCSIFDJ;LZBCSIFDJ;[LZBCSIFDJ;LZBCSIFDJ;[LZBCSIFDJ;"); | |
} | |
public static void splitMethodDesc(String desc) { |
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
Show hidden characters
{ | |
"cmd": ["javac", "-Xlint", "$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java", | |
"variants": [ | |
{ "cmd": ["javac", "-Xlint", "$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java", |
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
x = [1,2,3,4,5,1,2,3,4,6]; | |
group = [1,1,2,2,2,3,3,3,4,4]; | |
positions = [1 1.25 2 2.25]; | |
boxplot(x,group, 'positions', positions); | |
color = ['y', 'y', 'c', 'c']; | |
h = findobj(gca,'Tag','Box'); | |
for j=1:length(h) | |
patch(get(h(j),'XData'),get(h(j),'YData'),color(j),'FaceAlpha',.5); | |
end |
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
;;UCI Class Project - INF212 Analysis of Programming Languages | |
;;Nicholas DiGiuseppe and Vijay Krishna Palepu | |
;;1.interpreter is not case sensitive. | |
;;2.interpreter lives in the world of symbols and lists. | |
;;3.interpreter requires proper parenthesis. | |
;;4.does not work with numbers such as 1 2 3... | |
;;reference: http://matt.might.net/articles/implementing-a-programming-language/ | |
;;original 7 lines | |
; eval takes an expression and an environment to a value |
This d3js visualization tries to capture the twinkling of stars or node of a force directed graph with a simple animation to change the color and size of the nodes or stars.
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> | |
<meta charset="utf-8"> | |
<style> | |
.chart rect { | |
stroke: white; | |
fill: steelblue; | |
} | |
</style> |
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> | |
<meta charset="utf-8"> | |
<style> | |
.chart rect { | |
stroke: white; | |
fill: steelblue; | |
} | |
.paddle rect { |
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
public class ArrayTest extends java.lang.Object{ | |
public ArrayTest(); | |
Code: | |
0: aload_0 | |
1: invokespecial #1; //Method java/lang/Object."<init>":()V | |
4: return | |
public static void main1(); | |
Code: | |
0: iconst_3 |
OlderNewer