Skip to content

Instantly share code, notes, and snippets.

View SevereCloud's full-sized avatar

Daniil Suvorov SevereCloud

View GitHub Profile
/* typography.css */
:root {
/* Label Small */
--md-sys-typescale-label-small-text-transform: unset;
--md-sys-typescale-label-small-axis-value: unset;
--md-sys-typescale-label-small-font-style: unset;
--md-sys-typescale-label-small-text-decoration: unset;
/* Label Small line height */
@SevereCloud
SevereCloud / up.sh
Last active May 24, 2020 12:20
Updating version
#!/bin/bash
#get highest tag number
VERSION=`git describe --abbrev=0 --tags`
#replace . with space so can split into an array
VERSION_BITS=(${VERSION//./ })
#get number parts and increase last one by 1
VNUM1=${VERSION_BITS[0]}
@SevereCloud
SevereCloud / helper.ts
Created January 2, 2020 14:38
WritableClass for svelte3
import { Writable } from 'svelte/store'
// eslint-disable-next-line @typescript-eslint/no-empty-function
function noop(): void { }
/** Callback to inform of a value updates. */
type Subscriber<T> = (value: T) => void;
/** Unsubscribes from value updates. */
type Unsubscriber = () => void;
package main
import "testing"
func Test_isValid(t *testing.T) {
f := func(URL, clientSecret string, want, wantErr bool) {
t.Helper()
got, err := isValid(URL, clientSecret)
if (err != nil) != wantErr {
t.Errorf("isValid() error = %v, wantErr %v", err, wantErr)
image: docker:latest
services:
- docker:dind
stages:
- build
variables:
RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
// ==UserScript==
// @name Pixel Bot
// @namespace https://tampermonkey.net/
// @version 3.0
// @description try to take over the world!
// @author Flyink13, igoose
// @match https://pixel.vkforms.ru/*
// @grant none
// ==/UserScript==
@SevereCloud
SevereCloud / graffitiVk.js
Created September 1, 2018 16:24
graffitiVk
// ==UserScript==
// @name graffitiVk
// @namespace http://tampermonkey.net/
// @version 0.1
// @description graffitiVk
// @license MIT
// @author SevereCloud
// @match https://vk.com/im*
// ==/UserScript==
@SevereCloud
SevereCloud / pip.js
Last active July 12, 2018 12:29
pictureInPicture для вк
// ==UserScript==
// @name pictureInPicture
// @namespace http://tampermonkey.net/
// @version 0.1
// @description pictureInPicture
// @license MIT
// @author SevereCloud
// @match https://vk.com/*
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am severecloud on github.
  • I am severecloud (https://keybase.io/severecloud) on keybase.
  • I have a public key whose fingerprint is 0883 B753 DB22 2EAA 345D C7B4 9E75 0307 D739 3AF1

To claim this, I am signing this object:

// GET VK ACCESS_TOKEN
https://oauth.vk.com/authorize?client_id=6278770&scope=offline,photos,audio,video,docs,notes,pages,status,offers,questions,wall,groups,messages,email,notifications,ads,stats&response_type=token&redirect_uri=https://oauth.vk.com/blank.html