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 heightDetect() { | |
$(".main_head").css("height", $(window).height()); | |
}; | |
heightDetect(); | |
$(window).resize(function() { | |
heightDetect(); | |
}); |
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
platform :ios, '9.1' | |
abstract_target 'Foo' do | |
# RN related | |
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
'Core', | |
'CxxBridge', | |
'RCTAnimation', | |
'RCTBlob', | |
'RCTText', |
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
<?php | |
if ( have_posts() ) : // если имеются записи в блоге. | |
query_posts('cat=3'); // указываем ID рубрик, которые необходимо вывести. | |
while (have_posts()) : the_post(); // запускаем цикл обхода материалов блога | |
?> | |
<?php the_post_thumbnail(array(100, 100)); ?> | |
<? endwhile; // завершаем цикл. | |
endif; | |
/* Сбрасываем настройки цикла. Если ниже по коду будет идти еще один цикл, чтобы не было сбоя. */ | |
wp_reset_query(); |
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
<?php echo get_post_meta($post->ID, 'year', true); ?> |
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
<?php | |
$post = $wp_query->post; | |
if (in_category('cat_label_1')) { | |
include(TEMPLATEPATH.'/single-cat_label_1.php'); | |
} elseif (in_category('cat_label_2')) { | |
include(TEMPLATEPATH.'/single-cat_label_2.php'); | |
} | |
?> |
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 imgSource = 'http://fonts.voxmedia.com/emoji/unicode/1f4a9.png'; | |
var txtSource = "shit ♥ "; | |
var valueInput = prompt("How many shit faces?"); | |
for (var a = 1; a <= valueInput; a++) { | |
$("#container").add("div").attr('id', "image" + a); | |
$("#image" + a).append("<img class = 'emojiIcon' src=" + imgSource + ">"); | |
$("#container").add("div").attr('id', "text" + a); | |
$("#text" + a).append("<h3 class = 'emojiNumber'>" + txtSource + a + "</h3>"); | |
} |
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
// Keymap (Windows Users): | |
[ | |
{ "keys": ["alt+shift+f"], "command": "reindent" }, | |
] | |
// Settings: | |
{ | |
"auto_complete": false, | |
"bold_folder_labels": true, | |
"close_windows_when_empty": false, |
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
/******************************************************************************************************************** | |
Countdown.js is a simple script to add a countdown timer | |
for your website. Currently it can only do full minutes | |
and partial minutes aren't supported. This script is a fork of http://jsfiddle.net/HRrYG/ with some | |
added extensions. Since the original code that I forked was released under Creative Commons by SA license, | |
I have to release this code under the same license. You can view a live demo of this code at http://jsfiddle.net/JmrQE/2/. | |
********************************************************************************************************************/ | |
function countdown(minutes) { | |
var seconds = 60; | |
var mins = minutes |
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
CSS: | |
* { | |
transition: filter .25s ease; | |
} | |
.mfp-wrap ~ * { | |
filter: blur(1px); | |
} | |
Sass: | |
* |
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
import useFetch from "useFetch"; | |
const { response, isLoading } = useFetch({ | |
api: identityApi, | |
url: AUTH_MEMBER_TRANSACTIONS(requestOptions), | |
config: JSON.stringify({ requireAuthentication: true }), | |
}); |
OlderNewer