text stringlengths 3 1.05M |
|---|
# coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... |
/* protocol - serialize messages conforming to RFC 6455
*
* Copyright (c) 2013, Alex O'Konski
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must r... |
/*!
* # Semantic UI 2.0.7 - Transition
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function(n,e,i,t){"use strict";n.fn.transition=function(){{var a,o=n(this),r=o.selector||"",s=(new Date).getTime(),l... |
/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2017 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
!function(global,factory){if("function"==typeof define&&define.amd)define("/Plugin/dropify",["exports","Plugin"],factory);else if("undefined"!=typeof exports)factory(exports,require... |
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse
from django.utils.http import urlencode
import json
import urllib2
def index(request, year, month, day, hour, text):
params = {
'year': year,
'month': int(month) - 1, #JS takes month... |
""" :inventory """
import curses
import glob
import json
import os
import shlex
from distutils.spawn import find_executable
from typing import Any
from typing import Dict
from typing import List
from typing import Union
from . import run_action
from . import _actions as actions
from ..app import App
from ..app_publi... |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.$ = window.jQuery = require('jquery');
... |
/**
* @fileOverview The Server Timestamp reducer.
*/
import { ALL_PROBLEMS, SELECTED_PROBLEM } from '../actions/display-problem';
const initialState = {
problems: null,
selected_problem: null,
};
const displayProblemReducer = (state = initialState, action = {}) => {
switch (action.type) {
case ALL_PROBLE... |
webpackJsonp([0],{1418:function(e,t,r){r(1473);var n=r(1)(r(1438),r(1491),"data-v-5412dbf8",null);e.exports=n.exports},1426:function(e,t,r){"use strict";(function(e){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return i.TYPED... |
import requests #Permite fazer requests semelhantes a um data browser, mas sem o data browser
import hashlib #Permite usar a função hash
import sys
import getpass #Permite que o password entrado pelo usuário fique escondido.
#Passei o password 'password123' por uma função hash (SHA1 Hash), gerando 'CBFDAC6008F9CAB40837... |
from geoprocessing.core import EmePiperApp as pipe
class ModelConsumer(pipe.Consumer):
requires = 'final product', str
def consume(self, asd, dtype):
# finally mark the end of pipeline
self.mark_consumed('single country', 1)
#print(asd)
|
"""
Ansible action plugin to generate pv and pvc dictionaries lists
"""
from ansible.plugins.action import ActionBase
from ansible import errors
class ActionModule(ActionBase):
"""Action plugin to execute health checks."""
def get_templated(self, var_to_template):
"""Return a properly templated ansi... |
#!/usr/bin/python
# Dependencies and Logistics ===================================================
# Command to navigate between directories
from os import chdir
# Command to acquire directory path
from os.path import dirname
# Command to acquire script name and module search path
from sys import argv, path
# Navi... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google 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... |
function loadFromURL(url){
fetch(url)
.then(response => response.json())
.then(function(data){
loadSolomon(data)
autoSanitize();
changePage('home');
});
}
function exportModel(){
var out={};
out.STRUCTURE=STRUCTURE;
out.DATA=DATA;
out.MODELS=MODELS;
for(var key in out.MODEL... |
window.config = {
// default: '/'
routerBasename: '/',
// default: ''
relativeWebWorkerScriptsPath: '',
servers: {
dicomWeb: [
{
name: 'DCM4CHEE',
wadoUriRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado',
qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DC... |
import numpy as np
import os.path
import scipy.misc
try:
import cPickle as pickle
except :
import pickle
import tensorflow as tf
import time
from tensorflow.python.framework import graph_util
FLAGS = tf.app.flags.FLAGS
def _summarize_progress(train_data, feature, label, gene_output, batch, suffix, max_samples=... |
def f(x):
return (x+1)**2
def df(x, h):
return (f(x+h) - f(x-h)) / 2*h
for h in [1,1e-1,1e-2]:
print([h,df(0,h),df(1,h)])
|
import { StyleSheet, Dimensions } from "react-native";
const width = Dimensions.get('screen').width
export const styles = StyleSheet.create({
caroselImageStyle : {
width: width,
resizeMode: 'cover',
height: 300
},
previewImageContainerStyle: {
width,
justifyConten... |
# Copyright 2019 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
//
// CoreDataTableViewController.h
//
// Created for Stanford CS193p Fall 2011.
// Copyright 2011 Stanford University. All rights reserved.
//
// This class mostly just copies the code from NSFetchedResultsController's documentation page
// into a subclass of UITableViewController.
//
// Just subclass this and se... |
import sublime
import sublime_plugin
class NumberCommand(sublime_plugin.TextCommand):
def run(self, edit):
selection = self.view.sel()
for region in selection:
try:
value = int(self.view.substr(region))
self.view.replace(edit, region, str(self.op(value)))... |
#pragma once
namespace DX
{
// Provides an interface for an application that owns DeviceResources to be notified of the device being lost or created.
interface IDeviceNotify
{
virtual void OnDeviceLost() = 0;
virtual void OnDeviceRestored() = 0;
};
} |
# coding: utf-8
from base import test
test.__doc__ = """
Test fabkit or fablib.
## Args
* target, t
* Set test target(all or module) to test fabfile.
* fablib, l
* Set fablib target to test fablib.
* boostrap, b (default=true)
* Whether run bootstrap task, before test.
* cluster, c (default=.*)
* Filter clus... |
from datetime import datetime
from statistics import mean
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.utils import timezone
from django.utils.text import slugify
class Film(models.Model):
"""
Used for storing info on particular films releas... |
odoo.define('point_of_sale.gui', function (require) {
"use strict";
// this file contains the Gui, which is the pos 'controller'.
// It contains high level methods to manipulate the interface
// such as changing between screens, creating popups, etc.
//
// it is available to all pos objects trough the '.gui' field.
va... |
from config.dbController import con
cur = con.cursor()
class petsService:
def createPet(self, nP):
try:
sql = "INSERT INTO pets (owner_id, catOrDog, name, birthday, gender, pictureUrl) values (%s, %s, %s, %s, %s, %s)"
cur.execute(sql, (nP["owner_id"], nP["catOrDog"], nP["name"], nP["birthday"], n... |
# %%
import torch
import torch.nn as nn
# %%
def transfer(model_source, model_target):
'''
model_source: Single nn.Model instance
model_target: Single nn.Model instance
for multiple source or targets, refer to aggregate() or distribute()
'''
for p_trg, p_src in zip(model_target.parameters(), m... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ## ###############################################
# blink.py
#
# Author: Mauricio Matamoros
# Licence: MIT
# Date: 2020.03.01
#
# Blinks a led on pin 32 using a Raspberry Pi
#
# ## ###############################################
# Import Raspberry Pi's GPIO control... |
define([
'summernote/core/agent',
'summernote/core/func',
'summernote/core/dom',
'summernote/core/async',
'summernote/core/key',
'summernote/core/list',
'summernote/editing/History',
'summernote/module/Editor',
'summernote/module/Toolbar',
'summernote/module/Statusbar',
'summernote/module/Popover'... |
"""
This script automates the process of connecting with people on LinkedIn
"""
from selenium import webdriver as wd
import time as t
# insert the file path where our drive executable is
driver = wd.Chrome(
'C:/Users/George/Downloads/chromedriver_win32/chromedriver.exe')
# the website we want to get acc... |
#!/usr/bin/env python
# TODO nf-core: Update the script to check the samplesheet
# This script is based on the example at: https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv
import os
import sys
import errno
import argparse
def parse_args(args=None)... |
#!/usr/bin/env python
"""Plot kmer distributions given ONT model file with options for the HDP model file and the buildAssignments.tsv file"""
########################################################################
# File: plot_kmer_distributions.py
# executable: plot_kmer_distributions.py
#
# Author: Andrew Bailey
#... |
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'flaskr.sqlite')
SQLALCHEMY_TRACK_MODIFICATIONS = False
LO... |
export default /* @ngInject */ ($stateProvider) => {
$stateProvider.state('pci.projects.project.instances.instance.rescue', {
url: '/rescue',
views: {
modal: {
component: 'pciInstancesInstanceRescue',
},
},
layout: 'modal',
resolve: {
images: /* @ngInject */ (
Pci... |
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = 'webOS Homebrew Project'
SITENAME = 'webOS Homebrew Project'
SITEURL = ''
PATH = 'content'
STATIC_PATHS = ['api', 'extra/CNAME', 'styles']
ARTICLE_EXCLUDES = ['api']
PAGE_PATHS = ['pages', 'apps']
EXTRA_PATH_METADATA = {
'extra/CNAME': {'path': 'CNAME'},
... |
"""
The implementation of some callbacks based on Tensorflow.
@Author: Yang Lu
@Github: https://github.com/luyanger1799
@Project: https://github.com/luyanger1799/amazing-semantic-segmentation
"""
import tensorflow as tf
import numpy as np
callbacks = tf.keras.callbacks
backend = tf.keras.backend
cla... |
# for localized messages
from . import _, allowShowOrbital, getOrbposConfList
from enigma import eEPGCache, eTimer, eServiceReference, eServiceCenter, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_HALIGN_CENTER, RT_VALIGN_CENTER, eListboxPythonMultiContent, getDesktop, getBestPlayableServiceReference
import NavigationInstance
... |
import datetime
from argparse import ArgumentParser
from typing import Any
from django.db.models import Count, QuerySet
from django.utils.timezone import now as timezone_now
from zerver.lib.management import ZulipBaseCommand
from zerver.models import UserActivity
class Command(ZulipBaseCommand):
help = """Report... |
# -*- coding: utf-8 -*-
# This file as well as the whole tsfresh package are licenced under the MIT licence (see the LICENCE.txt)
# Maximilian Christ (maximilianchrist.com), Blue Yonder Gmbh, 2016
import numpy as np
import unittest
import pandas as pd
from tsfresh.examples.driftbif_simulation import velocity, load_dr... |
from django.db import models
from pygments import highlight
from pygments.formatters.html import HtmlFormatter
from pygments.lexers import get_all_lexers, get_lexer_by_name
from pygments.styles import get_all_styles
LEXERS = [item for item in get_all_lexers() if item[1]]
LANGUAGE_CHOICES = sorted([(item[1][0], item[0]... |
# Copyright 2017 Antoine Miech 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 applicable law o... |
#!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sample_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djang... |
import json
from typing import Any, Dict, List, Optional
from fastapi import APIRouter, Depends, Path, Query, Response, status
from contaxy.api.dependencies import ComponentManager, get_component_manager
from contaxy.schema import CoreOperations, JsonDocument
from contaxy.schema.auth import AccessLevel
from contaxy.s... |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... |
from pypy.objspace.flow.model import Constant, Variable, SpaceOperation
from pypy.objspace.flow.model import c_last_exception
from pypy.objspace.flow.model import mkentrymap
from pypy.translator.backendopt.support import split_block_with_keepalive
from pypy.translator.backendopt.support import log
from pypy.translator.... |
import { combineReducers } from 'redux';
import announceReducer from './announce-reducer';
import displayFormReducer from './display-form-reducer';
import displayListReducer from './display-list-reducer';
import flavorListReducer from './flavor-list-reducer';
import selectedFlavorReducer from './selected-flavor-reducer... |
DECL|AddrCallback|member|void (* AddrCallback)(struct __SMBUS_HandleTypeDef *hsmbus, uint8_t TransferDirection, uint16_t AddrMatchCode); /*!< SMBUS Slave Address Match callback */
DECL|AddressingMode|member|uint32_t AddressingMode; /*!< Specifies if 7-bit or 10-bit addressing mode for master is selected.
DECL|AnalogFil... |
define(function () {
function RunQuery (bezl, queryName) {
switch (queryName) {
case "Accounts":
bezl.vars.loading = true;
// Pull in the accounts list for the logged in user
bezl.dataService.add('Accounts','brdb','sales-rep-queries','ExecuteQ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[173],{873:function(n,w,o){}}]); |
'use strict';
var subapp = require('express')(),
debug = require('debug')('mountie:test');
subapp.get('/do-some-oauth', (req, res, next) => res.send("rsponse"));
subapp.on('mount', (parent) => {
debug("Mounted oauth provider at " + subapp.mountpath);
});
module.exports = subapp;
|
/*!
* txdb.js - persistent transaction pool
* Copyright (c) 2017-2018, Christopher Jeffrey (MIT License).
* https://github.com/handshake-org/hsd
*/
'use strict';
const assert = require('bsert');
const bio = require('bufio');
const {BufferSet} = require('buffer-map');
const util = require('../utils/util');
const A... |
#
# This source file is part of the EdgeDB open source project.
#
# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... |
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] =... |
from collections import Counter
def convert_input(raw_input):
values = list(map(int, raw_input.splitlines()))
return values + [0, max(values) + 3]
def run_first(values):
values.sort()
differences_count = Counter(get_differences(values))
return differences_count[1] * differences_count[3]
# this solution assumes... |
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... |
'use strict';
var setDate = require('./setDate'),
getDate = require('./getDate'),
getWeekday = require('./getWeekday'),
classChecks = require('../../common/var/classChecks'),
mathAliases = require('../../common/var/mathAliases');
var isNumber = classChecks.isNumber,
abs = mathAliases.abs;... |
import React, { useState, useEffect } from "react";
import Col from "../Col/Col";
import * as animations from "../../animations";
import * as cts from "../../utility";
import { generateRandomArray } from "../../utility";
import Toolbar from "../../components/Navigation/Toolbar/Toolbar";
import styles from "./SortingVis... |
from graphviz import Digraph
import theme
import util
import os
from pathlib import Path
import datamap
import leetcode
from svgpathtools import svg2paths
from bs4 import BeautifulSoup
import platform_view
class LeetcodeView(platform_view.PlatformView):
def __init__(self, leet):
self.leet = leet
se... |
import React from 'react'
import OrdersList from 'modules/orders/list';
import OrdersFilter from 'modules/orders/listFilter';
import Statuses from 'modules/orderStatuses/list';
export default () => (
<div className="row row--no-gutter col-full-height">
<div className="col-xs-3 col--no-gutter scroll col-full-heig... |
'use strict'
const connectCtr = require('./../index')
module.exports.testParseMethodNameWithoutParameters = function(test) {
/**
* Arrange
*/
const controller = {
dummy: function() {
return {
foo: () => 'foo',
bar: 'just a string'
}
... |
from typing import Type, Dict, Any, get_type_hints
from .type_detection import is_generic_concrete
def fill_type_args(args: Dict[Type, Type], type_: Type) -> Type:
type_ = args.get(type_, type_)
if is_generic_concrete(type_):
type_args = tuple(
args.get(a, a) for a in type_.__args__
... |
# Copyright (c) 2013-2015 Francois GINDRAUD
#
# 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
# without limitation the rights to use, copy, modify, merge, publ... |
import numpy as np
from wavedata.tools.core.voxel_grid_2d_v2 import VoxelGrid2D
from pplp.core.bev_generators import bev_generator
class BevSlices(bev_generator.BevGenerator):
NORM_VALUES = {
'lidar': np.log(16),
}
def __init__(self, config, kitti_utils):
"""BEV maps created using slic... |
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# 程序选择框
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
ParX =('Par6.1', 'Par6.5', 'Par6.6', 'Par6.7')
ParX_val = ParX[2]
print("正在运行第 "+ParX_val+" 节程序......")
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''... |
leaderboard = `
"bitsplease",0.107780
"goosefish",0.124838
"Pay The Price",0.128709
"Python charmers",0.129100
"Mask_Man",0.130925
"sovclub",0.133155
"Mystics of Tarot",0.136294
"SKTW",0.137070
"Gorgonio",0.137524
"Virus Goin Back",0.142718
"Bparentheses",0.145690
"Random perMutation",0.147802
"ASCIT_DONUT test3",0.149... |
//# sourceMappingURL=../../userManagement/controllers/personalizationController.js.map |
from lib.util import clean_screen
def input_int(msg, allow_negative=True, max_val=None, min_val=None,
default=0):
""" Recibes input and handles error returning 0 by error default """
try:
n = int(input(msg))
if not allow_negative:
n = abs(n)
if max_val is not... |
/* Copyright (c) 2005-12, Alexander Holupirek <alex@holupirek.de>, BSD license */
#include <err.h>
#include <openssl/evp.h>
#include <openssl/md5.h>
#include <string.h>
#include "md5.h"
/**
* Print ascii hex representation of md5 value to newly allocated string.
*/
static int
md5toa(unsigned char *md_value, unsigne... |
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
import React, { Component } from 'react';
import { handleMjmlProps } from './utils';
export var MjmlBreakpoint = /*#__PURE__*/function ... |
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* L2TP-over-IP socket for L2TPv3.
*
* Author: James Chapman <jchapman@katalix.com>
*/
#ifndef _LINUX_L2TP_H_
#define _LINUX_L2TP_H_
#include <linux/types.h>
#include <linux/socket.h>
#include <linux/in.h>
#include <linux/in6.h>
#define IPPROTO_L2T... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:13:13 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/Frameworks/EventKit.framewo... |
from fontTools.misc.fixedTools import (
fixedToFloat,
floatToFixed,
floatToFixedToStr,
fixedToStr,
strToFixed,
strToFixedToFloat,
)
import unittest
class FixedToolsTest(unittest.TestCase):
def test_roundtrip(self):
for bits in range(0, 15):
for value in range(-(2**(bit... |
import json
import argparse
import numpy as np
from pathlib import Path
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
parser = argparse.ArgumentParser()
parser.add_argument("GTfile")
parser.add_argument("DTfile")
args = parser.parse_args()
GTpath = Path(args.GTfile)
DTpath = Path(args.DT... |
"use strict";
/**
* Sends your verify email
*
* @author Mike Christopher SYLVESTRE <mike.sylvestre@lyknowledge.io>
*/
Object.defineProperty(exports, "__esModule", { value: true });
const kue = require("kue");
const Locals_1 = require("./Locals");
const Log_1 = require("../middlewares/Log");
class Queue {
constr... |
# global
import math
import jax.numpy as jnp
from typing import Union, Tuple, Optional, List
# local
from ivy.functional.backends.jax import JaxArray
def squeeze(x: JaxArray,
axis: Union[int, Tuple[int], List[int]])\
-> JaxArray:
return jnp.squeeze(x, axis)
def _flat_array_to_1_dim_array(x)... |
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyWxmplot(PythonPackage):
"""wxPython plotting widgets using matplotlib."""
homepage ... |
# Copyright (c) 2020 The Khronos Group 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 required by applicable law or agreed ... |
#
# core.py
#
import os
from typing import (
Optional as OptionalType,
Iterable as IterableType,
NamedTuple,
Union,
Callable,
Any,
Generator,
Tuple,
List,
TextIO,
Set,
Dict as DictType,
Sequence,
)
from abc import ABC, abstractmethod
from enum import Enum
import strin... |
__author__ = 'michael'
from django.conf.urls.defaults import patterns, url
from unobase.support import views, forms
from unobase.mixins import login_required
urlpatterns = patterns('',
# Case request
url(r'^overview/$',
views.CaseList.as_view(
template_name='support/case/case_list.html')... |
#pragma once
namespace DivaHook::Components
{
enum InputBufferType
{
INPUT_TAPPED,
INPUT_RELEASED,
INPUT_DOWN,
INPUT_DOUBLE_TAPPED,
INPUT_INTERVAL_TAPPED,
};
} |
"Collection of reused algorithms."
def find_cycles(in_graph, out_graph):
cycles = out_graph.copy()
deps = []
changed = True
while changed:
changed = False
for node, edges in cycles.items():
# if you have no incoming edges and do have outgoing edges,
# then trim ... |
//===- TypeLoc.h - Type Source Info Wrapper ---------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
Copyright 2017 Ziadin Givan
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
dis... |
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# 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 applica... |
from lxml import html
import requests
import BeautifulSoup
session = requests.session()
page = requests.get('http://x-rates.com/table/?from=USD&amount=1')
tree = html.fromstring(page.content)
currencies = tree.xpath('//*[@id="content"]/div[1]/div/div[1]/div[1]/table[2]/tbody/tr[position() > 0 and not(position > 53)]... |
import React, { PureComponent } from "react";
import { ActivityIndicator, Platform, StyleSheet, Text, View, ViewPropTypes } from "react-native";
import LinearGradient from "react-native-linear-gradient";
import PropTypes from "prop-types";
import { mix } from "yonius";
import { capitalize } from "ripe-commons-nati... |
# Copyright 2021 The TensorFlow 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 applica... |
import Vue from 'vue'
import Paginate from 'vuejs-paginate/src/components/Paginate.vue'
Vue.component('paginate', Paginate) |
function WatchMembersCtrl( $rootScope, $resource, SiteInfo )
{
var vm = this;
var WatchMembersResource = $resource( '/api/Watch/MemberList' );
var getHousePolys = function ( memberList )
{
var usedAddressIds = [];
var housePolys = [];
_.each( memberList, function ( m ... |
var _ctx;
function init (e) {
// get CanvasRenderingContext2D object
_ctx = e.context;
}
function create () {
// clear screen
_ctx.clearRect(0, 0, _ctx.canvas.clientWidth, _ctx.canvas.clientHeight);
// get display dimensions
var wDisplay = _ctx.canvas.unobstructedWidth;
var hDisplay = _ctx.canvas.unob... |
import React from 'react';
import Preloader from '../../../../../components/Preloader';
import Wizard from './Wizard';
import steps from './Wizard/steps';
const DrawerForm = ({ single, onSend, step }) => (
single.get('loading') ? <Preloader /> : <Wizard initialValues={single.get('data')} onFinish={onSend} step={step... |
const React = require("react");
const { Col, Button } = require("react-bootstrap");
const Stock = function(props) {
return (
<Col className="stock" sm={6} xs={10} smOffset={3} xsOffset={1}>
<Button className="close" onClick={props.remove.bind(null, props.code)}>
<span>×</span>
<... |
/*
* Copyright (C) 2009-2011 Nick Johnson <nickbjohnson4224 at gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PR... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = require("fs");
const esprima_1 = require("esprima");
const escodegen_1 = require("escodegen");
const __1 = require("..");
const build1Bit = () => {
console.log('1 bit');
const gameYukiSource = fs_1.readFileSync('./examples... |
# Generated by Django 3.2.6 on 2021-08-21 11:10
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... |
# Prism Rewrite - Basic Command
# Modules
import discord
from json import loads, dumps
from assets.prism import Tools
from discord.ext import commands
# Main Command Class
class Premium(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.desc = "Maybe this is where you get premium"
... |
window.onload = function() {
const flexpoolServer = "https://api.flexpool.io/v2/miner/";
var frequency;
const table = document.getElementById("table");
const walletIdInput = document.getElementById("walletID");
const IdLabel = document.getElementById("IdLabel");
const requestBtn = document.getEl... |