Skip to content

Instantly share code, notes, and snippets.

View AlexDenisov's full-sized avatar
🇺🇦
Talking to Machines

Alex Denisov AlexDenisov

🇺🇦
Talking to Machines
View GitHub Profile
#include <iostream>
#include <set>
using namespace std;
struct Point {
int x;
int y;
Point(int x, int y)
//
// ConformsTo.h
//
// Created by Alex Denisov on 01.03.13.
//
#pragma once
#import <Foundation/Foundation.h>
#import <Cedar-iOS/Cedar-iOS.h>
@AlexDenisov
AlexDenisov / iterate_each_array.pl
Created January 23, 2013 08:44
Iterate few lists with Perl
use List::MoreUtils qw( each_array );
my @first = qw( foo bar buzz );
my @second = (1, 2, 3);
my $it = each_array( @first, @second );
while ( my ($f, $s) = $it->() ) {
print "$f = $s\n";
}
@AlexDenisov
AlexDenisov / install.md
Last active February 10, 2021 03:26
This script creates PDF from man page and opens it within Preview.app. Only Mac OS X.

pman

Generates PDF from man page and opens it within Preview.app.

Install

curl -o /usr/local/bin/pman https://gist.githubusercontent.com/AlexDenisov/4294335/raw/9fe40c81f6fc94760e81040d2636d0e703fc676f/pman.pl
chmod +x /usr/local/bin/pman

Usage

@AlexDenisov
AlexDenisov / frank.podspec
Created November 30, 2012 15:54
Frank podspec. Mirror
Pod::Spec.new do |s|
s.name = 'Frank'
s.version = '0.8.8'
s.license = 'MIT'
s.summary = 'Automated acceptance tests for native iOS apps'
s.homepage = 'http://www.testingwithfrank.com/'
s.author = { 'Pete Hodgson' => "[email protected]" }
s.source = { :git => 'https://github.com/moredip/Frank.git', :tag => 'v0.8.8' }
s.description = %q{
@AlexDenisov
AlexDenisov / gist:4116383
Created November 20, 2012 06:27
Neocomplcache config
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_smart_case = 1
let g:neocomplcache_enable_camel_case_completion = 1
let g:neocomplcache_enable_underbar_completion = 1
let g:neocomplcache_min_syntax_length = 1
let g:neocomplcache_disable_auto_complete = 1
let g:neocomplcache_enable_fuzzy_completion = 1
let g:neocomplcache_enable_ignore_case = 1
map <C-k> <Plug>(neocomplcache_snippets_expand)
@AlexDenisov
AlexDenisov / svn_aliases.sh
Created November 6, 2012 11:54
Useful aliases for SVN
alias subadd="svn st | grep '^?' | sed 's/^? *\(.*\)/\"\1\"/g' | sed 's/@\(.*\)/@\1@/g' | xargs svn add"
alias subrm="svn st | grep '^!' | sed 's/^! *\(.*\)/\"\1\"/g' | sed 's/@\(.*\)/@\1@/g' | xargs svn rm"
alias subst='svn st'
alias subci='svn ci'
alias subup='svn up'
@AlexDenisov
AlexDenisov / GravatarHelper.podspec
Created August 16, 2012 08:14
Podspec for GravatarHelper (iOS)
Pod::Spec.new do |s|
s.name = 'Gravatar'
s.version = '0.0.1'
s.summary = 'Getting gravatar url from email address'
s.homepage = 'https://github.com/MugunthKumar/Gravatar'
s.author = { 'Mugunth Kumar' => '[email protected]' }
s.source = { :git => 'https://github.com/MugunthKumar/Gravatar.git',
:commit => '5f4650e1c4ba7721c40c829435fd7652f047f1c2' }
s.platform = :ios
s.source_files = 'Gravatar/GravatarHelper.m', 'Gravatar/GravatarHelper.m'
@AlexDenisov
AlexDenisov / NRGridView.podspec
Created July 16, 2012 16:28
Podspec for NRGridView
Pod::Spec.new do |s|
s.name = 'NRGridView'
s.version = '0.0.1'
s.license = 'MIT'
s.summary = 'NRGidView'
s.homepage = 'https://github.com/ldesroziers/NRGridView'
s.author = { 'Louka Desroziers' => '[email protected]' }
s.source = { :git => 'https://github.com/ldesroziers/NRGridView.git',
:commit => '96902715fead052d8aac36505e125c91053c0855' }
s.platform = :ios
@AlexDenisov
AlexDenisov / NoticeView.podspec
Created July 15, 2012 14:14
Podspec for latest commit of NoticeView
Pod::Spec.new do |s|
s.name = 'NoticeView'
s.version = '2.1.0'
s.license = 'MIT'
s.summary = 'A short description of NoticeView.'
s.homepage = 'https://github.com/tciuro/NoticeView/'
s.author = { 'Tito Ciuro' => '[email protected]' }
s.source = { :git => 'https://github.com/tciuro/NoticeView.git', :tag => '2.1' }
s.platform = :ios
s.source_files = 'NoticeView/WBNoticeView/*.{m,h}'