Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Happy

Prashanth Krishnamurthy prashanth1k

💭
Happy
View GitHub Profile
View terminal-settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"command": "closeTab",
"keys": [
@prashanth1k
prashanth1k / country-codes.js
Last active May 18, 2020
Reference data (JS)
View country-codes.js
/***
* Country codes from https://www.iso.org/obp/ui/#search in Javascript-friendly format.
*
* Two formats:
* - simple JSON - useful for localisation
* - array
*
* Useful for lists, selects, etc.
*/
@prashanth1k
prashanth1k / PayStripe.vue
Last active May 15, 2020
Quasar-Vue snippets
View PayStripe.vue
<!--
Created: 20201505 | Updated: 20201505
Description: (Incomplete)
Handle payments with Stripe - this dialog can be
called by the component/view displaying pricelist.
1. Create customer
2. Create payment intent with Stripe elements (uses vue-stripe-elements-plus)
We couldn’t find that file to show.
View gist:0e6194d0e577f10f4b7b6bb6002c81e0
<h1>I am Groot</h1>
<br/>
<div>
<h2>I am Groot</h2>
</div>
View gist:46a1c78c290f60a04d3d529f969b6b23
var Card = (props) => {
return (
<div style={{margin:'1em'}}>
<img width='75' src={props.avatar_url}/>
<div style={{display:'inline-block', marginLeft:10}}>
<div style={{fontSize:'1.5em',fontWeight:'bold'}}> {props.name} </div>
<div> {props.company} </div>
</div>
</div>
);