Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladyslav Sitalo Stvad

View GitHub Profile
@Stvad
Stvad / surfingkeys_config.js
Last active Sep 8, 2020
Surfingkeys config
View surfingkeys_config.js
var command_map = {};
function _parseAnnotation(ag) {
var annotations = ag.annotation.match(/#(\d+)(.*)/);
if (annotations !== null) {
ag.feature_group = parseInt(annotations[1]);
ag.annotation = annotations[2];
}
return ag;
}
@Stvad
Stvad / functiona_cubs.kt
Created Aug 16, 2018
Functional cubs Kotlin
View functiona_cubs.kt
object Part1 {
fun captcha(input: String): Int =
input.zipWithNext()
.let { it + (input.first() to input.last()) }
.filter { (first, second) -> first == second}
.map { it.first }
.map(Character::getNumericValue)
.sum()
}
@Stvad
Stvad / lesson6-cat-problem.ipynb
Last active May 7, 2018
Fast.ai Lesson6 problem with cat model
View lesson6-cat-problem.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Stvad
Stvad / Digital_conscience.js
Last active Oct 2, 2017
Greasmonkey script to ask you if you really want to access some distracting web resource
View Digital_conscience.js
// ==UserScript==
// @name Timeout blocker v2
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @match https://www.facebook.com/*
// ==/UserScript==
//--- The @grant directive is used to restore the proper sandbox.
View keybase.md

Keybase proof

I hereby claim:

  • I am stvad on github.
  • I am stvad (https://keybase.io/stvad) on keybase.
  • I have a public key ASBSlrVrxW4570R_8hGRoCrxIZ60JjpUhx_y7k118BWQUwo

To claim this, I am signing this object:

@Stvad
Stvad / asana-time-calculator-greasemonkey
Created Jun 9, 2017 — forked from AlexJoom/asana-time-calculator-greasemonkey
A greasemonkey script for asana tasks. 1. Download greasemonkey 2. Name your tasks like "5h | Create birthday cake" "2h | Buy the present" and the total hours per person will be calculated and presented in the top of the page, under the project's description
View asana-time-calculator-greasemonkey
// ==UserScript==
// @name Asana tasks helper
// @namespace test
// @description test
// @include https://app.asana.com/*
// @version 1
// @grand none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
@Stvad
Stvad / Back Template
Created Oct 28, 2016 — forked from pneff/Back Template
Anki Card Type for multiple-choice
View Back Template
<div class="check-container"><span id="check"></span></div>
{{#Question}}
<p>{{Question}}</p>
{{/Question}}
{{#Image}}
<p class="image">{{Image}}</p>
{{/Image}}
You can’t perform that action at this time.