Skip to content

Instantly share code, notes, and snippets.

View KANE-99's full-sized avatar
🎯
Focusing and Sharpening skills

Kirtesh Suthar KANE-99

🎯
Focusing and Sharpening skills
View GitHub Profile

Frontend / CMS Interview – Practical Problem

Problem: Resolve CMS Entry References

Context

In our CMS, content entries can reference other entries (components, blocks, authors, assets, etc.).
Before rendering on the frontend, these references need to be resolved into a fully expanded structure.

This exercise focuses on:

  • Problem-solving approach
@KANE-99
KANE-99 / TheStringGame.py
Last active January 17, 2021 08:33
TheStringGame.py
# A Best solution
def GameWithStrings(string):
n = len(string)
# has_alice_won = False
count = 0
if n >= 3:
i = 0
if string[i:i+3] == '))(':
const {
Parser,
transforms: { flatten, unwind }
} = require("json2csv");
try {
const parser = new Parser({
fields: ["firstColumn", "b.secondColumn", "cars.0.brand", "cars.1.brand"],
transforms: [flatten({ arrays: true }), unwind({ paths: ["cars"] })]
});
@KANE-99
KANE-99 / cheat-sheet.md
Created October 16, 2020 06:45
cheat sheet
@KANE-99
KANE-99 / cheat-sheet.md
Created October 16, 2020 06:44
cheat sheet
@KANE-99
KANE-99 / git cheat sheet.md
Last active March 21, 2020 21:07
cheat sheet
<title>cheat sheet</title>
package library;
import java.net.URL;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ResourceBundle;
import java.util.logging.Level;
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.Pane?>