Skip to content

Instantly share code, notes, and snippets.

View jitunayak's full-sized avatar
🏠
Working from home

Jitu Nayak jitunayak

🏠
Working from home
View GitHub Profile
@nikhilkumarsingh
nikhilkumarsingh / ddbocal.ipynb
Last active May 7, 2021 23:40
AWS DynamoDB Local
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
media_page = f"https://www.imdb.com/title/{imdb_id}/mediaindex?ref_=tt_ov_mi_sm"
bs = bs4.BeautifulSoup(requests.get(self.media_page).content.decode(), features='lxml')
image_tags = bs.find_all("img", height='100', width='100')
img_srcs = [re.sub(r"(@|_V1)[A-Z\._\d,]+\.jpg", "@._V1_.jpg", t['src']) for t in image_tags]

To reduce the dock hide and opening time:

defaults write com.apple.dock autohide-delay -float 0

to move files :

cmd+c -> cmd+alt+v

kill apps from recent apps

cmd+tab select the app and press Q to quite

@nikhilkumarsingh
nikhilkumarsingh / google_calendar_api_integration.ipynb
Created May 10, 2019 10:01
Integrating Google Calendar API in Python Projects
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@junagao
junagao / vscode-italic-font-settings.md
Last active July 6, 2025 15:34
VSCode italic font settings

VSCode italic font settings

Add this to settings.json (cmd ,):

{
  "editor.fontFamily": "Operator Mono, Fira Code iScript, Menlo, Monaco, 'Courier New', monospace",
  "editor.fontLigatures": true,
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
@singledigit
singledigit / cognito.yaml
Last active December 11, 2024 10:03
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole: