Skip to content

Instantly share code, notes, and snippets.

View emohamed's full-sized avatar

Emil Mohamed emohamed

View GitHub Profile
@emohamed
emohamed / check.js
Last active February 13, 2022 15:10 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
const legit = require('legit');
const fs = require('fs');
const async = require('async');
let jsonString = fs.readFileSync('./email-providers.json');
let domains = JSON.parse(jsonString);
const valid = [];
const invalid = [];
@emohamed
emohamed / gist:d452fca0d1da36e5eef64e6bf73ea95e
Last active November 9, 2016 12:32
Sublime Text 2 - Useful Shortcuts

Sublime Text – Shortcuts

Navigation

Combine those with shift for selecting text simultaneously

Ctrl+→ / Ctrl+← Go to the end / start of the word
End / Home Go to the end / beginning of the line
Ctrl+End / Ctrl+Home Go to the end / beginning of the file
Alt+→ / Alt+← Go to the end / beginning of the sub-word
@emohamed
emohamed / 0_reuse_code.js
Created November 18, 2015 13:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
Carbon_Field::register_namespace('location', function ($type, $name, $label) {
return Carbon_Field::factory($type, $name, $label)
->set_conditional_logic(array(
'relation' => 'AND',
array(
'field' => 'crb_user_location_type',
'value' => 'fixed',
'compare' => '=',
<?php
/**
* Filters/resizes video embed codes.
* @param string embed code provided by video embedding service
* @param boolean $wmode
* @param mixed $width
* @param mixed $height
* @return string
*/
function crb_filter_video($html, $wmode = false, $width = false, $height = false) {