Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

voidfire

🎯
Focusing
  • Greece
View GitHub Profile
@voidfire
voidfire / BlockCalendar.vue
Created Aug 19, 2021
Create a calendar vue component for twill 2.0
View BlockCalendar.vue
///resources\assets\js\blocks
<template>
<!-- eslint-disable -->
<div class="block__body">
<FullCalendar :options="calendarOptions" />
</div>
</template>
<script>
import BlockMixin from '@/mixins/block'
@voidfire
voidfire / stream.js
Created Aug 9, 2020 — forked from syntaxhacker/stream.js
NodeJS Mp3 Streaming ExpressJS
View stream.js
var express = require('express');
var app = express();
var fs = require('fs');
app.listen(3000, function() {
console.log("[NodeJS] Application Listening on Port 3000");
});
app.get('/api/play/:key', function(req, res) {
var key = req.params.key;
@voidfire
voidfire / List.md
Created May 29, 2019 — forked from msurguy/List.md
List of open source projects made with Laravel
View List.md

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

View laravel 5 create custom facade.php
<?php
///////////////////////////////////////////////////
// STEP 1 - CREATE CLASS THAT WILL BE USED GLOBALY
///////////////////////////////////////////////////
namespace App\MyApp;
class MyApp {
public function sayHello($data = [])
{
echo "Hello World from Facade!";
}
@voidfire
voidfire / newEntity.sh
Last active Jan 27, 2022
Create Model, Migration and Nova Resource files ./newEntity.sh modelName
View newEntity.sh
#!/bin/bash
if [ $# -eq 0 ]; then
echo -e "No arguments provided, \nTry: ./newEntity.sh modelname \nThe script will generate Model and migration file as well as nova resource file for you"
exit 1
fi
cd ~/nova-backend
ENTITY=$1
php artisan make:model $ENTITY -m
php artisan nova:resource $ENTITY