c++/python nice stuff

This commit is contained in:
Andrea Crotti 2010-12-26 03:07:47 +01:00
parent e0f5f36519
commit 4769f55fb4
4 changed files with 13 additions and 2 deletions

View file

@ -3,4 +3,4 @@
# key: cout
# contributor: Andrea crotti
# --
cout << ${1:string} $0<< endl;
std::cout << ${1:string} $0<< std::endl;

5
c++-mode/ostream Normal file
View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: ostream
# key: os
# --
#include <ostream>

6
python-mode/pass Normal file
View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: pass
# key: ps
# --
pass
$0

View file

@ -3,4 +3,4 @@
# key: super
# contributor: Andrea crotti
# --
super(${1:class}, self).__init__(${2:args})
super(${1:Class}, self).${3:function}(${2:args})