code
stringlengths
2
1.05M
const path = require('path') const webpack = require('webpack') module.exports = { devtool: 'eval', entry: [ 'webpack-hot-middleware/client', './src/index' ], output: { path: path.join(__dirname, 'public'), filename: 'bundle.js', publicPath: '/public/' }, plugins: [ new webpack.H...
var Name = React.createClass({ render: function() { return ( <div className="name"> {this.props.children} </div> ); } }); var NameList = React.createClass({ render: function() { //var nameNodes = this.props.data.map(function (name) { // return ( // <Name> // {...
var requireNodeJsOnly = require; var checkLocation = require('./build/utils/checkLocation.js'); var cache = require('./build/render/cache.js'); var m = {}; m.checkLocation = checkLocation; m.superagentPlugin = require('./build/exports/superagentPlugin.js'); m.extend = require('./build/exports/extend.js'); m.render =...
import React from 'react'; import PropTypes from 'prop-types'; import WixComponent from '../../BaseComponents/WixComponent'; import Text from '../../Text'; import s from './ProgressBar.scss'; class ProgressBar extends WixComponent { static propTypes = { progress: PropTypes.number.isRequired }; render() { ...
var express = require('express'); var router = express.Router(); var currency = require('simple-currency-conversion')({openExchangeRatesAppId: process.env.OPEN_EXCHANGE_KEY}); var convertAmount = currency.convertCurrency; var conversionRate = currency.conversionRate; var transactions = require('../public/javascripts/tr...
import React, { PropTypes } from 'react' import _ from 'lodash' import { SHAPE_RADIUS, HEX_RADIUS, SIN_60 } from 'data/constants' import { Hex } from 'components' const Hexes = ({ blackElements, hexes, onHexClick, x, y, whiteElements }) => { return ( <g> { _.map(hexes, (row, yIndex) => ( ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } } var _functionalCurry = require('../functional/...
'use strict'; var React = require('react'); var ReactDOMServer = require('react-dom/server'); var beautifyHTML = require('js-beautify').html; var assign = require('object-assign'); var path = require('path'); var _escaperegexp = require('lodash.escaperegexp'); var DEFAULT_OPTIONS = { doctype: '<!DOCTYPE html>', b...
var mongoose = require('mongoose'); var PicSchema = require('../schemas/pics') var Pics = mongoose.model('Pics', PicSchema) module.exports = Pics
angular .module('demo', ['ngAnimate', 'AutoCompletePlaces']) .controller('DemoController', ['$scope', function ($scope) { 'use strict'; $scope.created = false; $scope.loading = false; $scope.error = false; $scope.jobOffer = { lo...
"use strict"; const teacher = require("./teacher"); const student = require("./student"); const dialogs = require("./dialogs"); const logger = require("./logger"); const { ipcRenderer } = require("electron"); if (!location.hostname) { ipcRenderer.send("worker.finish", 1); return; } window.$("input[type=password]")....
version https://git-lfs.github.com/spec/v1 oid sha256:04880f18afafe11fe61b19fc9ab9efbe31aa710704482dcc79caec65cc4a582d size 109581
version https://git-lfs.github.com/spec/v1 oid sha256:f06e63c1d550fb75ba4f8cf2f9c7e2d1e794fa6cb99c140975e201185915dd66 size 9171
version https://git-lfs.github.com/spec/v1 oid sha256:39d6f5a3595b14ffca1dc34862420d9a65665c026525f278be4da0936d174bfa size 5161
app.controller("jvCtrl", function(trascender,$scope){ self = this; if(typeof user!="undefined"){ this.user = user; this.user.isAdmin = function(){ if(this.doc && this.doc.roles && (this.doc.roles.indexOf("admin")>-1)){ return true; }else{ return false; } } this.user.service_update_ext = t...
'use strict' // eslint-disable-next-line if (typeof $1 !== 'undefined') $1 = arguments.callee.caller.arguments[0] const test = require('tape') const fresh = require('import-fresh') const pino = require('../browser') const parentSerializers = { test: () => 'parent' } const childSerializers = { test: () => 'child'...
#!/usr/bin/env node 'use strict'; var Path = require('path'); require('shelljs/global'); set('-e'); mkdir('-p', 'web_deploy') cp('-R', 'web/*', 'web_deploy/'); exec('npm run swagger bundle -- -o web_deploy/swagger.json'); exec('npm run swagger bundle -- --yaml -o web_deploy/swagger.yaml'); // var SWAGGER_UI...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import Api from 'libs/api'; import history from 'libs/history'; import PropTypes from 'prop-types'; import config from '../config.json'; const context = { api: Api.create({ baseUrl: config.graphqlServer }) }; class R...
var gulp = require('gulp'); var del = require('del'); var config = require('../config').clean; gulp.task('clean', function() { del.sync(config.target); });
export const fakeApiTimeout = 2000; export const ___PW = 'us--exp'; export const divider = '-'; export const splitter = '@'; export const jwtSecret = 'you-probably-think-it-will-be-simple?'; export const paymentReceiver = 410015453938752; export const jwtStorageName = 'JWT_TOKEN'; // ================================...
loader.define('ixtaat/base', ['ixtaat/config', 'ixtaat/core'], function (config, core) { /*********************************************************************************************************************************** ********************************************************************************************...
var rule = require('../rule'); // dt 記述リストの用語部分 module.exports = { autoClose: 'dt,dd,/*', parent: 'dl', contents: { ok : 'dialog', phrasing: true }, rules: [ rule.nextNodeIs('dd,dt,template') ] };
module.exports = function(grunt) { grunt.initConfig({ concat: { options: { separator: ';' }, dist: { src: ['js/src/*.js'], dest: 'js/dist/script.main.js' } }, uglify: { dist: { src: ['js/dist/script.main.js'], dest: 'js/dist/script.main.min.js' ...
exports.debug = false; exports.coreDefaults = { theme: 'default', language: 'en', usesExternalData: false };
version https://git-lfs.github.com/spec/v1 oid sha256:628adca2a275371cb89acc9fd98a800e3e3018c49bb564eca4ac803287870826 size 62994
/* global requirejs */ requirejs.config({ paths: { } });
import React, { PureComponent } from "react"; import studentReporturl from "../../util/student-report-url"; export default class StudentReportLink extends PureComponent { render() { const {student, started, activityIndex} = this.props; const studentId = student.get("id"); const name = student.get("name")...
var webpackCfg = require('./webpack.config'); // Set node environment to testing process.env.NODE_ENV = 'test'; module.exports = function(config) { config.set({ basePath: '', browsers: [ 'PhantomJS' ], files: [ 'test/loadtests.js' ], port: 8000, captureTimeout: 60000, singleRun: tr...
"use strict";exports.gold=require("./gold"),exports.findGoldBySource=require("./findGoldBySource");
//24/07/2015 - desde ahora "clasificacion horas " es "adicionales" var conn = require('../config/db').conn; module.exports = { getAll: getAll, insert: insert, getById: getById, update: update, del: del, getAllActivos: getAllActivos } function getAll(cb){ conn('select * from clasificacion_hora', cb); } functio...
$(function () { // Copy text action $(".translations .actions .copy").click(function (e) { e.preventDefault(); var row = $(this).parents("tr") , original_text = row.find(".original textarea").val(); row.find(".translation textarea").val(original_text.trim()).trigger("change"); }); // avoid...
// BASE SETUP // ============================================================================= var dotenv = require('dotenv'); dotenv.load(); var request = require('request'); var cheerio = require('cheerio'); var logger = require('morgan'); var path = require('path'); var favicon = require('serve-favicon'); var ex...
describe("About Arrays", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe("object"); //A mistake? - http://javascript.crockford.com/remedial.html expect(emptyArray.length).to...
// @flow import assign from 'object-assign'; const PARTIAL_MATCH = '@@redux-saga-test-plan/partial-matcher'; export function wrapEffectCreator(effectCreator: Function): Function { return function wrappedEffectCreator(...args: Array<any>): Object { return effectCreator(...args); }; } export function like(prov...
import { NavigationActions } from 'react-navigation' const to = function (arg) { return NavigationActions.navigate({ routeName: arg.name, params: arg.params, }) } const reset = function (arg) { return NavigationActions.reset({ index: 0, actions: [ NavigationAct...
const chai = require("chai"); const sinon = require("sinon"); global.expect = chai.expect; global.assert = chai.assert; global.sinon = sinon;
var $$ = $$ || {}; $$.Emitter = class Emitter { constructor () { this._itemContainer = new $$.Emitter.ItemContainer(); } /** * @param {String} eventId * @return {Boolean} * @private */ _isEventIdJustANamespace (eventId) { eventId = String(eventId); return !!eventId.match(/^\.[a-z\d]+$/i); } /** ...
/** * Created by jenwest on 11/9/2015. */ angular.module( 'ngBoilerplate.about', [ 'ui.router', 'placeholders', 'ui.bootstrap' ]) .config(function config( $stateProvider ) { $stateProvider.state( 'dracula', { url: '/dracula', views: { "main": { controller: 'DraculaCt...
module.exports = { prefix: 'far', iconName: 'tree', icon: [384, 512, [], "f1bb", "M373.679 338.344l-35.16-44.832c20.236-16.151 24.079-45.619 8.359-66.438l-34.932-46.261c21.067-17.62 23.055-49.355 4.372-69.475l-89.143-96.006c-18.969-20.428-51.352-20.457-70.348 0l-89.143 96.006c-18.704 20.143-16.67 51.876 4.372 69.475l-3...
'use strict'; /* Welcome to the 60fps project! Your goal is to make Cam's Pizzeria website run jank-free at 60 frames per second. There are two major issues in this code that lead to sub-60fps performance. Can you spot and fix both? Built into the code, you'll find a few instances of the User Timing API (window.perf...
//Topology functions var topology = require('./src/topology.js'); exports.vertex_stars = topology.vertex_stars; exports.edges = topology.edges; //Mesh repair var repair = require('./src/repair.js'); exports.fuse_vertices = repair.fuse_vertices; //Isosurface functions exports.marching_cubes = require('./src/mar...
/** * View unittype * * Copyright (C) 2013 Emay Komarudin * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ...
var mongoose = require('mongoose'); var BaseModel = require("./base_model"); var Schema = mongoose.Schema; var ObjectId = Schema.ObjectId; var config = require('../config'); var _ = require('lodash'); var TopicSchema = new Schema({ title: { type: String }, description: {type: String}, content: { ...
module.exports = { setScene: function(value) { this.scene = value; }, getScene: function() { return this.scene; }, getObjectByUUID: function(uuid) { return this.scene.getObjectByProperty('uuid', uuid, true); }, setCSS3DScene: function(value) { this.css3DSce...
(function(window) { function BaseModel(json) { if (json) { this.fromJson(json); } } BaseModel.prototype.initialize = function() { }; BaseModel.prototype.fromJson = function(json) { var ignored = this.ignoredFields(); var self = this; Object.keys(json).forEach(function(field) { ...
'use strict'; var React = require('React'); function render() { return <div/>; } function Pure(props) { return <div className={props.foo} />; } class Impure extends React.Component { componentWillMount() { // such impure } render() { return <div className={this.props.foo} />; } } class ImpureWi...
'use strict' import {makeAPIRequest, cancelAPIRequest, APIs} from './utils/api' import {send} from './utils/post-message' import {config} from './config' const sendToPopup = send.bind(null, 'background', 'popup') const i18n = config.i18n.en const colors = config.colors const state = { apiId: localStorage.getItem('a...
import Component from '@ember/component'; import layout from './template'; export default Component.extend({ layout, tagName: 'select', classNameBindings: [':contact-item'] });
$(function() { var url = 'http://127.0.0.1:8080'; var socket = null; initUsers(); $('#push').on('click', function() { pushNews(); return false; }); $('#switchUser').on('change', function() { $('#user').val($(this).val()); reconnectSocket($('#user').val()); }); $('#setting').on('cl...
import React from 'react'; import Form from '../app/form/Form'; import TextGroup from '../app/form/TextGroup'; import Submit from '../app/form/Submit'; export default class Login extends React.Component { render() { return ( <Form handleSubmit={ this.props.handleLogin } title=...
version https://git-lfs.github.com/spec/v1 oid sha256:f3c37beb17892794674ae524e77cd3ed2f0a33ce46ce0aab528fed89edc22dea size 2059
version https://git-lfs.github.com/spec/v1 oid sha256:fad9e97cc0f748813c9ddeb8002421630c966df54759a6a76f1f3445c0cf7bea size 8240
/** * Created with WebStorm. * Date: 2/8/2014 * Time: 2:40 AM * @author Adam C. Nowak * @description */ /*jslint node: true */ "use strict"; var util = require('util'); var AbstractError = function (message, constr) { Error.captureStackTrace(this, constr || this); this.message = message || 'Error'; }...
var boilerplateApp = angular.module('boilerplateApp',[]); /* -------------------------------------------------------------------------- SERVICE -------------------------------------------------------------------------- */ boilerplateApp.service('appService',function($http){ // P...
var React = require('react'); var PropTypes = React.PropTypes; var keyboardInputHelpers = require('../utils/keyboardInputHelpers'); var wordStore = require('../stores/wordStore'); var WordContainer = require('./WordContainer'); var Input = React.createClass({ propTypes: { add: PropTypes.func.isRequired, remove: P...
"use strict"; define(['view/BaseFiltersView', 'templates'], function(BaseFiltersView, templates) { return BaseFiltersView.extend({ template: templates['app/templates/top_nav.hbs'], modelEvents: { 'change': 'render' }, ui: { s...
/** * Created by zhengHu on 16-10-8. * 单条信息展示组件 */ import React from 'react'; import TextLine from 'components/settlement/TextLine'; import TextSingleLineRed from 'components/settlement/TextSingleLineRed'; class SettlementTextList extends React.Component { getAttribute(){ let classNames=['cell','content']; ...
'use strict'; var Filter = require('./is-on'); var FlipperService = require('suite-flipper-js'); describe('is-on filter', function() { var filter; var flipperService; beforeEach(function() { flipperService = new FlipperService(['bi', 'dummy']); filter = new Filter(flipperService); }); describe('#...
const authorisation = require('../services/authorisation') const getClaimsListAndCount = require('../services/data/get-claim-list-and-count') const claimStatusEnum = require('../constants/claim-status-enum') const displayHelper = require('../views/helpers/display-helper') const applicationRoles = require('../constants/...
'use strict'; var cjs = require('pure-cjs'); var relative = require('path').relative; var Promise = require('davy'); var whenReadFile = Promise.wrap(require('fs').readFile); var src = require('aster-src'); module.exports = function (options) { if (typeof options === 'string') { options = {input: options}; } if ...
define(function () { 'use strict'; var effect = () => {}; effect = function() { console.log('effect'); }; var alsoEffect = () => {}; alsoEffect = effect; alsoEffect(); });
angular.module("nh") .controller("RequestDetailControl", [ "$http", "apiUrl", "$routeParams", "LandingFactory", function ($http, apiUrl, $routeParams, LandingFactory) { const reqCtrl = this; reqCtrl.currentUser = LandingFactory.getUser() $http.get(`${apiUrl}/house_requests/${$routeParams.requestId}...
'use strict'; /** * Module dependencies. */ var Uuid = require('node-uuid'); /** * Article Schema */ var Article = { identity: 'article', connection: 'postgreDefault', autoPK: false, autoCreatedAt: true, attributes: { id: { type: 'text', primaryKey: true, unique: true, requir...
/** * Configurable deep selects * Not requires jQuery or other libs * @author Sergey Sedyshev * @repo https://github.com/io-developer/js-deepselect * @see find more on github https://github.com/io-developer */ var deepselect = function( options ) { return deepselect.create(options); }; deepselect....
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import {GoogleMap, Marker, withGoogleMap} from 'react-google-maps'; import MarkerClusterer from 'react-google-maps/lib/components/addons/MarkerClusterer'; import * as _ from 'lodash'; class ClickMap extends React.Component { static get pr...
$(document).ready(function() { // Masonry setup var $container = $('.masonry-container'); $container.imagesLoaded( function () { $container.masonry({ columnWidth: '.item', itemSelector: '.item' }); }); // Button setup $('.buttonGoBack').click(function () { window.history.back(); }); // Sideba...
var _config = require('./__config'); var project = process.argv[2]; if(!project){ console.log('ÇëÊäÈëÏîÄ¿Ãû£¡'); return; } var prjconfig = _config.projects[project]; if(!prjconfig){ console.log('ÅäÖÃÎļþÀïÏîÄ¿ '+project+' ²»´æÔÚ£¬ÇëÊäÈëÕýÈ·µÄÏîÄ¿Ãû£¡'); return; } require('./mokdoc/main').main('', prjconfig, false...
import Head from 'next/head' import Image from 'next/image' import Link from 'next/link' import styles from '../styles/Home.module.css' export default function Home() { return ( <div className={styles.container}> <Head> <title>Create Next App</title> <meta name="description" content="Genera...
(function (window, document) { "use strict"; // Duck-Punch Lodash with instrumented version of itself so we can monitor // performance of each function. var prop; var object = window._; // We loop over each property in the object. Objects behave like maps, and // we can iterate over them the same as arr...
/** * Created by Jim on 2015/1/25. */ angular.module('app.overview').controller('OverviewController', ['$scope', 'OverviewService', function($scope, OverviewService) { $scope.routeNum = 0; $scope.totalRoute = 1; $scope.serviceNum = 0; $scope.totalService = 1; $scope.msgInfo = [{ color: 'bg-red', val...
/* * fis * http://web.baidu.com/ */ 'use strict'; exports.name = 'release'; exports.desc = 'build and deploy your project'; exports.register = function(commander){ function watch(opt){ var root = fis.project.getProjectPath(); var timer = -1; var safePathReg = /[\\\/][_\-.\s\w]+$/i;...
'use strict' const input = [{ key: '1', value: '1' }, { key: '2', value: '2' }] let db exports.setup = function (test, testCommon) { test('setup', function (t) { t.plan(2) db = testCommon.factory() db.open(function (err) { t.ifError(err, 'no open() error') db.batch(input.map(entry => ({ ....
require("smoosh").make("config.json");
var express = require('express'); var path = require('path'); var bodyParser = require('body-parser'); var data = require('./lib/data'); var notifications = {}; var MAX_MESSAGES = 50; var app = new express(); app.set('port',3000); app.use(bodyParser.json()); app.use(express.static(path.join(__dirname,'public'))); app...
import React from 'react'; import { shallow } from 'enzyme'; import Contributor from '../Contributor'; describe('Contributor', () => { it('renders', () => { const wrapper = shallow(<Contributor />); expect(wrapper.find("li.contributor")).toHaveLength(1); }); it('renders (using exists())', () => { con...
const {getNativeInteger} = require("./helpers"); class Station { constructor(attributes) { this.attributes = attributes; } stationId() { return getNativeInteger(this.attributes.staId); } stopId() { return getNativeInteger(this.attributes.stpId); } toJSON() { return { id: this.sta...
'use strict'; var express = require('express'), cluster = require('cluster'), net = require('net'), sio = require('socket.io'), sio_redis = require('socket.io-redis'), nconf = require('nconf'), passport = require('passport'); // load config and defaults require('./config')(); var port = nconf...
'use strict' // Template version: 1.2.3 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: {}, // Various Dev Server settings host: 'localhost', ...
/* eslint global-require: "off" */ /* eslint no-console: "off" */ import IntlPolyfill from 'intl'; import parse from 'date-fns/parse'; import format from 'date-fns/format'; import enUS from 'date-fns/locale/en-US'; import BaseComponent from './Base'; import { fetchTranslation, replace } from './utils'; export const s...
window.createMarkupMatcher = function (projector, desiredMarkup) { // constants var h = maquette.h; var markupMatchedPrefix = ""; var markupWrong = ""; var markupMissing = desiredMarkup; var markupMatchedSuffix = ""; var achieved = false; var lastMarkup = ""; return { title: "Render the DOM", ...
$(document).foundation(); $(function() { $('.button-like') .bind('click', function(event) { $(".button-like").toggleClass("liked"); }) });
export default { input: 'src/templiteral.js', output: [{ file: 'dist/templiteral.es.js', format: 'es' }, { file: 'dist/templiteral.cjs.js', format: 'cjs' }, { file: 'dist/templiteral.umd.js', format: 'umd', name: 'templit' }, { file: 'dist/templiteral.js', format: 'iife', ...
'use strict'; var assert = require('assert'); var Options = require('..'); var app; describe('#enabled', function() { beforeEach(function() { app = new Options(); }); describe('#enable()', function() { it('should set the value to true', function() { app.enable('a'); assert.equal(app.options...
/** * @license MelonJS Game Engine * @copyright (C) 2011 - 2014 Olivier Biot, Jason Oster, Aaron McLeod * http://www.melonjs.org * * melonJS is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license.php */ (function () { /** * The built in window Object * @external wind...
'use strict'; var basicAuth = require('basic-auth') var P = require('bluebird') var bodyParser = require('body-parser') //var debug = require('debug')('ping.ms:admin:worker') var flash = require('connect-flash') var cookieParser = require('cookie-parser') var express = require('express') var session = require('express-...
var SB_Constants = require('SB_Constants'); cc.Class({ extends: cc.Component, properties: { splashLabel: { default: null, type: cc.Label }, }, // use this for initialization onLoad: function () { cc.log("[Splash] onLoad."); this.splashLabel....
var CreditosLayer = cc.Layer.extend({ init:function() { this._super(); if ('touches' in sys.capabilities) this.setTouchEnabled(true); else if ('mouse' in sys.capabilities) this.setMouseEnabled(true); var tela = cc.Director.getInstance().getWinSiz...
var path = require('path'); var rimraf = require('rimraf'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var WebpackMd5Hash = require('webpack-md5-hash'); // Clean dist rimraf.sync(path.join(__dirname, 'dist')); var baseConfig = { resolve: { root: [__dirname], }, ...
import parser from 'postcss-selector-parser'; import exists from '../exists'; import isMixin from '../isMixin'; import plugin from '../plugin'; import {IE_5_5, IE_6} from '../dictionary/browsers'; import {SELECTOR} from '../dictionary/identifiers'; import {RULE} from '../dictionary/postcss'; import {HTML} from '../dict...
/* Move this class to another js file. */ var OLS = (function(data){ //-- callbacks for the methods... var calculate = function(data){ var xMean, yMean, n, alpha, beta, sXiSquared, sXiYi, resXi; n = data.length; xMean = 0; yMean = 0; sXiSquared=0; sXiYi = 0; ...
'use strict'; var _ = require('lodash'); var Search = require('./search.model'); var request = require('request'); // Get list of searchs exports.index = function(req, res) { Search.find(function (err, searchs) { if(err) { return handleError(res, err); } return res.json(200, searchs); }); }; // Get a sin...
/** * Created by apetrov on 10.01.2018. */ var module = angular.module('customServices', []); module.service('sampleSvc', ['$window', 'modalSvc', function($window, modalSvc){ this.showDialog = function(message, title){ if(title){ modalSvc.showModalDialog({ title: title, ...
import { reads } from '@ember/object/computed'; import EmberObject, { computed } from '@ember/object'; import config from 'ember-bootstrap-docs/config/environment'; export default EmberObject.extend({ id: null, title: null, description: null, className: reads('title'), nameSpace: 'Components', bsUrl: nul...
version https://git-lfs.github.com/spec/v1 oid sha256:7c2fc33702273a2bc1f4a72edd53da4acce65624b0ece3562486ffea53ca74de size 7102
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './root-ref.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }
exports.names = ['.mostwooted', '.mostawesomed', 'mostawesomed']; exports.hidden = false; exports.enabled = true; exports.matchStart = false; exports.handler = function(data) { db.all('SELECT author, title, sum_up FROM (SELECT songid, sum(upvotes) as sum_up FROM PLAYS GROUP BY songid ORDER BY sum(upvotes) DESC LIMI...
/* MENU HANDLING */ var selected_menu = $(".cocoreation_create_room_left_menu_selected")[0]; $(document).on("click", ".cocoreation_create_room_left_menu li", function () { if (this == selected_menu) return; var last_input = ".in-" + $(selected_menu).attr("class").split(" ")[0]; if ($(last_input + ...
const swatch = '/colors/GR-33-matte.png'; export default { name: 'GR-33-matte', swatch, filters: ['neutral', 'matte'] };
const fs = require('fs'); const punycode = require('punycode'); const LineBreaker = require('../'); const assert = require('assert'); describe('unicode line break tests', function() { // these tests are weird, possibly incorrect or just tailored differently. we skip them. const skip = [812, 814, 848, 850, 864...
import React from "react"; import PropTypes from "prop-types"; import { Provider } from "react-redux"; import { ConnectedRouter } from "react-router-redux"; import Routes from "../routes"; const propTypes = { store: PropTypes.object.isRequired, history: PropTypes.object.isRequired }; const Root = ({ store, histor...