Vancouver Julia Meetup
04/20/2021
Shashi Gowda
PhD candidate in
Computational Science and Engineering
// Copyright 2009 Google Inc. All Rights Reserved. | |
package com.google.appinventor.components.runtime; | |
import com.google.appinventor.components.annotations.DesignerComponent; | |
import com.google.appinventor.components.annotations.DesignerProperty; | |
import com.google.appinventor.components.annotations.PropertyCategory; | |
import com.google.appinventor.components.annotations.SimpleEvent; | |
import com.google.appinventor.components.annotations.SimpleFunction; | |
import com.google.appinventor.components.annotations.SimpleObject; |
using Tullio | |
using Dagger | |
using Dagger: DArray, chunks, Thunk, ArrayDomain | |
struct Zero end | |
Base.zero(::Type{Thunk}) = delayed(()->Zero())() | |
Base.zero(::Type{Union{Zero, ArrayDomain}}) = Zero() | |
Base.:(+)(z::Zero, x) = x | |
Base.:(+)(x, z::Zero) = x | |
Base.:(+)(z::Zero, x::Zero) = z |
immutable IRef{T} | |
value::T | |
IRef() = new() | |
IRef(value) = new(value) | |
end | |
immutable Result{T,S} | |
issuccess::Bool | |
value::IRef{T} | |
error::IRef{S} |
A = [1 3; 4 2] / 4 | |
blue = RGB(0., 0., 9.) | |
red = RGB(9., 0., 0.) | |
place(point) = (point .+ 1) ./ 4 .+ .25 | |
drawpoints(points, c) = | |
[(context(place(points[:, i])..., 0.005, 0.005), fill(c), circle()) | |
for i = 1:size(points, 2)] |
(function() { | |
function Sneaky (node) { | |
var lightNode = Polymer.dom(node) | |
this.lightNode = lightNode | |
this.node = lightNode.node | |
} | |
Sneaky.prototype = Polymer.dom() | |
Object.defineProperties(Sneaky.prototype, { |
/* CSS declarations go here */ | |
.wrapper { | |
width: 960px; | |
margin: 10px auto; | |
} | |
ul { | |
list-style: none; | |
} |