old version / new version: ✅ ✅ feature 1 (#PD-1111) ✅ ✅ feature 2 (#PD-2222) ✅ ✅ feature 3 (#PD-3333) ❗ ✅ feature 4 (#PD-4444) → follow up : #PD-5555
This file contains 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 'package:flutter/material.dart'; | |
@immutable | |
class ClipShadowPath extends StatelessWidget { | |
final Shadow shadow; | |
final CustomClipper<Path> clipper; | |
final Widget child; | |
ClipShadowPath({ | |
@required this.shadow, |
This file contains 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
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)"); |
This file contains 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
const { createHash } = require("crypto"); | |
function sha256(string) { | |
return createHash("sha256").update(string).digest("hex"); | |
} | |
const firstUrlMaxLength = 74; | |
/** | |
* |
This file contains 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
export const getFileFromObjectUrl = async (url: string) => { | |
const result = await fetch(url); | |
return result.blob(); | |
}; |
This file contains 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
function generateRandomString(length) { | |
let result = ""; | |
const characters = | |
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
for (let i = 0; i < length; i++) { | |
result += characters.charAt(Math.floor(Math.random() * characters.length)); | |
} | |
return result; | |
} |
This file contains 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
#!/bin/bash | |
# Define the list of branch names start with pr- | |
words=($(eas channel:list --json --non-interactive | jq -r ".currentPage[].name" | grep pr-)) | |
# Loop over the filtered words and run the commands | |
for word in "${words[@]}"; do | |
eas channel:delete $word --non-interactive | |
eas branch:delete $word --non-interactive | |
done |
This file contains 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 { prisma } from "@princess/db"; | |
import pool from "@ricokahler/pool"; | |
import { type ResourceApiResponse, v2 } from "cloudinary"; | |
// this is the old cloudinary | |
const cloudName = "dg4lbnuii"; | |
const apiSecret = "e2L-_EHhcno3FLYZcHYbokaY-EU"; | |
const apiKey = "673961598382791"; | |
const newCloudNamePreview = "wemakeapp-preview"; |
This file contains 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
class Dedent { | |
dedent(templ) { | |
var values = []; | |
for (var _i = 1; _i < arguments.length; _i++) { | |
values[_i - 1] = arguments[_i]; | |
} | |
var strings = Array.from(typeof templ === 'string' ? [templ] : templ); | |
strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, ''); | |
var indentLengths = strings.reduce(function (arr, str) { | |
var matches = str.match(/\n([\t ]+|(?!\s).)/g); |
This file contains 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
/* section : font */ | |
@font-face { | |
font-family: "Geist"; | |
src: url(https://cdn.jsdelivr.net/gh/HananoshikaYomaru/geist@main/GeistVF.woff2) | |
format("woff"); | |
font-weight: normal; | |
} | |
@font-face { | |
font-family: "IA Writer Quattro"; |
OlderNewer