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
{ | |
"name": "Detect if an extension installed", | |
"description": "Detect if an extension installed", | |
"version": "0.1", | |
"manifest_version": 2, | |
"permissions": [ | |
"management" | |
], | |
"browser_action": { | |
"default_popup": "popup.html" |
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
// ==UserScript== | |
// @name Trello Lists Show Num Cards | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match https://trello.com/b/* | |
// @copyright 2012+, You | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js | |
// ==/UserScript== | |
setTimeout(function() { |
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
for $speech in (doc()//SPEECH)[1 to 100] | |
let $speaker := $speech/SPEAKER | |
let $lines := $speech/LINE | |
return ( | |
<h2>{$speaker/text()}</h2>, | |
<p>{for $line in $lines return $line/text()}</p> | |
) |
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
{ | |
"options": { | |
"debug": false, | |
"transform-results": { | |
"apply": "raw" | |
}, | |
"constraint": [{ | |
"name": "stars", | |
"range": { | |
"type": "xs:int", |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
xquery version "1.0-ml"; | |
declare variable $deck-counter := map:map(); | |
declare variable $deck := map:map(); | |
declare function local:get-card($num) { | |
let $card := map:get($deck-counter, xs:string($num)) | |
let $_ := xdmp:log(fn:concat("card: ", $card, " $num: ", $num), "debug") | |
return | |
(: call recursively with another rand number, if the |
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
xquery version "1.0-ml"; | |
(: Copyright 2002-2010 Mark Logic Corporation. All Rights Reserved. :) | |
declare namespace feed = "http://marklogic.com/extension/plugin/feed"; | |
import module namespace plugin = "http://marklogic.com/extension/plugin" at "/MarkLogic/plugin/plugin.xqy"; | |
import module namespace info="http://marklogic.com/appservices/infostudio" at "/MarkLogic/appservices/infostudio/info.xqy"; | |
import module namespace infodev="http://marklogic.com/appservices/infostudio/dev" at "/MarkLogic/appservices/infostudio/infodev.xqy"; |
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
<xsl:variable name="comments-for-post" | |
select="ml:comments-for-post(base-uri(.))"/> |
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
<xdmp:import-module href="/model/data-access.xqy" | |
namespace="http://developer.marklogic.com/site/internal"/> |
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
<xsl:copy-of select="xdmp:invoke('twitter.xqy')"/> |
NewerOlder