Skip to content

Instantly share code, notes, and snippets.

View ar7n's full-sized avatar
🪲
working hard

Arseny Sysolyatin ar7n

🪲
working hard
View GitHub Profile
Snippet: [[SnippetName]]
Chunk: [[$ChunkName]]
System Setting: [[++SettingName]]
TV: [[*fieldName/TvName]]
Link tag: [[~PageId? &paramName=`value`]]
Placeholder: [[+PlaceholderName]]
<?php
@ar7n
ar7n / sticky-footer.css
Created May 12, 2015 18:19
Sticky footer
@ar7n
ar7n / porting.sh
Created April 14, 2015 15:12
MODX porting script
find . -name "*.php" | xargs sed -i "s#/old/path/to/site/#/new/path/to/site/#g"
find . -name "*.php" | xargs sed -i "s#old-domain.com#new-domain.com#g"
@ar7n
ar7n / clearfix
Last active August 29, 2015 14:17 — forked from designsdrivegists/clearfix
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
@ar7n
ar7n / .gitignore
Last active August 29, 2015 14:17
universal gitignore
# Numerous always-ignore extensions
*.diff
*.err
*.log
*.orig
*.rej
*.swo
*.swp
*.vi
*~
@ar7n
ar7n / devices.css
Last active August 29, 2015 14:17
Media Queries for Standard Devices
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}