Skip to content

Instantly share code, notes, and snippets.

View HananoshikaYomaru's full-sized avatar
:shipit:
Stay focus

Hananoshika Yomaru HananoshikaYomaru

:shipit:
Stay focus
View GitHub Profile
@HananoshikaYomaru
HananoshikaYomaru / getFileFromObjectUrl.ts
Last active April 18, 2023 10:30
getImageFromObjectUrl.ts
export const getFileFromObjectUrl = async (url: string) => {
const result = await fetch(url);
return result.blob();
};
@HananoshikaYomaru
HananoshikaYomaru / getVercelBranchUrl.js
Created April 5, 2023 10:48
getVercelBranchUrl.js
const { createHash } = require("crypto");
function sha256(string) {
return createHash("sha256").update(string).digest("hex");
}
const firstUrlMaxLength = 74;
/**
*
@HananoshikaYomaru
HananoshikaYomaru / project update.md
Last active February 10, 2023 03:23
linear cheatsheet.md

Princess app 1.14.2 release test

old version / new version: ✅ ✅ feature 1 (#PD-1111) ✅ ✅ feature 2 (#PD-2222) ✅ ✅ feature 3 (#PD-3333) ❗ ✅ feature 4 (#PD-4444) → follow up : #PD-5555

Princess web 1.12.2 releast test

@HananoshikaYomaru
HananoshikaYomaru / httpserver.js
Created October 14, 2021 14:18
how to start a simple node js http server
const {createServer} = require("http");
let server = createServer((request, response) => {
response.writeHead(200, {"Content-Type": "text/html"});
response.write(`
<h1>Hello!</h1>
<p>You asked for <code>${request.url}</code></p>`);
response.end();
});
server.listen(8000);
console.log("Listening! (port 8000)");
import 'package:flutter/material.dart';
@immutable
class ClipShadowPath extends StatelessWidget {
final Shadow shadow;
final CustomClipper<Path> clipper;
final Widget child;
ClipShadowPath({
@required this.shadow,