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
| // Map Object Type | |
| const objMap: Record<string, string> = { | |
| alu: 'mula', | |
| }; |
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
| console.log(add(5, 7)) // 12 | |
| console.log(add(5)(7)) // 12 | |
| console.log(add(3)(7)) // 10 | |
| function greet(greeting, punctuation) { | |
| return greeting + ' ' + this.user + punctuation; | |
| } |
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
| jest.mock('./embed-code/embed-code', () => { | |
| return { | |
| __esModule: true, | |
| default: () => { | |
| return <div>Embed component goes here</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
| $('form.claim-details input, form select, form textarea').each(function () { | |
| this.backup = this.value; | |
| }); | |
| $('form.claim-details').on('change keyup', 'input,select,textarea', function () { | |
| if (this.value !== this.backup) { | |
| this.backup = this.value; | |
| this.form.isDirty = true; | |
| //$(this).addClass('field-dirty'); | |
| //$(this.form).addClass('form-dirty'); | |
| //console.log('form is dirty'); |
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
| git rm -r --cached . | |
| git add . | |
| git commit -m "fixed untracked files" |
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 | |
| $to = '[email protected]'; | |
| $subject = 'Email Template Testing'; | |
| $headers = "From: " . "[email protected]" . "\r\n"; | |
| $headers .= "Reply-To: ". "[email protected]" . "\r\n"; | |
| $headers .= "MIME-Version: 1.0\r\n"; | |
| $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\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
| function custom_pagination() { | |
| global $wp_query; | |
| $big = 999999999; // need an unlikely integer | |
| $pages = paginate_links( array( | |
| 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), | |
| 'format' => '?paged=%#%', | |
| 'current' => max( 1, get_query_var('paged') ), | |
| 'total' => $wp_query->max_num_pages, | |
| 'prev_next' => false, | |
| 'type' => 'array', |
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
| $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); |
NewerOlder