Skip to content

Instantly share code, notes, and snippets.

function smarty_function_myshoes_list
{
$tag = '<option value="%s">%s</option>';
$root = XCube_Root::getSigleton();
$handler = Legacy_Utils::getModuleHandler('page', 'shoes');
$cri = Xcck_Utils::getListCriteria('shoes');
$cri->add(new Criteria('uid', $root->mContext->mXoopsUser->get('uid')));
$objs = $handler->getObjects($cri);
@kilica
kilica / DrawCardsTemplate
Last active October 16, 2018 09:20
トランプのデッキを引く JS の雛形
<html>
<head>
<!-- 以下の showCards() function を実装すること -->
<script type="text/javascript">
function showCards(size, serial) {
return "S1";
}
</script>
</head>
@kilica
kilica / InDesignTextFrame.js
Last active December 4, 2016 14:33
Javascript for To InDesign Text Frame from JSON
function getPowers()
{
// 元データとなる json ファイルを指定
filepath = "/Users/kilica/6-1-Powers.json";
fileObj = new File(filepath);
flag = fileObj.open("r");
if (flag == true) {
powerText = fileObj.read();
<?php
$list = new RandomStringList(1000, 4);
$list->output();
class RandomStringList
{
// remove l,I,O,0,1
const CHARACTERS = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789";