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
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()); | |
} |
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 | |
$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); |
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
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) |
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 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{ |