#tutorials http://www.scolvin.com/juliabyexample/
http://julialang.org/learning/
http://dataframesjl.readthedocs.org/en/latest/
#init config
| shared alias Vec2 => [Integer,Integer]; | |
| shared alias Vec2List => CycleList<Vec2>; | |
| Integer x = 0; | |
| Integer y = 1; | |
| shared class CycleListNode<T>(nodeValue,prev=null,next=null) { | |
| shared variable T nodeValue; | |
| shared variable CycleListNode<T>? prev; |
| import 'dart:html'; | |
| void main() { | |
| Vec2 p1=new Vec2(50,50); | |
| Vec2 p2=new Vec2(100,50); | |
| Vec2 p3=new Vec2(100,100); | |
| Vec2 p4=new Vec2(50,100); | |
| HtmlCanvas canvas = new HtmlCanvas("#canvas") |
| import 'dart:math'; | |
| addv(v1, v2){ | |
| return [v1[0]+v2[0],v1[1]+v2[1]]; | |
| } | |
| subv(v1,v2){ | |
| return [v1[0]-v2[0],v1[1]-v2[1]]; | |
| } |
| module Lab2 where | |
| ------------------------------------------------------------------------------------------------------------------------------ | |
| -- Lab 2: Validating Credit Card Numbers | |
| ------------------------------------------------------------------------------------------------------------------------------ | |
| -- =================================== | |
| -- Ex. 0 | |
| -- =================================== |
| srcFileName = r'file1.java' | |
| dstFileName = r'file2.java' | |
| srcFile = open(srcFileName,'r') | |
| dstFile = open(dstFileName,'w') | |
| def listToStr(alist): | |
| result =''; | |
| for a in alist: |
| Sub squeezeRow(column, startRow, endRow As Integer) | |
| Dim count As Integer | |
| count = 0 | |
| i = startRow | |
| Do While i <= endRow | |
| If Cells(i, column).Value = "" Then | |
| For j = i + 1 To endRow | |
| Cells(j - 1, column).Value = Cells(j, column).Value | |
| Next | |
| Cells(endRow, column) = "" |
| package main | |
| import ( | |
| "github.com/ajstarks/svgo" | |
| "os" | |
| "fmt" | |
| ) | |
| /*width 50, height 50*/ | |
| func drawHeart(canvas *svg.SVG, x, y int ) { |
| # A R program to help generate MSC charts. | |
| # The feature to differentiate it from other similar tools is that it support parallel messages. | |
| # It is in testing phase. | |
| library("grid") | |
| diagram.params <- list(titleLines=1, | |
| headLines=2, | |
| widthPad=1, | |
| heightPad=0.5, |
| In [9]: import sympy | |
| In [11]: from sympy import symbols | |
| In [12]: x = symbols('x') | |
| In [13]: x | |
| Out[13]: x |