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 showMore() { | |
document.getElementById("more-text").hidden = false; | |
} | |
alert("heheh"); |
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
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(1337, "127.0.0.1"); |
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
# ***** BEGIN LICENSE BLOCK ***** | |
# Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
# | |
# The contents of this file are subject to the Mozilla Public License Version | |
# 1.1 (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# http://www.mozilla.org/MPL/ | |
# | |
# Software distributed under the License is distributed on an "AS IS" basis, | |
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
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
var map = {0: ' ', 1: '.', 2: 'abc', 3: 'def', 4: 'ghi', 5: 'jkl', 6: 'mno', 7: 'pqrs', 8:'tuv', 9:'wxyz'}; | |
var number = 4878366; | |
var out = ''; | |
var endl = '\n'; | |
function getPerms(num, str, map) { | |
if (num == 0) { | |
out += str + endl; | |
} else { |
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
{ | |
"status":"ok", | |
"data":{ | |
"data":{ | |
"pubonline":{ | |
"title":"Wikipedia", | |
"day":"", | |
"month":"", | |
"year":"", | |
"inst":"Wikimedia Foundation", |
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
DEPTH = ../../.. | |
topsrcdir = @top_srcdir@ | |
srcdir = @srcdir@ | |
VPATH = @srcdir@ | |
include $(DEPTH)/config/autoconf.mk | |
MODULE = simple | |
XPI_NAME = simple | |
LIBRARY_NAME = simpletest |
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
<div data-extgroup="section" data-extid="head"> | |
<div class="control-group"> | |
<div class="controls"> | |
<label for="{{=it.uid}}_title">{{= it.strings.SUBJECT }}</label> | |
<input type="text" class="discreet title" name="title" id="{{=it.uid}}_title"/> | |
</div> | |
</div> | |
<div class="control-group"> | |
<div class="controls"> | |
<label for="{{=it.uid}}_location">{{= it.strings.LOCATION }}</label> |
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
<days> | |
<dayContext type="format"> | |
<dayWidth type="abbreviated"> | |
<day type="sun">Sun</day> | |
<day type="mon">Mon</day> | |
<day type="tue">Tue</day> | |
<day type="wed">Wed</day> | |
<day type="thu">Thu</day> | |
<day type="fri">Fri</day> | |
<day type="sat">Sat</day> |
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
<div itemscope itemtype="http://schema.org/Product"> | |
<img itemprop="image" src="dell-30in-lcd.jpg" /> | |
<span itemprop="name">Dell UltraSharp 30" LCD Monitor</span> | |
<div itemprop="aggregateRating" | |
itemscope itemtype="http://schema.org/AggregateRating"> | |
<span itemprop="ratingValue">87</span> | |
out of <span itemprop="bestRating">100</span> | |
based on <span itemprop="ratingCount">24</span> user ratings | |
</div> |
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.check = (composition) -> | |
if composition.type is type | |
if _(composition.params).isEqual options.params | |
return true | |
else if composition.params?.forceInit | |
# so the view will be re-initialized everytime | |
return false | |
else | |
# trigger an event in the view that params have changed | |
# so views can handle the change on there own |
OlderNewer