Skip to content

Instantly share code, notes, and snippets.

pasha-pivo / tree.cpp
Last active October 24, 2018 16:53
binary tree example
View tree.cpp
#include <iostream>
using namespace std;
* класс ноды дерева
template <class T>
struct bool_node {
bool_node<T>* less;
bool_node<T>* more;
pasha-pivo /
Last active April 26, 2018 07:25 — forked from akost/
Bash script for recursive file convertion windows-1251 --> utf-8
# Recursive file convertion windows-1251 --> utf-8
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command
find ./ -name "*.txt" -o -name "*.html" -type f |
while read file
echo " $file"
mv "$file" "$file".icv
pasha-pivo / index.js
Created April 7, 2017 08:26
test gist
View index.js
const connect = require('connect')
const app = connect()
app.use('/', (req, res, next) => {
res.end('You did it, bro!')