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 node:20-slim AS base | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" | |
RUN corepack enable | |
COPY . /app | |
WORKDIR /app | |
FROM base AS prod-deps | |
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile |
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
// ... | |
// ... The previous segment | |
// ... | |
Column(modifier = modifier.systemBarsPadding()) { | |
Row( | |
verticalAlignment = Alignment.CenterVertically, | |
horizontalArrangement = Arrangement.SpaceBetween, | |
modifier = Modifier | |
.fillMaxWidth() |
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
@Composable | |
fun MyScreen(modifier: Modifier = Modifier) { | |
// ... | |
// ... other variables | |
// ... | |
val configuration = LocalConfiguration.current | |
val scope = rememberCoroutineScope() | |
val interactionSource = remember { MutableInteractionSource() } | |
val indication = rememberRipple( | |
// if set false, the ripple effect will not be cropped to the button. |
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 ffmpeg | |
def get_rotation(video_file_path: str): | |
try: | |
# fetch video metadata | |
metadata = ffmpeg.probe(video_file_path) | |
except Exception as e: | |
print(f'failed to read video: {video_file_path}\n' | |
f'{e}\n', | |
end='', |
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
database: | |
container_name: my_database | |
restart: always | |
image: postgres:13-alpine | |
user: '0:0' | |
ports: | |
- '5435:5432' | |
env_file: | |
- $PWD/.env | |
volumes: |
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
{ | |
... | |
"scripts": { | |
... | |
"build": "./node_modules/.bin/electron-builder", | |
"dist:w": "yarn build -w --x64 && mv dist/GeneticPy.exe dist/GeneticPy-x64.exe && mv dist/GeneticPy-Installer.exe dist/GeneticPy-Installer-x64.exe && yarn build -w --ia32 && mv dist/GeneticPy.exe dist/GeneticPy-ia32.exe && mv dist/GeneticPy-Installer.exe dist/GeneticPy-Installer-ia32.exe" | |
}, | |
... | |
} |
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
{ | |
... | |
"scripts": { | |
... | |
"build": "./node_modules/.bin/electron-builder", | |
"dist:w": "yarn build -w --x64 && mv dist/GeneticPy-Installer.exe dist/GeneticPy-Installer-x64.exe && yarn build -w --ia32 && mv dist/GeneticPy-Installer.exe dist/GeneticPy-Installer-ia32.exe", | |
}, | |
... | |
} |
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
{ | |
... | |
"scripts": { | |
... | |
"build": "./node_modules/.bin/electron-builder" | |
}, | |
... | |
} |
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
productName: GeneticPy | |
artifactName: ${productName}-${arch}.${ext} | |
win: | |
target: | |
- nsis | |
- portable | |
nsis: | |
artifactName: ${productName}-Installer.${ext} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> | |
<policyconfig> | |
<vendor>Apache Friends</vendor> | |
<vendor_url>https://www.apachefriends.org/index.html</vendor_url> | |
<icon_name>xampp</icon_name> | |
<action id="com.ubuntu.pkexec.xampp.policy"> | |
<description>Run XAMPP Control Panel</description> | |
<message>Authentication is required to run the XAMP Control Panel</message> |
NewerOlder