Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

saasfreelancer saas786

🏠
Working from home
Block or report user

Report or block saas786

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
View ReactJWPlayer.tsx
import * as React from 'react';
import PropTypes from 'prop-types';
import { JWPlayerProps, JWPlayerInstance } from './types';
import useJWPlayer from './hooks/useJWPlayer';
import useScript from './hooks/useScript';
const ReactJWPlayer = React.forwardRef((props: JWPlayerProps, ref?: JWPlayerInstance) => {
const { isScriptLoaded, isError } = useScript(props.playerId);
const { playerInstance, playerElement } = useJWPlayer(props, isScriptLoaded);
View SamsungPlayer.js
import React, { useEffect } from 'react';
import ReactJWPlayer from 'react-jw-player';
import { playerScript } from 'config';
// import { Analytics } from "functions/utils/Analytics";
import { buildArtimediaParams } from 'functions/helpers/artimedia';
import { dispatchGalaxyEvent } from './PlayerAnalytics';
import useEvtListener from 'functions/hooks/useEvtListener';
/****************************************
Author: aamirkhan180@gmail.com
github @iamaamir
@saas786
saas786 / README.md
Created Mar 30, 2020 — forked from jagdeepsingh/README.md
Set up macOS Catalina 10.15 with development tools
View README.md
View anchors.js
/**
* Anchors.
*/
// Variables.
import wp from 'wp';
const { addFilter } = wp.hooks;
import includes from 'lodash/includes';
// Add anchor support to these blocks.
@saas786
saas786 / full-codes.js
Created Feb 4, 2020 — forked from phpbits/full-codes.js
Extend core Gutenberg blocks with custom attributes and settings. View full tutorials here : https://jeffreycarandang.com/extending-gutenberg-core-blocks-with-custom-attributes-and-controls/
View full-codes.js
/**
* External Dependencies
*/
import classnames from 'classnames';
/**
* WordPress Dependencies
*/
const { __ } = wp.i18n;
const { addFilter } = wp.hooks;
View README.md
@saas786
saas786 / r-debug.php
Created Oct 31, 2019 — forked from Rarst/r-debug.php
R Debug (set of dump helpers for debug)
View r-debug.php
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
@saas786
saas786 / PortSwitch.php
Created Sep 16, 2019 — forked from bueltge/PortSwitch.php
Port switch to get an workaround to use WordPress Multisite also without the default port 80.
View PortSwitch.php
<?php # -*- coding: utf-8 -*-
declare( strict_types = 1 );
/**
* Plugin Name: Port Switch
* Plugin URI: https://gist.github.com/bueltge/51013ab809f5f0f5e305c70c2d393fff
* Description: Port switch to get an workaround to use WordPress Multisite also without the default port 80.
* Version: dev
* Author: Frank Bültge
* Author URI: https://bueltge.de
* License: MIT
@saas786
saas786 / gist:d83292851c3aedfdd29f76e8c40f9d2a
Created Aug 1, 2019 — forked from scribu/gist:906872
'price' sortable column example
View gist:d83292851c3aedfdd29f76e8c40f9d2a
<?php
// Register the column
function price_column_register( $columns ) {
$columns['price'] = __( 'Price', 'my-plugin' );
return $columns;
}
add_filter( 'manage_edit-post_columns', 'price_column_register' );
@saas786
saas786 / test.html
Created Mar 18, 2019 — forked from srikat/test.html
Dummy Content for Gutenberg
View test.html
<!-- wp:heading -->
<h2>Heading Block (H2)</h2>
<!-- /wp:heading -->
<!-- wp:heading -->
<h3>You are looking at one. (H3)</h3>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>Subhead Block</h2>
You can’t perform that action at this time.