Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am zogot on github.
  • I am zogot (https://keybase.io/zogot) on keybase.
  • I have a public key ASD8_9Bip8hGNPz8efdx1YSEmyjXvkPaKsIMAKoDVHNRPgo

To claim this, I am signing this object:

View phone-provisioning.md

README

Phone Provisioning

Phone Edit Additions and Changes Required

I have made the User Provisioning to be based around Phones. Phones can have a Provision assigned to them. There is an ajax endpoint for it at [POST]/phone-provisioning/ajax/toggle-provision/{phone_id}/{provision_id}

This will respond with {success:true/false}

View modules.conf
; ======================================
; = ClearVox UC Asterisk Module Config =
; ======================================
[modules]
; -----------
; APPS
; -----------
noload => app_adsiprog.so
noload => app_agent_pool.so
noload => app_alarmreceiver.so
View gist:2c18db5b2a0b15fe8156
#
#
mtllib Millennium_Falcon.mtl
o MillenniumFalconBottom
v -36.893936 72.863998 357.389221
v -36.816784 72.863998 429.544434
v -46.681076 71.182709 436.585602
v -47.134781 71.182709 344.156738
v -46.511078 70.117912 264.955475
v -107.793953 70.942482 274.368286
View example.php
<?php
namespace Project\Planets;
class Planet
{
protected $name;
/**
* @var Resource[]
View EloquentSoundRepository.php
protected function map(SoundGroupModel $soundGroupModel)
{
$soundGroupArray = $soundGroupModel->toArray();
$soundGroup = $this->mapper->map($soundGroupArray);
$customFiles = $soundGroup->getCustomFiles();
foreach ($soundGroupModel->files as $soundGroupFileModel) {
// Needed variables
$name = $soundGroupFileModel->name;
View scratch.php
<?php
namespace App\Setting;
use Illuminate\Contracts\Support\Arrayable;
class SettingRequest implements Arrayable
{
protected $code;
View functions.php
/**
* register Som Scripts to the Dom
* @param $isAdmin
* @return callable
*/
add_action("wp_enqueue_scripts", function() {
// Constantin CSS
wp_register_style(
"enquiss",
@zogot
zogot / meta-box-post_type.php
Last active Dec 31, 2015
Custom Meta Box Skeleton Code.
View meta-box-post_type.php
<?php
// Just replace pronamic with an unique identifier.
// and replace video with a slugname for your function of the box.
add_action( 'add_meta_boxes', 'wp_pronamic_add_meta_boxes' );
add_action( 'save_post', 'wp_pronamic_video_meta_box_save', 10, 2 );
function wp_pronamic_add_meta_boxes() {
add_meta_box( 'pronamic_video_meta_box', __( 'Review Rating', 'wp_vision' ), 'wp_pronamic_video_meta_box_show', 'pronamic', 'normal' );
}
function wp_pronamic_video_meta_box_show( WP_Post $post ) {
@zogot
zogot / functions-hooks-adverts.php
Last active Dec 26, 2015
Easily add posts into certain positions on WP_Query. Adverts example.
View functions-hooks-adverts.php
<?php
add_action( 'pre_get_posts', 'kwpn_advert_positions_pre_get_posts', 20 );
function kwpn_advert_positions_pre_get_posts( WP_Query $query ) {
// Only continue if the query chose to have adverts
if ( ! is_array( $query->get( 'kwpn_insert_adverts' ) ) )
return;
// Get the chosen advert positions
You can’t perform that action at this time.