Skip to content

Instantly share code, notes, and snippets.

@arthur5005
arthur5005 / e-signature-show-if.php
Last active December 8, 2022 21:41
Wordpress Plugin that adds ability to conditionally show/hide a block of text in an ApproveMe (WP E-Signature) contract from a shortcode enclosure
<?php
/*
Plugin Name: E-Signature (ApproveMe) Show-If Gravity Forms Shortcode Block
Description: Description: Adds ability to conditionally show/hide a block of text in an ApproveMe (WP E-Signature) contract from a shortcode enclosure [esiggravity_show_if value='foo' formid='1' field_id='1'] Some HTML content [/esiggravity_show_if]
Version: 1.0.0
Author: Arthur Goldsmith
*/
if ( file_exists( ABSPATH . '/wp-content/plugins/gravity-signature-forms-add-on/includes/esig-gf-generate-value.php' ) ) {
@arthur5005
arthur5005 / controllers.application.js
Last active October 15, 2020 03:12 — forked from samselikoff/controllers.application.js
Ember Animated boilerplate
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});
@arthur5005
arthur5005 / controllers.application.js
Created October 15, 2020 03:11 — forked from samselikoff/controllers.application.js
Ember Animated boilerplate
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});
@arthur5005
arthur5005 / controllers.application.js
Created October 15, 2020 03:11 — forked from samselikoff/controllers.application.js
Ember Animated boilerplate
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});
@arthur5005
arthur5005 / keybase.md
Created September 9, 2019 20:37
keybase.md

Keybase proof

I hereby claim:

  • I am arthur5005 on github.
  • I am arthur5005 (https://keybase.io/arthur5005) on keybase.
  • I have a public key ASBe8r3_fk6D2-iP2CLgKiPrX2ND4Y60gZN8h4igq5p47Ao

To claim this, I am signing this object:

@arthur5005
arthur5005 / controllers.application.js
Last active April 25, 2017 22:44
Infinite Controller Instantiation
import Ember from 'ember';
export default Ember.Controller.extend({
applicationController: Ember.inject.controller('application'),
appName: 'Ember Twiddle',
someComputed: Ember.on('init', function() {
const applicationController = this.get('applicationController');
})
@arthur5005
arthur5005 / controllers.application.js
Last active February 20, 2017 23:27
Notify Property Change Doesn't Force a Rerender
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Notify Property Change Doesn\'t Force a Rerender',
value: null,
actions: {
setValueToNull() {
this.set('value', null);
this.notifyPropertyChange('value');
},
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
send() {
this.send('onFooSend');
}
}
});
import Ember from 'ember';
export default Ember.Component.extend({
});
@arthur5005
arthur5005 / controllers.application.js
Last active November 3, 2016 20:38
Computed Property Cache Test
import Ember from 'ember';
export default Ember.Controller.extend({
_prop: 0,
prop: Ember.computed(function() {
return this.get('_prop');
}).volatile(),
propView: null,