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
// | |
// https://github.com/electron/electron-quick-start-typescript | |
// | |
import { app, BrowserWindow } from "electron"; | |
import * as path from "path"; | |
let mainWindow: Electron.BrowserWindow; | |
function createWindow() { | |
// Create the browser window. |
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
// | |
// https://github.com/electron/electron-quick-start-typescript | |
// | |
// All of the Node.js APIs are available in the preload process. | |
// It has the same sandbox as a Chrome extension. | |
window.addEventListener("DOMContentLoaded", () => { | |
const replaceText = (selector: string, text: string) => { | |
const element = document.getElementById(selector); | |
if (element) { | |
element.innerText = text; |
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
var gulp = require('gulp'); | |
gulp.task('hello', async () => { | |
console.log('hello, world'); | |
}); |
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
# 【Techの道も一歩から】第21回「setup.pyを書いてpipでインストール可能にしよう」 | |
# https://buildersbox.corp-sansan.com/entry/2019/07/11/110000 | |
from glob import glob | |
from os.path import basename | |
from os.path import splitext | |
from setuptools import setup | |
from setuptools import find_packages | |
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
include requirements.txt |
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
{ | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}", | |
"program": "${workspaceRoot}/dist/main.js", | |
"preLaunchTask": "npm: build", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", |
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
{ | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}/dist_electron", | |
"program": "${workspaceRoot}/dist_electron/bundled/background.js", | |
"preLaunchTask": "npm: electron:build", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", |
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
#include <iostream> | |
int main() | |
{ | |
std::cout << "Hello World" << std::endl; | |
return 0; | |
} |
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
cmake_minimum_required(VERSION 2.8) | |
set(CMAKE_BUILD_TYPE Debug) | |
add_executable(emc_sample main.cpp) | |
if (EMSCRIPTEN) | |
set(CMAKE_EXECUTABLE_SUFFIX ".html") # デフォルトでは.js | |
endif() |
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
CMakeFiles | |
Testing | |
cmake_install.cmake | |
CMakeCache.txt | |
CTestTestfile.cmake | |
Makefile | |
*.a | |
*.obj | |
*.lib |
OlderNewer