Skip to content

Instantly share code, notes, and snippets.

Brian LaVallee poing

Block or report user

Report or block poing

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@poing
poing / trunk_chan.js
Created Jun 5, 2019
Wombat Channel Slider
View trunk_chan.js
// +----------------------------------------------------------------------+
// | MCAT Portal - Multi-Carrier Aggregate Trunking Client Portal |
// +----------------------------------------------------------------------+
// | © Copyright - INVITE Communications Co., Ltd. - All Rights Reserved |
// | Unauthorized copying of this file is strictly prohibited |
// | Proprietary and Confidential |
// | |
// | 1F Computec Ichigaya Building |
// | 2-20 Ichigaya-Honmuracho |
// | Shinjuku-ku, Tokyo, Japan 162-0845 |
@poing
poing / timeout.js
Created Jun 5, 2019
Wombat Timeout Setting JavaScript
View timeout.js
// +----------------------------------------------------------------------+
// | MCAT Portal - Multi-Carrier Aggregate Trunking Client Portal |
// +----------------------------------------------------------------------+
// | © Copyright - INVITE Communications Co., Ltd. - All Rights Reserved |
// | Unauthorized copying of this file is strictly prohibited |
// | Proprietary and Confidential |
// | |
// | 1F Computec Ichigaya Building |
// | 2-20 Ichigaya-Honmuracho |
// | Shinjuku-ku, Tokyo, Japan 162-0845 |
View 201902-facades-Dogs.php
<?php
namespace App\Http\Controllers;
class Dogs extends Controller
{
public function sound() { return 'bark'; }
}
View 201902-facades-Cats.php
<?php
namespace Vendorname\Projectname\Some\Long\Path;
class Cats
{
public function sound() { return 'meow'; }
}
View embed.php
<?php
class Embeded
{
public function test()
{
echo 'embeded test';
}
}
@poing
poing / laravel_facades.md
Last active Mar 29, 2019
Laravel Facades
View laravel_facades.md

Understanding Facades in Laravel

What's a Facade?

The Laravel explination, shown below is confusing.

Facades provide a "static" interface to classes that are available in the application's service container. Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.

Many examples use Cache::get('key') to demonstrate how a Facade works. Comparing the following code to the utility that a Facade provides.

View 20180724-mysql-benchmark.md

Test parameters:

--iterations=2 --concurrency=6 --iterations=1000


Using view without indexes: It took over 30 minutes to run the benchmark test.

Benchmark
View mail-template.md
left right
survey.name survey.project
users.username survey_details.extension
survey.description survey.created
question response
survey_questions.question_label: survey_questions.prompt survey_questions_dtmf.dtmf_value (survey_questions_dtmf.dtmf)
View afterhours-icingaadmin.notification.log
Object 'INVTTMTJTEST!afterhours-icingaadmin' of type 'Notification':
% declared in '/etc/icinga2/zones.d/master/notifications.conf', lines 23:1-23:51
* __name = "INVTTMTJTEST!afterhours-icingaadmin"
* command = "mail-host-notification"
% = modified in '/etc/icinga2/zones.d/master/templates.conf', lines 72:3-72:36
* command_endpoint = ""
* host_name = "INVTTMTJTEST"
% = modified in '/etc/icinga2/zones.d/master/notifications.conf', lines 23:1-23:51
* interval = 1800
* name = "afterhours-icingaadmin"
@poing
poing / css-to-do-checklist-with-comments-draft.markdown
Last active Feb 12, 2018
CSS To-Do Checklist (with comments Draft)
View css-to-do-checklist-with-comments-draft.markdown

CSS To-Do Checklist (with comments Draft)

Updated with editing capabilities powered by jQuery. Pretty rough code-wise, but the UI is decent!

A Pen by Brian LaVallee on CodePen.

License.

You can’t perform that action at this time.