Skip to content

Instantly share code, notes, and snippets.

@hamzamu
hamzamu / Gallery.astro
Created February 20, 2024 20:21 — forked from phenomen/Gallery.astro
NoJS Astro + TailwindCSS Gallery with Lightbox Zoom
@hamzamu
hamzamu / index.astro
Created January 8, 2024 06:41
Astro Render HTML content
<div set:html={HTMLContent}></div>
@hamzamu
hamzamu / gallery.astro
Created January 7, 2024 18:56
gallery.astro
@hamzamu
hamzamu / next.ddp.js
Created November 16, 2022 18:05
next.ddp.js
import Head from 'next/head';
import { useState, useEffect } from 'react';
import 'tailwindcss/tailwind.css';
import DashboardLayout from '../dashboard/layout';
import { createClass } from 'asteroid';
function MyApp({ Component, pageProps }) {
// HELLOZ
useEffect(() => {
@hamzamu
hamzamu / index.js
Created November 11, 2022 07:34
Next.js with DDP client
import Head from 'next/head';
import { useState, useEffect } from 'react';
import 'tailwindcss/tailwind.css';
import DashboardLayout from '../dashboard/layout';
// import you astroid.
import { createClass } from 'asteroid';
function MyApp({ Component, pageProps }) {
// Import and Initiate your DDP connection within React's useEffect
useEffect(() => {
@hamzamu
hamzamu / docker-compose.yml
Created January 11, 2022 07:55
Install CouchDB with Docker/ Docker-Compose
version: '3'
services:
couchserver:
image: couchdb
restart: always
ports:
- "5984:5984"
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=YOURPASSWORD
@hamzamu
hamzamu / tailwind.config.js
Created October 28, 2021 13:31
tailwind.config.js
module.exports = {
purge: [
"./client/**/*.html",
"./client/**/*.vue",
"./client/**/*.jsx",
"./client/**/*.js",
"./imports/ui/**/*.js",
"./imports/ui/**/*.jsx"
],
darkMode: 'class', // or 'media' or 'class'
@hamzamu
hamzamu / Flutter_Meteor_Connect.dart
Created July 18, 2021 08:57
Flutter_Meteor_Connect
import 'package:flutter/material.dart';
import 'package:enhanced_meteorify/enhanced_meteorify.dart';
// Meteor connect
void connectWS() async {
try {
var status = await Meteor.connect('ws://localhost:3000/websocket');
print('Subscribed at: ws://localhost:3000/websocket');
subPosts();
} catch (error) {
@hamzamu
hamzamu / main.html
Created July 13, 2021 16:54
Meteor: Webcam access
<head>
<title>meteor-exp</title>
</head>
<body>
{{> camera}}
</body>
<template name="camera">
<video id="video" width="800" height="600"
autoplay></video>
</template>
@hamzamu
hamzamu / Python3 Virtualenv Setup.md
Created May 26, 2021 05:05 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3