text
stringlengths
5.97k
41.2k
const TokenStream = require('./lib/token-stream'); const AST = require('./lib/taxonomy'); // Type names const NULL = 'null'; const WORD = 'word'; const IDENT = 'ident'; const PUNCT = 'punct'; const NUMBER = 'number'; const STRING = 'string'; const VARIABLE = 'variable'; const VERSION = 'version'; // End of statement ...
'use strict'; //dungeon_1 const barrier_walls_of_the_dungeon_1 = { x: 0, y: 0, width: 575, height: 575 }; const town_of_the_dungeon_1 = { x: 0, y: 575, width: 210, height: 193 }; const barriers_of_the_dungeon_1 = [ barrier_walls_of_the_dungeon_1, town_of_the_dungeon_1 ]; /...
/* eslint-disable react/no-multi-comp */ import React, { Fragment, Component } from "react"; import PropTypes from "prop-types"; import { isEqual } from "lodash"; import styled from "styled-components"; import Actions from "components/Actions"; import ShippingAddressCheckoutAction from "components/ShippingAddressChecko...
const fs = require("fs"), config = require("../config/config.json"), chalk = require("chalk"), busboy = require("connect-busboy"), randomstring = require("randomstring"), getSize = require("get-folder-size"), diskUsage = require("diskusage"), emoji = require("../misc/emoji_list...
/********************************************************************************************** * Filename : server.js * Author : <NAME> * Date : 26-07-2018 * Description : Chat Server. ***********************************************************************************************/ var fs = req...
import React, { Component, Suspense } from 'react'; import { connect } from 'react-redux'; import { withTranslation } from 'react-i18next'; import { getMe, getVideoChat } from './selectors/chatChannel'; import { OpenVidu } from 'openvidu-browser'; import log from 'electron-log'; import capitalize from 'capitalize-the-f...
class Picture{ constructor(state, pixels){ this.state = state; this.width = state.tilesx * 8; this.height = state.tilesy * 8; this.pixels = pixels; } static empty(state, color){ let pixels = new Array(state.tilesx * 8 * state.tilesy * 8).fill(color); return ne...
import { api, apihelper } from './api'; import { meta } from './meta'; import { descriptor } from './descriptor'; import { instances } from './instances'; Module.ensureInitialized('libmacho.dylib'); var getsectiondata_ptr = Module.findExportByName('libmacho.dylib', 'getsectiondata'); var getsectiondata = new NativeFun...
var NAVTREE = [ [ "Tizen Native API", "index.html", [ [ "The Basics of Tizen Native API Reference", "index.html", null ], [ "Native API Reference", "modules.html", "modules" ] ] ] ]; window.onload = function () { var current_path = window.location.pathname; var native_or_web = current_path.indexOf(...
const headers = new Headers({ "Accept": "application/json", "X-Requested-With": "XMLHttpRequest", "X-CSRF-TOKEN": $('input[name="_token"]').val() }); $(function() { moment.locale('es'); $('#date_to_search').datepicker({ language: 'es', format: "yyyy-mm", viewMode: "months", minViewMode: "month...
//The absolute legend being the code for the vertex shader which is the one computing the position and stuff for one object const vertex = `#version 300 es in vec2 position; uniform float amountX; uniform float lightness; uniform float threshold; uniform mat3 projection; uniform mat3 rotateZ; uniform mat3 rotationOff...
// Detail product slick $('#multiple-items').slick({ infinite: true, speed: 300, slidesToShow: 1, slidesToScroll: 1, autoplaySpeed :3000, pauseOnFocus: true, pauseOnHover: true, adaptiveHeight : false, asNavFor: "#thumbnail-slick", prevArrow:"<button type='button' class='slick-bt...
import * as d3 from 'd3' import _ from 'lodash' import { viewportEvent, didPickLayer, NodeEvents, $markers, $markerStore, onPickHashTag } from './store' import { $markerSelectionStore, $markerSelection } from './store' import { CarteSocket } from './carte-ws' import { ContourColors, EXTENTS_EN } from './consts' con...
/** Copyright 2019 <NAME> Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
import React from 'react' import PropTypes from 'prop-types'; import PureComponent from './PureComponent'; import {CohortSelector} from "./CohortSelector"; import PathwayScoresView from "./PathwayScoresView"; import '../css/base.css'; import HoverGeneView from "./HoverGeneView"; import mutationVector from "../data/muta...
import React from 'react'; import { findNodeHandle, Platform, StyleSheet } from 'react-native'; import ReanimatedEventEmitter from './ReanimatedEventEmitter'; // @ts-ignore JS file import AnimatedEvent from './reanimated1/core/AnimatedEvent'; // @ts-ignore JS file import AnimatedNode from './reanimated1/core/AnimatedNo...
const electron = require('electron'); const { ipcRenderer } = electron; const terminal = document.getElementById('terminal'); const terminal_resize = document.getElementById('terminal-resizer'); const content = document.getElementById('content'); const lineNums = document.getElementById('lineNums'); const text = docu...
// @@@LICENSE // // Copyright (c) 2010-2013 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 // // Unless require...
import React, { PureComponent } from 'react'; import { stringify } from 'qs'; import { Table, DatePicker, Input, Button, Divider, InputNumber, message, Spin, Checkbox, Icon, Tabs, Row, Col, Modal, Select } from 'antd'; import { connect } from 'dva'; import moment from 'moment'; import { routerRedux } from 'dva/router';...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
import * as math from '../../../math'; import { trueify, falsify, removeFromArray, clearArray, MAX_INT, assign, defaults } from '../../../util'; import Heap from '../../../heap'; import defs from './texture-cache-defs'; import ElementTextureCacheLookup from './ele-texture-cache-lookup'; const minTxrH = 25; // the size...
const fs = require('fs'); function readdirAsync(path) { return new Promise(function (resolve, reject) { fs.readdir(path, function (error, result) { if (error) { reject(error); } else { resolve(result); } }); }); } // Game specific code. var baseY = 256 - 30; var tx = 2; v...