Skip to content

Instantly share code, notes, and snippets.

@Emmunaf
Emmunaf / agent loop
Created March 10, 2025 07:34 — forked from jlia0/agent loop
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
@Emmunaf
Emmunaf / AppConfig.java
Created May 13, 2022 16:54 — forked from piyusht007/AppConfig.java
Scheduling a periodic task using ScheduledExecutorService.
@Configuration
public class AppConfig {
@Bean
public ScheduledExecutorService getScheduledExecutorService() {
return Executors.newSingleThreadScheduledExecutor();
}
}

HomeTest

While researching about CSS custom properties I had the idea of building a parallax site based mostly on CSS. A first test can be found here ( http://codepen.io/Hornebom/pen/bWrXoW )

The approach was to leave most of the calculation of positioning the single elements to the browser itself. By changing just 6 css 'variables', which are used as basis for transforms, I want to overcome the common practice of updating inline styles on every parallax item.

Seems as in Firefox it's not possible to use custom properties for transforms on pseudo elements

A Pen by Emanuele on CodePen.

<!DOCTYPE html>
<html>
<!-- Working example for UMD usage of vue components (vue-burger-menu used as test) -->
<head>
<!-- Meta tags -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- vue dev-->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- Vue Production:
import pandas as pd, os, shutil
import requests
from bs4 import BeautifulSoup
df = pd.read_excel("Free+English+textbooks.xlsx")
currentpath = os.getcwd()
download_folder = os.path.join(str(currentpath), str("download/"))
for cat in df["English Package Name"].unique():
@Emmunaf
Emmunaf / phoneToWA.user.js
Last active April 13, 2022 07:52
Extract wa.me from autodetected cellphone starting with 3xx. Also working with 3xx-yyyyyyy or 3xx yyyyyyy
// ==UserScript==
// @name Phone Number Id
// @author emmunaf ([email protected])
// @version 1
// @grant none
// ==/UserScript==
(function () {
const trackRegexUS = /((\d{3})\s?\-?\s?(\d{4}))|(\(\d{3}\)\s?\d{3}\s?\-\s?\d{4})|(\d{3}\s\d{4})/g;
@Emmunaf
Emmunaf / clr_via_native.c
Created December 20, 2019 14:46 — forked from xpn/clr_via_native.c
A quick example showing loading CLR via native code
#include "stdafx.h"
int main()
{
ICLRMetaHost *metaHost = NULL;
IEnumUnknown *runtime = NULL;
ICLRRuntimeInfo *runtimeInfo = NULL;
ICLRRuntimeHost *runtimeHost = NULL;
IUnknown *enumRuntime = NULL;
LPWSTR frameworkName = NULL;