View README.txt
# copy getmail config to ~/.getmail/getmailrc | |
# Create some temporary directories | |
mkdir -p /tmp/mail/cur | |
mkdir -p /tmp/mail/tmp | |
mkdir -p /tmp/mail/new | |
mkdir /tmp/mail/parsing | |
# Gather all emails | |
# They won't be removed from mail server and won't be marked as "read" on server since "peek" used |
View variadic.cpp
// g++ variadic.cpp -std=c++11 | |
#include <iostream> | |
#include <vector> | |
#include <memory> | |
struct sOne | |
{ | |
void one(int i) | |
{ | |
std::cout << "one " << i << "\n"; |
View newcode.cpp
boost::optional<boost::system::error_code> read_result; | |
boost::asio::async_write(*socket, boost::asio::buffer(data, size), [&read_result](const boost::system::error_code& error, size_t) { read_result.reset(error); }); | |
socket->get_io_service().reset(); | |
while(socket->get_io_service().run_one()) | |
{ | |
} |
View import.csv
Name | Phone 1 - Type | Phone 1 - Value | Group Membership | |
---|---|---|---|---|
Имяя Фамилия | Mobile | +71234567889 | * My Contacts ::: TestGroup | |
ИмАААя ФамИИИИлия | Mobile | +61234567889 | * My Contacts ::: TestGroup | |
ИмЯ Другаяфамилия | Mobile | +71444567889 | * My Contacts ::: TestGroup |
View vcmi.cfg
# Uncrustify-0.65-86-9e66347a | |
# | |
# General options | |
# | |
# The type of line endings. Default=Auto | |
newlines = auto # auto/lf/crlf/cr | |
# The original size of tabs in the input. Default=8 |
View uncrustify.sh
#!/bin/bash | |
# Open vcmi.cfg in your favorite editor one one side and terminal on other side | |
# --color option only available in diffutils 3.4 (2016-08-08) | |
# for older version of diff use "colordiff" tool instead: | |
# diff -u source.cpp source.cpp.uncrustify | colordiff | |
VCMICFG="/home/i/UNTEST/vcmi.cfg" | |
SRC="/home/i/UNTEST/source.cpp" | |
SRCUN="/home/i/UNTEST/source.cpp.uncrustify" | |
SRCUNOLD="/home/i/UNTEST/source.cpp.uncrustify.old" | |
rm -f $SRCUN |
View H3_RoE_demo_EULA.txt
THE 3DO COMPANY | |
End-User License Agreement | |
Software Product: Heroes of Might and Magic(R) III Demo | |
IMPORTANT--PLEASE READ CAREFULLY. This End-User License Agreement (the "EULA") is a legal agreement between The 3DO Company, a California corporation ("3DO") and you, the recipient of a demo copy of the 3DO software product identified above ("You"), which product includes computer software and the associated audiovisual works, and may include printed materials, and electronic or "online" documentation and/or related items (collectively, the "Software Product"). By downloading, installing, copying, or otherwise using the Software Product, You agree to be bound by the terms and conditions of this EULA. If You do not agree to all of the provisions of this EULA, do not install or copy or otherwise use the Software Product. IF YOU ARE UNDER THE AGE OF EIGHTEEN (18), PLEASE HAVE A PARENT OR GUARDIAN READ THE ENTIRE EULA PRIOR TO INSTALLING OR COPYING OR OTHERWISE USING THE SOFTWARE PRODUCT. | |
1. LICENSE GRANT. 3DO here |
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View test.go
package main | |
import ( | |
"fmt" | |
_"flag" | |
_"time" | |
"strings" | |
"compress/gzip" | |
"io/ioutil" | |
"path/filepath" |
View gist:bdd6ca7436ecc2c99b102ae723c36453
<?php | |
define('TAB', ' '); | |
$pizz = array( | |
"30cm" => "http://www.pizzmaster.ru/shop/pizza-30sm", | |
"40cm" => "http://www.pizzmaster.ru/shop/pizza-40sm", | |
"12" => "http://www.pizzmaster.ru/shop/polovinka-pizz", | |
"to" => "http://www.pizzmaster.ru/shop/picca-40sm-na-tonkom-korzhe", | |
"it" => "http://www.pizzmaster.ru/shop/picca-40sm-na-italjanskom-teste" | |
); |
NewerOlder