Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Extensible Symbolic Programming in Julia

       Vancouver Julia Meetup

            04/20/2021
           Shashi Gowda

         PhD candidate in

Computational Science and Engineering

@shashi
shashi / Canvas.java
Created April 6, 2012 19:49
Canvas with camera background
// 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;
@shashi
shashi / tullio_matmul.jl
Last active August 19, 2020 22:27
distributed matmul using Tullio.jl
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
@shashi
shashi / Benchmarks - loadtable.ipynb
Last active November 27, 2017 13:03
JuliaDB benchmarks vs Pandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shashi
shashi / either.jl
Last active December 27, 2016 17:25
immutable IRef{T}
value::T
IRef() = new()
IRef(value) = new(value)
end
immutable Result{T,S}
issuccess::Bool
value::IRef{T}
error::IRef{S}
@shashi
shashi / eigshow.jl
Created October 25, 2014 18:57
eigshow in Julia
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)]
@shashi
shashi / sneaky-dom.js
Last active March 29, 2016 18:29
Sneaky, Shady DOM
(function() {
function Sneaky (node) {
var lightNode = Polymer.dom(node)
this.lightNode = lightNode
this.node = lightNode.node
}
Sneaky.prototype = Polymer.dom()
Object.defineProperties(Sneaky.prototype, {
@shashi
shashi / todo.css
Last active December 22, 2015 02:29 — forked from anonymous/todo.css
/* CSS declarations go here */
.wrapper {
width: 960px;
margin: 10px auto;
}
ul {
list-style: none;
}