ashwanth1109 / code-ninja-v2 Goto Github PK
View Code? Open in Web Editor NEWPersonal Blog
Home Page: https://code-ninja.xyz/
Personal Blog
Home Page: https://code-ninja.xyz/
New properties added to theme object are not reflected unless its reset (manually) in local storage by changing the theme by clicking on the theme toggle button.
Need to find a way to clear cache invalidation by smartly updating local storage, i.e. we need to add these properties to the object without resetting users preference for theme
At the moment, any image referenced (by URL) in content/article markdown files are using urls to assets already uploaded to s3 bucket (manually). Need to have CDK manage this task
Reference:
deploy/scripts/cache-invalidation.ts:29
const params: CreateInvalidationRequest = {
DistributionId: findCNDistribution?.Id || "",
InvalidationBatch: {
CallerReference: new Date().toISOString(),
Paths: {
Quantity: 1,
/**
* TODO: Identify / experiment to understand if we need to invalidate everything to reflect changes
*
*/
Items: ["*"],
},
},
};
await cloudfront.createInvalidation(params).promise();
Most urls redirect to index page if not exists, except for cases like above. Need to have this redirect to home route as well
warn - Tailwind is not purging unused styles because no template paths have been provided.
warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set purge: false
in your Tailwind config file to silence this warning.
warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
Search algo is very rudimentary, but it does feel fast enough at the moment (because we dont have a lot of articles).
It doesnt make sense to optimize prematurely since we dont have any issues with speed of search at the moment. But would be an interesting topic to research for better algorithms to improve lookup speed.
Maybe look for services like Algolia (except free).
The "Demystifying JavaScript Closures" article was originally published by me in dev.to
here: https://dev.to/ashwanth1109/demystifying-javascript-closures-4e3i
I copied the readme file over and it therefore still uses the image assets that were originally uploaded to dev.to
Need to export all the assets from figma into repo and deploy them to code-ninja s3 bucket and use them from there instead
Scripts like deploy, build etc must be run from their respective folders "deploy", "frontend" etc. Link them all to root level scripts to prevent navigating to different directories
Currently, I have to manually create interesting keywords for each content article so that search works with these keywords.
We want some AI service to take the text of the article as input and generate a few of the important / interesting keywords for search to use.
I think this approach of keyword based search would be the most efficient for the user. Since we don't want to search through prepositions, articles and other non-interesting keywords, it doesnt make sense to use all words for search.
Check to see if AWS Comprehend does something like this
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.