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
| function nextSpell() | |
| if(UnitPower("player", 9) < 3) then | |
| if(C_Spell.GetSpellCharges("Holy Shock").currentCharges == 0) then | |
| print("Flash of Light") | |
| else | |
| print("Holy Shock") | |
| end | |
| else | |
| print("Eternal Flame") | |
| end |
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 | |
| add_action('init', 'jurs_register_block_styles'); | |
| function jurs_register_block_styles() { | |
| register_block_style('core/paragraph', array( | |
| 'name' => 'lead', | |
| 'label' => __('Leading Paragraph', 'themeslug'), | |
| 'inline_style' => '.is-style-lead { | |
| font-weight: bold; |
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 | |
| /** | |
| * Get current subscriber list | |
| */ | |
| function bl_get_subs() { | |
| global $wpdb; | |
| $table_name = $wpdb->prefix . "mailpoet_subscribers"; | |
| $retrieve_data = $wpdb->get_results("SELECT * FROM $table_name"); |
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
| add_action('after_setup_theme','themename_bw_size'); | |
| function themename_bw_size() { | |
| add_image_size('themename-bw-image', 100, 100, true); | |
| } | |
| add_filter('wp_generate_attachment_metadata','themename_bw_filter'); | |
| function themename_bw_filter($meta) { | |
| $file = wp_upload_dir(); | |
| $file = trailingslashit($file['path']).$meta['sizes']['themename-bw-image']['file']; | |
| list($orig_w, $orig_h, $orig_type) = @getimagesize($file); |
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
| // Block Grid | |
| // Technique adapted from Foundation 5 for Bootstrap 3. | |
| // https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss | |
| // Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM) | |
| // Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme) | |
| [class*="block-grid-"] { | |
| display: block; | |
| margin: -($grid-gutter-width/2); | |
| padding: 0; |
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
| function(){$( 'body' ).prepend( '<pre class='mylist'></pre>' ); | |
| var resultat = [] | |
| $( "'.website-name' ).each(function( index ) { | |
| resultat.push($( this ).text()); | |
| }); | |
| var items = resultat; | |
| var cList = $('.mylist'); | |
| items.map( (item,i ) => { | |
| var li = $('<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
| <template> | |
| <div> | |
| <nuxt-link | |
| v-for="post in posts" | |
| :key="post.id" | |
| :to="`/post/${post.id}`" | |
| class="border-b pb-5 mt-5" | |
| > | |
| <h2 class="text-4xl">{{ post.title }}</h2> | |
| <VueMarkdown id="content">{{ post.content }}</VueMarkdown> |
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
| .stretch-column .fl-col-content { | |
| justify-content: space-between !important; | |
| } | |
| .stretch-column .fl-module, | |
| .stretch-column .fl-module-content, | |
| .stretch-column .fl-module-content > div { | |
| height: 100%; | |
| } |
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
| /* ========== Smooth Scroll ========== */ | |
| ( | |
| function ( $ ) { | |
| $.fn.vantageSmoothScroll = function () { | |
| $( this ).click( function ( e ) { | |
| var $a = $( this ); | |
| var $target = $( '[name=' + this.hash.slice( 1 ) + ']' ).length ? $( '[name=' + this.hash.slice( 1 ) + ']' ) : $( $a.get( 0 ).hash ); | |
| if ( $target.length ) { |
NewerOlder