Skip to content

Instantly share code, notes, and snippets.

View M-Porter's full-sized avatar

Matt Porter M-Porter

View GitHub Profile
@M-Porter
M-Porter / split.go
Last active March 1, 2024 22:48
Like split, but slower!
package main
import (
"bufio"
"bytes"
"flag"
"fmt"
"io"
"os"
"path/filepath"
@M-Porter
M-Porter / TimeZoneSelect.php
Last active December 8, 2021 07:24
Laravel 8 Time Zone Select Component
<?php
namespace App\View\Components;
use DateTimeZone;
use Illuminate\View\Component;
class TimeZoneSelect extends Component
{
public string $nameId;
@M-Porter
M-Porter / git-pt
Last active October 1, 2021 21:57
git-pt.py
#!/usr/bin/env python3
import sys
import subprocess
class Colors:
CYAN = "\033[96m"
GREEN = "\033[92m"
WARNING = "\033[93m"
@M-Porter
M-Porter / vue3-webpack.config.js
Last active January 22, 2023 02:08
Vue3 Webpack Config
const path = require('path');
const webpack = require('webpack');
const VueLoaderPlugin = require('vue-loader/dist/plugin').default;
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const isProd = process.env.NODE_ENV === 'production';
const resolvePath = (...args) => path.resolve(path.join(__dirname, ...args));
// create a file called autoexec.cfg at C:\Program Files (x86)\Origin Games\Apex\cfg
// with the contents of this file
//
// after that add "+exec autoexec" to your adv launch options
fps_max 0
// cl_forcepreload 1
cl_ragdoll_collide 0
cl_ejectbrass "0"
@M-Porter
M-Porter / .vimrc
Last active September 29, 2016 18:23
.vimrc
set nocompatible
filetype off
" vim-plug - 🌺 Minimalist Vim Plugin Manager (https://github.com/junegunn/vim-plug)
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-surround'
Plug 'gcmt/breeze.vim'
Plug 'tomtom/tcomment_vim'
Plug 'vim-airline/vim-airline'
@M-Porter
M-Porter / remove_dsstore.rb
Created September 22, 2015 07:39
remove_dsstore.rb
#!/usr/bin/env ruby
std_out = `find . -name *.DS_Store`
files = std_out.split("\n")
files.each do |file|
File.delete(file)
end
@M-Porter
M-Porter / Status-Monitor.markdown
Created August 26, 2014 13:27
A Pen by Matt Porter.
@M-Porter
M-Porter / StaticEdgeJS.markdown
Created August 26, 2014 13:26
A Pen by Matt Porter.

StaticEdgeJS

Here is a simple little library i cooked up that I find to be extremely useful when testing.

A Pen by Matt Porter on CodePen.

License.

@M-Porter
M-Porter / HTML5-Beat-Studio.markdown
Created August 26, 2014 13:26
A Pen by Matt Porter.