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
typeToName = ["gb", "rb", "bb", "yb", "sgb", "srb", "sbb", "syb", "sb", "sub", "td", "tdm", "db", "1eab", "2eab", "sbv", "sbh", "sbc", "pgb", "prb", "pbb", "pyb"]; | |
var bitsPerChar = 14; // 14 bits fit in the CJK character range, 0x4E00 -> 0x9FCF | |
var arrowBits = Math.ceil(Math.log( 20 )/Math.log(2)); | |
var amountBits = Math.ceil(Math.log( 256 )/Math.log(2)); | |
var gameWidth = 11; | |
var gameHeight = 14; | |
var types = typeToName.length; | |
nameToType = []; | |
var i = types; |
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
<h1>{title}</h1> | |
<p>{item}</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
<html> | |
<head> | |
<title>Template</title> | |
</head> | |
<body> | |
<div class="Content"> | |
<h1>Post Title</h1> | |
<p class="Item"></p> | |
<p class="Author"></p> | |
</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
<span id="NotLoggedIn">You are not logged in! Please log in.</span> |
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
{ | |
".Foo": [], | |
".Foo": "ContentWhichYouNeverWillSee" | |
} |
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
<html> | |
<head> | |
<title>foo</title> | |
</head> | |
</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
# get all tweets and the number of likes, which is from another source | |
data | |
from tweets, as tweet | |
zip facebook.likes, as likes | |
# is transformed to | |
from(tweets, (data, tweet) -> data.tweet = tweet) | |
.zip(facebook.likes, (data, likes) -> data.likes = likes) | |
# get all direct messages and bundle the senders last 10 tweets with it | |
from directMessages, as dm |
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
Foo: | |
Bar: | |
class Zar: | |
constructor: -> | |
class Zoo: | |
constructor: -> | |
#or | |
Foo: | |
Bar: | |
Zar: class |
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
withy = (object, props) -> | |
if typeof props == "function" | |
props.apply object | |
else | |
for property, value of props | |
object[property] = value | |
object | |
console.log withy {}, | |
foo: "bar" |
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 json_data = JSON.stringify({ | |
"STATUS_ID is": status, | |
"COMMAND is": command_str.trim(), | |
"RESULT is": result_str | |
}, | |
null, '\n'); |