Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Cross AndyCross

View GitHub Profile
@AndyCross
AndyCross / Program.cs
Created Oct 26, 2018
Parquet POCO Convert
View Program.cs
using System;
using System.IO;
using System.Linq;
using Parquet;
namespace parquetdemo
{
public class SimpleStructure
{
public int Id { get; set; }
View bubble-tooltip.ts
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,
},
View Security-Redirect.ts
// 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,
View Babylonjs-engineVisual.ts
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 Apr 30, 2016
Loads a random image from loremFlickr.com where the image is fluffy
View FluffyFlickr.ts
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 Dec 6, 2020
Use BabylonJS in PowerBI
View BabylonjsVisual.ts
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 Apr 18, 2016
Scaffold of Gmaps in PowerBI
View GMapsVisual.ts
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 Oct 11, 2015
How the Calendar Visual might look in a few files
View calendar.css
.day {
fill: #fff;
stroke: #ccc;
}
.month {
fill: none;
stroke-width: 2px;
}
@AndyCross
AndyCross / infograph.ts
Last active Jun 15, 2016
How the infogramVisual might look in one file
View infograph.ts
module powerbi.visuals {
export interface ISvgComponent {
name;
attributes: [string[]];
children: ISvgComponent[];
}
export interface IInfoGraphData {
imageUris: string[];
categories: string[];
View Azure less noise
<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>