Skip to content

Instantly share code, notes, and snippets.

View achinara's full-sized avatar
🦅

Chynara Aitkulova achinara

🦅
View GitHub Profile
<div class="widget">
<p class="text">
<span>To see our products, go</span>
<a class="link" href="">here</a>
</p>
<div class="bottom">
<p class="text">
<span>To subscribe us, go</span>
<a class="link" href="">here</a>
</p>
@achinara
achinara / slim-redux.js
Created December 19, 2022 19:48 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@achinara
achinara / levelup.md
Created November 17, 2022 14:52 — forked from dshaw/levelup.md
Leveling-up on Node

Core Principals

  • Read lots of code.
  • Write lots of code.
  • Don’t be afraid to throw it away.
  • Don’t be afraid to share it.
  • Find your happy place writing tests.
    • You’ll probably spend more time writing tests and debugging than writing code. Embrace this. Make it a key part of your workflow.
    • Tests are one of the first things I read in a module. That and the example(s). Probably before API docs.
  • Don’t know where to start. Write some tests for a module you like. This benefits everyone.
@achinara
achinara / data.js
Created April 4, 2022 08:45
final format
/* eslint-disable max-len */
import { v4 as uuidv4 } from 'uuid';
import { slot } from '../utils';
import icons from './icons';
export const data = {
block: {
type: 'web_dropdown_nav',
children: [
{
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
div {
position: relative;
width: 200px;