To start the project: npx create-electron-app my-new-app --template=webpack
Attached are files to help with configuration of a preload script and a visual studio code debug
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>app_</title> | |
</head> | |
<body> | |
<h1>ABCDE</h1> | |
<button onclick="run()">Run</button> | |
<script> |
To start the project: npx create-electron-app my-new-app --template=webpack
Attached are files to help with configuration of a preload script and a visual studio code debug
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
<component name="TestRunnerService"> | |
<option name="PROJECT_TEST_RUNNER" value="Unittests" /> | |
</component> |
#include <algorithm> | |
#include <cassert> | |
#include <iomanip> | |
#include <iostream> | |
#include <cstdlib> | |
#include <string> | |
#include <regex> | |
#include <map> | |
#include <vector> | |
#include <iterator> |
#!/usr/bin/env bash | |
read -r -d '' usage << EOM | |
Usage: | |
gh-deploy-clone user/repo [ENVIRONMENT] | |
EOM | |
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1 |
export async function retrieveLocationData() { | |
// Retrieve the location data from our backend function. Make sure we await it's return before continuing. | |
let locationArray = await getLocationData(); | |
// Post the location data to the HTML Element | |
$w('#googleMapsFrame').postMessage(locationArray); | |
} |
Deploys for static sites or web apps made easy with GitHub Actions
A generic but elegant CI flow for deploying a site to Github Pages - this is triggered on a push to master and runs on Github Actions - docs.
This workflow is targeted at a static site like Hexo or a single-page applciation like React project. It doesn't matter what the language is as long as your build steps results in a public directory which can be served on Github Pages.
#version 300 es | |
#define varying in | |
out highp vec4 pc_fragColor; | |
#define gl_FragColor pc_fragColor | |
#define gl_FragDepthEXT gl_FragDepth | |
#define texture2D texture | |
#define textureCube texture | |
#define texture2DProj textureProj | |
#define texture2DLodEXT textureLod | |
#define texture2DProjLodEXT textureProjLod |
package com.vytrack.tests.components.login_navigation; | |
import com.vytrack.utilities.SeleniumUtilities; | |
import io.github.bonigarcia.wdm.WebDriverManager; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; |