Skip to content

Instantly share code, notes, and snippets.

@johnbabb
johnbabb / gist:2d69374455e386eae87a
Last active December 2, 2017 15:35
Chrome Dev Tools - Save Large Variable to File.
var JsonNetDecycle = (function () {
function JsonNetDecycle() { }
JsonNetDecycle.decycle = function decycle(obj) {
var catalog = [];
var newObj = JsonNetDecycle.getDecycledCopy(obj, catalog);
return newObj;
}
JsonNetDecycle.getDecycledCopy = function getDecycledCopy(obj, catalog) {
var i;
var name;
@kentcdodds
kentcdodds / get-watchers.js
Last active December 4, 2023 22:34
Get Watchers of element and its children
function getWatchers(root) {
root = angular.element(root || document.documentElement);
var watcherCount = 0;
function getElemWatchers(element) {
var isolateWatchers = getWatchersFromScope(element.data().$isolateScope);
var scopeWatchers = getWatchersFromScope(element.data().$scope);
var watchers = scopeWatchers.concat(isolateWatchers);
angular.forEach(element.children(), function (childElement) {
watchers = watchers.concat(getElemWatchers(angular.element(childElement)));
@endolith
endolith / Has weird right-to-left characters.txt
Last active April 30, 2024 12:48
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶