Skip to content

Instantly share code, notes, and snippets.

View gulgulia17's full-sized avatar
💭
I may be slow to respond.

Mudit Gulgulia gulgulia17

💭
I may be slow to respond.
View GitHub Profile
BottomNavgation
@gulgulia17
gulgulia17 / divisibleNumber.php
Last active January 28, 2021 16:40
TO FIND THE DIVISIBLE NUMBER BY USE RINPUT
<?php
$number = 1234;
for($x=2;$x<$number/2;$x++)
{
echo $number % $x ? null : "<br>$x";
}
@gulgulia17
gulgulia17 / Pie.vue
Created January 11, 2022 06:19
Vue Charts
<script>
import {Pie} from 'vue-chartjs'
export default {
extends: Pie,
props: {
chartdata: {
type: Object,
default: null
},
<?php
$tenant_id = 'your_tenant_id';
$client_id = 'your_client_id';
$client_secret = 'your_client_secret';
// Get the OAuth access token
$url = "https://login.microsoftonline.com/$tenant_id/oauth2/v2.0/token";
$data = array(
'grant_type' => 'client_credentials',