Skip to content

Instantly share code, notes, and snippets.

👨‍🏫
Edutaining at VSCode.pro

Ahmad Awais ⚡️ ahmadawais

Block or report user

Report or block ahmadawais

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
@ahmadawais
ahmadawais / parser.ts
Created Apr 19, 2019 — forked from MaxGabriel/parser.ts
Date parsing code
View parser.ts
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,
View github-usernames-list.js
/**
* 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.
View index.html
<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 Jan 15, 2019
WordPress Governance Meeting Notes #1
View README.md

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 Jan 15, 2019 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
View regexCheatsheet.js
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 Dec 4, 2018
WP Gutenberg Stats!
View stats.md


Gutenberg Stats

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


Debug Horizontal Scroll

@ahmadawais
ahmadawais / letsencrypt-easyengine-manual-install.md
Created Nov 5, 2018 — forked from tajidyakub/letsencrypt-easyengine-manual-install.md
Install Let's Encrypt's SSL Certificates manually in an Easy Engine Powered Setup
View letsencrypt-easyengine-manual-install.md
@ahmadawais
ahmadawais / ipinfo.io.json
Last active Feb 3, 2019
IPInfo.io GEO IP API Full Response
View ipinfo.io.json
{
"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",
You can’t perform that action at this time.