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
node_modules/ |
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
MathJax.Hub.Register.MessageHook("End PreProcess", function () { | |
[].slice.apply(document.querySelectorAll("script[type^=math]")).forEach(function (s) { | |
var mml = MathJax.InputJax.TeX.Parse(s.innerHTML).mml(); | |
var math = document.createElementNS("http://www.w3.org/1998/Math/MathML", "math"); | |
math.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"); | |
// tricks toMathML extension | |
mml.parent = {}; | |
var mathml = mml.toMathML() | |
math.innerHTML = mathml |
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
urlModule = angularModule "url", ["ngRoute"] | |
class Url | |
constructor: (@baseUrl) -> | |
absoluteUrl: (url) -> | |
unless url.match /^(\w+:)?\/\// | |
url = "/#{url}" unless url[0] is '/' | |
url = "#{@baseUrl}#{url}" | |
url |
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
(function () { | |
var replacements = { | |
"α": "\\alpha", | |
"β": "\\beta", | |
"γ": "\\gamma", | |
"δ": "\\delta", | |
"ε": "\\epsilon", | |
"ζ": "\\zeta", | |
"η": "\\eta", | |
"θ": "\\theta", |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
define('BASE', str_replace('index.php', '', $_SERVER['SCRIPT_NAME'])); | |
define('DS', DIRECTORY_SEPARATOR); | |
define('WEBDIR', dirname(__FILE__)); | |
function cache($path, $output=null){ |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: skeleton | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: BaseX Server | |
# Description: Manage BaseX XML Database Server. | |
### END INIT INFO |
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
module.exports = loopify = ([condition, sleep]..., action) -> | |
unless "function" is typeof condition | |
sleep ?= +condition | |
condition = -> yes | |
unless "function" is typeof action | |
throw new TypeError "Invalid callback" | |
sleep = +sleep | |
handle = null | |
start = -Infinity |
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
UPDATE emails SET data = replace(data, "Α", "Α"); | |
UPDATE emails SET data = replace(data, "Β", "Β"); | |
UPDATE emails SET data = replace(data, "Γ", "Γ"); | |
UPDATE emails SET data = replace(data, "Δ", "Δ"); | |
UPDATE emails SET data = replace(data, "Ε", "Ε"); | |
UPDATE emails SET data = replace(data, "Ζ", "Ζ"); | |
UPDATE emails SET data = replace(data, "Η", "Η"); | |
UPDATE emails SET data = replace(data, "Θ", "Θ"); | |
UPDATE emails SET data = replace(data, "Ι", "Ι"); | |
UPDATE emails SET data = replace(data, "Κ", "Κ"); |
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
declare option output:method "json"; | |
let $page := doc("https://en.wikipedia.org/wiki/Mobile_country_code") | |
return | |
<json type="array"> | |
{ | |
for $h4 in $page//div[@id="bodyContent"]//h4 | |
let $country-code := $h4/span[@id]/text()[last()] | |
let $rows := head($h4/following::table)/tr[td] |
OlderNewer