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
<application> | |
<component name="ActionMacroManager"> | |
<macro name="ultimate format"> | |
<action id="RearrangeCode" /> | |
<action id="ReformatCode" /> | |
<action id="AutoIndentLines" /> | |
<action id="OptimizeImports" /> | |
<action id="ReformatWithPrettierAction" /> | |
<action id="Javascript.Linters.EsLint.Fix" /> | |
<action id="SaveAll" /> |
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
set ignorecase | |
set smartcase | |
set selection=exclusive | |
noremap J :action EditorJoinLines<CR> | |
"noremap / :action Find<CR> | |
"noremap ? :action Find<CR> | |
"noremap * :action FindWordAtCaret<CR> | |
"noremap n :action FindNext<CR> | |
"noremap N :action FindPrevious<CR> |
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
package hangman.kotlin.ep2 | |
class ImmutableHangman(val secretWord: String, val life: Int = 7, val selectedLetters: Set<Char> = linkedSetOf()) { | |
val knownSecretWord = secretWord.map { | |
if (it in selectedLetters) it | |
else '_' | |
}.joinToString("") | |
val status = |
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
package hangman.kotlin.ep2 | |
import io.reactivex.Observable | |
import io.reactivex.rxkotlin.Observables | |
import io.reactivex.subjects.ReplaySubject | |
import io.reactivex.subjects.Subject | |
class ReactiveHangman(val secretWord: String, private val inputStream: Subject<Char> = ReplaySubject.create(), maxLife: Int = MAX_LIFE) { | |
val selectedLettersStream = inputStream.scan<Set<Char>>(linkedSetOf()) { selectedLetters, c -> |
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
<html ng-app="app"> | |
<head> | |
<script rel="javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.js"> | |
</script> | |
<script type="text/javascript"> | |
var app = angular.module('app', []); | |
app.controller('OverflowPaginatorController', function($scope, Paginator) { | |
$scope.paginator = new Paginator(14); | |
}); |
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 | |
while : | |
do | |
clear | |
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
sleep 1 | |
done |