Skip to content

Instantly share code, notes, and snippets.

@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
@hamzamu
hamzamu / server.js
Created April 22, 2021 08:07
Meteor Working directory Absolute Path*
import * as path from 'path';
var absoluteBasePath = path.resolve(process.cwd(), '../../../../../');
var absoluteBasePath = path.resolve(process.cwd()).split(path.sep + '.meteor')[0];
@hamzamu
hamzamu / App.swift
Created February 19, 2021 20:59 — forked from randomor/App.swift
SwiftUI 2020 + CloudKit + Core Data ZenJournal prototype: https://thezenjournal.com
import SwiftUI
import CoreData
let appTransactionAuthorName = "app"
@main
struct ZenJournalApp: App {
var body: some Scene {
WindowGroup {
@hamzamu
hamzamu / admin.py
Created December 26, 2020 13:55 — forked from rchrd2/admin.py
Adding custom views to django's admin
from django.contrib import admin
from polls.models import Poll, Choice
from django.contrib.auth.models import User
from django.contrib.admin import AdminSite
from polls.views import index
class MyAdminSite(AdminSite):
@hamzamu
hamzamu / Using Git to Manage a Live Web Site.md
Created November 24, 2020 07:04 — forked from Nilpo/Using Git to Manage a Live Web Site.md
Using Git to Manage a Live Web Site

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents

@hamzamu
hamzamu / remove-node-modules.md
Created August 21, 2020 19:33 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore 2. Open up the .gitignore and add the following line to the file

node_modules 3. Remove the node_modules folder from the git repository

@hamzamu
hamzamu / bulma.js
Created July 23, 2020 13:34
Bulma Clanedar
var options = {
type: data.type || 'date',
minDate: new Date(),
// displayMode:'dialog',
showHeader: false,
// maxDate: '2018-12-31',
// dateFormat: 'yyyy-mm-dd',
isRange: false,
// showTodayButton: true,
// enableYearSwitch: true