start new:
tmux
start new with session name:
tmux new -s myname
" VIM Configuration File | |
" Description: Optimized for C/C++ development, but useful also for other things. | |
" Author: Gerhard Gappmeier | |
" | |
" set UTF-8 encoding | |
set enc=utf-8 | |
set fenc=utf-8 | |
set termencoding=utf-8 | |
" disable vi compatibility (emulation of old bugs) |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
template <typename T> | |
void remove_duplicates(std::vector<T>& vec) | |
{ | |
std::sort(vec.begin(), vec.end()); | |
vec.erase(std::unique(vec.begin(), vec.end()), vec.end()); | |
} |
//spoj2530.cpp | |
#include <cstdio> | |
using namespace std; | |
//my code | |
int main(){ | |
unsigned int x[1001],a[1001],b[1001]; | |
x[0]=1;a[0]=b[0]=0; | |
x[1]=a[1]=b[1]=1; |
/* | |
** id :template | |
** author : swap_coder | |
** time: | |
*/ | |
//also 3883 spoj | |
#include<vector> | |
#include<algorithm> | |
#include<cstdio> |
#include<vector> | |
#include<algorithm> | |
#include<cstdio> | |
#include<cstring> | |
#include<cmath> | |
#include <iostream> | |
#include <map> | |
#include <queue> | |
#include <set> | |
#include <string> |
#include<iostream> | |
#include<cstdio> | |
#include<algorithm> | |
#include<cstdlib> | |
using namespace std; | |
typedef long long ll; | |
template <class T> |
/* | |
** id :template | |
** author : swap_coder | |
** time: | |
*/ | |
#include<vector> | |
#include<algorithm> | |
#include<cstdio> |
#include<iostream> | |
#include<cstdio> | |
#include<algorithm> | |
#include<cstdlib> | |
using namespace std; | |
typedef long long ll; |