Skip to content

Instantly share code, notes, and snippets.

@troglotit
troglotit / Turn CAPSLOCK to Ctrl.reg
Created August 15, 2021 02:15 — forked from krists/Turn CAPSLOCK to Ctrl.reg
Remap Caps-Lock key to Ctrl in Windows 7/8
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
### Keybase proof
I hereby claim:
* I am troglotit on github.
* I am troglotit12 (https://keybase.io/troglotit12) on keybase.
* I have a public key ASDe91iAX2W801pcpg5awMuVVh1KzqLcShPcQ3U_yeJ8mAo
To claim this, I am signing this object:
@troglotit
troglotit / config.el
Created November 7, 2020 23:02 — forked from rangeoshun/config.el
Typescript with CSS in JS (styled-components, Emotion), JSX and graphql highlight and major mode for Emacs Doom with `mmm-mode` for *.tsx
;; Assign typescript-mode to .tsx files
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-mode))
(require 'mmm-mode)
(setq mmm-global-mode t)
(setq mmm-submode-decoration-level 0) ;; Turn off background highlight
;; Add css mode for CSS in JS blocks
(mmm-add-classes
'((mmm-styled-mode
@troglotit
troglotit / 11
Created July 31, 2020 10:54
vscode
ddddddd
-- This is the configuration file for the 'cabal' command line tool.
--
-- The available configuration options are listed below.
-- Some of them have default values listed.
--
-- Lines (like this one) beginning with '--' are comments.
-- Be careful with spaces and indentation because they are
-- used to indicate layout for nested sections.
--
-- This config file was generated using the following versions

Составил мини-список.

Включил более релевантные для day-to-day work, скорее всего будут интересны.

https://www.youtube.com/playlist?list=PL92ve5R9GdCF49woRnZKCotvFjU68Q-Ks

  • презентация от K Lars Lohn'a достаточно философская но прекрасная, одна из лучших, если не лучшая.

Топ-2 перезентаций от создателя языка Clojure

https://www.infoq.com/presentations/Simple-Made-Easy

(defn request-flow
[{:keys [method
route
params
allow-empty-string
hide-auth-header
on-success
on-failure
url-host]}]
(let [request-id (keyword (str "request-flow/" (gensym "id-")))
@troglotit
troglotit / an-endless-hike-on-a-tiny-world.markdown
Created June 29, 2017 19:02
An endless hike on a tiny world
@troglotit
troglotit / SassMeister-input.sass
Created March 31, 2017 16:17
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$bemSeparators: (element: '__', modifier: '--', pseudo: ':') !default
// Return nest-in-state element if block has modifier class.
@function _nestInState($parent)
$parent: str-slice(inspect($parent), 0) // To string.
@troglotit
troglotit / prettier-js.el
Last active March 6, 2017 11:49
quelpa compatible prettier
;;; prettier-js.el --- utility functions to format reason code
;; Copyright (c) 2014 The go-mode Authors. All rights reserved.
;; Portions Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are
;; met:
;; * Redistributions of source code must retain the above copyright