Skip to content

Instantly share code, notes, and snippets.

View pash90's full-sized avatar
Blazing through

Parth Mehta pash90

Blazing through
View GitHub Profile
<html>
<body>
<p id="demo-text">The font size is being changed propertionally to the window width. The current size is <span id="font-size"></span></p>
<script>
var fontSizes = {
mobile: 12,
tablet: 14,
desktop: 16
};
@pash90
pash90 / media-queries.css
Last active February 26, 2017 22:30
Width-based media queries for web projects.
/*
* SMALL SCREENS
*/
@media only screen {
/* Define mobile styles */
}
// Mobile-only styles, max-width: 640px
@media only screen and (max-width: 640px) {
/* use when QAing mobile only issues */
@pash90
pash90 / sample-event.ics
Created March 20, 2017 02:56
A sample file detailing the structure of an iCal event. Works with Google Calendar as well as Apple Calendar
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
SUMMARY:BlueChilli Investor Evening
DTSTART;TZID=Australia/Sydney:20170511T180000
DTEND;TZID=Australia/Sydney:20170511T190000
LOCATION:125 York Street\, Sydney 2000
DESCRIPTION:An evening of pitches from startups that have gone through BC accelerator & incubator programs
STATUS:CONFIRMED
@pash90
pash90 / .hyper.js
Last active July 11, 2018 06:02
Settings for Hyper Terminal
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
@pash90
pash90 / NewCreateReactAppTS.md
Last active November 15, 2018 02:50
CRA + TS with Redux, RR4, DevTools and History

Introduction

After completing this guide, you'll have a new project with the following:

  • React v16
  • Redux
  • Redux Form
  • React-Router v4

Step - 1 : Create the base App

@pash90
pash90 / .prettierrc
Last active March 31, 2018 22:55
Config for Prettier for TS/JS Projects
{
"printWidth": 100,
"noSemi": true,
"trailingComma": "es5",
"jsxBracketSameLine": true,
"rcVerbose": true,
"useTabs": true,
"tabWidth": 2,
"singleQuote": true
}
@pash90
pash90 / names.js
Created April 24, 2019 05:49
Nerdy Usernames
const listOfUsernames = [
"Acetorcan",
"AirFear",
"ApenguinHonda",
"Aqueback",
"Aspharmyx",
"Beadvior",
"Blacharb",
"Bobolity",
"BradleySun",
bot:
format: chat
flows:
- name: Welcome
entry_flow: true
flow_elements:
- message_thread:
name: Introduction
entry_element: true
messages: