I hereby claim:
- I am darcyclarke on github.
- I am darcyclarke (https://keybase.io/darcyclarke) on keybase.
- I have a public key ASD4yo0sZAq8GW7-sMMPykFBSvT1luv3MwlvIVmXrBeRLQo
To claim this, I am signing this object:
# .github/ISSUE_TEMPLATE/bug.yml | |
# A basic bug template... | |
# NOTE: `id` must be set for the `version` & correspond to... | |
# whatever the value you reference later when you parse an issue | |
name: Bug w/ Input | |
description: Something bad happened | |
labels: [bug] | |
body: | |
- type: input |
{ | |
"scripts": { | |
"prepublish" : "[[ $(npm view $npm_package_name@$npm_package_version --silent) ]] && echo \"error: $npm_package_name@$npm_package_version exists already!\" && exit 1 || echo \"successful check: $npm_package_name@$npm_package_version does not exist already\"" | |
} | |
} |
#!/bin/bash | |
PKG=package.json | |
DIR=npm-audit-tmp | |
mkdir $DIR && cd $DIR && [[ $* == *--dry-run* && -f "../$PKG" ]] && cp "../$PKG" $PKG || echo '{}' >$PKG && npm i $1 --no-audit --package-lock-only --silent; npm audit; cd ../ && rm -rf $DIR | |
# Installation: | |
# 1. copy this into a file: /usr/local/bin/npm-audit | |
# 2. make it executable: chmod +x /usr/local/bin/npm-audit | |
# Usage: |
// Updated & working as of March 24th, 2020 | |
;(() => { | |
function removeAds() { | |
Array.from(document.querySelectorAll('[id^=feed_sub_title], [data-testid^=story-subtilte], [data-pagelet^=FeedUnit]')) | |
.map(e => { | |
let content = e.innerText | |
let dynamic = Array.from(e.querySelectorAll('span:not([data-content=""])')) | |
.filter(e => e.style.display != 'none') | |
.map(e => { | |
let hidden = window.getComputedStyle(e, ':before').getPropertyValue('content') |
I hereby claim:
To claim this, I am signing this object:
# |
/*! | |
* | |
* jQuery :missing Plugin | |
* http://darcyclarke.me/articles/development/find-elements-that-dont-contain-a-string/ | |
* | |
* Copyright 2016, Darcy Clarke | |
* Do what you want license | |
* | |
*/ | |
jQuery.expr[':'].missing = function(elem, index, match) { |
/*! | |
* Animate Floats jQuery Plugin | |
* http://darcyclarke.me/articles/development/animate-float-positions-in-jquery-1-5/ | |
* | |
* Copyright 2016, Darcy Clarke | |
* Do what you want license | |
*/ | |
(function(window, $){ | |
var $plugin = $.sub(); | |
$plugin.fn.animate = function(props, speed, cb){ |
<?php | |
/***********************************************/ | |
/* Get a Youtube or Vimeo video's Thumbnail from a URL | |
/* http://darcyclarke.me/articles/development/get-image-for-youtube-or-vimeo-videos-from-url/ | |
/* | |
/* Copyright 2016, Darcy Clarke | |
/* Do what you want license | |
/***********************************************/ | |
function video_image($url){ | |
$image_url = parse_url($url); |