This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.dom.minidom, collections | |
import xml.etree.ElementTree as ET | |
#snap_combined_jc | |
effective_manifest_gitlab = xml.dom.minidom.parse('./qcm_test_1/effective_manifest_1.xml') | |
snap_combined_manifest_kernel = xml.dom.minidom.parse('./qcm_test_1/snap_combined_manifest_kernel.xml') | |
snap_combined_manifest_qssi = xml.dom.minidom.parse('./qcm_test_1/snap_combined_manifest_qssi.xml') | |
snap_combined_manifest_vendor = xml.dom.minidom.parse('./qcm_test_1/snap_combined_manifest_vendor.xml') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#sudo ./adb kill-server | |
#sleep 2 | |
#sudo ./adb start-server | |
#sleep 3 | |
#sudo ./adb root | |
#sudo ./adb remount | |
sudo adb devices | |
sudo adb reboot-bootloader | |
sleep 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -gt 0 ]; then | |
adb root | |
sleep 1 | |
adb remount | |
sleep 1 | |
for i in "$@" | |
do | |
adb shell sync | |
adb shell rm -rf /"$i" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
How to use this script? | |
----------------------- | |
Prerequisites: | |
1. python3, git and Beyond Compare/meld should be installed. | |
LINUX: | |
1. Create a directory ~/bin in your home directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.zentut.com/c-tutorial/c-stack-using-pointers/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct node{ | |
int data; | |
struct node* next; | |
} node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.zentut.com/c-tutorial/c-linked-list/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct node{ | |
int data; | |
node* next=NULL; | |
} node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
float x; | |
printf("Enter the float number:\n"); | |
scanf("%f", &x); | |
// copy and re-interpret as 32 bit integer | |
int casted_to_int = *(int*)&x;// float pointer is converted to an integer pointer and dereferenced. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://discuss.itacumens.com/index.php?topic=7635.0 | |
Pipelining concept in computer architecture | |
In this Module, we have three lectures, | |
1. Introduction to Pipeline Processor | |
2. Performance Issues | |
3. Branching |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/ | |
#include <stdio.h> | |
void check_even_odd(int); | |
void check_nth_bit_is_set(int , int); | |
int set_the_nth_bit(int,int); | |
int unset_the_nth_bit(int,int); | |
int toggle_nth_bit(int, int); | |
int turn_off_the_righmost_one(int); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// its documented here in this link http://www.delorie.com/gnu/docs/gcc/cpp_21.html | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define PRINTINFO(message) print_info(__FILE__, __LINE__, __DATE__, __TIME__, message) | |
void print_info(const char* file,int line, const char* date, const char* time, const char* message) | |
{ | |
printf("FILE is : %s\n ", file); |
NewerOlder