This small script provides some code to check a project of your installation (located in .../www) against the associated git commit on drupal.org.
Notice: currently the root path and temp directory are hardcoded.
Check status of views module.
| yearly_salary = 660000 | |
| # This salary is taken into account of a BDO - oficer | |
| # This is calculate total salary earned by a Govt Employee in West Bengal (55000 per month in hand), with 4% increment yearly - 35 years service | |
| # most optimistic salary saved is 60% - to average optimistic 45% | |
| years = 0 | |
| total_salary_earned = yearly_salary | |
| total_salary_earned_in_cr = total_salary_earned/10000000 | |
| total_salary_saved_in_cr = total_salary_earned_in_cr * 0.45 | |
| monthly_salary = yearly_salary/12 |
| int rowNegatives(int *arr, int size){ | |
| int li = 0, ri = size - 1, negative=0; | |
| //corner cases | |
| if(*(arr+size-1) >=0){return 0;} | |
| if(*arr<0){return size;} | |
| while(li<=ri){ | |
| int mid = li + (ri - li)/2; | |
| if(*(arr+mid)<0 && *(arr+mid-1)>=0){ | |
| return size - mid; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef struct node node; | |
| struct node { | |
| int data; | |
| node *next; | |
| }; |