Skip to content

Instantly share code, notes, and snippets.

View talha08's full-sized avatar
πŸ‘¨β€πŸ’»
Easy Life, Busy Day

Md Abu Talha talha08

πŸ‘¨β€πŸ’»
Easy Life, Busy Day
View GitHub Profile
For Permission: chmod 755 android/gradlew
@talha08
talha08 / console.js
Created September 26, 2018 04:41
colored console
console.log("%c%s",
"color: red; background: yellow; font-size: 24px;",
"WARNING!");
@talha08
talha08 / axios-401-response-interceptor.js
Created September 22, 2018 19:57 — forked from yajra/axios-401-response-interceptor.js
Axios 401 response interceptor.
// Add a 401 response interceptor
window.axios.interceptors.response.use(function (response) {
return response;
}, function (error) {
if (401 === error.response.status) {
swal({
title: "Session Expired",
text: "Your session has expired. Would you like to be redirected to the login page?",
type: "warning",
showCancelButton: true,
@talha08
talha08 / string-utils.js
Created September 13, 2018 11:36 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str){
return str.toLowerCase();
if(@is_array(getimagesize($mediapath))){
// this is image
} else {
//not image
}
@talha08
talha08 / Signin.vue
Created July 5, 2018 03:56 — forked from tutley/Signin.vue
Using Account Kit by Facebook with Vue
<template>
<!--
This is part of a larger project so it includes Vuex state handling which provides
a global error alert bar, logged in status, redirect if already logged in, etc.
This uses: Vue, Vuex, Vuetify
-->
<v-container fluid>
<v-layout row>
<v-flex xs12 sm6 offset-sm3>
@talha08
talha08 / .eslintrc.js
Created February 7, 2018 11:36
VS CODE Veu Js Setting
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint"
},
env: {
browser: true
},
extends: ["prettier", "prettier/standard", "plugin:vue/recommended"],
// required to lint *.vue files
@talha08
talha08 / PushNotifications.php
Created December 15, 2017 09:23 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
Route::delete('productSale/{id}',['as' => 'productSale.delete', 'uses' => 'ProductSaleController@destroy']);
.radio-label{
padding: 20px;
margin-left: -24px;
margin-right: 30px;
}
*{font-family: 'Roboto', sans-serif;}
@keyframes click-wave {
0% {