Skip to content

Instantly share code, notes, and snippets.

View rootart's full-sized avatar
🎯
Focusing

Vasyl Dizhak rootart

🎯
Focusing
View GitHub Profile
"use strict";(self.webpackChunkembedding_player=self.webpackChunkembedding_player||[]).push([[787],{787:function(e,n,t){t.r(n),t.d(n,{getCLS:function(){return y},getFCP:function(){return g},getFID:function(){return C},getLCP:function(){return P},getTTFB:function(){return D}});var i,r,a,o,u=function(e,n){return{name:e,value:void 0===n?-1:n,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var t=new PerformanceObserver((function(e){return e.getEntries().map(n)}));return t.observe({type:e,buffered:!0}),t}}catch(e){}},f=function(e,n){var t=function t(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),n&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0)))};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},s=function(e){addEventListener("pageshow",
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
@rootart
rootart / machine.js
Last active May 3, 2020 21:56
Generated by XState Viz: https://xstate.js.org/viz
const triathlonMachine = Machine(
{
id: 'triathlonMachine',
initial: 'idle',
context: {
startTime: null,
transitionOneStart: null,
cyclingLegStart: null,
transitionTwoStart: null,
@rootart
rootart / machine.js
Created April 20, 2020 20:43
Generated by XState Viz: https://xstate.js.org/viz
const door = Machine({
id: 'door',
initial: 'locked',
states: {
locked: {
on: {
UNLOCK: 'unlocked',
}
},
unlocked: {
import os
import json
from termcolor import cprint
def bower_json_deps():
deps = {}
with open('bower.json', 'r') as bower_file:
data = json.load(bower_file)

Keybase proof

I hereby claim:

  • I am rootart on github.
  • I am rootart (https://keybase.io/rootart) on keybase.
  • I have a public key whose fingerprint is 2DA4 A2C7 D9DC 265A 3A10 E57A FCFB 2E3C 0C6A 236E

To claim this, I am signing this object:

import logging
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from nameko.runners import ServiceRunner
from nameko_sqlalchemy import DB_URIS_KEY
from nameko_sqlalchemy import Session
from nameko.rpc import rpc
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
app: {
'root': 'app',

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname