Skip to content

Instantly share code, notes, and snippets.

View Gururaj26's full-sized avatar
๐Ÿ™
Namaste

Gururaj Dharani Gururaj26

๐Ÿ™
Namaste
View GitHub Profile
@Gururaj26
Gururaj26 / favorite_atom_plugins.md
Last active June 22, 2020 11:59
List of all the plugins good to have for a frontend developer ( Angular + Typescript )

Favorite atom plugins list

apm install

angular-snippets@8.0.2
atom-beautify@0.33.4
atom-typescript@13.6.1
emmet@2.4.3
file-icons@2.1.41
@Gururaj26
Gururaj26 / password_regex.md
Last active February 7, 2019 14:11
Password Regex

Minimum eight characters, at least one letter and one number:

^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$

Minimum eight characters, at least one letter, one number and one special character:

^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$

Minimum eight characters, at least one uppercase letter, one lowercase letter and one number:

@Gururaj26
Gururaj26 / mackeeper.md
Last active May 15, 2018 08:49
Macbook keeper

Install brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install wget

$ brew install wget
@Gururaj26
Gururaj26 / Ubuntu Developer Packages
Last active January 16, 2018 10:53
Contains all the packages for a developer
sudo apt-get install chromium-browser
sudo apt-get install guake
sudo apt-get install zsh
// Install Curl
sudo apt-get install curl
// Install Git
sudo apt-get install git-core
@Gururaj26
Gururaj26 / Facebook Auth for AngularJs
Last active January 14, 2017 10:02
snippet for Facebook Auth AngularJs
window.fbAsyncInit = function() {
FB.init({
appId: '** App ID **',
cookie: true, // enable cookies to allow the server to access
// the session
xfbml: true, // parse social plugins on this page
version: 'v2.5' // use graph api version 2.5
});
};
(function(d, s, id) {
@Gururaj26
Gururaj26 / Google Auth for AngularJS App
Last active January 14, 2017 10:00
Snippet for AngularJs Google Auth
var startApp = function() {
gapi.load('auth2', function() {
// Retrieve the singleton for the GoogleAuth library and set up the client.
auth2 = gapi.auth2.init({
client_id: '*** ID HERE ***',
scope: 'https://www.googleapis.com/auth/userinfo.email',
cookiepolicy: 'single_host_origin'
// Request scopes in addition to 'profile' and 'email'
});
attachSignin(document.getElementById('google_login'));