This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
master_char='🗻' | |
improvement_char='🌀' | |
bug_char='🐛' | |
experiment_char='🎇' | |
documentation_char='📓' | |
feature_char='💡' | |
eval-var() { | |
eval echo $1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
main(){ | |
reset_branch | |
remove_all_branches_besides_current | |
remove_all_stashes | |
remove_all_uncheked_files | |
} | |
reset_branch(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-panorama="images/panorama.jpg"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ -> | |
class Panorama360 | |
constructor: (container) -> | |
$container = $(container) | |
source = $container.data("panorama") | |
@camera = new THREE.PerspectiveCamera(70, $container.width() / $container.height(), 1, 1100) | |
@camera.target = new THREE.Vector3(0, 0, 0) | |
@scene = new THREE.Scene() | |
sphereGeometry = new THREE.SphereGeometry(500, 60, 40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class VehicleEmail | |
include ActiveModel::Validations | |
include ActiveModel::Conversion | |
extend ActiveModel::Naming | |
attr_accessor :recipients, :subject, :message, :vehicle_id | |
validates_presence_of :subject, :message, :vehicle_id, :recipients | |
def deliver_from(admin_user) | |
if valid? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pb-kill-line () { | |
zle kill-line | |
echo -n $CUTBUFFER | pbcopy | |
} | |
pb-kill-whole-line () { | |
zle kill-whole-line | |
echo -n $CUTBUFFER | pbcopy | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
%%% Каждый раздел (\section) с новой страницы | |
\let\stdsection\section | |
\renewcommand\section{\newpage\stdsection} | |
%%% В введении нумерация подразделов идёт с буквой «В» (например В.1) | |
\makeatletter | |
\renewcommand\thesubsection{\ifnum\c@section=0{В.\arabic{subsection}}\else{\arabic{section}.\arabic{subsection}}\fi} | |
\makeatother |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1> Products = [{pen, 5, 10}, {pencil, 3, 4}]. | |
[{pen,5,10},{pencil,3,4}] | |
2> [{pen, PenQuantity, PenCost},_] = Products. | |
[{pen,5,10},{pencil,3,4}] | |
3> PenQuantity. | |
5 | |
4> PenCost. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fib(4) = fib(3) + fib(2) | |
таак, а | |
fib(3) = fib(2) + fib(1) | |
ага, | |
fib(2) = fib(1) + fib(0) | |
о, теперь всё есть | |
fib(0) = 1 | |
fib(1) = 1 | |
fib(2) = fib(1) + fib(0) = 1 + 1 = 2 | |
fib(3) = fib(2) + fib(1) = 2 + 1 = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fib(0) -> 1; | |
fib(1) -> 1; | |
fib(N) -> fib(N) + fib(N-1). |
NewerOlder