Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
RobertFischer / Description.md
Last active October 14, 2023 16:47
Benchmarking is Hard, Yo.

So, I was reading Why You shouldn’t use lodash anymore and use pure JavaScript instead, because once upon a time, I shifted from Underscore to Lodash, and I'm always on the lookout for the bestest JavaScript stdlib. At the same time, there was recently an interesting conversation on Twitter about how some of React's functionality can be easily implemented in modern vanilla JS. The code that came out of that was elegant and impressive, and so I have taken that as a message to ask if we really need the framework.

Unfortunately, it didn't start out well. After copy-pasting the ~100 lines of code that Lodash executes to perform a find, there was then this shocking claim: Lodash takes 140ms, and native find takes 0ms.

Привет,

В начале 2018 года Максим Шайхалов (https://twitter.com/p1xe1) предложил разработать и разместить на Хекслете несколько курсов по дизайну, пользовательскому опыту и интерфейсам. Первым в списке был курс «Введение в проектирование интерфейсов». После обсуждения планов и содержания курсов, в апреле Максим подготовил первые несколько уроков первого курса, а я прочитал и опубликовал их по адресу https://ru.hexlet.io/courses/intro-to-ux

Спустя несколько недель Антон Жиянов (https://twitter.com/nalgeon/) написал в Твиттере https://twitter.com/nalgeon/status/984039364111093760 о том, что уроки в курсе Максима повторяют email-курс «Дизайн интерфейсов для нормальных людей» (https://dangry.ru/jan/), созданный Антоном Жияновым и Ольгой Коноваловой. Максим ответил https://twitter.com/p1xe1/status/984100766674808834 Антону, а также описал ситуацию и свою позицию мне в личной переписке.

Примеры Антона (https://twitter.com/nalgeon/status/984111609084825601) явно показывают его правоту. Сомнений нет: тексты Максим

@prasofty
prasofty / margin_padding_helper.css
Last active April 10, 2023 17:29
Margin Padding Helper CSS
.p-0 {
padding: 0px;
}
.p-3 {
padding: 3px;
}
.p-5 {
padding: 5px;
@peterflynn
peterflynn / Useful GitHub bookmarklets
Last active November 11, 2024 20:48
GitHub comment thread bookmarklets
To use: create a new bookmark and paste into the URL field.
In Chrome, you can paste the full multiline code as shown below.
In other browsers, you may need to minify the code into one line first.
@ccstone
ccstone / References For Learning & Using Applescript.md
Last active October 25, 2024 18:20
References For Learning & Using Applescript

REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2018/06/19 18:47


NOTES

AppleScript is a rather peculiar scripting language to learn.

@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active September 15, 2024 22:48
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@rodrigosetti
rodrigosetti / reasons-i-love-php-interactive-shell.md
Last active November 23, 2020 21:54
Reasons I love PHP interactive shell

Reasons I love the PHP interactive shell

It won't display result of the evaluation. You have to output yourself

php > $x = "foo";
php > $x
php > ;
php > 
php > echo $x;
@umidjons
umidjons / yii-label-custom-text.md
Created March 10, 2014 06:18
Yii: Set custom text for label

#Set custom text for label

htmlOptions of such CHtml::activeLabel and CActiveForm::label methods have label special option. It specifies the label to be displayed instead of CModel::getAttributeLabel value.

<div class="form-group">
	<div class="col-sm-6">
		<?= $form->label( $model, 'source_title', [ 'label' => Yii::t( 'myApp', 'Resource title' ) ] ); ?>
		<?= $form->textField( $model, 'source_title', [ 'class' => 'form-control', ] ); ?>
 = $form-&gt;error( $model, 'source_title', [ 'class' =&gt; 'text-danger' ] ); ?&gt;
@gatlin
gatlin / uninstall-haskell-osx.sh
Last active April 11, 2024 22:31
Uninstall Haskell from Mac OS X
#!/bin/bash
# source: http://www.haskell.org/pipermail/haskell-cafe/2011-March/090170.html
sudo rm -rf /Library/Frameworks/GHC.framework
sudo rm -rf /Library/Frameworks/HaskellPlatform.framework
sudo rm -rf /Library/Haskell
rm -rf ~/.cabal
rm -rf ~/.ghc
rm -rf ~/Library/Haskell
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name