Skip to content

Instantly share code, notes, and snippets.

@anvaka
anvaka / 00.Intro.md
Last active May 18, 2024 08:30
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@ericnormand
ericnormand / 00_script.clj
Last active May 18, 2024 08:30
Boilerplate for running Clojure as a shebang script
#!/bin/sh
#_(
#_DEPS is same format as deps.edn. Multiline is okay.
DEPS='
{:deps {clj-time {:mvn/version "0.14.2"}}}
'
#_You can put other options here
OPTS='
@novusnota
novusnota / .vimrc
Last active May 18, 2024 08:21
Простая конфигурация, конфиг Vim для тех, у кого русско-английская клавиатура. Для русскоязычных, короче (duh). Минималистичная, минимум плагинов, но с развёрнутым описанием каждой функции, настройки и команды.
" Простая конфигурация Vim для пользователей с русско-английской клавиатурой
" Как правило, русскоязычных (duh)
" Минималистичная, минимум плагинов, но с развёрнутым описанием каждой функции, настройки и команды
" Работает для Vim 8.*, скомпилированного по максимуму.
" Чистый конфиг, без использования менеджеров плагинов.
" Цветовые схемы вручную копировал в папку ~/.vim/
" Также, ручками добавил
" lightline и NERDTree в ~/.vim/pack/plugins/start,
@rxaviers
rxaviers / gist:7360908
Last active May 18, 2024 08:17
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@mbcrawfo
mbcrawfo / dotnet-ef.sh
Last active May 18, 2024 08:17
Helper script for the dotnet ef CLI
#!/bin/bash
# This script helps provide project specific options to the dotnet ef cli.
if [ $# -eq 0 ]; then
echo "Usage: ./dotnet-ef.sh <command> [options]"
exit 1
fi
args=(
@surajsau
surajsau / ParallaxScreen.kt
Last active May 18, 2024 08:16
Parallax effect with Jetpack Compose
@Composable
fun ParallaxScreen(modifier: Modifier = Modifier) {
val context = LocalContext.current
val scope = rememberCoroutineScope()
var data by remember { mutableStateOf<SensorData?>(null) }
DisposableEffect(Unit) {
val dataManager = SensorDataManager(context)
dataManager.init()
@anuarkaliyev23
anuarkaliyev23 / Checklist.md
Last active May 18, 2024 08:13
Ловушки формирования корпкультуры / Доклад TeamLeadDay 2024

Чеклист

Данный чеклист носят характер примера, которые могут подойти не всем и не во всех ситуациях. Они отражают личное мнение автора и склонны показать скорее образ действий/мышления в данных ситуациях

Каждый раз, когда вы сталкиваетесь с неудовлетворительным результатом, спросите себя, как это произошло?

  • Опишите этапы процесса, которые привели к неудовлетворительному результату
  • Распишите этапы процесса
@dgomesma
dgomesma / FlexRef.md
Last active May 18, 2024 08:13
Flex Quick Reference

No Longer Being Updated

For the sake of organization, because the gist editor sucks (the line numbers are also selected when I try to select text from the editor, what the hell?), because I might be including more resources in the future, and because having everything spread on Gists would soon turn into a mess, I have decided to continue the writing of tutorials in a repo. Please, go take a look at: https://github.com/dgomesma/flex-bison-reference

Disclaimer

This is a "draft". It has not been reviewed, it is unfinished, it might contain inaccuracies, and I have not verified that any of the code runs or that the terminology is technically precise. I have used Flex long time ago, and I started writing this as a review for myself, but decided to share with the world. Nonetheless, it might be an useful summary in a relatively simplified language if you just want to quickly learn something new.

Overview

Flex is a GNU tool for generating scanners from .flex (or .lex) files (it seems lex is the

@dylanmcdiarmid
dylanmcdiarmid / sexp-cheat-sheet
Created February 9, 2015 16:18
vim sexp mappings for normal people cheat sheet
.vimrc
" Map leader to comma
let maplocalleader=","
" Toggle this for vim-sexp to not go into insert mode after wrapping something
let g:sexp_insert_after_wrap = 0
" Toggle this to disable automatically creating closing brackets and quotes
let g:sexp_enable_insert_mode_mappings = 1
Vocab