Skip to content

Instantly share code, notes, and snippets.

View moseskamau338's full-sized avatar
🎯
Focusing

Mash moseskamau338

🎯
Focusing
View GitHub Profile
@moseskamau338
moseskamau338 / filters.ts
Last active November 15, 2023 11:57
Sample text filters
export interface Filter {
label: string;
value: string;
key: string;
children?: Filter[];
fields?: any[],
user_input_rows?: UserInputRow[];
}
export interface UserInputRow {
<script setup>
import {onMounted} from "vue";
onMounted(() => {
var image = document.getElementById('full-image');
var canvas = document.getElementById('canvas')
//hidden or text inputs
var h_th_left = document.getElementById('thb_left')
var h_th_top = document.getElementById('thb_top')

This script should help you get started with a quick list of all your permissions as needed

It is recommended that if you do have an admin user, add a gate to allow all permissions on their account and pass manage all to the frontend if you are using something like CASL to authorize

$permissions = ['browse', 'edit','export', 'add','delete']

// $module_names = ['reports', 'expenses','invoices', 'bookings', 'staff','customers','apartments', 'apartment_categories','settings','profile','roles','tax', 'extra-income', 'approvals','suppliers', 'occupancy','payments', 'commissions', 'agents', 'credit_notes']
@moseskamau338
moseskamau338 / README.md
Created October 13, 2022 07:27 — forked from roachhd/README.md
CSS Animation cheatsheet featuring Mr T.

A collection of awesome CSS animations featuring the super Mr T.

@moseskamau338
moseskamau338 / .vimrc
Created June 7, 2020 18:40 — forked from JeffreyWay/.vimrc
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@moseskamau338
moseskamau338 / ffmpeg.md
Created January 12, 2020 13:23 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@moseskamau338
moseskamau338 / javaprog.java
Created December 12, 2016 11:02
Android created Gist
public class hellojava{
public static void main(String args []){
System.out.println("hello there this is a bigginers program");
}
}
@moseskamau338
moseskamau338 / Ruby_welcome.rb
Created December 12, 2016 11:00
Android created Gist
class Ruby_welcome{
puts "hello world!"
}
@moseskamau338
moseskamau338 / rubywelcome.rb
Created December 12, 2016 10:59
Android created Gist
class rubywelcome{
puts "hello world!"
}
@moseskamau338
moseskamau338 / rubywelcome.rb
Created December 12, 2016 10:59
Android created Gist
class rubywelcome{
puts "hello world!"
}