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 <iostream> | |
#include <string> | |
#include <cstdlib> | |
using namespace std; | |
int main(int argc, const char* argv[]){ | |
int n = argc == 1? 1: atoi(argv[1]); | |
if(n%15 == 0) cout << "FizzBuzz" << endl; | |
else if(n%3 == 0) cout << "Fizz" << endl; |
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
function! s:bufdo(bufname, cmd) abort | |
let wn = bufwinnr(a:bufname) | |
if wn == -1 | |
return 0 | |
endif | |
exe wn 'wincmd w' | |
exe a:cmd | |
wincmd p | |
endfunction |
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(){ | |
int a = 0; | |
if (a == 0) | |
for(int i = 0; i < 10; ++i) | |
if (i % 2 == 0) | |
printf("even\n"); | |
else if (i % 2 != 0) |
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
command! -nargs=1 -complete=customlist,{func} {cmd} {rep} |
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
$ sudo apt-get install nfs-common nfs-kernel-server |
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
dbus-send --system --print-reply=literal --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true |
NewerOlder