$ cd <application name>
Where is the dir where you have the .env file.
heroku config:set $(cat .env | sed '/^$/d; /#[[:print:]]*$/d')
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Demo CGPA calculator</title> | |
| <meta name="generator" content="Bluefish 2.2.7" > | |
| <meta name="author " content="Ajeh Emeke" > | |
| <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0" /> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Demo CGPA calculator</title> | |
| <meta name="generator" content="Bluefish 2.2.7" > | |
| <meta name="author " content="Ajeh Emeke" > | |
| <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0" /> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Demo CGPA calculator</title> | |
| <meta name="generator" content="Bluefish 2.2.7" > | |
| <meta name="author " content="Ajeh Emeke" > | |
| <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0" /> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"> |
| Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if | |
| a form sits there for a while (like a login form, but any the same) the csrf token in the form will | |
| expire & throw a strange error. | |
| Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner. | |
| In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T! | |
| Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function. | |
| All of your exceptions go through here, unless you have excluded them in the $dontReport array at the |
| // | |
| // A model representing an Entry | |
| // | |
| window.Entry = {} | |
| var store = [] | |
| var idCounter = 1 | |
| Entry.all = function () { | |
| return store |
| // for multiple requests | |
| let isRefreshing = false; | |
| let failedQueue = []; | |
| const processQueue = (error, token = null) => { | |
| failedQueue.forEach(prom => { | |
| if (error) { | |
| prom.reject(error); | |
| } else { | |
| prom.resolve(token); |
| const {Storage} = require('@google-cloud/storage'); | |
| const fromB64 = (string) => Buffer.from(string, 'base64').toString(); | |
| const credentials = JSON.parse(fromB64(process.env.GCLOUD_CREDENTIALS)) | |
| const storage = new Storage(credentials ? {credentials} : undefined) |
$ cd <application name>
Where is the dir where you have the .env file.
heroku config:set $(cat .env | sed '/^$/d; /#[[:print:]]*$/d')
Change dir to sdk tools bin
cd %ANDROID_SDK_ROOT%/tools
List and get device name
emulator -list-avds
Now you have list of available avds, copy one of the avd name and do next step
Launch the emulator