Skip to content

Instantly share code, notes, and snippets.

View jonahgeorge's full-sized avatar

Jonah George jonahgeorge

View GitHub Profile
<?php
namespace App\Reports;
class BaseReport
{
public function render()
{
renderReport($this->header(), $this->results, [
'pageTitle' => $this->pageTitle(),
@jonahgeorge
jonahgeorge / index.js
Last active September 4, 2023 14:54
FFMPEG Splice Ads Into Audio File
const ffmpeg = require('fluent-ffmpeg');
const fs = require('fs');
const _ = require('lodash');
const INPUT_FILE = "./data/input.mp3";
const OUTPUT_FILE = "./output.mp3";
function splice(fileName, startTime, duration, outputFile) {
var command = ffmpeg(fileName);
command.seekInput(startTime);
tap "neovim/neovim"
tap "hhvm/hhvm"
brew "zsh"
brew "git"
brew "neovim"
brew "hhvm"

It seems that the Mappable trait only exposes additional getters/setters for the mapped columns. Is there any intention to make this trait behavior similar to laravel/framework #8200 where the "bad" column name is actually removed as a getter/setter?

Example:

MariaDB> describe cities;
+---------------+------------------+------+-----+---------+----------------+
| Field         | Type             | Null | Key | Default | Extra          |
+---------------+------------------+------+-----+---------+----------------+
| id            | int(11) unsigned | NO   | PRI | NULL    | auto_increment |
"NeoBundle Scripts-----------------------------
if has('vim_starting')
set runtimepath+=/Users/jonahgeorge/.config/nvim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('/Users/jonahgeorge/.config/nvim/bundle'))
" Let NeoBundle manage NeoBundle
NeoBundleFetch 'Shougo/neobundle.vim'
class Connection
class Connected
def disconnect
Disconnected.new
end
end
class Disconnected
def connect
Connected.new
class Connected; end
class Disconnected; end
class Connection(T);
def initialize
Connection(Disconnected).new
end
def connect
puts "Connected!"
{
"firstNames": [
"Crimson",
"Cinnamon",
"Silent",
"Sheik",
"Dreamy",
"Wondering",
"Spicy",
"Catchy",
<%= form_for @form do |f| %>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<%= f.label :name %>
<%= f.text_field :name, class: "form-control", placeholder: "Keep it clean...", required: true %>
</div>
<div class="form-group">
<%= f.label :label %>
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at