Skip to content

Instantly share code, notes, and snippets.

🤡

razouck

🤡
Block or report user

Report or block razouck

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
@razouck
razouck / user.js
Last active Jun 22, 2018
Firefox - Quick settings
View user.js
user_pref("browser.send_pings", false);
user_pref("browser.formfill.enable", false);
user_pref("browser.search.useDBForOrder", true);
user_pref("browser.cache.offline.enable", false);
user_pref("browser.newtabpage.storageVersion", 1);
user_pref("browser.search.suggest.enabled", false);
user_pref("browser.sessionstore.max_tabs_undo", 0);
user_pref("browser.sessionstore.privacy_level", 2);
user_pref("browser.urlbar.suggest.history", false);
user_pref("browser.urlbar.suggest.bookmark", false);
@razouck
razouck / tagof.js
Last active Nov 18, 2017
Returns the type/tag of a given value.
View tagof.js
function tagof (value) {
return value != value ? 'NaN' :
Object.prototype.toString.call(value)
.match(/\[object (\w+)\]/)[1]
.toLowerCase();
}
@razouck
razouck / 3.js
Last active Jul 30, 2017
How to create an object in JavaScript.
View 3.js
var object;
object = {};
object = new Object();
object = new Object(null);
object = new Object(undefined);
object = Object.create(Object.prototype);
object = Reflect.constructor(Object.prototype);
var prop = 'value';
@razouck
razouck / 1.js
Last active Jul 28, 2017
What equals `null`?
View 1.js
var something = 'anything';
console.log(
(something == null)
===
(something === undefined || something === null)
!==
(something === false)
); // true
@razouck
razouck / settings.json
Last active Feb 6, 2018
Visual Code Studio - Quick Settings
View settings.json
{
"editor.dragAndDrop": false,
"editor.lineHeight": 0,
"editor.insertSpaces": false,
"editor.scrollBeyondLastLine": false,
"editor.tabSize": 4,
"editor.wordWrap": "on",
}
@razouck
razouck / Default (Linux).json
Last active Jun 3, 2018
Sublime Text - Quick settings
View Default (Linux).json
[
{ "keys": ["ctrl+'"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["ctrl+\\"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
{ "keys": ["ctrl+;"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+alt+h"], "command": "toggle_side_bar" }
]
You can’t perform that action at this time.