This file contains 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(){ | |
enum Exit_Code {success, failure}; | |
return 0; | |
} |
This file contains 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
int regcomp(regex_t *preg, const char *regex, int cflags); | |
preg - It is a pointer to a structure regex_t. | |
regex - Pointer to a null terminated string which contains the pattern | |
cflags - bitwise-or of one or more of the following: | |
REG_EXTENDED | |
Use POSIX Extended Regular Expression syntax when interpreting regex. If not set, POSIX Basic Regular Expression syntax is used. |
This file contains 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
/////////////////////////////////////////////___Global___//////////////////////////////////////////// | |
struct myStruct{ | |
int a; | |
int b; | |
}; | |
/////////////////////////////////////////////___main Function___//////////////////////////////////////////// |
This file contains 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
/** | |
* Definition for singly-linked list. | |
* public class ListNode { | |
* int val; | |
* ListNode next; | |
* ListNode(int x) { | |
* val = x; | |
* next = null; | |
* } | |
* } |
This file contains 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
#Function to print info about your system. Usage: genInfo <filename> [-v(Verbose = more)] [-n(Network)] | |
function genInfo() { | |
echo -e '=======================\nLinux distribution and version\n=======================\n\n' > $1; | |
lsb_release -a >> $1; | |
echo -e '\n\n=======================\nKernel Version\n=======================\n\n' >> $1; | |
uname -mrs >> $1 | |
uname -a >> $1 | |
cat /proc/version >> $1; |
This file contains 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
Please follow the examples below. To learn more please refer to the docs: |
This file contains 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
// item = document.querySelectorAll("#transactions-section-desktop #transaction-desktop")[7] | |
csv = '"' + ['Date','Deposit','Withdrawl','Description'].join('","') + '"\n', count = 0; | |
document.querySelectorAll("#transactions-section-desktop #transaction-desktop").forEach(function (item) { | |
console.log('#' + ++count + '\n' + item.innerText); | |
leftItems = item.querySelectorAll("a.a-expander-header .a-row .a-text-left"); | |
if (leftItems.length != 1) { | |
throw 'leftItems is not equal to 1.\n' + item.innerText; | |
} | |
leftItem = leftItems[0]; |