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
Get-ChildItem -Recurse *.csproj -PipelineVariable project ` | |
| Select-Xml -XPath //PackageReference ` | |
| ForEach-Object { [pscustomobject]@{ "Name" = $_.Node.Include; "Version" = $_.Node.Version } } ` | |
| Group-Object { $project} ` | |
| Format-List |
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
[CmdletBinding( | |
SupportsShouldProcess = $true, | |
ConfirmImpact = "High" | |
)] | |
param( | |
[string] | |
$GoodDirectory, | |
[string] | |
$TargetDirectory |
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
import sys | |
import numpy as np | |
from PIL import Image | |
from PIL.ImageEnhance import Contrast | |
from PIL.ImageOps import invert | |
from io import BytesIO | |
from functools import partial | |
from toolz import compose | |
def pil_pipeline_step(fn): |
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
# 2017 Christopher Granade. This is a silly experiment, so I am placing it | |
# in the public domain. No rights reserved. | |
# Use with the following .gitconfig: | |
# [diff "bibtex"] | |
# textconv=python \"path/to/pprint_bibtex.py\" | |
# and the following .gitattributes: | |
# *.bib diff=bibtex | |
# Have fun! |
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
ipmo posh-tex | |
function ConvertFrom-BibTeX { | |
param( | |
[string] $Path | |
) | |
$bibDB = Invoke-Python @" | |
import bibtexparser | |
import json |
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
#!/usr/bin/env python | |
from __future__ import division, print_function | |
import click | |
import numpy as np | |
import scipy.io as sio | |
import json | |
def transform_data(data): | |
if isinstance(data, dict): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.