Skip to content

Instantly share code, notes, and snippets.

:octocat:
💻🏠

Ahmed Eid a-eid

:octocat:
💻🏠
Block or report user

Report or block a-eid

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
View ch.js
const video = () => document.querySelector('video');
document.querySelector('progress').style.opacity = 0.35;
const codes = {
space: 32,
j: 74,
k: 75,
l: 76,
};
View ublockOriginFilters
www.youtube.com##.ytp-button.ytp-fullerscreen-edu-button
www.youtube.com##.ytp-fullerscreen-edu-chevron
www.youtube.com##.ytp-fullerscreen-edu-text
www.youtube.com##.ytp-button.ytp-fullerscreen-edu-button
www.youtube.com##.ytp-cards-button
www.youtube.com##.ytp-ce-element
www.youtube.com##.ytp-ce-element
www.youtube.com##.ytp-ce-element
View video.js
const video = () => document.querySelector("video")
const codes = {
space: 32,
j: 74,
k: 75,
l: 76,
}
document.addEventListener("keydown", e => {
View .tmux.config.local
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- navigation ----------------------------------------------------------------
# if you're running tmux within iTerm2
# - and tmux is 1.9 or 1.9a
# - and iTerm2 is configured to let option key act as +Esc
View .tmux.config
# cat << EOF > /dev/null
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# instead, override settings in ~/.tmux.conf.local, see README.md
# -- general -------------------------------------------------------------------
View ...js
import EventEmitter from "events"
import fs from "fs"
class WithTime extends EventEmitter {
execute(asyncFunc, ...args) {
console.time("execute")
asyncFund(...args, (err, data) => {
if (err) return this.emit("error", err)
this.emit("data", data)
console.timeEnd("execute")
this.emit("end")
View n
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"
View gen.js
const fetch = require("isomorphic-fetch")
const endpoint = `https://talaikis.com/api/quotes/random/`
function* createGetQuote(){
const resp = yield fetch(endpoint)
const quote = yield resp.json()
return `${quote.quote}--${quote.author}`
}
const getQuote = createGetQuote()
View mongo
## Install MongoDB on macOS Sierra
This procedure explains how to install [MongoDB](https://www.mongodb.org) using [Homebrew](http://brew.sh) on macOS Sierra 10.12.
Official MongoDB install documentation: [here](https://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/)
### Install Homebrew
* Installing Homebrew is effortless, open Terminal and enter :
`$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
View .estlint.js
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
jest: true,
},
You can’t perform that action at this time.