Skip to content

Instantly share code, notes, and snippets.

View ahmedeshaan's full-sized avatar

Ahmed Eshaan ahmedeshaan

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<access component="com_gallery">
<section name="component">
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
<action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" />
<action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" />
<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />
<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" />
</section>
<?xml version="1.0" encoding="UTF-8"?>
<config>
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>
<field
name="rules"
type="rules"
<?xml version="1.0" encoding="UTF-8"?>
<fof>
<!-- Component back-end options -->
<backend>
<!-- Dispatcher options -->
<dispatcher>
<option name="default_view">items</option>
</dispatcher>
</backend>
<?xml version="1.0" encoding="utf-8"?>
<!--
@package Gallery
@copyright Copyright (c)2013 Nicholas K. Dionysopoulos / AkeebaBackup.com
@license GNU General Public License version 2 or later
Items view form file
-->
<form
type="browse"
<?xml version="1.0" encoding="utf-8"?>
<!--
@package gallery
@copyright Copyright (c)2013 Nicholas K. Dionysopoulos / AkeebaBackup.com
@license GNU General Public License version 2 or later
Items view form file
-->
<form validate="true" serverside_validate="true">
<fieldset name="basic_information"
#include <stdio.h>
#include <stdlib.h>
int multiplcation=1;
void power (int x, int n) {
if(n<0) {
n = n +(-n*2);
}
multiplcation *= x;
printf("%d \n",multiplcation);
// Question: Take an integer(DECIMAL) input and convert it to Binary number
int main()
{
int binary_output[10];
int i=1,j,n=-52;
// To avoid Negative Input
if(n<0) {
n = n +(-n*2);
}
// Solution for: Take an integer(DECIMAL) input and convert it to Octal
int main()
{
int octal_output[10];
int i=1,j,n=-264;
// To avoid Negative Input
if(n<0) {
n = n +(-n*2);
}