This file contains hidden or 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
| FROM jupyter/minimal-notebook:7f1482f5a136 |
This file contains hidden or 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
| using System; | |
| using System.Linq; | |
| // This namespace provides the API that we need to implement | |
| // to interact with PowerShell. | |
| using System.Management.Automation; | |
| // This namespace provides the target machine that we will use to run our Q# | |
| // code. | |
| using Microsoft.Quantum.Simulation.Simulators; |
This file contains hidden or 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
| As well as anything can be known, she knew three things about the world. | |
| The first was the difference between syntax and semantics. | |
| Syntax is that which can be named, reasoned about, understood, and reduced to its most fundamental form. | |
| Semantics, on the other hand, is the domain of that which cannot be understood merely as the sum of its constituent tokens, but which must be understood as a whole — that which defies reduction. | |
| Though as different as form and function, as void and vacuum, together syntax and semantics make everything around us. | |
| The sunrise is beautiful not wholly because of semantics, but because we have a syntax to express that which happens every day, that which revolves around us, that which recurs into time immortal and yet has a quality beyond that mere quality. | |
| This distinction, of course, is familiar not only to linguists who study how we convey meaning to others, but also to the programmers who cast magic (but I am ahead of myself here). | |
| Keats' rainbow was not merely unwoven, but dec |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.