Skip to content

Instantly share code, notes, and snippets.

View longhero3's full-sized avatar

Hoang Long longhero3

View GitHub Profile
(function (window) {
'use strict'
var SERVER_URL = "https://mashr-tools.com:1337/api/v1/";
function defineHTMLProcessor()
{
var HTMLProcessor = {};
HTMLProcessor.getServerURL = function(){
<div class="products-slick-mobile">
<?php
$args = array( 'post_type' => 'acme_case_study', 'posts_per_page' => 10);
$loop = new WP_Query( $args );
?>
<?php $array__ = array(); $array__links = array(); while ($loop->have_posts() ) : $loop->the_post();
$featured_img_url = get_the_post_thumbnail_url(get_the_ID(), 'full');
// $featured_title = $loop->post_title;
array_push($array__,get_the_ID());
array_push($array__links,get_field("page-links"));
<?php
/**
* Template Name: About Template
*/
?>
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
<?php
/**
* Template Name: About Template
*/
?>
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
<?php
/**
* Template Name: Home Template
*/
?>
<!-- <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" /> -->
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>

Keybase proof

I hereby claim:

  • I am longhero3 on github.
  • I am longhero3 (https://keybase.io/longhero3) on keybase.
  • I have a public key ASDGCGQ92xivgVU_GXEbmmkT4_usqsGGrHEzMQRvwHcM3Qo

To claim this, I am signing this object:

import tornado.ioloop
import tornado.web
import json
import os
serverdir = os.path.dirname(os.path.realpath(__file__))
rootdir = os.path.abspath(os.path.join(serverdir, os.pardir))
clientdir = os.path.join(rootdir, "client")
class HandlerMixin(object):
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
</script>
<script>
$(document).ready(function() {
$('div#chatarea').append('<table id="tbl"></table>');
$('#send').click(function (){
var $form=$(this);