Skip to content

Instantly share code, notes, and snippets.

" init
set fenc=utf-8
set nobackup
set noswapfile
set autoread
set showcmd
set hidden
augroup MyAutoCmd
autocmd!
augroup END
[[plugins]]
repo = 'Shougo/dein.vim'
[[plugins]]
repo = 'marcus/rsense'
[[plugins]]
repo = 'vim-syntastic/syntastic'
[[plugins]]
#!/usr/bin/env ruby
class MegaGreeter
attr_accessor :names
# Create the object
def initialize(names = "World")
@names = names
end
#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() {
#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>
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>
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 findCombi(int toHour) {
int aHour = 300; // 300 Hours
int aPrice = 100; // 100 JPY
int bHour = 500; // 500 Hours
int bPrice = 180; // 180 JPY
int aNum = toHour / aHour;
int bNum = toHour / bHour;