Skip to content

Instantly share code, notes, and snippets.

View srinivasdareddy's full-sized avatar

Srinivas srinivasdareddy

View GitHub Profile
from pydantic import BaseModel, Field
from typing import Optional, Union, Generator, Iterator
from utils.misc import get_last_user_message
from utils.misc import pop_system_message
import os
import requests
class Pipe:
var firstName = null;
console.log('first name:', firstName); // 'null'
var lastName;
console.log('last name', lastName); // 'undefined'
@srinivasdareddy
srinivasdareddy / multiple_ssh_setting.md
Created June 17, 2017 18:18 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@srinivasdareddy
srinivasdareddy / zshrc
Last active June 10, 2017 22:24
show git branches by date
# List Git branches in order of most-recently-updated.
alias gitbranchesbydate="git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:iso8601) %09 %(refname) %09 %(authorname)' | sed -e 's-refs/heads/--'"
# Output looks like:
# 2014-06-06 12:58:53 -0500 tcg/donate_language_updates Tommy George
# 2014-06-06 10:28:04 -0500 integration Brad
# 2014-06-05 16:13:30 -0500 super_dev_branch Chris
@srinivasdareddy
srinivasdareddy / scopes.txt
Created November 3, 2015 19:29 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@srinivasdareddy
srinivasdareddy / scopes.txt
Last active August 29, 2015 14:26 — forked from kaanra/scopes.txt
Sublime Text 2 Snippet Scope List
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee