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 = [];

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

<?php
Container::make( 'block', 'Flight Details' )
->add_fields( [
Field::make( 'text', 'crb_from', 'From' ),
Field::make( 'text', 'crb_to', 'To' ),
Field::make( 'date_time', 'crb_departure_time', 'Departure Time' ),
Field::make( 'date_time', 'crb_arrival_time', 'Arrival Time' ),
Field::make( 'text', 'crb_duration', 'Duration' ),
])
->set_block_render_function(function ($flight) {
(function($, undefined){
// vars
var blocks = {};
var onChangeTimeout = 0;
var isSerializing = false;
// WP vars
var el = wp.element.createElement,
Fragment = wp.element.Fragment,
### Keybase proof
I hereby claim:
* I am emohamed on github.
* I am emohamed (https://keybase.io/emohamed) on keybase.
* I have a public key ASDJJT9RHt6htVTvMKe4J7kICygH4_4HKGpCCCAcWcLcRAo
To claim this, I am signing this object:
@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
<?php
use Carbon_Fields\Container\Container;
use Carbon_Fields\Field\Field;
$general_block = [
Field::make('text', 'plain_text_block'),
Field::make('rich_text', 'rich_text_block'),
];
$media_block = [
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Document</title>
</head>
<body>
<script>
Object.prototype.inspect = function () {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js"></script>
<title>Document</title>
</head>
<body>
<div id="buttons">
@emohamed
emohamed / tictactoe.html
Last active January 2, 2016 16:39
Tic Tac Toe in javascript, just game engine, without computer.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tic Tac Toe</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js"></script>
<script>
"use strict"
$(function() {
var game = {