[ Launch: square ] df624b9f8d286383040c by chriseyre2000[ Launch: test ] 4653053 by enjalot[ Launch: test ] 4652017 by enjalot[ Launch: test ] 4582399 by enjalot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auth0 login | |
auth0 roles list --json | jq ".[] | .id, .name" | sed 's/\"//g' | sed 'N;s/\n/,/;s/ /_/g' > roles.txt | |
while read p; do | |
group=`echo $p | awk -F, '{print $1}'` | |
filename=`echo $p | awk -F, '{print $2}'` | |
auth0 roles permissions list $group --json | jq ".[] | .permission_name" > $filename | |
done <roles.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mix.install([ | |
{:vega_lite, "~> 0.1.0"}, | |
{:kino, "~> 0.2.1"} | |
]) | |
alias VegaLite, as: Vl | |
vl_widget = | |
Vl.new(width: 400, height: 400) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = @{ |
[ Launch: MAP ] 63197f0db6686bce13cf by chriseyre2000[ Launch: Tributary inlet ] c4e6badb76cda01b8c71 by Da-Black-Man
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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',[]); |
NewerOlder