Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴

Edu Wass eduwass

🌴
View GitHub Profile
@eduwass
eduwass / README.md
Last active Sep 5, 2022
Rize → Conjure
View README.md

Connect Rize data with Conjure

The general idea is that this will run as a task at the end of a day, which will copy the following measures from Rize to Conjure for that day:

  • workHours
  • trackedTime
  • focusTime
  • meetingTime
  • breakTime

I used Pipedream for convenience, but with general Javascript knowledge you should also be able to easily use this outside of it.

@eduwass
eduwass / readme.md
Created Dec 7, 2021
BUG <Medium>: React capturing traffic on separate GA Instance
View readme.md

Detected on

PRODUCTION

Description

Originally, we had separate GA Instances for Blog and WP:

CleanShot 2021-12-07 at 16.30.01.png

@eduwass
eduwass / search.php
Created Feb 12, 2021
Xero for WooCommerce Available Filters
View search.php
<?php
54 results - 15 files
web/app/plugins/woocommerce-xero/includes/class-wc-xr-address.php:
20 public function get_type() {
21: return apply_filters( 'woocommerce_xero_address_type', $this->type, $this );
22 }
34 public function get_line_1() {
View gravityforms-export-2020-11-12.json
{"0":{"title":"Vimeo Upload","description":"","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Submit","imageUrl":""},"fields":[{"type":"dgv_vimeo_upload","id":2,"label":"Video","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"allowedExtensions":"mp4,mov,wmv,avi,flv","formId":1,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","maxFileSize":"","maxFiles":"","multipleFiles":false,"productField":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"fields":"","displayOnly":""},{"type":"text","id":3,"label":"Course ID","adminLabel":"","isRequi
@eduwass
eduwass / index.html
Created Jul 28, 2020
Bootstrap 4 HTML Test Code
View index.html
<html>
<!-- Navbar
================================================== -->
<div class="bs-docs-section clearfix">
<div class="row">
<div class="col-lg-12">
<div class="page-header">
<h1 id="navbars">Navbars</h1>
</div>
@eduwass
eduwass / Default (OSX).sublime-keymap
Created Oct 8, 2019
Sublime Text Automatic Brackets/Braces Spanish keyboard binds
View Default (OSX).sublime-keymap
[
{ "keys": ["´"], "command": "insert", "args": {"characters": "{"} },
{ "keys": ["ç"], "command": "insert", "args": {"characters": "}"} },
{ "keys": ["`"], "command": "insert", "args": {"characters": "["} },
{ "keys": ["+"], "command": "insert", "args": {"characters": "]"} }
]
@eduwass
eduwass / readme.md
Created Apr 17, 2019
Zip latest committed changes only
View readme.md

git archive will accept paths as arguments. All you should need to do is:

git archive -o ../latest.zip some-commit $(git diff --name-only earlier-commit some-commit)

or if you have files with spaces (or other special characters) in them, use xargs:

git diff --name-only earlier-commit some-commit | xargs -d'\n' git archive -o ../latest.zip some-commit

If you don't have xargs properly installed, you could cook up an alternative:

@eduwass
eduwass / script.js
Created Feb 28, 2019 — forked from marcosnakamine/script.js
jQuery - WP Smush auto click
View script.js
setInterval(function(){
botao = jQuery('#smush-box-meta-boxes-bulk > div.sui-box-body > div.wp-smush-bulk-wrapper > button');
if( botao.attr('disabled') != 'disabled' ) {
botao.trigger('click');
}
}, 1000);
View iStat Menus Settings.ismp
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>build</key>
<real>1087</real>
<key>license</key>
<dict>
<key>email</key>
<string>eduwass@gmail.com</string>
@eduwass
eduwass / fitmetrixapi.php
Last active Sep 14, 2018
Fitmetrix quick'n'dirty API Wrapper
View fitmetrixapi.php
<?php
class FitmetrixAPI{
private $base_url;
private $encoded_auth;
private $facility_location_id;
public function __construct($token, $token_key, $facility_location_id){
$this->base_url = 'https://api.fitmetrix.io/api/';