Reports IDs that are being used by multiple elements within a page, including the number of occurrences of each one
A Pen by Craig Patik on CodePen.
// ==UserScript== | |
// @name Magnet Link Finder | |
// @description Finds all magnet URLs and displays them prominently | |
// @namespace http://patik.com/code/user-scripts/ | |
// @include * | |
// @version 1.0.0.20140112 | |
// ==/UserScript== | |
(function _magnet_links() { | |
var linkList = null, // Display list that holds the links |
Reports IDs that are being used by multiple elements within a page, including the number of occurrences of each one
A Pen by Craig Patik on CodePen.
Some of these articles may be old but their arguments hold true. In particular, with more and more people relying on flaky, high-latency cellular networks to deliver sites there is possibly even more concern that JS may not work, even in an otherwise capable browser.
@mixin breakpoint($size: "", $maxWidth: false) { | |
@if $size == "" { | |
$size: 20em; // Put your "main" or most-used breakpoint here to use it as a default | |
} | |
// Default, `min-width` media query | |
@if $maxWidth == false { | |
@media (min-width: $size) { @content; } | |
} | |
// Alternative `max-width` media query |
// Source data (JSON) from the server | |
data = { | |
abc: { | |
def: { | |
ghi: 'jkl' | |
} | |
} | |
}; | |
// The path you're looking for (you want the value of `ghi`) |
# configure proxy for git while on corporate network | |
# From https://gist.github.com/garystafford/8196920 | |
function proxy_on(){ | |
# assumes $USERDOMAIN, $USERNAME, $USERDNSDOMAIN | |
# are existing Windows system-level environment variables | |
# assumes $PASSWORD, $PROXY_SERVER, $PROXY_PORT | |
# are existing Windows current user-level environment variables (your user) | |
# environment variables are UPPERCASE even in git bash |
Download and install these first:
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date:
The popover plugin displays HTML in a container that overlays the page. It is triggered by clicking on a button or other UI element and the container is positioned near the element. The popover can be displayed and hidden at will.
The plugin must be provided with an options object and a jQuery collection of elements.
#!/bin/sh | |
# Git proxy settings | |
echo "Configuring Git..." | |
git config --global http.proxy http://gateway.zscaler.net:80/ | |
git config --system http.proxy http://gateway.zscaler.net:80/ | |
git config --global http.sslVerify false | |
git config --system http.sslVerify false | |
git config --global --unset http.sslcainfo | |
git config --system --unset http.sslcainfo |