Skip to content

Instantly share code, notes, and snippets.

View FireLord's full-sized avatar
🦾
Building Apps

Aman Kumar FireLord

🦾
Building Apps
View GitHub Profile
(Ubuntu 14.xx)
# Files to download
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
# Java (java 6)
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
#!/bin/bash
# java
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx6g"
# ccache
export USE_CCACHE=1
export CCACHE_DIR=/home/firelord/.ccache/
prebuilts/misc/linux-x86/ccache/ccache -M 50G
Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore
[2016-05-04 18:38:32,750] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No /home/gerrit/./etc/gerrit.config; assuming defaults
*** Gerrit Code Review 2.12.2
***
*** Git Repositories
***
{
"logs": [
"1. blah",
"2. blah",
"3. blah"
]
}
#include <stdio.h>
int main()
{
int a[20], b[20], c[20];
int i, j, k = 0, m, n;
// first array
printf("Enter size of first array: ");
scanf("%d", &n);
#include <stdio.h>
int a[4] = {0, 0, 1, 1};
int b[4] = {0, 1, 0, 1};
int c[4], d[4], e[4], f[4];
int i, j, k, n = 4;
int main()
{
printf("Table A: ");
@FireLord
FireLord / stack.c
Last active October 26, 2021 07:22
#include <stdio.h>
#include <stdlib.h>
#define MAX 5
typedef struct stk
{
int TOP;
int A[MAX];
}stack;
#include <stdio.h>
#include <stdlib.h>
#define MAX 100
typedef struct stk
{
int TOP;
int A[MAX];
} stack;
#include <stdio.h>
int N;
int Linear_Search(int A[], int N, int value)
{
int i, flag = 1;
for (i = 0; i < N; i++)
{
if (A[i] == value)
#include <stdio.h>
#include <stdlib.h>
// Aman 35
typedef struct list
{
int info;
struct list *next;
} node;