Skip to content

Instantly share code, notes, and snippets.

@SathyaBhat
SathyaBhat / gist:894012
Created March 30, 2011 07:36
Chrome extensions keyboard shortcut handler
/*
Right here's the thing - for keyPress events to be run, you'll have to make use of
content scripts. Content scripts handle things at webpage & DOM level. You'll have
to do changes to your manifest:
*/
------------------------
manifest.json:
------------------------
/*
Note: don't replace manifest.json, add the relevant changes else
@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
@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
@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;
@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;
@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

@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.

@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.
@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;

Привет,

В начале 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) явно показывают его правоту. Сомнений нет: тексты Максим