module lexer
interface LexerState
source: string
current: number
tokens: Token[]
interface Token
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
const encode = encodeURIComponent | |
const url = "https://www.f-list.net/json/getApiTicket.php" | |
const params = `account=${encode(account)}&password=${encode(password)}` | |
const request = new XMLHttpRequest | |
request.onreadystatechange = function () { | |
if (request.readyState === XMLHttpRequest.DONE && request.status === 200) { | |
console.log(request.responseText) | |
} |
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
import querystring from 'querystring' | |
export default function request(url, params) { | |
return new Promise((resolve, reject) => { | |
const paramstring = querystring.stringify(params) | |
const request = new XMLHttpRequest | |
request.onreadystatechange = function () { | |
if (request.readyState === XMLHttpRequest.DONE) { | |
if (request.status == 200) { |
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
<template> | |
<div class='fullscreen bg-color'> | |
<chat></chat> | |
<component :is='currentOverlay' | |
@login-request='loginRequest' | |
@login-success='loginSuccess' | |
@character-selected='characterSelected' | |
@channel-list-clicked='channelListClicked'> | |
</component> | |
</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
<template lang="jade"> | |
.container | |
.calculator | |
.row | |
.result.col-4 0 | |
.row | |
.button-operator.col-1 + | |
.button-operator.col-1 - | |
.button-operator.col-1 * | |
.button-operator.col-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
<template> | |
<body class='container'> | |
<transition name='fade' mode='out-in' appear> | |
<component v-if='currentView' :is='currentView' /> | |
</transition> | |
<transition name='fade' appear> | |
<Loading v-if='loadingMessage'>{{ loadingMessage }}</Loading> | |
</transition> | |
</body> | |
</template> |
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
-- luacheck: globals Def GAMESTATE SCREENMAN | |
local DefaultMods = '4x, overhead, blind' | |
-- format: { <beat>, 'len' or 'end', <len or end time>, <mod string>, <player number (optional, if not here, applies to all players)> } | |
-- example: { 0, 'len', 9999, '*0.5 200% dizzy' } | |
local SongMods = { | |
-- ... | |
} |
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
class Rect { | |
constructor(x, y, w, h) { | |
this.x = x | |
this.y = y | |
this.w = w | |
this.h = h | |
} | |
move(dx, dy) { | |
// ... |
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
import * as pixi from 'pixi.js' | |
import * as util from './util' | |
export const viewWidth = 540 | |
export const viewHeight = 960 | |
export const receptorPosition = viewHeight * 0.889 | |
export const noteSpacing = 300 | |
enum NoteState { | |
active, |
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
.tree-view-resizer { | |
width: max-content; | |
} | |
// hide the resize handle so we don't accidentally break things | |
.tree-view-resize-handle { | |
display: none; | |
} | |
// add some padding for breathing room (optional) |
OlderNewer