Skip to content

Instantly share code, notes, and snippets.

View async3619's full-sized avatar
🔥
GRINDING AS HELL

Sophia (Turner) async3619

🔥
GRINDING AS HELL
View GitHub Profile

Keybase proof

I hereby claim:

  • I am async3619 on github.
  • I am async3619 (https://keybase.io/async3619) on keybase.
  • I have a public key whose fingerprint is 4C29 10A8 2195 E485 2C3D 09C8 3098 5F71 5B2F 11B1

To claim this, I am signing this object:

@async3619
async3619 / index.html
Created July 1, 2022 09:48
Image 객체 Canvas 에 그리기
<!DOCTYPE HTML>
<html lang="ko">
<body>
<canvas id="canvas" width="500" height="500"></canvas>
<button>load image</button>
<script>
function loadImage(src) {
return new Promise(res => {
const img = new Image();
img.addEventListener("load", () => {
@async3619
async3619 / index.js
Last active April 5, 2018 04:40
Integrate react.js on existing php webpages
import React from 'react';
import ReactDOM from 'react-dom';
const entries = {
"#login": () => import(/* webpackChunkName: "login" */ "./login.js"),
// ^^^^^ this chunk will be created as "login.js".
// and then we can add dom element "#login" and import bundle.js and login.js when we want to use `Login` component.
};
Object.keys(entries).some(selector => {
cli
.version("0.0.1")
.command("publish", "publish the module binary file to the server")
.command("install", "download the prebuilt module binary file from the server")
.option("-a, --arch <ARCHITECTURE>", "specify target architecture of module binary file")
.option("-p, --platform <PLATFORM>", "specify target platform of moudle binary file")
.option("-v, --version <VERSION>", "sepcify version of module binary file, default to package-specific version")
.option("-e, --environment <OPTIONAL>", "specify target environment of moudle binary file, default to 'node'")
.parse(process.argv);