Skip to content

Instantly share code, notes, and snippets.

View Newlifer's full-sized avatar

Newlifer

  • Yaroslavl
View GitHub Profile
@Newlifer
Newlifer / fix.sh
Created February 1, 2017 07:37
fix.sh
git filter-branch --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "" ]; then GIT_AUTHOR_EMAIL=; GIT_AUTHOR_NAME=""; GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL; GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all
@Newlifer
Newlifer / FFMpeg - FLAC to Ogg
Created September 23, 2016 17:42 — forked from liamcurry/FFMpeg - FLAC to Ogg
Converting FLAC to various formats
ffmpeg -i hlah_3.flac -strict experimental -acodec vorbis -aq 100 hlah.ogg
Guifont Consolas:h11
@Newlifer
Newlifer / lol.md
Created July 27, 2016 09:09
lol.md

About this Repository 🎉

Congrats, you have found a rift in the GitHub universe! 👋

GitHub has been made aware of this issue, but in the meantime feel free to follow the instructions below to get out of this madness0

As a courtesy to the many unintended watchers of this repository and the entire community, please keep notification-triggering or bug-exploiting activity to a minimum. I would also advise the owner to delete this repository (if possible.)

Opt Out of this Madness 🔥

#include <iostream>
#include <vector>
#include <type_traits>
template < typename Tp, typename... List >
struct contains : std::true_type {};
template < typename Tp, typename Head, typename... Rest >
struct contains<Tp, Head, Rest...>
: std::conditional< std::is_same<Tp, Head>::value,
#include <iostream>
#include <string>
template <char... Characters>
struct string_literal {
static const std::size_t string_length = sizeof...(Characters);
static constexpr char str[string_length] = {Characters...};
};
template <char... Characters>
#include <iostream>
#include <type_traits>
#include <utility>
#include <tuple>
struct bar {};
struct foo
{
template<int N, typename Self> struct field_data {};
  1. делать всегда описания к коммитам;
  2. пояснить в описании что и зачем вы сделали, а не как;
  3. разделять на заголовок и подробное описание, если описание выходит слишком длинным (около 50-70 символов);
  4. разделять заголовок и описание пустой строкой;
  5. начинать предложения с заглавной буквы;
  6. не заканчивать заголовок коммита точкой.
#include <boost/mpl/for_each.hpp>
#include <boost/mpl/range_c.hpp>
#include <boost/ref.hpp>
#include <boost/bind.hpp>
#include <boost/preprocessor.hpp>
#define REM(...) __VA_ARGS__
#define EAT(...)
class Value (Exception):
def __init__ (self, vl):
self._vl = vl
def __int__ (self):
return self._vl
def add (a, b):
raise Value(a + b)
def mul (a, b):