Skip to content

Instantly share code, notes, and snippets.

View Pitometsu's full-sized avatar
🐫
∀:camel:.P(:camel:) → ∅ ≡ (∃:camel:.P(:camel:)) → ∅

Yuriy Pitomets Pitometsu

🐫
∀:camel:.P(:camel:) → ∅ ≡ (∃:camel:.P(:camel:)) → ∅
View GitHub Profile
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
@Pitometsu
Pitometsu / mogen.sh
Last active August 29, 2015 14:15
MOGenerator script
#!/bin/sh
#
# mogen.sh
#
# Created by Jean-Denis Muys on 24/02/11.
# Modified by Ryan Rounkles on 15/5/11 to use correct model version and to account for spaces in file paths
# Edited by MANIAK_dobrii for mogenerator demo
# Updated by Pitomets Yuriy on 22/02/14 to be used in Masjid Timetable project.
# Tip:
@Pitometsu
Pitometsu / echo
Last active January 17, 2017 03:22
helm config
> grep helm .emacs.d/init.el
'(helm-M-x-fuzzy-match t)
'(helm-adaptive-history-length 128)
'(helm-ag-command-option "--all-text")
'(helm-ag-insert-at-point (quote symbol))
'(helm-always-two-windows nil)
'(helm-apropos-fuzzy-match t)
'(helm-buffer-max-length nil)
'(helm-buffers-favorite-modes
'(helm-buffers-fuzzy-matching t)

localization - 1d

in-app purchase - 1d

advertisement - 4d

social networks integration - 4d

data modelling

database integration - 3d

build proper models - 4d

REST integration - 4d

business logic - 5d

screens

Estimate

  • localization - 1d
  • in-app purchase - 1d
  • advertisement - 4d
  • social networks integration - 4d

data modelling

  • database integration - 3d
@Pitometsu
Pitometsu / super.el
Last active August 29, 2015 14:19
Super key usage in my EMACS config.
;; mac os x style
(global-set-key (kbd "s-S") 'write-file)
(global-set-key (kbd "s-s") 'save-buffer)
(global-set-key (kbd "s-i") 'dired-jump-other-window)
(global-set-key (kbd "s-l") 'goto-line)
(global-set-key (kbd "s-q") 'save-buffers-kill-emacs)
(global-set-key (kbd "s-x") 'kill-region)
(global-set-key (kbd "s-c") 'kill-ring-save)
(global-set-key (kbd "s-v") 'yank)
(global-set-key (kbd "s-a") 'mark-whole-buffer)
@Pitometsu
Pitometsu / zshrc
Created April 24, 2015 07:56
simple ZSH config
# ~/.zshrc
# -*-mode: emacs-lisp; coding: utf-8 -*-
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=8000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
@Pitometsu
Pitometsu / fonts.el
Last active August 29, 2015 14:20
Fontset configuration for EMACS
;; Faces
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:height 120 :family "Inconsolata LGC")))))
@Pitometsu
Pitometsu / appfuncr.swift
Last active May 13, 2020 03:26
Applicative functor in swift for (->)r type
// lets define Applicative Functor for (->)r type (function of function)
// tip: similar to Reader monad.
infix operator <*> { associativity left precedence 150 }
func <*> <A, B, C> (f : A -> B -> C, g : A -> B)(x : A) -> C {
return f (x) (g(x))
}
infix operator <|> { associativity left precedence 150 }
func <|> <A, B, C> (f : A -> B -> C, g : C -> A) -> C -> B -> C {
return pure(f) <*> g
@Pitometsu
Pitometsu / Solver.hs
Last active August 29, 2015 14:21
Moore automat implementation.
{-# LANGUAGE ExistentialQuantification, LambdaCase #-}
{-# LANGUAGE FlexibleInstances, OverlappingInstances #-}
--{-# LANGUAGE TemplateHaskell #-}
-- | Main entry point to the application.
module Main where
--import Data.List (permutations)
import Control.Monad ( replicateM )
import Data.Data ( dataTypeConstrs