Skip to content

Instantly share code, notes, and snippets.

pasha-pivo

Block or report user

Report or block pasha-pivo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pasha-pivo
pasha-pivo / tree.cpp
Last active Oct 24, 2018
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
pasha-pivo / convert.sh
Last active Apr 26, 2018 — forked from akost/convert.sh
Bash script for recursive file convertion windows-1251 --> utf-8
View convert.sh
#!/bin/bash
# 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
do
echo " $file"
mv "$file" "$file".icv
View index.js
const connect = require('connect')
const app = connect()
app.use('/', (req, res, next) => {
res.end('You did it, bro!')
})
app.listen(8989)
You can’t perform that action at this time.