Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@daohoangson
daohoangson / Post.php
Last active December 19, 2015 21:29 — forked from anonymous/Post.php
public function renderHtml()
{
$bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
$this->_params['profilePost']['messageHtml'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['profilePost'], $bbCodeParser, array());
}
<?php
$arr_a = array('1','2','3','4','5','6');
$arr_b = array('apples','oranges','bananas','peaches');
function makeArray($array_a, $array_b) {
$newArr = $array_a;
foreach($array_b as $value)
{
$rand = rand(0, count($newArr) - 1);
public function getFeaturedItems($nodeIds, $groupIds, $limitOption)
{
return $this->fetchAllKeyed($this->limitQueryResults(
'
SELECT thread.*, attachment.*, attachment_data.*
FROM xf_thread AS thread
LEFT JOIN xf_attachment AS attachment ON
(attachment.content_id = thread.first_post_id AND attachment.content_type = \'post\')
LEFT JOIN xf_attachment_data AS attachment_data ON
(attachment_data.data_id = attachment.data_id AND attachment_data.thumbnail_width > 0)
import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class SpellChecker {
public static String[] results;
public boolean loadRuleBase(String filename){
try{