text stringlengths 3 1.05M |
|---|
from paquete.hola.saludos import saludar
from paquete.adios.despedidas import Despedida
saludar()
Despedida() |
// Description:
// Look up names and contact info of primary officers and
// committee heads within the SSE
//
// Configuration:
// SSE_API_ROOT - root to the api
//
// Commands:
// hubot sse whois <position> - See who is a current officer position
//
// Author:
// kristenmills, mok4ry
'use strict';
var api = r... |
# coding: utf-8
# flake8: noqa
from __future__ import absolute_import
# import apis
from groupdocs_parser_cloud.apis.file_api import FileApi
from groupdocs_parser_cloud.apis.folder_api import FolderApi
from groupdocs_parser_cloud.apis.info_api import InfoApi
from groupdocs_parser_cloud.apis.parse_api import ParseApi... |
# -*- coding: UTF-8 -*-
# for localized messages
from . import _
# GUI (Components)
from Components.MenuList import MenuList
from enigma import eListboxPythonMultiContent, eListbox, gFont, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_VALIGN_CENTER, RT_VALIGN_TOP, RT_VALIGN_BOTTOM
from Tools.LoadPixmap import LoadPixmap
from Se... |
var todos = [];
var addTodoForm = document.querySelector("#addTodoForm");
console.log(addTodoForm)
var listGroup = document.querySelector(".list-group");
function createListItem(todoValue, todoIndex) {
var li = document.createElement("li");
li.setAttribute("class", "list-group-item d-flex justify-content-between... |
# coding: utf-8
import pprint
import re
import six
class ListNamespacesRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the va... |
/**
* Copyright (c) 2017-present, Raphael Amorim.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* CSS properties which accept numbers but are not in units of "px".
*/
export const isUnitlessNumber = {
animationIterationCoun... |
import dotenv from 'dotenv';
dotenv.config();
console.log(process.env.NODE_ENV);
export const keys = {
DISCORD_KEY: process.env.NODE_ENV === 'dev' ? process.env.DISCORD_KEY_DEV : process.env.DISCORD_KEY,
DISCORD_CLIENT_ID: process.env.DISCORD_CLIENT_ID,
MONGO_USER_PASSWORD: process.env.MONGO_USER_PASSWORD,
}; |
import React, { useEffect, useState } from 'react';
import io from 'socket.io-client'
import {
SafeAreaView,
View,
StyleSheet,
Image,
TouchableOpacity,
Text,
} from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import Logo from '../../assets/logo.png'
import dislike fro... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["pages-list-mod-type-list-mod-type-module"],{
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/core/features/course/pages/list-mod-type/list-mod-type.html":
/*!**********************************************************************************************... |
const { ethers } = require("hardhat");
//const { hre } = require("@nomiclabs/hardhat-etherscan");
async function main() {
const [deployer] = await ethers.getSigners();
console.log("Deploying contracts with the account:", deployer.address);
console.log("Account balance:", (await deployer.getBalance()).t... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// Copyright 2017-2020 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
var _default = {
rpc: {},
types: {
Ap... |
var gulp=require("gulp");
var purify = require('gulp-purifycss');
var browser=require("./../browser-sync");
const CleanCss = () =>
gulp.src('dist/**/*.css')
.pipe(purify(['dist/**/*.js', 'dist/**/*.html']))
.pipe(gulp.dest('dist'))
.pipe(browser.reload({
stream: true
}));
module.exports =... |
;(function() {
'use strict';
/**
* Service for complex localStorage functionality
*
* @category factory
* @author Jozef Butko
* @example Inject LocalStorage as the dependency and then use it like this:
*
* var data = { property: 'name'};
* // set, get, remove, r... |
$(function () {
var editor;
window.markdownEditorDestroy = function () {
if (editor) {
editorEl.empty();
}
};
window.markdownEditorCreate = function () {
$.getScript(editorMdJs, function () {
htmlEditorDestroy();
markdownEditorDestroy();
... |
/**
* show Right side panel in add voter page to display steps
*
* @params added:Number
* @params onNextStep:Function
* @return React Component
*/
import React from 'react'
import PropTypes from 'prop-types';
import { Typography, Button, StepProgressBar } from '../index'
const RightProgressPanel = (props) => {... |
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
'''A wrapper around reggen for otbn.hjson'''
import os
import sys
from typing import Optional, Tuple
# We use reggen to read the hjson file. Since that lives somewhere c... |
import ctypes
from . import vorbis
from .pyogg_error import PyOggError
class VorbisFileStream:
def __init__(self, path, buffer_size=8192):
self.exists = False
self._buffer_size = buffer_size
self.vf = vorbis.OggVorbis_File()
error = vorbis.ov_fopen(path, ctypes.byref(self.... |
$(document).on("beforeSubmit", "#form-profile", function () {
return false;
});
$(function() {
$("#form-profile").on("submit", function(e) {
e.preventDefault();
if ($(this).find('.has-error').length)
{
return false;
}
$.ajax({
url: $(this).attr... |
""" manage logging configuration
USAGE:
### perform once as the application begins to initialize logging system-wide
from ooi.logging import config
config.add_configuration("some/path/logging.yml") # could be normal file
config.add_configuration("or/resource/logging.local.yml") # or re... |
deepmacDetailCallback("60d30a000000/24",[{"d":"2009-08-20","t":"add","a":"Units 05-07, 16/F, Greenfield Tower, Concordia Plaza,\n1 Science Museum Rd., TST East\nKowloon\n","c":"HONG KONG","o":"Quatius Limited"},{"d":"2015-08-27","t":"change","a":"Units 05-07, 16/F, Greenfield Tower, Concordia Plaza, Kowloon HK","c":"H... |
import os
import subprocess
from gtfspy.gtfs import GTFS
from sqlite3 import IntegrityError
from gtfspy.osm_transfers import compute_stop_to_stop_osm_walk_distances_python
from research.route_diversity.diversity_settings import *
from gtfspy.filter import FilterExtract
from gtfspy.import_gtfs import import_gtfs
from g... |
"""
HUMAnN2 setup
To run: python setup.py install
"""
import sys
# required python versions (2.7+ or 3.0+)
required_python_version_major = [2,3]
required_python_version_minor = [7,0]
# check for either of the required versions
pass_check=False
try:
for major, minor in zip(required_python_version_major, req... |
class Education {
constructor(name, school) {
this.name = name;
this.school = school;
this.schoolclasses = [];
this.school.educations.push(this);
}
} |
require('./user');
require('./contest');
require('./problem');
require('./userContests');
require('./userProblems'); |
"use strict";
let _permanentCensorErrors = false;
let _censorErrors = false;
const LogLevels = { debug: 1, "default": 2, info: 2, warning: 3, error: 4, off: 5 };
let _logLevel = LogLevels["default"];
import { version } from "./_version";
let _globalLogger = null;
function _checkNormalize() {
try {
const mis... |
# This part is highly inspired from the work of Music Li <yuezhanl@andrew.cmu.edu>, https://github.com/pkumusic/E-DRL
from __future__ import division
import cv2
import numpy as np
import random
import sys
import math
def log_add(log_x: float, log_y: float):
"""
Given log x and log y, returns log(x + y).
:... |
/*
* Copyright Adam Pritchard 2014
* MIT License : http://adampritchard.mit-license.org/
*/
"use strict";
/* jshint curly:true, noempty:true, newcap:true, eqeqeq:true, eqnull:true, es5:true, undef:true, devel:true, browser:true, node:true, evil:false, latedef:false, nonew:true, trailing:false, immed:false, smarttab... |
import { register } from '../api/data.js';
import { html } from '../lib.js';
import { notify } from './notify.js';
const registerTemplate = (onSubmit) => html`
<section id="register">
<form @submit=${onSubmit} id="register-form">
<div class="container">
<h1>Register</h1>
<label for=... |
class Solution:
def solve(self, s):
narysearch = "narysearch"
locs = defaultdict(set)
for i in range(len(s)):
locs[s[i]].add(i)
for b_loc in locs['b']:
for i_loc in locs['i']:
if i_loc < b_loc: continue
... |
/*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
*
* 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 requ... |
// website_script.js
{% if javascript -%}{{ javascript }}{%- endif %}
{% if google_analytics_id -%}
// Google Analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.... |
"""
Django settings for task project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Buil... |
# ALAINA KAFKES IMPLEMENTATION - alainakafkes
## Mergesort implementation in Python
## Runtime: O(n log(n))
## Space: O(n)
## Advantages: guaranteed good complexity (no need to worry about choice of pivot as in quicksort)
## Disadvantages: more temporary data storage needed than quicksort
#def mergesort(arr):
# if... |
/*
* inputmask.phone.extensions.js
* https://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2016 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.3.1
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery","inputmask"],a):"o... |
import React from 'react';
import Typography from '@material-ui/core/Typography';
import { withStyles } from '@material-ui/core/styles';
import { Paper } from '@material-ui/core';
const styles = theme => ({
root: {
background: theme.palette.primary.main,
padding:'2rem',
textAlign:'center',
... |
import React from "react";
import InfiniteCarousel from "react-leaf-carousel";
// carousel data object
const ImgData = [
{ alt: "Image1", src: "../images/1.jpeg", classId:"testImg1"},
{ alt: "Image2", src: "../images/2.jpeg", classId:"testImg2" },
{ alt: "Image3", src: "../images/3.jpeg", classId:"testImg3" },
... |
/**
* @file Moderation commands for people who are lazy.
* @author Ovyerus
*/
exports.commands = [
'kick',
'ban'
];
exports.kick = {
desc: 'Kicks a user from the server.',
usage: '<user> [for <reason>]',
aliases: ['kick'],
permissions: {both: 'kickMembers'},
async main(bot, ctx) {
... |
# Copyright 2015-2017 Capital One Services, LLC
#
# 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 ... |
import createElement from './exports/createElement';
import findNodeHandle from './exports/findNodeHandle';
import processColor from './exports/processColor';
import render from './exports/render';
import unmountComponentAtNode from './exports/unmountComponentAtNode';
import NativeModules from './exports/NativeModules'... |
(function(){"use strict";function t(t,e){t&&(this.el=t,this.container=e&&e.container,this.reRender=e&&e.reRender)}function e(e){e.style.display="none",t.r=e.offsetTop,e.style.display=""}function i(t,e){if(t)for(var i=e&&e.display,n=t.parentNode.children,l=a.call(n,t),o=l+1,s=n.length;s>o;o++)n[o].style.display=i}functi... |
# coding: utf-8
"""
Decision Lens API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
impor... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[19],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/ShoppingCart.vue?vue&type=script&lang=js&":
/*!************************************************... |
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datasource-jsonschema/datasource-jsonschema.js']) {
__coverage__['build/datasource-jsonschema/datasource-jsonschema.js'] = {"path":"build/datasource-jsonschema/datasource-jsonschema.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"... |
// NÃO REMOVA OS CREDITOS POR FAVOR, LEVOU MUITO TEMPO PRA SE FAZER UM BOT ASSIM!
const config = require('./config/config.json')
const prefix = config.prefix
exports.help = help()
function help() {
return ` *☾ Meus comandos ☽*
_ℹ️ - Grupo oficial do programador deste bot!_ */Legiao*
_ℹ️ - Se quiser saber da... |
from model import *
import numpy as np
import keras.backend as K
from keras.models import load_model
def build_repeat_mulsep(x, m, i):
a = m[:, :, 0]
b = m[:, :, 1]
c = m[:, :, 2]
d = m[:, :, 3]
e = m[:, :, 4]
y = x
for _ in range(i):
p = tf.pad(y, [[1, 1], [1, 1], [0, 0]], 'SYMMET... |
import sys
def huffman_encoding(data):
huffman = {}
tree = {}
temp = '1'
for char in data:
huffman[char] = huffman.get(char, 0) + 1
for num in sorted(huffman.items(), key = lambda x: x[1]):
tree[num[0]] = temp
temp = '0' + temp
encoded_data = ''
for d in data:
... |
$(function () {
// ------------------------------------------------------- //
// Search Popup
// ------------------------------------------------------ //
$('a.search-btn').on('click', function () {
$('.search').fadeIn();
});
$('.search .close-btn').on('click', function () {
$('... |
$(document).ready(function(){
$("form#twd-email-form").submit(function() {
var user_email = $('#user_email').attr('value');
$.ajax({
type: "POST",
url: "save.php",
data: "user_email="+ user_email,
success: function(){
$("#twd-email-form").fadeOut();
$("#success").fadeIn();
}
});
return... |
// @flow
import type {
lf$Database, lf$Transaction
} from 'lovefield';
import type {
IConceptualWalletConstructor,
IHasPrivateDeriver, IHasLevels, IHasSign,
} from '../ConceptualWallet/interfaces';
import {
ConceptualWallet, rawRemoveConceptualWallet,
} from '../ConceptualWallet/index';
import { refreshCip185... |
// @flow
//
// Copyright (c) 2018 DDN. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
import { render } from "inferno";
import getStore from "../store/get-store.js";
import { setTimeZoneToUtc, setTimeZoneToLocal } from "./tz-picker-actions.... |
const lib = require('../../lib/lib.js');
jest.mock('uuid', () => ({
v1: () => 'E22606E0-B47F-11E9-A3F0-07F70A25DAFB'
}));
const ioMocks = require('../helpers/io-mocks.js');
test('create alice-bobbi module with config options for Windows only', () => {
const mysnap = [];
const mocks = ioMocks(mysnap);
const... |
const bodyTag = document.querySelector('body');
const rgbTag = document.querySelector('#rgb');
const hexTag = document.querySelector('#hex');
const hslTag = document.querySelector('#hsl');
const msgTag = document.querySelector('p');
document.querySelector('button').addEventListener('click', function () {
const {rgb... |
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://v3.bootcss.com/customize/?id=2cb44679ae9edeb0d303)
* Config saved to config.json and https://... |
//// [collisionThisExpressionAndLocalVarInLambda.ts]
declare function alert(message?: any): void;
var x = {
doStuff: (callback) => () => {
var _this = 2;
return callback(this);
}
}
alert(x.doStuff(x => alert(x)));
//// [collisionThisExpressionAndLocalVarInLambda.js]
var _this_1 = this;
va... |
import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/logger'
Vue.use(Vuex)
const state = {
items: [],
name : ''
}
const mutations = {
ADD_ITEM (state, item) {
state.items.push(item);
},
DELETE_ITEM (state) {
state.items.pop();
},
SORT_ITEM(state, index, newIndex) {
... |
import { testHandler } from '@core/utils/test'
import { expect } from 'chai'
import install from './list'
describe('src/apps/team/admin/api/apps/install.js', () => {
})
|
angular.module('gettext', []);
angular.module('gettext').constant('gettext', function (str) {
/*
* Does nothing, simply returns the input string.
*
* This function serves as a marker for `grunt-angular-gettext` to know that
* this string should be extracted for translations.
*/
return ... |
"use strict";
require("core-js/modules/es.array.find");
require("core-js/modules/es.array.for-each");
require("core-js/modules/es.array.map");
require("core-js/modules/es.array.some");
require("core-js/modules/es.object.define-property");
require("core-js/modules/es.object.to-string");
require("core-js/modules/e... |
// Validation errors messages for Parsley
import Parsley from '../parsley';
Parsley.addMessages('id', {
defaultMessage: "tidak valid",
type: {
email: "email tidak valid",
url: "url tidak valid",
number: "nomor tidak valid",
integer: "integer tidak valid",
digits: ... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var timestamps = require('mongoose-timestamp');
var userSchema = mongoose.Schema({
firstname: String,
lastname: String,
email: String,
password: String,
picture: Buffer,
trips: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Trip' ... |
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { reduxForm, formValueSelector } from 'redux-form'
import {
currentTeamSelector,
createCurrentTeamMemberAction
} from '../../modules'
import { MemberInvite as MemberInviteView } from './member-invite.view'
import { memberInvit... |
import React from "react";
import Principle from "../../components/WCAGPrinciple4";
import Wrapper from "../../components/Wrapper";
import SlideHeading from "../../components/SlideHeading";
import EnglishS from "../../components/EnglishS";
export default class WCAGPrinciple4 extends React.Component {
render() {
... |
/**
* This is the interface that's interacted with from the worker thread, inspired by the Expo font API
*
* @flow
*/
import { NativeModules } from "react-native";
import resolveAssetSource from "resolveAssetSource";
const FontLoader = NativeModules.FontLoader;
export const Font = {
loadedFonts: [],
isLoaded... |
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'IgnoredObject'
db.create_table('djangoratings_ignoredobject', (
('object_i... |
const fs = require('fs-extra');
const { spawn } = require('child_process');
const ora = require('ora');
const chalk = require('chalk');
const cloneRepo = (repoUrl, next) => {
const clone = spawn('git', ['clone', repoUrl]);
console.log();
const spinner = ora('template downloading...').start();
clone.on('close'... |
var canvas;
var gl;
var vertexPositionAttribute;
var perspectiveMatrix;
var cubeRotation = 0.0;
var dAPI;
var alpha=0;
var beta=0;
var gamma=0;
var gx;
var gy;
var gz;
var mobileType ="LG_stereoscopic";
function startVideoClicked() {
var bt = dAPI.browser.getBrowserType();
if(dAPI.Type=="Desktop"){
if(bt == "Fire... |
import { util as zrUtil, graphic, matrix } from 'echarts/core';
import { logWarn } from './helper';
import {
DomUtil,
LatLng,
Layer,
Map as LMap,
Projection,
tileLayer,
} from 'leaflet';
function dataToCoordSize(dataSize, dataItem) {
dataItem = dataItem || [0, 0];
return zrUtil.map(
[0, 1],
... |
from app import app
from app.controllers import controller
if __name__ == "__main__":
app.run(debug=True) |
import pathlib
import sys
from pypoptools.pypoptesting.framework.node import Node
from pypoptools.pypoptesting.test_runner import tests_running
from btcsqd_node import BTCSQdNode
def create_node(number: int, path: pathlib.Path) -> Node:
return BTCSQdNode(number=number, datadir=path)
if __name__ == '__main__':
... |
const mongoose = require('mongoose');
const javascriptTimeAgo = require('javascript-time-ago');
javascriptTimeAgo.locale(require('javascript-time-ago/locales/en'));
require('javascript-time-ago/intl-messageformat-global');
require('intl-messageformat/dist/locale-data/en');
const timeAgoEnglish = new javascriptTimeAgo(... |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.vueTopProgress=e()}(this,function(){"use strict";function t(t,e,s){return t<e?e:t>s?s:t}var e=function(){function t(){var s=e.shift();s&&s(t)}var e=[];return function(s){e.push(s),1==... |
###################################################################
# Numexpr - Fast numerical array expression evaluator for NumPy.
#
# License: MIT
# Author: See AUTHORS.txt
#
# See LICENSE.txt and LICENSES/*.txt for details about copyright and
# rights to use.
##########################################... |
import caffe
import argparse
def get_arguments():
parser = argparse.ArgumentParser()
parser.add_argument('--old_model', type=str, required=True, help='Old model name')
parser.add_argument('--old_weights', type=str, required=True, help='Pretrained caffemodel name')
parser.add_argument('--new_model... |
#!/usr/bin/env python
import io
import os
import re
import sys
import json
import subprocess
import requests
import ipaddress
import hmac
from hashlib import sha1
from flask import Flask, request, abort
"""
Conditionally import ProxyFix from werkzeug if the USE_PROXYFIX environment
variable is set to true. If you int... |
# coding=utf-8
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import sys
from abc ... |
export default {
loading: '(Cargando)',
aboutPages: {
missingContent: {
education: 'This project has no educational resources yet.',
faq: 'This project has no frequently asked questions yet.',
research: 'This project has no science case yet.',
results: 'This project has no results to rep... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
(function() {
var fn = function() {
(function(global) {
function now() {
return new Date();
}
var force = false;
if (typeof (window._bokeh_onload_callbacks) === "undefined" || force === true) {
window._bokeh_onload_callbacks = [];
window._bokeh_is_loa... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author : Aaron Niskin <aaron@niskin.org>
# Date : 2019-01-16
# Last Modified Date: 2019-01-20
# Last Modified By : Aaron Niskin <aaron@niskin.org>
# pylint: disable=fixme
"""
Build the sudoku board object, along with all appropriate methods.
The... |
# Generated by Django 3.1.6 on 2021-03-16 09:28
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('froide_exam', '0014_require_curriculum_slug'),
]
operations = [
migrations.CreateModel(
name='PrivateCopy',
... |
import * as types from '../mutation-types'
import * as api from '@/api/friend'
// state
const state = {
'hasGetFriendList': 0, //是否已经获取过好友列表
'friendList': {},
'hasGetNewFriends':0,
'newFriends':[],
'friendStatus':{},
'tabIndex':1 //联系人页面的当前标签页
}
// mutations
const mutations = {
[types.GET_FRIEND_LIST](... |
import sys
import math
def extended_gcd(a, b):
'''
return gcd, x0, y0
for equation ax+by=g
'''
x, y = 0, 1
lastx, lasty = 1, 0
while b:
q = a // b
a, b = b, a % b
x, lastx = lastx - q * x, x
y, lasty = lasty - q * y, y
return a, lastx, lasty
sys.stdin =... |
EVENTS={};
EVENTS.isShiftDown=false;
EVENTS.isCtrlDown=false;
EVENTS.isAltDown=false;
EVENTS.init=function(){
EVENTS.wheelEventDistributor.init();
$("html").on("contextmenu",()=>false);
$(window).on("resize",()=>{
ENV.window.SIZE.width=$("#canvas_window").width();
ENV.window.SIZE.height=$("#canvas_window").he... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... |
var leftBound = 0.00;
var rightBound = 4.00;
var leftScale = 0.00;
var rightScale = 4.00;
var graphObjectArray = new Array();
var tableSort = "";
var tableData = null;
function toKeyValPair(names, values)
{
var result = {};
for(var i = 0; i < names.length; i++)
{
result[names[i]] = values[i];
}
return result;... |
#!/usr/bin/env node
const { map, compose, prop } = require('ramda');
const { runTestSuite } = require('@yaatt/core');
const { mapFutureSync, logError, logNewLine } = require('@yaatt/utils');
const { importTestCase, resolvePaths, validateArgs, getConfig } = require('../src');
const init = compose(
mapFutureSync(runT... |
export default {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm... |
/**
* BxSlider v4.1.2 - Fully loaded, responsive content slider
* http://bxslider.com
*
* Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
* Written while drinking Belgian ales and listening to jazz
*
* Released under the MIT license - http://opensource.org/licenses/MIT
*/
... |
$(document).ready(function(){
// date picker for record_date field in form
$( "#recordDate" ).datepicker({
dateFormat: 'yy-mm-dd'
});
$( "#pastDate" ).datepicker({
dateFormat: 'yy-mm-dd'
});
$( "#recentDate" ).datepicker({
dateFormat: 'yy-mm-dd'
});
// Nav bar adjust on... |
import styled, { css } from 'styled-components'
import { stripUnit, rgba } from 'polished'
import { media } from './media'
import { greyDark, primaryColor, grey, greyLight } from './colors'
import { animationTime, animationCurve } from './global'
// Font family
export const fontFamily =
"-apple-system, BlinkMacSyst... |
var Flickity = require('flickity');
const CONFIG = {
ELEM: '.rooms__wrapper',
CELL: '.room__item',
};
const Slider = {
init() {
const { ELEM } = CONFIG;
this.elem = document.querySelectorAll(ELEM);
this.sliders = [];
if (this.elem) {
this.createSlider();
... |
/**
Write me...
@class AnimatedContainerView
@namespace Ember
@extends Ember.ContainerView
*/
Ember.AnimatedContainerView = Ember.ContainerView.extend({
classNames: ['eac'],
init: function() {
this._super();
//Register this view, so queued effects can be related with this view by... |
(function(g) {
"use strict";
const DISPLAY_PREF_ACCENT_COLOR = "accent_color";
const DISPLAY_PREF_ANIM_TEXT = "anim_text";
const DISPLAY_PREF_NOTIFICATIONS = "display_notifications";
let notifyBannerTimeoutToken = null;
let banner = document.querySelector("#notify-banner");
let bannerText ... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.MdAssignmentTurnedIn = function MdAssignmentTurnedIn (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v1... |
;(function () {
'use strict';
angular.module('app')
.controller('RegulationController', RegulationController);
RegulationController.$inject = [];
function RegulationController() {
let vm = this;
}
})(); |
import React, { Component } from 'react';
import { TimelineMax } from 'gsap/all';
export default class Trees extends Component{
constructor(props) {
super(props);
this.leaves = null;
this.line = null;
this.BendingTL = null;
}
componentDidMount() {
this.BendingTL = new TimelineMax({repeat: -1... |
var callbackArguments = [];
var argument1 = function callback(a,b,c) {
callbackArguments.push(JSON.stringify(arguments))
argument2[122] = ["DM4H","z","-E","Jkh","d]c","#","}L","9"]
argument2[8] = [157,1.7976931348623157e+308,"Vs",157,"5",":F4M=","t|l",49,"T5y","l 2"]
argument2[1.3599216339661573e+308] = null
ret... |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-07 11:38
from __future__ import unicode_literals
from datetime import timedelta
from django.contrib.auth.hashers import is_password_usable, make_password
from django.db import migrations
from django.utils import timezone
from oauthlib import common
USER... |
import styled from 'styled-components';
const OutoCompeleteMenuStyled = styled.div`
background: white;
box-shadow: 0.1rem 0.5rem 1rem rgba(0, 0, 0, 0.25);
display: block;
line-height: 1.5em;
max-height: 200px;
overflow-x: hidden;
overflow-y: auto;
... |