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
DROP EXTENSION IF EXISTS "uuid-ossp"; | |
DROP EXTENSION IF EXISTS "pg_trgm"; | |
DROP EXTENSION IF EXISTS "btree_gin"; | |
CREATE EXTENSION IF NOT EXISTS "plpgsql"; |
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
DO $$ | |
DECLARE | |
table_name_var text; | |
BEGIN | |
FOR table_name_var IN (SELECT table_name FROM information_schema.tables WHERE table_schema = 'public') | |
LOOP | |
EXECUTE 'DROP TABLE IF EXISTS ' || table_name_var || ' CASCADE;'; | |
END LOOP; | |
END $$; |
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 React from 'react'; | |
import _ from 'lodash'; | |
import { mount, shallow } from 'enzyme'; | |
import NameOfComponent from '../src/NameOfComponent'; | |
describe('NameOfComponent Basic: ', () => { | |
it('should verified that component is exits', () => { | |
const wrapper = mount( | |
<NameOfComponent /> |
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
@font-face { | |
font-family: 'Narkis Block M F'; | |
src: url('fonts/NarkisBlock-Medium.otf'); | |
font-weight: 500; | |
} | |
@font-face { | |
font-family: 'Narkis Block M F'; | |
src: url('fonts/NarkisBlock-Regular.otf'); | |
font-weight: 400; |
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
$( window ).load( function(){ | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-11504677-1', 'auto'); | |
ga('send', 'pageview'); | |
ga(function(tracker) { |
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
'post__not_in' => array($post->ID) |
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
caption,td,th{text-align:right;} | |
#wrapper{left:0;right:0;} | |
.outline{border-radius:10px 10px 0 0;} | |
#content .integration p{padding-right:0;padding-left:0;} | |
.ajax-loader{margin-right:5px;} | |
#title-container .title-button{float:left;} | |
#title-container #close-chat{margin-left:-12px;padding:6px 6px 5px 12px;} | |
#title-container #minimize{margin-left:5px;} | |
body.pop-out #notification{left:36px;right:5px;} | |
body.pop-out.state-chatting #notification{left:58px;} |
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 | |
function shortcode_function_name() { | |
ob_start(); | |
// Code | |
...youre php/html code | |
$content = ob_get_clean(); | |
return $content; | |
} |
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 | |
$args = array ( | |
'posts_per_page' => '-1', | |
); | |
$query = new WP_Query( $args ); | |
if ( $query->have_posts() ) { | |
while ( $query->have_posts() ) { | |
$query->the_post();?> | |
<?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
<?php | |
if( have_rows('left_box_items') ): while ( have_rows('left_box_items') ) : the_row();?> | |
<?php the_sub_field('sub_field_name'); ?> | |
<?php endwhile;endif;?> |
NewerOlder