Sometimes it's necessary to put CSP tags inside JS tags, like:
#[ new test set test = "BLAH" ]#
<script>
var foo = "Hello world";
<script language="cache" method="MakeList2" arguments="myFlag:%String"> | |
&js<console.log("i see #(myFlag)#");> | |
</script> | |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> |
<script language="cache" method="pull" arguments='needle:%String="", haystack:%String="", to:%String=""' returntype="%ListOfDataTypes"> | |
; TODO: Add comments. | |
new return | |
set return = ##class(%ListOfDataTypes).%New() | |
if ($length(needle) && $length(haystack) && $length(to)) { | |
new first, last |
<script language="cache" runat="server"> | |
new demo | |
/* | |
**-------------------------------------------------------------------------- | |
** | |
** Demo settings: | |
** | |
**-------------------------------------------------------------------------- |
<?php | |
class Utility | |
{ | |
public static function foo($arg = '') { | |
echo sprintf('<p>This class is "%s"; it\'s method is "%s"; the arg is "%s"</p>', get_class($this), __FUNCTION__, $arg); | |
} |
<?php | |
if ( ! function_exists('foo_setup')) { | |
function foo_setup() { | |
add_theme_support(...); | |
add_theme_support(...); | |
} |
Sometimes it's necessary to put CSP tags inside JS tags, like:
#[ new test set test = "BLAH" ]#
<script>
var foo = "Hello world";
<hr> | |
<div class="w_row"> | |
<div class="w_col w_C130 Aoff Boff"> </div> | |
<div class="w_col w_C640 w_D980"> | |
<section> | |
<csp:comment>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</csp:comment> | |
<script language="cache" method="lookup" arguments='story:dt.cms.schema.CMSStory=-1' returntype="%String" procedureblock="1"> | |
; Initialize result value: | |
set result = "" | |
; dt.cms.schema.CMSStory? | |
set:($isobject(story)) story = story.%Id() // Get its ID. | |
# Google: | |
export PATH=${PATH}:$HOME/gsutil | |
# http://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows | |
# http://superuser.com/questions/137438/how-to-unlimited-bash-shell-history | |
# https://www.kernel.org/doc/man-pages/online/pages/man3/strftime.3.html | |
export HISTCONTROL=ignoredups:erasedups # no duplicate entries | |
export HISTSIZE=100000 # big big history | |
export HISTFILESIZE=100000 # big big history | |
export HISTTIMEFORMAT="%a %h %d - %r " # timestamps |