Skip to content

Instantly share code, notes, and snippets.

@jlia0
jlia0 / agent loop
Last active April 9, 2025 16:33
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@jackgray
jackgray / README.md
Last active February 1, 2025 17:47

How to enable embedded Superset dashboards in React/Next.js with CSV exporing

Permissions settings on Gamma role:

For Gamma role:

  • can read on EmbeddedDashboard
  • can export on Chart
  • can export on Dashboard
  • can csv on Superset
  • can this form get on CsvToDatabaseView
  • can this form post on CsvToDatabaseView (probably not required but I have it set)
@pavloshargan
pavloshargan / MinioSSLDeployment.md
Last active March 24, 2025 13:21
Safely Host Your Own S3 Server at Home: Ditch the Crazy AWS Bills with MinIO on Windows and SSL

Host Your Own S3 Server at Home: Ditch the Crazy AWS Bills with MinIO on Windows and SSL

I'll show how to set up local S3 server at home that can be accessed via an HTTPS link, along with a guide on how to set it up! The following code is just an example of how it will look in result. Just like a regural AWS S3 endpoint. But hosted on your own machine. For free.

Contents

  1. The Genesis of This Article
  2. About AWS S3 Costs
@Tostino
Tostino / inkbot_kg_2.txt
Last active February 1, 2025 09:37
Inkbot knowledge graph (2)
<#meta#>
- Date: 2023-05-16
- Task: kg
<#system#>
You are an AI assistant who will help the user with all their information requests.
<#chat#>
<#user#>
Your task is to construct a comprehensive Temporal Knowledge Graph
1. Read and understand the Document: Familiarize yourself with the essential elements, including (but not limited to) ideas, events, people, organizations, impacts, and key points, along with any explicitly mentioned or inferred dates or chronology
- Pretend the date found in 'Date' is the current date
@lukepighetti
lukepighetti / signing-google-sign-in.md
Last active October 29, 2023 01:51
Finally figured out how to get Google Sign In working. I needed to add my debug keys to Firebase https://twitter.com/luke_pighetti/status/1677328491216359434?s=20

Figured it out! You need to add:

  1. Debug signing keys
  2. Release signing keys
  3. PlayStore signing keys

Use JDK from Android Studio

  • export JAVA_HOME='/Applications/Android Studio.app/Contents/jbr/Contents/Home/'
import 'package:flutter/material.dart';
class GraphData {
final Color color;
final List<int> values;
GraphData({
required this.color,
required this.values,
});
@gaearon
gaearon / 00-README-NEXT-SPA.md
Last active April 2, 2025 17:54
Next.js SPA example with dynamic client-only routing and static hosting

Next.js client-only SPA example

Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.

You use Next.js router like normally, but don't define getStaticProps and such. Instead you do client-only fetching with swr, react-query, or similar methods.

You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)

Don't like Next? Here's how to do the same in Gatsby.

@d9k
d9k / superset_config_docker.py
Created January 13, 2022 07:44
Superset welcome page redirect
import logging
import pprint
from flask import Flask, redirect
from flask_appbuilder import expose, IndexView
from superset.typing import FlaskResponse
logger = logging.getLogger()
@darmawan01
darmawan01 / CustomImageCache.dart
Last active April 5, 2024 16:07
Custom Image Provider To Cache Image bytes type
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
class CacheMemoryImageProvider extends ImageProvider<CacheMemoryImageProvider> {
final String tag; //the cache id use to get cache
final Uint8List img; //the bytes of image to cache
CacheMemoryImageProvider(this.tag, this.img);
@qnxdev
qnxdev / setImageToLocalstorage.js
Last active September 29, 2024 15:43
Storing image in localStorage in React
import { useEffect } from "react";
export default function SetImage() {
const saveImage = (e) => {
const file = e.target.files[0];
const reader = new FileReader();
reader.onloadend = () => {
// convert file to base64 String
const base64String = reader.result
.replace("data:", "")