This file contains hidden or 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
| <?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(); ?> |
This file contains hidden or 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
| HTML: | |
| <div class="wrapper"> | |
| <div class="tabs"> | |
| <span class="tab">Вкладка 1</span> | |
| <span class="tab">Вкладка 2</span> | |
| <span class="tab">Вкладка 3</span> | |
| </div> | |
| <div class="tab_content"> | |
| <div class="tab_item">Содержимое 1</div> | |
| <div class="tab_item">Содержимое 2</div> |
This file contains hidden or 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
| $(".tab_item").not(":first").hide(); | |
| $(".wrapper .tab").show().click(function() { | |
| var ind = $(this).index(); | |
| $(".wrapper .tab").removeClass("active").eq(ind).addClass("active"); | |
| $(".tab_item").hide().eq(ind).fadeIn() | |
| }).eq(0).addClass("active"); | |
| <div class="wrapper"> | |
| <div class="tabs"> | |
| <span class="tab">Вкладка 1</span> |
This file contains hidden or 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
| <p>Our SEO services are among the very best in the industry.</p> | |
| <div class="pricing-table"> | |
| <div class="one-third first"> | |
| <h4>Basic - $95</h4> | |
| <ul> | |
| <li>List Item #1</li> | |
| <li>List Item #2</li> | |
| <li>List Item #3</li> |
This file contains hidden or 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
| Keymap (Windows Users): | |
| [ | |
| { "keys": ["alt+shift+f"], "command": "reindent" }, | |
| ] | |
| Settings: | |
| { | |
| "show_definitions": false, | |
| "auto_complete": false, | |
| "bold_folder_labels": true, |
This file contains hidden or 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
| "use strict"; | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| var nodemon = require('gulp-nodemon'); | |
| var browserSync = require('browser-sync').create(); | |
| var uglify = require('gulp-uglify'); | |
| // First, run all your tasks | |
| gulp.task('default', ['nodemon', 'sass', 'js'], function(){ |
This file contains hidden or 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 abc="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");//Набор символов который будет использоваться в системе счисления | |
| //Перевод числа из любой системы счисления в десятичную | |
| function ToNum(a,b){// Аргументы: строка, система счисления | |
| var n = 0; | |
| var mas = abc.slice(0,b); | |
| a = String(a); | |
| for(var i = 0;i < a.length;i++){ | |
| n = n +(mas.indexOf(a.substr(a.length-i-1,1))*Math.pow(b,i)); | |
| } | |
| return n; |
This file contains hidden or 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
| 'use strict'; | |
| function isUnique(str) { | |
| var i, ch; | |
| var len = str.length; | |
| if (len > 127) { | |
| return false; | |
| } |
This file contains hidden or 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
| 'use strict'; | |
| /** | |
| * Реализовать RLE-сжатие: | |
| * Функция принимает строку и возвращает новую строку | |
| * 2 и больше одинаковых букв стоящих подряд в исходной строке | |
| * заменяются на эту букву и число повторений | |
| * число 1 не добавляется! | |
| * | |
| * AAAB -> A3B, BCCDDDAXXXX -> BC2D3AX4 |
This file contains hidden or 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
| 1. Получаем хэш-код коммита, к которому хотим вернуться. | |
| 2. Заходим в папку репозитория и пишем в консоль: | |
| $ git reset --hard a3775a5485af0af20375cedf46112db5f813322a | |
| $ git push --force |
OlderNewer