Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Aram Zucker-Scharff AramZS

🎯
Focusing
Block or report user

Report or block AramZS

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AramZS
AramZS / FindOutWhatEmotionsNYT_ThinksIHave.js
Last active May 6, 2019
Find Out What Emotions The New York Times thinks you have about a story.
View FindOutWhatEmotionsNYT_ThinksIHave.js
Object.keys(window.__preloadedData.initialState).forEach(function(key){
if (key.match(/AdTargetingParam/)){
// console.log(window.__preloadedData.initialState[key]);
if (window.__preloadedData.initialState[key].key.match(/emotion/)){
console.log(window.__preloadedData.initialState[key].value);
}
}
});
@AramZS
AramZS / lazyloading-cats.html
Created Apr 8, 2019
Testing new Lazyloading HTML feature with cats
View lazyloading-cats.html
<html>
<head></head>
<body onload='console.log("Body has loaded!");'>
<img src='https://upload.wikimedia.org/wikipedia/commons/6/69/June_odd-eyed-cat_cropped.jpg'
onload='console.log("visible cat");' />
<div style='height:10000px;'></div>
<img loading='lazy'
src='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQEhIQEBAQEBUQFxAVFRAVFRAWFRUVFREXFhUVFRUYHSggGBolGxUXITEhJSkrLi4uGB8zODMsNygtLisBCgoKDg0OFxAQFS0dHR4tLS8rKy0tLS0tLS0tLS0tKy0rLS0tLS0tLS0tKystKy0tLS0tKystKy0tKzcuLi0tK//AABEIALcBFAMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAAAQUGAgMEBwj/xAA6EAABAwIEAwYEBQIGAwAAAAABAAIRAyEEBRIxQVFhBhMicYGRMqGx0QdCweHwcvEUFTNSYoIjQ7L/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQIDBP/EACQRAQEAAgMAAgIBBQAAAAAAAAABAhEDITESQRNRIgRhceHw/9oADAMBAAIRAxEAPwD2GEnFZLFwW2WklZBYkJhVGaSJQEDAWQSasggZQEJhRQmEIQCE0IEhNCAUL2rzduEw9Ss4gECGzzKmSV41+Mef66rcIwmKd3weJEx9PdTK6i4zdUGvXdWe6o93ieSST/PXpK68Lh9t3dLgeZK5MNQkiLzwH3UuGaBvHEkX/uuL0xlUbpb4v0ACsH4X43ucbonw1gWxwk3HrIVNzHE2IBPqbqb7OVO7fQqyZD2beYieizLrJvLHeD6CasljTMgHmsl6XiCEIUAhCEGJQmhU
View keybase.md

Keybase proof

I hereby claim:

  • I am aramzs on github.
  • I am aramzs (https://keybase.io/aramzs) on keybase.
  • I have a public key ASDeNWmshQhFnp83d565t78yues4JCFUmrvKl2LhxOYS7wo

To claim this, I am signing this object:

View slateAdCode.js
// <![CDATA[
/**
* @license
* Lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
*/
;(function(){function n(n,t){return n.set(t[0],t[1]),n}function t(n,t){return n.add(t),n}function r(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function e(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function u(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&false!==t(n[r],r,n););return n}function i(n,t){for(var r=null==n?0:n.length;r--&&false!==t(n[r],r,n););
return n}function o(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return false;return true}function f(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function c(n,t){return!(null==n||!n.length)&&-1<d(n,t,0)}function a(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return true;return false}funct
View tcoRedirect.html
<head>
<noscript>
<META http-equiv="refresh" content="0;URL=https://apple.news/A5E_SPEWxQNGcXT3UW6yEuw">
</noscript>
<title>https://apple.news/A5E_SPEWxQNGcXT3UW6yEuw</title>
</head>
<script>window.opener = null; location.replace("https:\/\/apple.news\/A5E_SPEWxQNGcXT3UW6yEuw")</script>
View appleNewsRedirect.html
<!DOCTYPE html>
<html class="js no-touch svg no-oldie no-ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8" />
<script type="text/javascript">
if (window.self === window.top) {
window.onload = function() {
if (!String.prototype.includes) {
@AramZS
AramZS / interfaces
Created Feb 10, 2018
local access plus wifi access to raspberrypi0
View interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
allow-hotplug usb0
iface usb0 inet static
View awsputLambdaTest.json
{
"httpMethod": "POST",
"queryStringParameters": {
"TableName": "MyTable",
"ReturnConsumedCapacity": "TOTAL",
"Item": {
"TestingID": { "S": "aTest1" },
"TestingTitle": { "S": "A Title" },
"TestingValue": { "S": "A Value" }
}
View dont-let-ads-turn-off-scroll.js
document.documentElement.style.overflow = "auto";
Object.defineProperty(document.documentElement.style, "overflow", {
set: function(val){
console.log("nop", "NOPed on style overflow", val); return false;
}
} );
Object.freeze(document.documentElement.style);
You can’t perform that action at this time.