teknologi-umum / graphene Goto Github PK
View Code? Open in Web Editor NEWLighter Carbon alternative made with Shiki
Home Page: https://graphene.teknologiumum.com
License: MIT License
Lighter Carbon alternative made with Shiki
Home Page: https://graphene.teknologiumum.com
License: MIT License
nuff said
changed my mind, it's literally everywhere and I don't fancy being one of them lol
Currently we have to click the gear icon again to close it.
How to reproduce:
using System;
The following data is returned instead of an image:
data:application/json;base64,eyJtc2ciOiJTb21ldGhpbmcgd2VudCB3cm9uZyBvbiBvdXIgc2lkZS4ifQ==
{"msg":"Something went wrong on our side."}
kemungkinan masalah:
kemungkinan solusi:
Because we have too much problems with ligature, should we change the default font on the frontend app to be SF Mono instead of JetBrains Mono?
Also should we dump the use of NerdFont and use the regular font instead?
How about adding more fonts? Lol
cc @elianiva
Mouseup event is more natural and more widely used than mousedown
Terserah siapa yg mau ambil, aku masih sibuk, hehe (baca: males)
it should support all shiki themes, see https://github.com/shikijs/shiki/blob/main/docs/themes.md
You can produce a simple error by submitting an empty code. The backend should return following error message:
{"msg":["`code` is required!"]}
Choosing svg as the output format results in double spaces
PS I used the web version, havent tried sending a POST request
Edited (1 Oct 2023):
Not reproducible anymore :/
My code at the time
function pascalsTriangle(size) {
const result = [[1]];
for (let i = 0; i < size; i++) {
const row = [];
for (let j = 0; j <= i + 1; j++) {
row.push((result[i][j] ?? 0) + (result[i][j - 1] ?? 0));
}
result.push(row);
}
return result;
}
function formatTriangle(triangle) {
const SPACE = ' ';
const size = triangle.length;
for (let rowIndex = 0; rowIndex < size; rowIndex++) {
let row = '';
const leftPadding = size - rowIndex;
row += SPACE.repeat(leftPadding);
row += triangle[rowIndex].map(num => num.toString().padStart(SPACE.length * 2)).join('');
console.log(row);
}
}
formatTriangle(pascalsTriangle(10));
When I try to send a post request to the API endpoint from my AWS server, it doesn't works and gives me 403 Forbidden, where same piece of code works fine in my local enviourment. Can you please help?
since there's https://shikiji.netlify.app/ now we should be able to write a polymorphic generate function which can highlight the code both on client side and server side for better experience
Change the ▶ button into a spinner, disable some part of the form, or animate anything to give visual cue that indicates an ongoing request. Also show error message on failure.
consider this patch: https://github.com/lukeed/polka/releases/tag/v1.0.0-next.22
and of course flourite has some more language support :)
Refused to connect to 'https://teknologi-umum-graphene.fly.dev/api' because it violates the document's Content Security Policy.
cc @elianiva
context: teknologi-umum/bot#111
me brain too smol, couldn't cope with this thing
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.13.1
latest lts is v16.13.1
why?
might as well change from debian-buster (aka debian 10) to debian-bullseye (aka debian 11) from the docker hub (https://hub.docker.com/_/node)
note to self
memory overload problem on deployment
lowering down to chromium or alpine might be a solution for that.
We need to bump it to support node >=16.12.0. Just need to wait for antfu/esbuild-node-loader#19
In the meantime, let CI use node 16.11.0
See: nodejs/node#37468
should we treat tabs (\t
) as double spaces or four spaces? right now it's ugly
cc @elianiva
too lazy to write the issue, got some work to do, just read this:
INSTRUCTIONS
self explanatory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.