Skip to content

Instantly share code, notes, and snippets.

View ashishdasnurkar's full-sized avatar

Ashish Dasnurkar ashishdasnurkar

View GitHub Profile
@ashishdasnurkar
ashishdasnurkar / upgrade-auth-wp-plugin-to-v4.md
Last active March 19, 2020 14:27
Step by step instructions to manually upgrade Login with Auth0 wordpress plugin to v4

Upgrading Login with Auth0 WordPress Plugin Manually

Prerequisites

  1. It is extremely important that you first read our migration guide from v3 to v4
  2. Please consider putting your wordpress site in maintenance mode while you perform the upgrade.
  3. Backup your WordPress site if you haven’t already.

Upgrade step by step process

  1. Download a ZIP file of the Login with Auth0 wordpress plugin v4.0.0-beta on to your local machine. login-by-auth0-4.0.0-beta.zip.
  2. Unzip the plugin file. This will create a directory called login-by-auth0-4.0.0-beta with all the requied plugin files under it.
@ashishdasnurkar
ashishdasnurkar / how_to.md
Last active May 28, 2016 13:32
How to setup redirectTo url of Auth0 email verification flow for Single Page Applications

Problem

Auth0 email verification flow allows developers to set a redirectTo url. Once the application users verify their email, they are redirected to redirectTo url specified in the Emails > Templates > Email Verification settings.

For single page apps, urls sometimes contain hash and the route for particular state/view in the app and followed by any route parameters. Using such url as redirectTo causes following issue.

For eg. setting following url as redirectTo url

http://localhost:3000/#/register
@ashishdasnurkar
ashishdasnurkar / passport_node_acl_example.js
Created February 26, 2016 03:34 — forked from danwit/passport_node_acl_example.js
Authentication and authorization with passportjs + node_acl + mongo + express
/**
* Simple authentication and authorization example with passport, node_acl,
* MongoDB and expressjs
*
* The example shown here uses local userdata and sessions to remember a
* logged in user. Roles are persistent all the way and applied to user
* after logging in.
*
* Usage:
* 1. Start this as server
<!DOCTYPE html>
<html ng-app="directivesModule">
<head>
<meta name="description" content="Simple angular directive example">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body >
<div highlight-me>Click Me!</div>
@ashishdasnurkar
ashishdasnurkar / dots.py
Created March 17, 2015 14:41
Define 3 python classes. Dot, Line and Rectangle. Dot has coordinates x and y. Line has 2 Dots and Rectangle has 4 Lines. Rectangle has method named "get_dots" that prints coordinates of all its Dots into standard output. Instantiate all the classes.
'''
Define 3 python classes. Dot, Line and Rectangle. Dot has coordinates x and y. Line has 2 Dots and Rectangle has 4 Lines. Rectangle has method named "get_dots" that prints coordinates of all its Dots into standard output. Instantiate all the classes.
'''
class Dot(object):
def __init__(self, x, y):
self.x = x
self.y = y

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.