Skip to content

Instantly share code, notes, and snippets.

Keymap (Windows Users):
[
{ "keys": ["alt+shift+f"], "command": "reindent" },
]
Settings:
{
"show_definitions": false,
"auto_complete": false,
"bold_folder_labels": true,
@MersG
MersG / button.sass
Created April 4, 2017 06:55 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
Tabs:
[
{"caption":"Tab Title", "fields": [
{"field":"title","caption":"Name"},
{"field":"description","caption":"Description","inputTVtype":"textarea"},
{"field":"imageTV","caption":"Photo","inputTV":"imageTV"}
]}
]
Table:
@MersG
MersG / modx_ace_material.txt
Created March 22, 2017 13:37 — forked from agragregra/modx_ace_material.txt
MODx Ace Material Theme
MODx Ace Material Theme
1. Системные настройки > Пространство имен "ace":
Размер шрифта: 18px
Высота области редактирования: 560
Невидимые символы: Да
Мягкая табуляция: Нет
Размер табуляции: 2
Тема редактора: tomorrow_night
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
/*Disable Animation on Mobile Devices*/
.animated {
/*CSS transitions*/
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
<ifModule mod_expires.c>
# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg
# Compress compressible fonts
@MersG
MersG / jquery.plugin.js
Last active August 29, 2015 14:23
jQuery Plugin Start
(function($){
$.fn.myParallax = function(options) {
var settings = $.extend({
"speed" : "15"
},options);
return this.each(function(){
function heighDetect(){
$(".main_head").css("height", $(window).height());
};
heighDetect();
$(window).resize(function(){
heighDetect();
});
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>