This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyDuperClass { | |
onClick = () => { | |
this.doSomeStuff(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Задача | |
* - container резиновый | |
* - внутри 2 колонки | |
* - левая - резиновая | |
* - при этой левая не тянется больше, чем позволяет контейнер | |
* - правая - фиксированной ширины | |
* | |
* HTML | |
* <div class="parent"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on http://stackoverflow.com/a/1260982/449345 | |
# The most mneeeeee part is this one: `rm -rf .git/modules/mmmodule` | |
# This script can be useful in case you are changing origin for your | |
# nice and cool mmmodule. | |
git submodule deinit -f mmmodule | |
rm -rf .git/modules/mmmodule # kind of WAAAAT?! | |
git submodule init mmmodule | |
git submodule update --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#book_termsAndConditions_box a:link, #book_termsAndConditions_box a:hover, #book_termsAndConditions_box a:visited, #book_termsAndConditions_box a:active { text-decoration: none; } | |
#book_termsAndConditions_box a:link, #book_termsAndConditions_box a:visited { color:#F60; } | |
#book_termsAndConditions_box a:hover, #book_termsAndConditions_box a:active { color:#ffb32f; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wrap(obj, onlyOwnProperties) { | |
obj = obj || {}; | |
for (var propName in obj) { | |
if (onlyOwnProperties && obj.hasOwnProperty(propName)) { | |
continue; | |
} | |
if (typeof obj[propName] !== 'function') { | |
continue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ttt = 'DDD'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-src="{{ product.images[0] }}"></div> | |
<div ng-class="{ active:tab === 1 }"></div> | |
<div ng-click="tab = 1"></div> | |
<div ng-include="'product-title.html'"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump \ | |
--host=your-mysql-server.url \ | |
--port=3306 \ | |
--protocol=tcp \ | |
--default-character-set=latin1 \ | |
--skip-triggers "this-was-generated-by-mysqlworkbench-not-sure-you-need-this" \ | |
--user=mister_user \ | |
--password=IT_IS_NOT_SECURE_TO_USE_PASSWORDS_LIKE_THIS > backup.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript -e ‘tell application “Google Chrome”’ -e ‘reload tab id 5456 of window id 18’ -e ‘end tell’ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript -e ‘tell application “Google Chrome”’ -e ‘set t to active tab of window 1’ -e ‘end tell’ -e ‘return t’ |