text stringlengths 3 1.05M |
|---|
"""This module contains the general information for LsServerFsm ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class LsServerFsmConsts:
COMPLETION_TIME_ = ""
CURRENT_FSM_CONFIGURE = "Configure"
CURRENT_FSM_NOP = "n... |
/**
* The ReadOnlyManager manages the database and rendering releated to read only pads
*/
/*
* 2011 Peter 'Pita' Martischka (Primary Technology Ltd)
*
* 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 ... |
# encoding: utf-8
import os
from collections import defaultdict
from bpython import importcompletion
try:
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
except ImportError:
def ModuleChangedEventHandler(*args):
return None
else:
class ModuleChangedE... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('@angular/platform-browser'), require('rxjs'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('angula... |
const fetch = require('node-fetch');
const fs = require('fs');
const crypto = require('crypto');
const json = fs.readFileSync('./member_data.json');
const hexDigest = crypto
.createHmac('md5', '0219370182hd9821hd09823d039d2j032df92j')
.update(json)
.digest('hex');
fetch('http://localhost', {
method: '... |
import React from 'react'
import styled from 'styled-components'
import {
AragonApp,
Button,
EmptyStateCard,
Text,
theme,
IconBlank,
} from '@aragon/ui'
class App extends React.Component {
render() {
const text = 'You seem to not have any content on your wall.'
const icon = <IconBlank width={40} ... |
Grailbird.data.tweets_2016_07 =
[ {
"source" : "\u003Ca href=\"http:\/\/soundhound.com\/\" rel=\"nofollow\"\u003ESoundHound\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ {
"name" : "Annie Lennox",
"screen_name" : "AnnieLennox",
"indices" : [ 59, 71 ],
"id_str" : "20443852",
... |
# -*- coding: utf-8 -*-
# Copyright (C) 2004-2019 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
#
# Authors: Aric Hagberg <hagberg@lanl.gov>
# Loïc Séguin-C. <loicseguin@gmail.com>
# Da... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
const path = require('path');
const { merge } = require('webpack-merge');
const singleSpaDefaults = require('webpack-config-single-spa-react');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const orgName = 'mfe';
const projectName = 'main';
const SHA = pro... |
let menu_expand = false;
const menuButton = document.querySelector('.header__menuButton');
const menu = document.querySelector('.header__navigation');
menuButton.addEventListener('click', () => {
if (menu.classList.contains('header__navigation_active')) {
menu.classList.remove('header__navigation_active')
men... |
import ray
from ray.dashboard.memory_utils import (
ReferenceType, decode_object_ref_if_needed, MemoryTableEntry, MemoryTable,
SortingType)
"""Memory Table Unit Test"""
NODE_ADDRESS = "127.0.0.1"
IS_DRIVER = True
PID = 1
OBJECT_ID = "ZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZg=="
ACTOR_ID = "ffffffffffffffffffffff... |
"""
train mnist by inference qbc loss
"""
import argparse
import os
import time
import torch
from torch.utils.data import DataLoader, Subset
from torchvision import datasets, transforms
# from torchvision.models import resnet18, resnet34, resnet50
from models.models import *
parser = argparse.ArgumentParser()
parser... |
const User = require("../models/user")
const renderRegister = (req, res) => {
res.render("users/register")
}
const register = async (req, res, next) => {
try {
const { username, email, password } = req.body;
const user = new User({ username, email });
const registeredUser = await User... |
/*!
* Vue.js plugin for Masonry layouts
* https://github.com/shershen08/vue-masonry/
* file:vue-masonry-plugin.js
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("vue-masonry-plugin",[],e):"object"==typeof exports?exports["vue-m... |
import { takeLatest, call, put } from 'redux-saga/effects';
import request from 'utils/requestBeApi';
import currentUser from 'utils/userService';
import { setClient } from 'containers/Client/actions';
import {
sendAuthSuccess,
sendAuthError,
sendSignUpSuccess,
sendSignUpError,
} from './actions';
import { SEN... |
/**
* TEAM: frontend_infra
*
* @flow strict-local
*/
import type {AttachmentType} from "../../document/AttachmentTypes";
import ImageScaler from "../ImageScaler";
import FileFormat from "../../constants/FileFormatConstants";
// Scales down the localFile that are of Image format in Attachment
export default functio... |
// Copyright (c) YugaByte, Inc.
import { connect } from 'react-redux';
import { RestoreBackup } from '../';
import { restoreTableBackup, restoreTableBackupResponse } from '../../../actions/tables';
import { isNonEmptyArray, isNonEmptyObject } from "../../../utils/ObjectUtils";
import { getPromiseState } from '../../..... |
import { baseTypes } from './types/base';
import { advancedTypes } from './types/advanced';
export const types = {
...baseTypes,
...advancedTypes
};
|
# 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
# distrib... |
/******* ***************** ********/
/******* Unit Testing Code ********/
/******* ***************** ********/
/*
* Welcome to the jQuery UI Month Picker project.
*
* jQuery UI and QUnit are required for testing.
* Please download node.js, 'cd /jquery-ui-month-picker' and run 'npm install'.
*
* Tests can be ran f... |
import { Audit, Comments, Button, List } from '@admin'
import PropTypes from 'prop-types'
import pluralize from 'pluralize'
import React from 'react'
import _ from 'lodash'
const Details = ({ audits, campaign }) => {
const config = {}
const design = {
label: _.includes(['active','draft','inactive'], campaign... |
var searchData=
[
['array_5flength',['ARRAY_LENGTH',['../modbus_8h.html#a7539f9740177f669ce68a77ae64f38b5',1,'modbus.h']]],
['assert_5fparam',['assert_param',['../stm32f4xx__hal__conf_8h.html#a631dea7b230e600555f979c62af1de21',1,'stm32f4xx_hal_conf.h']]]
];
|
import React from 'react'
import _ from 'lodash'
import { GithubCounter, GithubSelector } from 'react-reactions'
export class Github extends React.Component {
state = {
counters: [{
emoji: '👍',
by: 'case',
}, {
emoji: '👍',
by: 'roasbeef',
}, {
emoji: '❤️',
by: 'josep... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
"""
Given a project CSV file, add the following information from GitHub
1. Number of issues
2. Number of pull requests
3. Number of contributors
"""
|
'use strict';
const articleView = {};
articleView.populateFilters = () => {
$('article').each(function() {
if (!$(this).hasClass('template')) {
let val = $(this).find('address a').text();
let optionTag = `<option value="${val}">${val}</option>`;
if ($(`#author-filter option[value="${val}"]`).... |
module.exports = {"LaoSansPro-Regular.ttf":"AAEAAAATAQAABAAwQkFTRYsZlLEAAE6oAAAAOkRTSUc23nrjAAAwCAAAHqBHREVGACYAUgAATuQAAAAeR1BPU2yRb0EAAE8EAAAAIEdTVUJFCTzTAABPJAAAALpPUy8yWsCkRQAAAbgAAABgY21hcIU6hiUAAE/gAAAAzGN2dCANmQD6AAAFCAAAAChmcGdtBlmcNwAAA0gAAAFzZ2FzcP//AAMAADAAAAAACGdseWYOTNsJAAAFzAAAJNRoZWFk+5+zUQAAATwAAAA2aGhl... |
import path from 'path';
import debounce from 'debounce';
import minimatch from 'minimatch';
import { sendMessageToActiveBrowsers } from './message-channel.js';
/**
* @typedef {object} ReloadBrowserMiddlewareConfig
* @property {string} rootDir
* @property {import('chokidar').FSWatcher} fileWatcher
* @property {str... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'ion';
var iconName = 'prism-sharp';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = null;
var svgPathData = 'M 256 16 L 16 352 L 256 496 L 496 352 L 256 16 z M 236 112.82031 L 236 437.34961 L 73.730469 340 L ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... |
import PropTypes from "prop-types"
export default PropTypes.shape({
unread: PropTypes.number,
notifications: PropTypes.arrayOf(
PropTypes.shape({
user: PropTypes.string,
type: PropTypes.string,
message: PropTypes.string,
link: PropTypes.string,
linkText: PropTypes.string,
cr... |
import React from "react"
import Layout from "../components/layout"
import PageHeader from "../components/page-header"
import PageContent from "../components/page-content"
export default ({ data }) => {
console.log(data)
// Get the single item in the array
return (
<Layout>
<PageHead... |
(function(){"use strict";BX.namespace("BX.Buttons");BX.Buttons.Utils={getByClass:function(e,t,l){var n=[];if(t){n=(e||document.body).getElementsByClassName(t);if(!l){n=n.length?n[0]:null}else{n=[].slice.call(n)}}return n},getByTag:function(e,t,l){var n=[];if(t){n=(e||document.body).getElementsByTagName(t);if(!l){n=n.le... |
const webpack = require('webpack')
const middleware = require('webpack-dev-middleware')
const config = require('./webpack.config.js')
const compiler = webpack(config)
const app = require('./config/express')
require('./config/database.js')('mongodb://localhost:27017/contato')
app.use(middleware(compiler))
app.listen(... |
export default class Keywords {
#supportedLang = ['arabic', 'english', 'french'];
#stopWords;
#str;
#options;
/**
* Keywords constructor.
*
* @param str
* @param stopWords
* @param options
*/
constructor (str, stopWords, options = {}) {
this.#stopWords = stopWords
this.#str = str
this.#options = {
...{
... |
# -*- coding: utf-8 -*-
"""
graphicsWindows.py - Convenience classes which create a new window with PlotWidget or ImageView.
Copyright 2010 Luke Campagnola
Distributed under MIT/X11 license. See license.txt for more infomation.
"""
from .Qt import QtCore, QtGui, QtWidgets
from .widgets.PlotWidget import *
from .imag... |
#### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Creature()
result.template = "object/mobile/shared_dressed_lord_throme_gormengal.iff"
result.attribute_template_i... |
import React from "react";
import { Button } from "semantic-ui-react";
import {Typography, makeStyles } from "@material-ui/core";
import "./AuthOptions.scss";
const useStyles = makeStyles((theme) => ({
typography: {
fontSize: 20,
color : "#000"
}
}));
function AuthOptions(props) {
const styles = use... |
import _plotly_utils.basevalidators
class ValueValidator(_plotly_utils.basevalidators.AnyValidator):
def __init__(
self, plotly_name='value', parent_name='contour.contours', **kwargs
):
super(ValueValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_n... |
# -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class ScrapyTestPipeline(object):
def process_item(self, item, spider):
return item
|
// chrome.extension calls
var connections = {};
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
// console.log('incoming message from injected script');
// console.log(request);
// Messages from content scripts should have sender.tab set
if (sender.tab) {
var tabId = sender.ta... |
import pytest
from sttable2 import parse_str_table
@pytest.fixture()
def tf():
def table_builder(*args, **kwargs):
return parse_str_table(*args, **kwargs)
return table_builder
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
"""Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2015 Benjamin Peterson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including with... |
import os
os.environ['OPENBLAS_NUM_THREADS'] = '1'
import argparse
import random
import numpy as np
from tensorboardX import SummaryWriter
import jittor as jt
import jittor.nn as nn
from jittor.optim import Adam, SGD
from jittor.lr_scheduler import MultiStepLR
jt.flags.use_cuda = 1
from tqdm import tqdm
from subdi... |
# Copyright 2022, The TensorFlow Federated Authors.
#
# 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 o... |
import {get, post} from "../../api"
export const GET_USER_START = 'GET_USER_START';
export const GET_USER_SUCCESS = 'GET_USER_SUCCESS';
export const GET_USER_FAILED = 'GET_USER_FAILED';
export const BLOCK_USER_START = 'BLOCK_USER_START';
export const BLOCK_USER_SUCCESS = 'BLOCK_USER_SUCCESS';
export const BLOCK_USER_F... |
#!/usr/bin/env python3
#
# Author: jon4hz
# Date: 14.03.2021
# Desc: PoC for conway's game of life in python
#
#######################################################################################################################
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animat... |
var pdf = false;
function getFileExtension(filename) {
var ext = /^.+\.([^.]+)$/.exec(filename);
return ext == null ? "" : ext[1];
}
function ValidateImg(oInput) {
var _validFileExtensions = [".jpg", ".jpeg", ".png"];
if (oInput.type == "file") {
var sFileName = oInput.value;
if (sFile... |
import { Notification } from "./index.ts";
import { storiesOf } from "@storybook/web-components";
storiesOf("desktop/notification", module)
.add("Base", () => {
const root = document.createElement("div");
const notification = new Notification({
text: "不正です!!",
type: "info"
});
const butt... |
import React from 'react'
import styled from 'styled-components'
import { ServiceNavLinks } from './textSizes'
import { color, weight } from './variables'
import Fade from 'react-reveal/Fade'
const Wrapper = styled.div`
padding-left: 0.5em;
@media only screen and (max-width: 1024px) {
display: none;
}
`
con... |
'use strict';
const assert = require('assert')
const request = require('supertest')
const expect = require('chai').expect
const api = require('../server');
const agent = request.agent(api);
const models = require('../models');
describe("info", () => {
beforeEach(() => {
models.Task.destroy({where:{}, trun... |
import React, { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';
import { getUserOrdersList } from '../redux/actions/orderActions';
import emptyImg from '../assets/empty.svg';
import { motion } from 'framer-motion';
const UserOrderListScr... |
const DrawCard = require('../../drawcard.js');
class GreywaterWatch extends DrawCard {
setupCardAbilities(ability) {
this.action({
title: 'Kneel a character to have it participate',
phase: 'challenge',
max: ability.limit.perChallenge(1),
condition: () => t... |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
class McrouterGlobals:
@staticmethod
def binPath(name):
bins = {
'mcrouter': './mcrouter/mc... |
# Receba duas frases distintas e imprima de maneira invertida, trocando as letras A por *.
frase1=input("->").upper()
frase2= input("->").upper()
invertida1 = frase1[::-1]
invertida2= frase2[::-1]
invertida1=invertida1.replace("A","*")
invertida2=invertida2.replace("A","*")
print("primeira invertida->",invertida1)
pri... |
import sys
import os
from setuptools import setup, find_packages
VERSION = '0.0.1'
LONG_DESCRIPTION = \
open(os.path.join("src","README.txt")).read() + \
open(os.path.join("src","TODO.txt")).read()
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Python Software Foundatio... |
import React, {Component} from 'react';
import {Link} from 'react-router-dom';
import { Field, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import {addSurvey,addSurveyDay,fetchSurvey,updateSurvey} from '../actions';
import 'react-widgets/dist/css/react-widgets.css';
import Moment from 'moment'... |
var path = require('path');
var test = require('tap').test;
var resolve = require('../');
test('async foo', function (t) {
t.plan(9);
var dir = __dirname + '/resolver';
resolve('./foo', {basedir: dir}, function (err, res, pkg) {
if (err) t.fail(err);
t.equal(res, dir + '/foo.js');
... |
import { useState, useEffect } from 'react';
import Card from './Card';
import Footer from './Footer';
import Header from './Header';
const fadeIn = {
opacity: 1,
visibility: 'visible',
};
const fadeOut = {
opacity: 0,
visibility: 'hidden',
};
function Users() {
const [users, setUsers] = useState({
loa... |
/* eslint no-var:0 */
'use strict';
var chai = require('chai');
var defaultConfig = require('../index');
var expect = chai.expect;
describe('The config', function() {
it('for defaults should have a rules section', function() {
expect(defaultConfig).to.have.property('rules');
});
});
|
#!/usr/bin/env python
"""Tests for `minigrad` package."""
import unittest
from torch.nn.modules.loss import CosineEmbeddingLoss
import minigrad
from minigrad.nn import Linear, MSELoss, ReLU
import torch
from torch import nn
class TestMinigrad(unittest.TestCase):
"""Tests for `minigrad` package."""
def te... |
import 'onsenui';
import Vue from 'vue';
import Vuex from 'vuex';
import VueCookie from 'cookie-in-vue';
import VueOnsen from 'vue-onsenui';
import storeLike from './store.js';
// Onsen UI Styling and Icons
require('onsenui/css-components-src/src/onsen-css-components.css');
require('onsenui/css/onsenui.css');
import ... |
from PIL import Image
from random import shuffle
pack = Image.new('RGBA', (120, 200), (255, 255, 255, 1))
blocks = [Image.open("assets/textures/shiny_pieces/red.png"),
Image.open("assets/textures/shiny_pieces/green.png"),
Image.open("assets/textures/shiny_pieces/blue.png"),
Image.open("as... |
"use strict";
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.8.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.8.0,
* ap-south-1 (https://d2senuesg1... |
from taiga.requestmaker import RequestMaker
from taiga.models import Severity, Severities
import unittest
from mock import patch
class TestSeverities(unittest.TestCase):
@patch('taiga.models.base.ListResource._new_resource')
def test_create_severity(self, mock_new_resource):
rm = RequestMaker('/api/v... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Antidote documentation build configuration file, created by
# sphinx-quickstart on Sat Oct 14 22:07:20 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... |
from flask import Blueprint, render_template, request,jsonify, current_app
from utils.token_utils import generate_auth_token
login = Blueprint('login', __name__)
@login.route("login")
def user_login():
token = generate_auth_token({
'tid': '1',
'user_name': '张三'
},3600)
return jsonify(token) |
import syntaxDynamicImport from "babel-plugin-syntax-dynamic-import";
import transformObjectRestSpread from "babel-plugin-transform-object-rest-spread";
import transformAsyncGeneratorFunctions from "babel-plugin-transform-async-generator-functions";
export default function () {
return {
plugins: [
syntaxDy... |
from lib import hotspot, device, connectNode, gpio, wifi_lib
import os, threading, time
import RPi.GPIO as GPIO
gpio.init()
gpio.clear()
gpio.set_output(gpio.get_pin('led-main-system'))
gpio.set_output(gpio.get_pin('led-signal-coverage'))
gpio.set_output(gpio.get_pin('led-alert'))
gpio.set_output(gpio.get_pin('led-wif... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[135],{
/***/ "./node_modules/sortablejs/modular/sortable.esm.js":
/*!*********************************************************!*\
!*** ./node_modules/sortablejs/modular/sortable.esm.js ***!
\*********************************************************/
/*... |
var century, year, month , date;
function getData(){
century=parseInt(document.getElementById("century").value);
year=parseInt(document.getElementById("year").value);
month=parseInt(document.getElementById("month").value);
date=parseInt(document.getElementById("date").value);
if(century==0){
ale... |
module.exports={A:{A:{"2":"I D F E A B oB"},B:{"2":"C O H P J K L","194":"Z MB M R S N U V W"},C:{"2":"0 1 2 3 4 5 6 7 8 9 nB cB G a I D F E A B C O H P J K L b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB TB IB JB KB LB T NB OB PB QB RB HB Y XB UB VB WB SB Z MB M mB R S N U V vB yB"},D:{"1":"0B... |
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
// TODO(davidben): When the string encoding API is implemented,
// replace this with the native in-browser implementation.
//
// htt... |
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// 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 ap... |
import { useState } from 'react';
import { Link } from 'react-router-dom';
import Contacts from '../../Contacts/Contacts';
import classes from './Footer.module.css';
const Footer = () => {
const [showContacts, setShowContacts] = useState(false);
const showContactsHandler = () => {
setShowContacts(tr... |
var tname = 'Abludomelita obtusata';
var coord = [-1,-5.97700023651123,4.52027988433838,3.87103533744812,-1.34638893604279,-4.44320011138916,3.55900001525879,1.15476202964783,4.00502061843872,-0.1667,4.00396251678467,3.83381628990173,7.81666994094849,3.79884195327759,-5.05935716629028,1.92498302459717,1.89633405208588,... |
$(function () {
$('#dashboard').find('.column').sortable({
placeholder: '<div class="placeholder"></div>',
containerSelector: '.column',
itemSelector: '.widget',
connectWith: '.column',
group: 'columns',
handle: '.handle',
nested: false,
afterMove: fu... |
define('ember-cli-mirage/ember-data', ['exports', 'require', 'ember-get-config', 'ember-cli-mirage/assert', 'ember-cli-mirage/utils/ember-data', 'ember-cli-mirage'], function (exports, _require, _emberGetConfig, _emberCliMirageAssert, _emberCliMirageUtilsEmberData, _emberCliMirage) {
exports.getDsModels = getDsModels... |
var express = require('express');
var app = express();
app.use('/angular-couch-potato', express.static(__dirname + '/dist'));
app.listen(3000); //the port you want to use
|
var M = require('M');
var N = require('N');
N.x = M(N.x);
var P = require('./P'); // implementation of P redirects to module M
N.y = P(N.y);
var Q = require('Q'); // declaration of Q redirects to module M
N.z = Q(N.z);
|
#!/usr/bin/env python
import configparser
import copy
import datetime
from functools import wraps
import getpass
import json
import logging
import os
import shutil
import subprocess
import sys
import tempfile
import textwrap
import time
import traceback
import click
from click.exceptions import ClickException
# pyc... |
"""config URL Configuration
"""
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/v1/books/', include('api.urls')),
]
|
/**
* Copyright IBM Corp. 2018, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
const OFF = null;
module.exports = {
rules: {
// Color
// Require (where possible) or disallow named colors.
"c... |
import { Record, fromJS } from 'immutable';
export const deepRemove = (map, id) => {
const children = map.getIn(['items', id, 'children']);
if (children) children.forEach(c => {
map = deepRemove(map, c);
});
return map.deleteIn(['items', id]);
};
const defaultItems = fromJS({ root: {
id: 'root',
type:... |
'use strict';
const lib = require('../lib/index.js');
const expect = require('chai').expect;
const linter = lib();
describe('basic', () => {
it('requirable', () => {
expect(linter).to.be.a('function');
});
});
/* eslint-env mocha */
|
/* */
"format global";
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
f... |
function modalEditarRol(id, nombre, slug, desc, especial){
if(especial == "null"){
especial = " ";
}
$("#nuevoNombre").val(nombre);
$("#nuevoSlug").val(slug);
$("#nuevaDescripcion").val(desc);
$("#nuevoEspecial").val(especial);
$("#actualizarRol").attr('onClick', `actualizarRol(... |
# -*- coding: utf-8 -*-
import pytest
from smobot.skeleton import fib
__author__ = "E.A. van Valkenburg"
__copyright__ = "E.A. van Valkenburg"
__license__ = "mit"
def test_fib():
assert fib(1) == 1
assert fib(2) == 1
assert fib(7) == 13
with pytest.raises(AssertionError):
fib(-10)
|
import os
from django import VERSION as DJANGO_VERSION
from django.utils.translation import ugettext_lazy as _
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATIC_ROOT = os.path.join(BASE_DI... |
var app=angular.module("PortfolioApp",["ngRoute","slick"]);app.config(function($routeProvider){"ngInject";$routeProvider.when("/",{controller:"HomeController",templateUrl:"js/angular/views/home-view.html"}).when("/work/:projectId",{controller:"ProjectController",templateUrl:"js/angular/views/project-view.html"}).otherw... |
// Search script generated by doxygen
// Copyright (C) 2009 by Dimitri van Heesch.
// The code in this file is loosly based on main.js, part of Natural Docs,
// which is Copyright (C) 2003-2008 Greg Valure
// Natural Docs is licensed under the GPL.
var indexSectionsWithContent =
{
0: "adefghimnorst~",
1: "adhi",
... |
import { Text, View, StyleSheet, ScrollView, ToastAndroid, Platform } from 'react-native';
import React, { Component } from 'react';
import { PropTypes } from 'prop-types';
import { ListItem, Subheader, Toolbar } from 'react-native-material-ui/src';
const styles = StyleSheet.create({
container: {
flex: 1,... |
import moment from 'moment'
import momentTimezone from 'moment-timezone'
import api from './init'
const form = document.getElementById('reservation-form');
var event;
form.addEventListener('submit', e => {
const choice = document.querySelector('#weddinghall option:checked').value;
const data = {weddinghall: c... |
let cells, offset, margin, d;
let bg;
function setup() {
createCanvas(800, 800);
colorMode(HSB, 360, 100, 100, 100);
angleMode(DEGREES);
background(0, 0, 20);
bg = createGraphics(width, height);
bg.colorMode(HSB, 360, 100, 100, 100);
let percent = 10 / 100;
for (let i = 0; i < width * height * percent... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
import { Router } from "express";
import { celebrate, Joi, Segments } from "celebrate";
import { createThumbnail } from "./thumbnail-controller";
import { isAuthenticated } from "../middleware";
const thumbnailRouter = Router();
thumbnailRouter.post(
"/",
isAuthenticated,
celebrate({
[Segments.BODY]: Joi.ob... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
// an example karma.conf.js
module.exports = function (config) {
config.set({
// base path, that will be used to resolve files and exclude
baseUrl: './',
frameworks: ['sinon', 'chai', 'mocha'],
plugins: [
// these plugins will be require() by Karma
'karma-sinon',
'karma-mocha',
'karma-chai',
'ka... |