Tested with Python 3.10
and PyInstaller 4.7
See also: pyinstaller-setuptools GitHub
Desired package/program is called: alpha.exe
Tested with Python 3.10
and PyInstaller 4.7
See also: pyinstaller-setuptools GitHub
Desired package/program is called: alpha.exe
I am evaluating Server 2022 and ran across Server Core App Compatibility Feature on Demand (FOD).
Once installed and after a reboot, your Server 2022 Core instance will now be able to run the GUI versions of the following programs:
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
// haversin(θ) function | |
func hsin(theta float64) float64 { | |
return math.Pow(math.Sin(theta/2), 2) | |
} | |
// Distance function returns the distance (in meters) between two points of | |
// a given longitude and latitude relatively accurately (using a spherical | |
// approximation of the Earth) through the Haversin Distance Formula for | |
// great arc distance on a sphere with accuracy for small distances | |
// |
package main | |
import ( | |
"fmt" | |
"golang.org/x/net/route" | |
) | |
var defaultRoute = [4]byte{0, 0, 0, 0} | |
func main() { |
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 3.48" | |
} | |
} | |
required_version = ">= 1.0.0" | |
} |
#!/bin/bash | |
T=terraform | |
${T} init | |
${T} fmt | |
${T} validate | |
# to deploy: | |
${T} plan |
import asyncio | |
import asyncpraw | |
import sys | |
class AsPr: | |
def __init__(self, sr: str): | |
self.sr = sr # subreddit | |
self.reddit = asyncpraw.Reddit(client_id=reddit_client_id, client_secret=reddit_client_secret, | |
user_agent=user_agent) |
Setting up a remote interpreter on PyCharm is awfully unintuitive. I've pared it down to what I think is the minimal number of steps, and leaves the fewest number of deployment configurations and Python interpreters lying around. This is designed for my specific configuration (specifically PyTorch); adapt as needed.
.env
, add ";.env" to the "Exclude items by name" fieldfrom __future__ import absolute_import | |
try: | |
import cStringIO as StringIO | |
except ImportError: | |
import StringIO | |
# Standard Library | |
import re | |
import string |