Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Have more than you show!

voidfire

:octocat:
Have more than you show!
View GitHub Profile
@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
Created Jan 21, 2019
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 ~/alupress-backend
ENTITY=$1
php artisan make:model $ENTITY -m
php artisan nova:resource $ENTITY
View test2.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.