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
[ | |
{ | |
"type": "AssignExprNode", | |
"varName": "$monthDays", | |
"arrayIndex": { | |
"type": "IntNode", | |
"value": "1" | |
}, | |
"expr": { | |
"type": "IntNode", |
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 GuiBitmapCtrl::resizeToImage(%this) | |
{ | |
if (!%this.isAwake()) | |
{ | |
error("GuiBitmapCtrl::resizeToImage can only be called on visible controls."); | |
return ""; | |
} | |
%this.extent = "0 0"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>LaTeX Editor</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
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
local ffi = require "ffi" | |
ffi.cdef [[ | |
bool QueryPerformanceFrequency(int64_t *lpFrequency); | |
bool QueryPerformanceCounter(int64_t *lpPerformanceCount); | |
]] | |
local ptr_freq = ffi.new("int64_t[1]") | |
local ptr_tick = ffi.new("int64_t[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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Key Inspector</title> | |
<style> | |
body { | |
margin: 64px; | |
} |
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
// Copyright (c) 2014, Facebook, Inc. | |
// All rights reserved. | |
// | |
// This source code is licensed under the BSD-style license found in the | |
// LICENSE file in the root directory of this source tree. An additional grant | |
// of patent rights can be found in the PATENTS file in the same directory. | |
$CSS_DIRECTION_INHERIT = "inherit"; | |
$CSS_DIRECTION_LTR = "ltr"; | |
$CSS_DIRECTION_RTL = "rtl"; |
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
local schedule = ts.func "schedule" | |
if _G._TIMER_COUNT == nil then _G._TIMER_COUNT = 0 end | |
if _G._TIMER_TABLE == nil then _G._TIMER_TABLE = {} end | |
function _G._TIMER_FINISH(i) | |
i = tonumber(i) | |
_G._TIMER_TABLE[i]() | |
_G._TIMER_TABLE[i] = nil | |
end |
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
--initialize | |
local timer = require "lua.timer" | |
local setColorFX = ts.func("FxDTSBrick", "setColorFX") | |
local fakeKillBrick = ts.func("FxDTSBrick", "fakeKillBrick") | |
local setColor = ts.func("FxDTSBrick", "setColor") | |
local group = SimSet("BrickGroup_46342") | |
local width, height = 64, 128 | |
local grid = {} |
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
local setColor = ts.func("FxDTSBrick", "setColor") | |
local group = SimSet("BrickGroup_46342") | |
local width, height = 128, 128 | |
local grid = {} | |
for x = 1, width do | |
grid[x] = {} | |
for y = 1, height do |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
#canvas { | |
background-color: black; | |
} | |
</style> | |
</head> |