Skip to content

Instantly share code, notes, and snippets.

View noisy's full-sized avatar

Krzysztof Szumny noisy

View GitHub Profile
@noisy
noisy / machine.js
Last active September 8, 2021 19:49
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
beforeCreate() {
console.log("::beforeCreate");
},
created() {
console.log("::created");
},
beforeMount() {
console.log("::beforeMount");
},
mounted() {
{
"version": 2,
"clips": [
{
"value": " async fetchSkillsCategories(searchText: string) {\n const { items } = await REPOSITORY_SKILLS.fetchSkillsCategories({\n searchText,\n limit: 40,\n })\n this.categories = items.map((item) => item.name)\n },",
"createdAt": 1610357626446,
"copyCount": 1,
"useCount": 0,
"language": "vue",
"createdLocation": {

Keybase proof

I hereby claim:

  • I am noisy on github.
  • I am noisypl (https://keybase.io/noisypl) on keybase.
  • I have a public key ASBaLbm3sycM5hKwX7E5oqvIr7y39Z7eNsCgcu3tfp9Pmgo

To claim this, I am signing this object:

[
{
"voter": "fervi",
"rulesets": [
{
"name": "Na wsparcie polskiej spolecznosci tagu pl-artykuly",
"rules": [
{
"rule": "weight",
"mode": "single_vote_weight",
@noisy
noisy / oauth.py
Created July 16, 2018 07:36 — forked from erik-sn/oauth.py
import re
import requests
import json
from django.contrib.auth.models import User
from oauth2_provider.models import AccessToken
def generate_github_access_token(github_client_id, github_client_secret, github_code):
"""
[
{
"voter": "fervi",
"rulesets": [
{
"name": "Na wsparcie polskiej spolecznosci tagu pl-artykuly",
"rules": [
{
"rule": "weight",
"mode": "single_vote_weight",
import urllib2
import re
test_diff = """
diff --git a/aaaa.asc b/aaaa.asc
index e6ec784..81c9e30 100644
--- a/aaaa.asc
+++ b/aaaa.asc
-A aaa. B bbb. C ccc.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuRxuJL5FoiEms3BtvDQxz6zyTAzezVYAzRp/ef1quFCZUnYQKJ2eVZapwowEUU7mkv7tvY1QYifmE6EZZUGAsXtTsmO3we8ADsYEQ20TBe/NXPhA/YJJ+A8C09jgKeYUK60oz1mgsSSU+/LHQATtVv6BXGo8FpeKJrPbvckjULVfLWSHMrP16R4XMyl1BzBSy4ye6Hgb4VaFXn88niQyNHYY/8JJq7yrgg9C93Jq5HwBqhB934VJAQxBhq2BL91Rqfuv6alwtn/ThVIRX/+XkhX2x5EuH1CizkdZWqYnL65EwYzXwMTisCh1z7PnBG9JczcZE1gIQ1ccGOxwFBuHL kszumny@t440s
<html>
<style>
body {
background: linear-gradient(to right, black 0%,black 50%,#000000 50%,white 50%,white 100%); /* W3C */
}
h1 {
color: red;
font-size: 160px;
text-align: center;