Skip to content

Instantly share code, notes, and snippets.

View chestozo's full-sized avatar

chestozo

  • Portugal
  • 23:50 (UTC +01:00)
View GitHub Profile
class MyDuperClass {
onClick = () => {
this.doSomeStuff();
}
}
/**
* Задача
* - container резиновый
* - внутри 2 колонки
* - левая - резиновая
* - при этой левая не тянется больше, чем позволяет контейнер
* - правая - фиксированной ширины
*
* HTML
* <div class="parent">
# 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
@chestozo
chestozo / design.css
Created May 9, 2016 17:02
Additional styles for the booking form
#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; }
function wrap(obj, onlyOwnProperties) {
obj = obj || {};
for (var propName in obj) {
if (onlyOwnProperties && obj.hasOwnProperty(propName)) {
continue;
}
if (typeof obj[propName] !== 'function') {
continue;
var ttt = 'DDD';
@chestozo
chestozo / ng-attributes.html
Created October 26, 2015 09:02
Angular.js ng- attributes variety
<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>
@chestozo
chestozo / dump.sh
Last active October 21, 2015 10:36
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
osascript -e ‘tell application “Google Chrome”’ -e ‘reload tab id 5456 of window id 18’ -e ‘end tell’
osascript -e ‘tell application “Google Chrome”’ -e ‘set t to active tab of window 1’ -e ‘end tell’ -e ‘return t’