https://augustpinch.com/qnd7d2fhd?key=ed5dbed8ecdd9af92e2b54e652945382
8
Tuesday, April 29, 2025
SCREEN RECORDER TOOL
Here's a complete code for a screen recorder tool using RecordRTC library. This example includes basic features like start/stop recording, video preview, and download recorded video.
*HTML:*
```
Screen Recorder
```
CSS (in style.css file):
```
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
.container {
max-width: 800px;
margin: 40px auto;
padding: 20px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
button {
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #4CAF50;
color: #fff;
cursor: pointer;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
#video-preview {
margin-top: 20px;
border: 1px solid #ddd;
border-radius: 5px;
}
```
JavaScript (in script.js file):
```
let recorder;
let recordedBlobs;
let videoPreview = document.getElementById('video-preview');
let startRecordingButton = document.getElementById('start-recording');
let stopRecordingButton = document.getElementById('stop-recording');
let downloadVideoButton = document.getElementById('download-video');
startRecordingButton.addEventListener('click', startRecording);
stopRecordingButton.addEventListener('click', stopRecording);
async function startRecording() {
try {
let stream = await navigator.mediaDevices.getDisplayMedia({
video: {
cursor: 'always'
},
audio: true
});
videoPreview.srcObject = stream;
videoPreview.play();
recordedBlobs = [];
recorder = new RecordRTC(stream, {
type: 'video'
});
recorder.startRecording();
startRecordingButton.disabled = true;
stopRecordingButton.disabled = false;
} catch (error) {
console.error(error);
}
}
function stopRecording() {
recorder.stopRecording(() => {
let blob = recorder.getBlob();
recordedBlobs.push(blob);
videoPreview.srcObject = null;
videoPreview.src = URL.createObjectURL(blob);
videoPreview.play();
startRecordingButton.disabled = false;
stopRecordingButton.disabled = true;
downloadVideoButton.disabled = false;
});
}
downloadVideoButton.addEventListener('click', () => {
let blob = new Blob(recordedBlobs, {
type: 'video/webm'
});
let url = URL.createObjectURL(blob);
let a = document.createElement('a');
a.href = url;
a.download = 'recorded-video.webm';
a.click();
URL.revokeObjectURL(url);
});
```
This code creates a basic screen recorder tool with start/stop recording and download video features. You can customize the styling and add more features as per your requirements.
Note that this code uses the `getDisplayMedia` API to capture the screen, which requires permission from the user. Also, the recorded video is in WebM format, which might not be compatible with all media players. You can modify the code to support other formats if needed.
Monday, April 28, 2025
EMAIL EXTRACTOR TOOL
n email extractor tool using Python with regular expressions:
```
import re
def extract_emails(text):
pattern = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
emails = re.findall(pattern, text)
return emails
text = input("Enter text: ")
emails = extract_emails(text)
if emails:
print("Extracted Emails:")
for email in emails:
print(email)
else:
print("No emails found.")
```
This code extracts email addresses from a given text. You can modify it according to your needs.
Saturday, April 26, 2025
EARNING SITE
My withdraw from this bot
https://coincropp.com?ref=jpeIW9Z1nz4dMy withdraw from this bot
https://coincropp.com?ref=jpeIW9Z1nz4d
Friday, April 25, 2025
FREELANCE JOB LISTING CODE
*Freelance Job Listing Platform Code*
```
from django.db import models
from django.contrib.auth.models import User
Models
class Job(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
budget = models.DecimalField(max_digits=10, decimal_places=2)
client = models.ForeignKey(User, on_delete=models.CASCADE, related_name="client")
class Freelancer(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
skills = models.CharField(max_length=200)
experience = models.TextField()
class Proposal(models.Model):
job = models.ForeignKey(Job, on_delete=models.CASCADE, related_name="proposals")
freelancer = models.ForeignKey(Freelancer, on_delete=models.CASCADE, related_name="proposals")
proposal_text = models.TextField()
bid_amount = models.DecimalField(max_digits=10, decimal_places=2)
Views
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from .forms import JobForm, ProposalForm
@login_required
def create_job(request):
if request.method == "POST":
form = JobForm(request.POST)
if form.is_valid():
job = form.save(commit=False)
job.client = request.user
job.save()
return redirect("job_list")
else:
form = JobForm()
return render(request, "create_job.html", {"form": form})
@login_required
def submit_proposal(request, job_id):
job = Job.objects.get(id=job_id)
if request.method == "POST":
form = ProposalForm(request.POST)
if form.is_valid():
proposal = form.save(commit=False)
proposal.job = job
proposal.freelancer = request.user.freelancer
proposal.save()
return redirect("job_detail", job_id=job_id)
else:
form = ProposalForm()
return render(request, "submit_proposal.html", {"form": form, "job": job})
Templates
create_job.html
submit_proposal.html
job_list.html
job_detail.html
```
This code creates a basic freelance job listing platform with the following features:
1. Clients can create job listings.
2. Freelancers can submit proposals for jobs.
3. Clients can view proposals for their jobs.
This is a simplified example and may not be suitable for production use without additional features and security measures.
*How it works:*
1. Clients create job listings by filling out a form.
2. Freelancers search for jobs and submit proposals.
3. Clients review proposals and select a freelancer.
*Earning potential:*
1. Charge clients a fee for job listings.
2. Take a commission on freelancer earnings.
3. Offer premium services for clients and freelancers.
Thursday, April 24, 2025
JSON FORMATTER TOOL
Here's a simple JSON formatter tool code in JavaScript:
```
function formatJson(jsonString) {
try {
const jsonObject = JSON.parse(jsonString);
return JSON.stringify(jsonObject, null, 2);
} catch (error) {
return "Invalid JSON";
}
}
// Example usage:
const jsonString = '{"name":"John","age":30,"city":"New York"}';
const formattedJson = formatJson(jsonString);
console.log(formattedJson);
```
This code:
1. Parses the input JSON string into a JavaScript object
2. Stringifies the object with indentation (2 spaces) for formatting
Tuesday, April 22, 2025
TEXT TO HASHTAG GENETATOR TOOL.
Here's a Python code snippet that generates hashtags from a given text:
```
import re
def text_to_hashtags(text, num_hashtags=5):
# Remove punctuation and convert to lowercase
text = re.sub(r'[^\w\s]', '', text).lower()
# Split text into words
words = text.split()
# Remove common words (optional)
common_words = ['the', 'and', 'a', 'an', 'is', 'in', 'it', 'of', 'to']
words = [word for word in words if word not in common_words]
# Generate hashtags
hashtags = [f"#{word}" for word in words[:num_hashtags]]
return hashtags
def main():
text = input("Enter text: ")
num_hashtags = int(input("Enter number of hashtags: "))
hashtags = text_to_hashtags(text, num_hashtags)
print("Generated Hashtags:")
print(hashtags)
if __name__ == "__main__":
main()
```
This code:
1. Removes punctuation and converts the text to lowercase
2. Splits the text into words
3. Optionally removes common words
4. Generates hashtags from the top words
5. Prints the generated hashtags
You can modify the `common_words` list to add or remove words. You can also adjust the `num_hashtags` parameter to change the number of generated hashtags
Monday, April 21, 2025
ASCII TO JSON TOOL
def ascii_to_json(ascii_text):
try:
data = {"ascii_text": ascii_text}
json_data = json.dumps(data, indent=4)
return json_data
except Exception as e:
return f"Error: {str(e)}"
def main():
ascii_text = input("Enter ASCII text: ")
json_output = ascii_to_json(ascii_text)
print("JSON Output:")
print(json_output)
# Save to file (optional)
save_to_file = input("Save to file? (y/n): ")
if save_to_file.lower() == "y":
with open("output.json", "w") as f:
f.write(json_output)
print("JSON data saved to output.json")
if __name__ == "__main__":
main()
```
This code:
1. Asks the user for ASCII text input
2. Converts the text to JSON format
3. Prints the JSON output
4. Optionally saves the JSON data to a file named "output.json
Subscribe to:
Posts (Atom)
HEALTHY INDIAN BREAKFAST RECIPE
Healthy Indian Breakfast Recipe: Vegetable Upma Ingredients: 1 cup semolina (rava/sooji) 2 tablespoons ghee or oil 1 teaspoon mustard...
-
*Online Stock Photography: Sell Your Snaps* Are you a budding photographer with a penchant for snapping stunning images? Look no further! O...
-
Smart Affiliate Link Generator 💰 Smart Affiliate Link Generator Enter your blog/content: Enter keywords and affili...
-
QR Code Generator QR Code Generator Text WhatsApp Email Phone ...