Skip to content

Instantly share code, notes, and snippets.

View ahmadawais's full-sized avatar
Building the easiest way for developers to build AI products BaseAI.dev

Ahmad Awais ⌘ ahmadawais

Building the easiest way for developers to build AI products BaseAI.dev
View GitHub Profile
@ahmadawais
ahmadawais / parser.ts
Created April 19, 2019 11:30 — forked from MaxGabriel/parser.ts
Date parsing code
import * as P from 'parsimmon'
import Day from '~/utils/Day'
import Month from '~/utils/Month'
const shortMonths = {
jan: 1,
feb: 2,
mar: 3,
apr: 4,
may: 5,
/**
* Get GitHub usernames that contributed in a file.
*
* @author AhmadAwais <https://github.com/AhmadAwais>
* @since 2019-04-03
*/
const usernames = [];
// Select the right data of anchor links and loop over it.
@ahmadawais
ahmadawais / index.html
Created March 18, 2019 13:00
Offline Form
<div>
<form action="" method="POST" id="example-form" class="form" autocomplete="off">
<fieldset class="form__fieldset">
<div class="form__field">
<label for="name" class="form__label">Name</label>
<input
type="text"
id="name"
class="form__input"
@ahmadawais
ahmadawais / README.md
Last active January 15, 2019 17:14
WordPress Governance Meeting Notes #1

WordPress Governance Meeting Notes #1

What's Next:

  • #internal-gov — This channel is key right now to discuss how we will manage the project and that group can submit proposals to the rest of us for discussion. They will be researching project management models and the code of conduct, among other things.
  • #research-wp-gov — Focusing on research and documentation of existing WordPress governance. Define the current WP governance structure (or a form of it) (make.wordpress.org/core/handbook/about/organization/).
  • #research-gov-models — Research on other (successful) forms of governance in Open Source pro
@ahmadawais
ahmadawais / regexCheatsheet.js
Created January 15, 2019 04:49 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@ahmadawais
ahmadawais / stats.md
Last active December 4, 2018 23:11
WP Gutenberg Stats!


Gutenberg Stats

@ahmadawais
ahmadawais / README.md
Created December 2, 2018 09:42
Find the elements that are causing a horizontal scroll. Based on http://css-tricks.com/findingfixing-unintended-body-overflow


Debug Horizontal Scroll

@ahmadawais
ahmadawais / letsencrypt-easyengine-manual-install.md
Created November 5, 2018 01:49 — forked from tajidyakub/letsencrypt-easyengine-manual-install.md
Install Let's Encrypt's SSL Certificates manually in an Easy Engine Powered Setup
@ahmadawais
ahmadawais / ipinfo.io.json
Last active February 3, 2019 02:50
IPInfo.io GEO IP API Full Response
{
"ip": "66.87.125.72",
"hostname": "66-87-125-72.pools.spcsdns.net",
"city": "Southbridge",
"region": "Massachusetts",
"country": "US",
"loc": "42.0707,-72.0440",
"postal": "01550",
"asn": {
"asn": "AS10507",