Skip to content

Instantly share code, notes, and snippets.

View amjad-desai's full-sized avatar
🐢
I may be slow to respond.

Amjad Desai amjad-desai

🐢
I may be slow to respond.
View GitHub Profile
@amjad-desai
amjad-desai / obsidian.css
Last active April 6, 2023 20:51
Obsidian Fonts Setup for the default theme
/* variables */
:root
{
--font-size-normal: 19px;
--font-size-preview: 17px;
--font-size-code: 15px;
--font-size-side-dock: 15px;
--font-size-side-dock-title: 18px;
--font-size-status-bar: 12px;
--font-size-h1: 38px;
@amjad-desai
amjad-desai / lambda_handler.py
Created August 3, 2020 22:07 — forked from djg07/lambda_handler.py
DynamoDB Streams Lambda Handler
import json
print('Loading function')
def lambda_handler(event, context):
print('------------------------')
print(event)
#1. Iterate over each record
try:
for record in event['Records']:
@amjad-desai
amjad-desai / onscroll_animations.css
Created February 25, 2020 18:13 — forked from noahub/onscroll_animations.css
On-scroll Animations
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.min.css">
<style>
.revealOnScroll{opacity:0;}
</style>
@amjad-desai
amjad-desai / AppReviews
Created January 17, 2020 22:20 — forked from kgn/AppReviews
App Reviews - Python script to retrieve App Store reviews and save them to a CSV file
#!/usr/bin/env python
try:
# For Python 3.0 and later
from urllib.request import urlopen
except ImportError:
# Fall back to Python 2's urllib2
from urllib2 import urlopen
import json
@amjad-desai
amjad-desai / Flexible Form Fields.md
Last active September 29, 2018 11:45 — forked from victorzen/Flexible Form Fields.md
Allows you to place form fields anywhere on the page
@amjad-desai
amjad-desai / basic_router.jsx
Created March 15, 2018 22:15 — forked from siakaramalegos/basic_router.jsx
Basic example of React Router: BrowserRouter, Link, Route, and Switch
// BrowserRouter is the router implementation for HTML5 browsers (vs Native).
// Link is your replacement for anchor tags.
// Route is the conditionally shown component based on matching a path to a URL.
// Switch returns only the first matching route rather than all matching routes.
import {
BrowserRouter as Router,
Link,
Route,
Switch,
} from 'react-router-dom';
@amjad-desai
amjad-desai / Outlook Background Image Fix
Last active March 18, 2018 09:43 — forked from abachuk/gist:4478258
Outlook background image hack
##The code is a fix to manage the email background image issue in Outlook
<!--[if gte mso 9]>
<v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 374px; height: 246px; top: 0; left: 130px; border: 0; z-index: 1;' src="/imgs/myPhoto.png" />
<v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 374px; height: 246px; top: -5; left: 125px; border: 0; z-index: 2;'>
<div>
<![endif]-->
<table style="background: /imgs/myPhoto.png”>
</table>
<!--[if gte mso 9]>
// $ cat .eslintrc.js
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
meteor: true,
node: true,
es6: true
},
extends: 'eslint:recommended',
@amjad-desai
amjad-desai / git_cheat-sheet.md
Last active March 6, 2018 10:52 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet