This file contains hidden or 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 page_ex_menu() { | |
$items = array(); | |
$items['admin/PageEx'] = array( | |
'title' => 'Page Example Title', | |
'description' => 'Page Decription', | |
// 'page callback' => 'nat', | |
'page callback' => 'drupal_get_form', | |
'page arguments' => array('natform'), |
This file contains hidden or 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
name=Page Example | |
description = test module | |
core=6.x | |
version=0.1 |
This file contains hidden or 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
ghci> [1,2,3] | |
[1,2,3] | |
ghci> ["foo","bar","string"] | |
["foo","bar","string"] | |
ghci> [True,False] | |
[True,False] | |
-- enumeration notation | |
ghci> [1..5] | |
[1,2,3,4,5] |
This file contains hidden or 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
<html> | |
<head> | |
<title>Select Example</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript"> |
This file contains hidden or 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
<? | |
function content_timelock_link_alter(&$links, $node, $comment = NULL) { | |
global $user; | |
$have_access = in_array('moderator',array_values($user->roles) ) || $user->uid==1; | |
$diff_time = time() - $comment->timestamp; | |
$time_limit = variable_get('content_timelock_live_time',24); | |
if ( $diff_time > $time_limit*60 && !$have_access && variable_get('content_timelock_disable_alter_button',false) == true) { | |
unset($links['comment_edit']); |
This file contains hidden or 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 genesis_siamensis_preprocess_page(&$vars, $hook) { | |
if(empty($vars['section_class'])) { | |
$section = 'front_page'; | |
$vars['section_class'] = 'class="body front_page '. safe_string('section-'. $section) .'"'; | |
} | |
} | |
?> |
This file contains hidden or 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
/* $Id: style.css,v 1.1.2.9 2009/05/22 08:46:11 jmburnz Exp $ */ | |
/** | |
* @file style.css | |
* | |
* Use this file to override the Genesis core modular styles | |
* (such as the HTML elements in typography.css), module CSS | |
* and other Drupal styles. Anything that doesn't fit logically | |
* into page.css, nodes.css, blocks.css or comments.css can go here. | |
*/ |
This file contains hidden or 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 | |
?> | |
<script type="text/javascript"> | |
function test() { | |
var selected = $("#shortcut-menu-id option:selected"); | |
var output = ""; | |
if(selected.val() != 0){ |
This file contains hidden or 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 getHash() { | |
$base=1000000; | |
$result = db_query_range('SELECT max(nid)+1 as nextId from {personal}', 0, 1); | |
$offset= db_fetch_object($result)->nextId; | |
$number=$base+$offset; | |
$out = ""; | |
$codes = "abcdefghjkmnpqrstuvwxyz23456789ABCDEFGHJKMNPQRSTUVWXYZ"; | |
while ($number > 53) { |
This file contains hidden or 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 org.springframework.beans.factory.InitializingBean | |
import org.zeromq.ZMQ | |
class ParseService implements InitializingBean { | |
def pullSocket | |
def pubSocket | |
def running = true | |
def pollingRate = 200 | |
OlderNewer