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(void) { | |
char A, B, C, D, E; | |
char *str[5] = {&A, &B, &C, &D, &E}; | |
char a[5][31]; | |
char test[5]; | |
int i, j, k = 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
#include <stdio.h> | |
int strLen(char *s) { | |
char *sPointer = s; | |
while (*sPointer) { | |
sPointer++; | |
} | |
return sPointer - s; | |
} |
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 strLen(char *s) { | |
char *sPointer = s; | |
while (*sPointer) { | |
sPointer++; | |
} | |
return sPointer - s; | |
} |
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 strLen(char *s) { | |
char *sPointer = s; | |
while (*sPointer) { | |
sPointer++; | |
} | |
return sPointer - s; | |
} |
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> | |
void intfrac(double input, int *ipart, double *dpart) { | |
*ipart = (int)input; | |
*dpart = (double)input - *ipart; | |
} | |
int main() { | |
int *ipart = 0, i; | |
double *dpart = 0, d, input; |
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> | |
void intfrac(double input, int *ipart, double *dpart) { | |
int i = (int)input; | |
double d = (double)input - i; | |
ipart = &i; | |
dpart = &d; | |
} | |
int main() { |
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
#!/usr/bin/env ruby | |
class MegaGreeter | |
attr_accessor :names | |
# Create the object | |
def initialize(names = "World") | |
@names = names | |
end |
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
[[plugins]] | |
repo = 'Shougo/dein.vim' | |
[[plugins]] | |
repo = 'marcus/rsense' | |
[[plugins]] | |
repo = 'vim-syntastic/syntastic' | |
[[plugins]] |
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
" init | |
set fenc=utf-8 | |
set nobackup | |
set noswapfile | |
set autoread | |
set showcmd | |
set hidden | |
augroup MyAutoCmd | |
autocmd! | |
augroup END |
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
from scapy.all import * | |
target = "192.168.0" | |
for i in range(2,254): | |
dst = target + "." + str(i) | |
print "FROM %s" % (dst) | |
print getmacbyip(dst) |