Skip to content

Instantly share code, notes, and snippets.

@chriseyre2000
chriseyre2000 / gist:7efb9eb807555b2a86d7cdfd2ac7879b
Created Jul 7, 2021
You can't catch up: Once you are behind you can never recover
View gist:7efb9eb807555b2a86d7cdfd2ac7879b
Mix.install([
{:vega_lite, "~> 0.1.0"},
{:kino, "~> 0.2.1"}
])
alias VegaLite, as: Vl
vl_widget =
Vl.new(width: 400, height: 400)
View gist:475e3d111f182851552c073b0982add3
# If this does not work on a docker version of livebook, update your docker image
# docker run -p 8080:8080 livebook/livebook
Mix.install([
{:vega_lite, "~> 0.1.0"},
{:kino, "~> 0.2.1"}
])
alias VegaLite, as: Vl
@chriseyre2000
chriseyre2000 / Mentor helper
Last active Apr 4, 2019
Exercism.io helper tampermonkey script - allows quickly to see how many one day old exercise there are.
View Mentor helper
// ==UserScript==
// @name Mentor Helper
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Helps to find items that are about a day old
// @author chriseyre2000
// @match https://exercism.io/mentor/dashboard/next_solutions
// @grant none
// @require http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
View visualize-ms-arch-step-2.dot
digraph architecture {
rankdir=LR;
// Storage - #303F9F (dark blue)
node[fillcolor="#303F9F" style="filled" fontcolor="white"];
database[label="DB"];
cache[label="Redis"];
// Client-side Apps - #FFEB3B (yellow)
node[fillcolor="#FFEB3B" style="filled" fontcolor="black"];
@chriseyre2000
chriseyre2000 / fix_test.bat
Created Sep 2, 2018
Exercism.io helper for the elixir track - runs all the scripts
View fix_test.bat
@rem fix a.test.exs
@rem removes the pending tag from the test and adds _2 to filename
@echo %1 | sed -e "s/.exs/_2.exs/" > temp.txt
@set /p Filename=<temp.txt
@cat %1 | grep -v "@tag :pending" > %Filename%
@rm temp.txt
elixir %Filename%
View powershell-web-server.ps1
function Load-Packages
{
param ([string] $directory = 'Packages')
$assemblies = Get-ChildItem $directory -Recurse -Filter '*.dll' | Select -Expand FullName
foreach ($assembly in $assemblies) { [System.Reflection.Assembly]::LoadFrom($assembly) }
}
Load-Packages
$routes = @{
View _.md
View _.md
View timeout sample
<!doctype html >
<html ng-app="myApp">
<head>
<meta charset="utf-8">
</head>
<body>
<div ng-controller="FirstController" ng-click="stopTimer()" >{{name}}</div>
<script src="node_modules/angular/angular.min.js" ></script>
<script>
var myApp = angular.module('myApp',[]);
View gist:a03ef55ed65e05be7582
# Need to Run As Admin
# Set locations
$WinSATFile = "MyWinSATScore.xml"
$WinSATFolder = "$ENV:windir\performance\winsat\datastore"
# Change to Location
push-location $WinSATFolder
# If WinSATFile exists Delete it.
If (Test-Path $WinSATFile)