One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| /* | |
| * progressCircle(on: Stack or Widget, value: number, colour: string, background: string, size: number, barWidth: number) : Promise<Stack> | |
| * | |
| * PARAMS | |
| * on - the stack or widget to add the progress circle to | |
| * value - a number between 1 and 100 to be the circle percentage or a number between 0 and 1 to be the circle percentage | |
| * colour - a HTML supported (hex, rgb, hsl) colour for the progress of the circle. Alternitively, it can be two HTML supported colours seperated by a hyphen (white-black) for the first colour to be active on light mode and second on dark mode | |
| * background - a HTML supported (hex, rgb, hsl) colour for the unfilled progress of the circle. Alternitively, it can be two HTML supported colours seperated by a hyphen (white-black) for the first colour to be active on light mode and second on dark mode | |
| * size - the size of the progress circle | |
| * barWidth - the width of the circular progress bar |
| [alias] | |
| tracking = "!f() { git for-each-ref --format '%(refname:short):%(upstream:short)' 'refs/heads' | egrep -v ':$'; }; f" | |
| is-clean-workdir = "!f() { git diff --stat --exit-code || { echo \"Workdir dirty\"; exit 1; }; }; f" | |
| is-clean-index = "!f() { git diff --stat --cached --exit-code || { echo \"Index dirty\"; exit 2; }; }; f" | |
| is-clean = "!f() { git is-clean-workdir && git is-clean-index; }; f" | |
| co-merge = "!f() { local=\"$1\"; remote=\"$2\"; git checkout \"$local\"; git merge --ff-only \"$remote\"; }; f" | |
| current-branch = rev-parse --abbrev-ref HEAD | |
| sync = "!f() { git is-clean || { echo Aborting sync.; exit 1; }; current=$(git current-branch); git fetch --all; git tracking | while IFS=: read local remote; do echo \"Merging $local with $remote\"; git co-merge \"$local\" \"$remote\"; done 3>&1 1>&2 2>&3 | egrep -i --color 'fatal|$' 3>&1 1>&2 2>&3; git checkout \"$current\"; }; f" |
| // Code to encrypt data in sequelize fields | |
| // We are using ascii85 as a way save on storage. Also, note that | |
| // the space delimiter we are using is a bit of an abuse since in | |
| // normal cases ascii85 will skip over it, but since we are using | |
| // after encoding and before encoding, it shouldn't be an issue. | |
| // | |
| // Fields are broken down to facilitate unit testing. | |
| // | |
| // based on code here: http://vancelucas.com/blog/stronger-encryption-and-decryption-in-node-js/ |
| [...document.querySelectorAll('.invite-card')].forEach(card => { | |
| const headline = card.querySelector('.headline').textContent; | |
| const accept = card.querySelector('.bt-invite-accept'); | |
| const decline = card.querySelector('.bt-invite-decline'); | |
| const name = card.querySelector('.name').textContent; | |
| if(headline.match(/recruit/gi)) { | |
| console.log(`Nah. ${name} looks a little fishy to me. 🚷🚷🚷`); | |
| decline.click(); | |
| } else { |
| <?php | |
| /* | |
| Plugin Name: Toggle Debug | |
| Description: Proof-of-concept for an admin-bar debug mode toggle. Needs some UX love. | |
| */ | |
| /* | |
| // In wp-config.php, wrap debug constants in a cookie conditional | |
| if ( isset( $_COOKIE['wp-debug'] ) && $_COOKIE['wp-debug'] == 'on' ) { | |
| define('WP_DEBUG', true); | |
| } |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var bower = require('bower'); | |
| var concat = require('gulp-concat'); | |
| var sass = require('gulp-sass'); | |
| var compass = require('gulp-compass'); | |
| var minifyCss = require('gulp-minify-css'); | |
| var rename = require('gulp-rename'); | |
| var sh = require('shelljs'); | |
| var path = require('path'); |
| <?php | |
| add_action( 'user_register', 'assign_membership_on_register', 10, 1 ); | |
| function assign_membership_on_register( $user_id ) { | |
| $membership_id = 1343; | |
| $member = MS_Factory::load( 'MS_Model_Member', $user_id ); | |
| $subscription = $member->add_membership( $membership_id ); | |
| if ( $member->has_membership() ) { |
| <?php | |
| class acf_field_gravity_forms extends acf_field { | |
| function __construct() { | |
| $this->name = 'gravity_forms_field'; | |
| $this->label = __( 'Gravity Forms', 'acf' ); | |
| $this->category = __( "Relational", 'acf'); | |
| $this->defaults = array( | |
| 'multiple' => 0, |
| <?php | |
| class acf_field_gravity_forms extends acf_field { | |
| function __construct() { | |
| $this->name = 'gravity_forms_field'; | |
| $this->label = __( 'Gravity Forms', 'acf' ); | |
| $this->category = __( "Relational", 'acf'); | |
| $this->defaults = array( | |
| 'multiple' => 0, |