Skip to content

Instantly share code, notes, and snippets.

View naugtur's full-sized avatar
🧉

Zbyszek Tenerowicz naugtur

🧉
View GitHub Profile
// So, in sloppy mode, eval and var can do interesting things.
globalThis.name = 'global';
console.log(name === 'global');
(function () {
const name = 'outer';
// direct eval, using a var declaration.
(function () {
@0xDE57
0xDE57 / config.md
Last active September 4, 2025 22:04
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable. I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@airportyh
airportyh / jsconf_slides_codes_and_notes.md
Last active June 19, 2017 20:51
JSConf 2014 Slides, Codes and Notes.

JSConf Slides, Codes and Notes

These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.

Modular frontend with NPM - Jake Verbaten (@Raynos)

@debasishg
debasishg / gist:8172796
Last active August 28, 2025 14:19
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
@JamesMGreene
JamesMGreene / SubGruntfileExplanation.md
Created October 29, 2013 19:24
Sub-Gruntfile explanation

Picture a [non-modular] folder structure like this:

root/
 - Gruntfile.js
 - node_modules/
 - Platform/
    - Gruntfile.js
    - ...
 - Products/
@ricardobeat
ricardobeat / privates.js
Created November 25, 2012 23:37
Private properties with no memory leaks.
var Thing = (function(){
var instances = []
, data = []
function setId(){
data[instances.indexOf(this)] = id
}
function getId(){
@paulmillr
paulmillr / dart.md
Last active January 7, 2025 21:10
Leaked internal google dart email

---------- Forwarded message ----------

From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]