Skip to content

Instantly share code, notes, and snippets.

View AndyCross's full-sized avatar

Andy Cross AndyCross

View GitHub Profile
@AndyCross
AndyCross / Program.cs
Created October 26, 2018 08:44
Parquet POCO Convert
using System;
using System.IO;
using System.Linq;
using Parquet;
namespace parquetdemo
{
public class SimpleStructure
{
public int Id { get; set; }
@AndyCross
AndyCross / bubble-tooltip.ts
Created May 6, 2016 05:59
Data Driven example
module powerbi.visuals {
export class BubbleTooltipVisual implements IVisual {
public static capabilities: VisualCapabilities = {
// This is what will appear in the 'Field Wells' in reports
dataRoles: [
{
name: 'Category',
kind: powerbi.VisualDataRoleKind.Grouping,
},
// This PowerBI Visual errors as it runs in a sandbox
module powerbi.visuals {
export class YourVisual implements IVisual {
public static capabilities: VisualCapabilities = {
// This is what will appear in the 'Field Wells' in reports
dataRoles: [
{
name: 'Category',
kind: powerbi.VisualDataRoleKind.Grouping,
declare module BABYLON {
export class Engine {
constructor(canvas:HTMLElement, antialias:boolean);
runRenderLoop(it:any);
resize();
}
export class Scene {
constructor(engine:Engine);
render();
}
@AndyCross
AndyCross / FluffyFlickr.ts
Created April 30, 2016 19:07
Loads a random image from loremFlickr.com where the image is fluffy
module powerbi.visuals {
export class LoremFlickr implements IVisual {
public static capabilities: VisualCapabilities = {
// This is what will appear in the 'Field Wells' in reports
dataRoles: [
{
name: 'Category',
kind: powerbi.VisualDataRoleKind.Grouping,
},
{
@AndyCross
AndyCross / BabylonjsVisual.ts
Last active December 6, 2020 02:24
Use BabylonJS in PowerBI
declare module BABYLON {
export class Engine {
constructor(canvas:HTMLElement, antialias:boolean);
runRenderLoop(it:any);
resize();
}
export class Scene {
constructor(engine:Engine);
render();
}
@AndyCross
AndyCross / GMapsVisual.ts
Last active April 18, 2016 16:00
Scaffold of Gmaps in PowerBI
declare module google.maps {
/***** Map *****/
export class LatLng {
constructor(lat:number, long: number);
}
export class Map {
constructor(mapDiv: Element, opts?: any);fitBounds(bounds: any): void;
}
export class Marker {
constructor(opts?: any);
@AndyCross
AndyCross / calendar.css
Created October 11, 2015 09:01
How the Calendar Visual might look in a few files
.day {
fill: #fff;
stroke: #ccc;
}
.month {
fill: none;
stroke-width: 2px;
}
@AndyCross
AndyCross / infograph.ts
Last active June 15, 2016 11:44
How the infogramVisual might look in one file
module powerbi.visuals {
export interface ISvgComponent {
name;
attributes: [string[]];
children: ISvgComponent[];
}
export interface IInfoGraphData {
imageUris: string[];
categories: string[];
<a class="twitter-timeline" href="https://twitter.com/search?q=%23azure+-%23TranslateApiException+min_retweets%3A1" data-widget-id="451033701543989248">Tweets about "#azure -#TranslateApiException min_retweets:1"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>