Skip to content

Instantly share code, notes, and snippets.

#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;
#include <stdio.h>
int strLen(char *s) {
char *sPointer = s;
while (*sPointer) {
sPointer++;
}
return sPointer - s;
}
#include <stdio.h>
int strLen(char *s) {
char *sPointer = s;
while (*sPointer) {
sPointer++;
}
return sPointer - s;
}
#include <stdio.h>
int strLen(char *s) {
char *sPointer = s;
while (*sPointer) {
sPointer++;
}
return sPointer - s;
}
#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;
#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() {
#!/usr/bin/env ruby
class MegaGreeter
attr_accessor :names
# Create the object
def initialize(names = "World")
@names = names
end
[[plugins]]
repo = 'Shougo/dein.vim'
[[plugins]]
repo = 'marcus/rsense'
[[plugins]]
repo = 'vim-syntastic/syntastic'
[[plugins]]
" init
set fenc=utf-8
set nobackup
set noswapfile
set autoread
set showcmd
set hidden
augroup MyAutoCmd
autocmd!
augroup END
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)