Skip to content

Instantly share code, notes, and snippets.

git remote add origin gh_personal:cyberfly/eticket.git

cursor tricks for developer

  • chat to discuss idea
  • always new chat
  • always new composer on big feature
  • inline edit cmd + k
  • manual coding if keep loop same error

git remote add origin gh_personal:cyberfly/eticket.git

cursor tricks for developer

  • chat to discuss idea
  • always new chat
  • always new composer on big feature
  • inline edit cmd + k
  • manual coding if keep loop same error
@rustyvz
rustyvz / images.html
Last active April 7, 2025 19:44
Display Uploaded Images
<!-- Use the FileReader API's readAsDataURL method to show uploaded images -->
<input type="file" id="uploaded-file" />
<div id="result"></div>
<script>
function readImage() {
const fileReader = new FileReader();
const file = document.getElementById("uploaded-file").files[0];
if (file) {
fileReader.readAsDataURL(file);
this.showMainSpinner(this.l('Uploading'));
this.hideMainSpinner();
// -- or --
private ngxSpinnerTextService: NgxSpinnerTextService;
constructor(
injector: Injector,
private _spinnerService: NgxSpinnerService)
@rustyvz
rustyvz / core.js
Created April 7, 2025 19:47
Collection of usefull scripts to build instant app inside JSite Inspired by JSite
const html = (strings, ...values) => {
const raw = String.raw({ raw: strings }, ...values);
if (typeof document === "undefined") return raw;
const el = document.createElement("div");
el.innerHTML = raw;
return el.firstElementChild || '';
};
const Fragment = ({ children }) => {
if (typeof document === "undefined") {