Skip to content

Instantly share code, notes, and snippets.

View ahmadawais's full-sized avatar
Building the LLM computing primitive at Langbase.com

Ahmad Awais ⌘ ahmadawais

Building the LLM computing primitive at Langbase.com
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",
@ahmadawais
ahmadawais / ahmad-awais.md
Last active October 11, 2018 22:03
2018: Who Is Ahmad Awais?
→ I am a Full Stack Web Developer — well versed with JavaScript (MERN/MEAN), PHP (LAMP/LEMP), JAM (JavaScript API Markup) stacks
→ I am also a full-time #OpenSourcerer 🎩— which means knowledge of open sourcing, collaboration, Git, GitHub, etc
→ I love working with developers in Developer Relations as a Developer Advocate — passionate about Dev-Tooling, Dev-Experience, etc
→ I have a degree in Electrical Engineering, I love Emoji 💜 and sometimes crack terrible jokes 🤣
→ I’ve been blogging for over 15 years — writing content is a skill which has led me to become somewhat a thought-leader in JavaScript/WordPress space
→ I spent 12 years with WordPress — Core Dev, Core JS Team, Contributor to Customizer, WooCommerce, EDD, Default Themes, WP REST API, Gutenberg, etc

FMfcgxvzKtZxclGLZcwTrfBQshFbhCJG