Skip to content

Instantly share code, notes, and snippets.

View kellypleahy's full-sized avatar

Kelly Leahy kellypleahy

View GitHub Profile
### this is preamble (framework code), the user wouldn't type this.
$bindings = @{
projects = @()
}
function project($projectFilename, $block) {
function output-type($type) {
#maybe validate or translate, etc...
$bindings.outputType = $type
@kellypleahy
kellypleahy / main.rs
Created September 23, 2016 22:56
RUST: Using traits to implement generic Point<T> and Line<T> with a len() function that computes as f64.
#![allow(dead_code)]
#![allow(unused_imports)]
use std::mem;
use std::ops;
use std::convert;
struct Point<T> {
x: T,
y: T
}
sudo apt install p7zip-full
curl https://gslvhcd66k6digicalcapisa.blob.core.windows.net/bob/publish.7z -o publish.7z
sudo apt-get install libunwind8
sudo apt-get install libcurl3
# pkill -f gicalcsvc
sudo rm -rf /var/opt/gicalc
sudo 7za x -o/var/opt/gicalc publish.7z
sudo chmod +x /var/opt/gicalc/gicalc-console
sudo date > /var/opt/gicalc/deploy-date
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.DependencyCollector;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;