Thanks and credit to mattn and ferreus on GitHub.
Also check out Developing on WSL and/or wslpath
(Windows 10 Build 17046 or later) if you're using the Windows Subsystem for Linux.
#define _WIN32_WINNT 0x0600 | |
#include <stdio.h> | |
#include <windows.h> | |
#include <fileapi.h> | |
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING | |
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 | |
#endif |
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" } | |
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" } | Out-file choco-software.txt |
type MyGraph | |
source::AbstractVector{Int} | |
destiny::AbstractVector{Int} | |
end | |
type DepsGraph | |
g::MyGraph | |
d::Int | |
names::Vector{String} | |
end |
#!/usr/bin/env julia | |
# inspired by http://stackoverflow.com/questions/40031913/simulate-a-bouncing-ball | |
# and the inspired Chris Rackauckas | |
using DifferentialEquations, ParameterizedFunctions, NLsolve, Luxor | |
f = @ode_def BallBounce begin | |
dy = v | |
dv = -g |
function pkgdeps(pkg::String, metadir = "/home/zac/.julia/v0.6/METADATA") | |
deps = [] | |
for pdir in readdir(metadir) | |
if isdir(joinpath(metadir,pdir)) && "versions" in readdir(joinpath(metadir,pdir)) | |
for ver in readdir(joinpath(metadir, pdir, "versions")) | |
if isfile(joinpath(metadir, pdir, "versions",ver,"requires")) | |
reqs = readlines(joinpath(metadir, pdir, "versions",ver,"requires")) | |
for r in reqs | |
if first(split(r, " ")) == pkg | |
push!(deps, (pdir, ver)) |
Thanks and credit to mattn and ferreus on GitHub.
Also check out Developing on WSL and/or wslpath
(Windows 10 Build 17046 or later) if you're using the Windows Subsystem for Linux.
0x8545
: Original 84
-> 85
0x08FF19
: Original 75
-> EB
0x1932C7
: Original 75
-> 74
(remove UNREGISTERED in title bar, so no need to use a license)#!/usr/bin/env bash | |
# | |
# pre-process-media.sh v2021-12-26 | |
# | |
# Prepare a directory of images and videos for long-term archival by normalizing | |
# their names, optimizing JPEGs with jpeg-archive, and stripping embedded MP4s | |
# from Android Motion Photos. | |
# | |
# SPDX-License-Identifier: GPL-3.0-only |