text stringlengths 3 1.05M |
|---|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Universecoin</source>
<translation>O Universecoin-u</translation>
... |
---
layout: post
title: "Pointers"
subtitle: ""
section: pointers
---
### 1.1 Introduction:
## Why do we need pointers? What is its application?
Consider that you wish to go to a place and you do not know where that place is. Assume that there are only sign boards to help you.
**Pointers are like sign boards** ... |
var RxOld = require('rx');
var RxNew = require('../../../../index');
module.exports = function (suite) {
var oldCatchWithCurrentThreadScheduler = RxOld.Observable.throw(new Error('error'), RxOld.Scheduler.currentThread)
.catch(function () { return RxOld.Observable.of(25, RxOld.Scheduler.currentThread); });
var... |
package handler
import (
"encoding/json"
"net/http"
"gopkg.in/macaron.v1"
)
//
func IndexV1Handler(ctx *macaron.Context) (int, []byte) {
result, _ := json.Marshal(map[string]string{"message": "Pilotage Backend REST API Service"})
return http.StatusOK, result
}
|
package org.apache.flink.connector.file.src.enumerate;
import org.apache.flink.connector.file.src.FileSourceSplit;
import org.apache.flink.connector.file.src.testutils.TestingFileSystem;
import org.apache.flink.core.fs.Path;
import org.junit.After;
import org.junit.Test;
import java.util.ArrayList;
import java.uti... |
function showLoader(show){
document.querySelector('.ajax-loader').style.display = show;
}
function openModal(){
$redmasScript("#pModal").modal({
backdrop: 'static',
keyboard: false
});
}
function disableModalButtons(disabled){
$redmasScript("#pModal").find('butt... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
var CoreView = require('backbone/core-view');
var template = require('./dataset-header.tpl');
var moment = require('moment');
var InlineEditorView = require('builder/components/inline-editor/inline-editor-view');
var TipsyTooltipView = require('builder/components/tipsy-tooltip-view');
var renameTableOperation = require... |
module Azure::ARM::SQL
module Models
#
# Represents the response to a Get Azure SQL Database Service Objectives
# request.
#
class ServiceObjectiveListResult
include MsRestAzure
# @return [Array<ServiceObjective>] The list of Azure SQL Database
# Service Objectives.
attr_... |
from routines import cspline_transform, cspline_sample4d, slice_time
from transform import Affine, apply_affine, BRAIN_RADIUS_MM
import numpy as np
from scipy import optimize
DEFAULT_SPEEDUP = 4
DEFAULT_OPTIMIZER = 'powell'
DEFAULT_WITHIN_LOOPS = 2
DEFAULT_BETWEEN_LOOPS = 5
def grid_coords(xyz, affine, fro... |
package com.sun.jini.test.spec.security.proxytrust.proxytrustexporter;
import java.util.logging.Level;
// java.rmi
import java.rmi.Remote;
import java.rmi.server.ExportException;
// net.jini
import net.jini.export.Exporter;
import net.jini.security.proxytrust.ProxyTrustExporter;
// com.sun.jini
import com.sun.jini... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
module AuthenticatedSystem
def self.add_routes
Merb::BootLoader.after_app_loads do
Merb::Router.prepend do
match("/login").to(:controller => "Sessions", :action => "create").name(:login)
match("/logout").to(:controller => "Sessions", :action => "destroy").name(:logout)
resources :use... |
VMCode vm_code_copy(const VMCode original, int *const error) {
VMCode copy = {
.length = original.length,
.capacity = original.capacity,
.code = malloc(original.capacity * sizeof(uint8_t))
};
if (!copy.code || !original.code) {
if (error) {*error = 1;}
goto end;
}
for (int i = 0; i < copy.length; ... |
<?php
/**
* Block before edit form
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\ImportExport\Block\Adminhtml\Import\Edit;
class Before extends \Magento\Backend\Block\Template
{
/**
* Basic import model
*
* @var \Magento\ImportExport\Model\Import
*/
... |
Sponsored by Datadog: [**pythonbytes.fm/datadog**](https://pythonbytes.fm/datadog)
**Michael #1:** [**Guido retires**](https://twitter.com/gvanrossum/status/1189546865114529792)
- Guido van Rossum has left DropBox and retired ([post](https://blog.dropbox.com/topics/company/thank-you--guido))
- Let’s all take a momen... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
<p align="center">
<img src="/images/banner.png" />
</p>
`StyledTextKit` is a declarative attributed string library for fast rendering and easy string building. It serves as a simple replacement to `NSAttributedString` and `UILabel` for background-thread sizing and bitmap caching.
## Features
- Declarative attribu... |
<?php
/**
* AliasesTest
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* RevenueWire JackFruit REST API (Alpha)
*
* This API *does not* represent the final product. Some of the APIs listed b... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_w32_vsnprintf_62a.cpp
Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml
Template File: sources-vasinks-62a.tmpl.cpp
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadS... |
'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var Forms = new Module('forms');
/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
Forms.register(function(app, auth, database) {
//We enable routing. By default the Packag... |
<?php
namespace Magento\Customer\Test\Constraint;
use Magento\Mtf\Constraint\AbstractConstraint;
use Magento\Customer\Test\Page\CustomerAccountIndex;
use Magento\Customer\Test\Fixture\Customer;
/**
* Assert that edit page of customer account contains correct title.
*/
class AssertCustomerBackendFormTitle extends ... |
FROM balenalib/hummingboard2-ubuntu:hirsute-build
ENV NODE_VERSION 17.6.0
ENV YARN_VERSION 1.22.4
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver keyserver.ubuntu.co... |
module Sound.Filter where
import Sound.Source
type Filter = Source -> Source
timeshift :: Double -> Filter
timeshift t (Source src) = Source $ src . (+t)
volume :: Double -> Filter
volume vol (Source src) = Source $ (* vol) . src
modulate :: (Double -> Double) -> Filter
modulate fmod (Source src) = Source (\t -> s... |
package container
import (
"io/ioutil"
"github.com/kubernetes/dashboard/src/app/backend/resource/logs"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
client "k8s.io/client-go/kubernetes"
"k8s.io/client-go/pkg/api"
)
// PodContainerList is a list of containers of a pod.
type PodContainerList struct {
Containers ... |
package com.azure.digitaltwins.core;
import com.azure.core.http.HttpClient;
import org.junit.jupiter.api.Test;
public abstract class QueryTestBase extends DigitalTwinsTestBase {
@Test
public abstract void validQuerySucceeds(HttpClient httpClient, DigitalTwinsServiceVersion serviceVersion);
}
|
require 'pathname'
require 'nokogiri'
name = ARGV.first
unless name
puts <<-HELP
INSTRUCTIONS
./icon_export_helper.rb ICON_NAME
When asked to copy the svg, open the Design System Sketch file, open the Symbols page (not the Icons page), right-click on the icon you want to export, and select "Copy SVG Code" and the s... |
define(["jquery", "backbone", "models/ElementTypeCollection", "views/ElementTypeView", "customs/custom"],
function($, Backbone, ElementTypeCollection, ElementTypeView, custom){
var ElementTypeListView = Backbone.View.extend({
// The DOM Element classes associated with this view
el: "... |
INSERT INTO air_quality_data_15min (date, time, value_ch4 , value_nm , value_no , value_no2 , value_nox , value_o3 , value_co , value_so2 , value_pm25)
SELECT date,date_trunc('hour',time)+interval '15 minutes' as time,avg(value_ch4),avg(value_nm),avg(value_no),avg(value_no2),avg(value_nox),avg(value_o3),avg(value_co... |
<?php
namespace BryanHenry\MetrifyBundle\Components\Model;
use JMS\Serializer\Annotation as Serializer;
/**
* @Serializer\ExclusionPolicy("none")
*/
class DataTables {
/**
* The draw sequence.
*
* @var int
*/
protected $draw;
/**
* The total number of records.
*
* ... |
namespace LionFire.Structures
{
public interface IDefaultableWriteWrapper<in T> : IWriteWrapper<T>, IDefaultable { }
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Mar 11 14:56:20 CDT 2013 -->
<TITLE>
H-Index
</TITLE>
<META NAME="date" CONTENT="2013-03-11">
<LINK REL ="stylesheet" TYPE="text/css" HR... |
const char * gdf_error_get_name(gdf_error errcode) {
switch (errcode) {
// There must be one entry per enum values in gdf_error.
GETNAME(GDF_SUCCESS)
GETNAME(GDF_CUDA_ERROR)
GETNAME(GDF_UNSUPPORTED_DTYPE)
GETNAME(GDF_COLUMN_SIZE_MISMATCH)
GETNAME(GDF_COLUMN_SIZE_TOO_BIG)
GETNAME(GDF_DATA... |
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta n... |
package com.thoughtworks.datacommons.prepbuddy.utils
import scala.collection.immutable.HashMap
class NumberMap() {
private var numbers: Map[String, Double] = new HashMap[String, Double]()
def put(key: String, value: Double): Unit = {
numbers += (key -> value)
}
def keyWithHighestValu... |
AutoComplete is a jQuery Mobile plugin which allows developers to add autoComplete search boxes to your project.
Based on the [blog entry ](http://www.raymondcamden.com/index.cfm/2012/3/27/Example-of-Autocomplete-in-jQuery-Mobile) of Raymond Camden ([@cfjedimaster](https://github.com/cfjedimaster)).
## Example
View a... |
You can define formats and keywords that perform validation asynchronously by accessing database or some other service. You should add `async: true` in the keyword or format definition (see [addFormat](./api.md#api-addformat), [addKeyword](./api.md#api-addkeyword) and [User-defined keywords](./keywords.md)).
If your s... |
using System;
using System.Diagnostics;
using System.Linq;
using Gibraltar.Agent.Metrics;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
#pragma warning disable 1591
namespace Loupe.Agent.AspNetCore.Metrics
{
/// <summary>
/// Metric for all requests to ASP.NET
/// </summary>
pub... |
<?php
namespace Multoo\Shipping;
/**
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-02-21 at 15:20:23.
*/
class PackageTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Package
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* T... |
package org.jf.smalidea.debugging;
import com.intellij.debugger.PositionManager;
import com.intellij.debugger.PositionManagerFactory;
import com.intellij.debugger.engine.DebugProcess;
import org.jetbrains.annotations.NotNull;
public class SmaliPositionManagerFactory extends PositionManagerFactory {
@Override
... |
vardir = "."
date_format = "%d-%b-%Y"
# ----------------------------------------------------------------------
# functions
def usage():
print("""Usage: gen.py file.in [...]
Substitute placeholders in input files with content
""")
def gen_html(file):
"""Replace variables in the file with their content"""
... |
declare module 'duration' {
export declare class Duration {
constructor (start: Date, end: Date)
toString (mode?: 0 | 1, threshold?: number): string
}
}
// uuid/v4 is deprecated so @types/uuid doesn't declare types for v4.
declare module 'uuid/v4' {
export default function (): string
}
// need upgrade t... |
<?php
namespace XeroPHP\Models\PayrollUS\Employee;
use XeroPHP\Remote;
class WorkLocation extends Remote\Object
{
/**
* Xero unique identifier for WorkLocation. e.g c56b19ef-75bf-45e8-98a4-e699a96609f7
*
* @property string WorkLocationID
*/
/**
* Boolean to specify if this work loca... |
<!DOCTYPE html>
<html>
<head>
<title>InstaClone</title>
<link rel="stylesheet" type="text/css" href="./css/style.css">
</head>
<body>
<div class="body-wrapper"></div>
<script type="text/javascript" src="./js/app.js"></script>
</body>
</html> |
package org.anderes.edu.soap;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Person {
private String name;
Person() {
super();
}
public String getName() {
return name;
}
public void setName(String name) {
this.na... |
package org.apache.druid.server.coordinator.helper;
import com.google.common.collect.Lists;
import org.apache.druid.client.ImmutableDruidServer;
import org.apache.druid.java.util.common.Pair;
import org.apache.druid.java.util.common.StringUtils;
import org.apache.druid.java.util.emitter.EmittingLogger;
import org.ap... |
import os
import logging
import sys
import datetime
import gc
from functools import reduce
import operator as op
import torch
import numpy as np
if torch.cuda.is_available():
import GPUtil
def get_immediate_subdirectories(a_dir):
return [name for name in os.listdir(a_dir)
if os.path.isdir(os.path.... |
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_h... |
package org.elasticsearch.test;
import com.carrotsearch.randomizedtesting.LifecycleScope;
import com.carrotsearch.randomizedtesting.RandomizedTest;
import com.carrotsearch.randomizedtesting.annotations.*;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope.Scope;
import com.google.common.base.Predic... |
package org.objecttrouve.testing.matchers.fluentits;
import org.hamcrest.CoreMatchers;
import org.openjdk.jmh.annotations.*;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.TimeUnit;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import stat... |
""" command line options, ini-file and conftest.py processing. """
import argparse
import shlex
import traceback
import types
import warnings
import py
# DON't import pytest here because it causes import cycle troubles
import sys, os
import _pytest._code
import _pytest.hookspec # the extension point definitions
impor... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
'use strict';
/* Controllers */
angular.module('myApp.controllers', []).
/*
TODOs
- move some MORE logic to services
- Maybe just remove valid for coords completely
- move labels into one object
- move more inits to services
- Document code!
*/
controller('DrawControlle... |
package org.folio.marccat.dao.persistence;
import org.folio.marccat.dao.DAODescriptor;
import org.folio.marccat.dao.SubjectDescriptorDAO;
/**
* The different cross references for the subject
*
* @author paulm
* @author carment
*/
public class SBJCT_REF extends REF {
/**
* The DAO.
*/
public DAODescript... |
package obvious.view.event;
import obvious.util.Adaptable;
/**
* An interface to wrap existing listeners or controls for view in targetted
* toolkits.
* @author Hemery
*
*/
public interface ViewListener extends Adaptable {
}
|
#ifndef INCLUDE_MARATHON_PATHCONGESTION_H_
#define INCLUDE_MARATHON_PATHCONGESTION_H_
//#define DEBUG
#include <unordered_map>
#include "marathon/rational.h"
#include "marathon/state_graph.h"
#include "marathon/path_construction_scheme.h"
namespace marathon {
template<typename T>
class CongestionBoundCalc... |
{% extends "account/base_auth.html" %}
{% load i18n %}
{% load bootstrapcss %}
{% block title %}{% trans "Password Reset" %}{% endblock %}
{% block sub_content %}
<div class="login-panel panel panel-default center-block">
<div class="panel-body">
<div class="login-title text-center">{% trans 'Password Re... |
using System;
using System.Runtime.InteropServices;
namespace Common
{
public static partial class PInvoke
{
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms684179(v=vs.85).aspx
[Flags]
private enum LoadLibraryExFlags : uint
{
DONT_RESOLVE_DLL_REFERENCE... |
/**
* Created by carlos on 19/11/15.
*/
'use strict';
angular.module('ndtM-app').config(
function ($httpProvider) {
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
$httpProvider.defaults.headers.post['Content-Type'] = 'application/json;charset=utf-8';
});
angular.... |
package simpledb;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import junit.framework.JUnit4TestAdapter;
public class LockingTest extends TestUtil.CreateHeapFile {
private PageId p0, p1, p2;
private TransactionId tid1, tid2... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.synapse.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.j... |
<?php
declare(strict_types=1);
namespace Doctrine\Tests\ORM\Functional;
use DateTime;
use Doctrine\Common\Reflection\RuntimePublicReflectionProperty as CommonRuntimePublicReflectionProperty;
use Doctrine\ORM\Mapping\MappingException;
use Doctrine\ORM\Mapping\ReflectionEmbeddedProperty;
use Doctrine\ORM\Query\QueryEx... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>change (Spec::Matchers)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link re... |
function getXMLDoc(url)
{
var agnt=navigator.userAgent.toLowerCase();
var isChrome = false;
var isIE = (agnt.indexOf("msie")>0 || agnt.indexOf("trident")>0) ? true : false;
if(!isIE) {
if(agnt.indexOf("chrome")>0) isChrome = true;
}
var xmlDoc;
if(isChrome) {
var xhr = new XMLHttpRequest();
xhr.... |
// Copyright (C) 2013 The Android Open Source Project
//
// 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 ... |
"""Child model."""
from invenio_db import db
from .parent import Parent
class Child(db.Model):
"""Child demo model."""
__tablename__ = 'child'
pk = db.Column(db.Integer, primary_key=True)
fk = db.Column(db.Integer, db.ForeignKey(Parent.pk))
|
package hr.fer.zemris.jcms.web.actions.data.support;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* Implementacija sučelje {@link IMessageLogger} koja se za lokalizaciju oslanja
* na mogučnosti Struts2 frameworka.
*
* @author marcupic
*
*/
public class DummyMessageLogge... |
<!DOCTYPE html>
<html>
<head>
<title>select-core-view.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href=... |
#########################
#
# Name: memlog.bash
#
# Purpose: Check and log memory usage on set of nodes.
#
# Usage: ./memlog.bash -j jobid -s
#
# Revision history: 2016-09-26 -- Script created, Martin Evaldsson, Rossby Centre
#
# Contact persons: martin.evaldsson@smhi.se
#
########################
program=$0
f... |
bool g() { return false; }
//- PtCall=@"g()" ref/call FnG
//- PtCall childof FnF // We should collapse K in abs(K) into cluster abs(K)
//- FnF childof CBody
//- @C defines/binding CBody
template <typename T> struct C { bool f(T* t) { return g(); } };
//- @f defines/binding SpecF
//- TsCall=@"g()" ref/call FnG
//- TsC... |
import { Attribute, Directive, ElementRef, Renderer, Input } from '@angular/core';
/**
* @name Label
* @description
* Labels are placed inside of an `ion-item` element and can be used
* to describe an `ion-input`, `ion-toggle`, `ion-checkbox`, and more.
*
* @property [fixed] - A persistent label that sits next ... |
import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 0, transform = "Fisher", sigma = 0.0, exog_count = 0, ar_order = 0); |
<!--
~ Licensed to Apereo under one or more contributor license
~ agreements. See the NOTICE file distributed with this work
~ for additional information regarding copyright ownership.
~ Apereo licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file
~ exc... |
using System;
namespace Azure.ResourceManager.BotService.Models
{
/// <summary> The set of properties specific to sign in url. </summary>
internal partial class CreateEmailSignInUrlResponseProperties
{
/// <summary> Initializes a new instance of CreateEmailSignInUrlResponseProperties. </summary>
... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>rmohr.examples</groupId... |
package app.controllers.api.masterdata;
import app.models.MdHistThtTbl;
import core.controllers.CRUDController;
public class MdHistThtTblController extends CRUDController<MdHistThtTbl>{
}
|
<?php
/* @WebProfiler/Profiler/toolbar_item.html.twig */
class __TwigTemplate_39f5e117dc9587c87c095189d29119ec0d06033b96cb50350ca9ef8fced67a39 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks =... |
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "orchids.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
# issue is rea... |
Title: Commenting part 3
Date: 2017-01-25 19:11
Category: Blog
I missed writing blog for two days in a row. I'll make up for it tonight with some thoughts on random subjects. Regarding the comments, looks like firebase deprecated the 2.x projects, so I'll have to make a new comments webapp in 3.x That might take some ... |
package kafkaiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/kafka"
)
// KafkaAPI provides an interface to enable mocking the
// kafka.Kafka service client's API operation,
// paginators, and waiters. This make unit testing your code that ca... |
import moviedb from "km-moviedb";
import redisCache from "../cache/redis.js";
import { Movie, Show, Person, Credits, ReleaseDates } from "./types.js";
class TMDBNotFoundError extends Error {
constructor(message) {
super(message);
this.statusCode = 404;
}
}
class TMDBUnauthorizedError extends Error {
c... |
package main
import (
"fmt"
c "github.com/erezak/gocourse/c07sort/c07sort"
)
type myArray []int
func (m myArray) IsFirstLessThanSecondByIndex(firstIndex int, secondIndex int) bool {
return m[firstIndex] < m[secondIndex]
}
func (m myArray) Length() int {
return len(m)
}
func (m myArray) Swap(firstIndex int, sec... |
"""Unit tests for M2Crypto.BIO.File.
Copyright (c) 1999-2002 Ng Pheng Siong. All rights reserved."""
import logging
import os
import platform
import tempfile
import ctypes
if platform.system() == 'Windows':
import ctypes.wintypes
from M2Crypto.BIO import File, openfile
from tests import unittest
log = logging.g... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ltac2: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
Caeoma junci Schwein., 1834
### Remarks
null |
package androidx.slice;
import static android.app.slice.SliceItem.FORMAT_ACTION;
import static android.app.slice.SliceItem.FORMAT_BUNDLE;
import static android.app.slice.SliceItem.FORMAT_IMAGE;
import static android.app.slice.SliceItem.FORMAT_INT;
import static android.app.slice.SliceItem.FORMAT_LONG;
import static ... |
layout: post
title: Alberta
excerpt: "Getting lost in the mountains"
modified: 2016-12-24T14:17:25-04:00
categories: travel
tags: [travel, Alberta, Edmonton, Calgary, Jasper, Lake Louis, Banff, Kananaskis]
comments: false
share: true
---
## Trip Report Summary
| | |
|:-... |
@interface AppDelegate : NSObject <NSApplicationDelegate> {
__weak NSTextField *_EncryptedStatusLabel;
__weak NSTextField *_UnencryptedStatusLabel;
}
@property (assign) IBOutlet NSWindow *window;
@property (weak) IBOutlet NSTextField *EncryptedStatusLabel;
@property (weak) IBOutlet NSTextField *Unencrypt... |
import os.path
from IPython.utils.traitlets import Unicode
from nbconvert.exporters import fullhtml
from IPython.config import Config
TEMPLATE_PATH = os.path.dirname(os.path.realpath(__file__)) + '/templates'
class FullHtmlStaticExporter(fullhtml.FullHtmlExporter):
"""
Exports a full HTML document with disp... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_42.c
Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml
Template File: sources-sink-42.tmpl.c
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: fscan... |
/**
* Created by fanzhang on 6/10/15.
*/
var rightMenu =
'<div class="custom-right-menu">\
<ul class="dropdown-menu navbar-inverse op-nav-drop-down" role="menu">\
<li><a onclick="addTextField();">Add Text</a></li>\
<li><a onclick="">Delete Selected Text</a></li>\
<li c... |
import { TimeHelpers } from "../../../ts/helpers/time-helpers";
describe(TimeHelpers.name, (): void => {
describe(TimeHelpers.convertSecondsToMilliseconds.name, (): void => {
it("should convert seconds to milliseconds correctly", (): void => {
const seconds = 30;
const expectedMilli... |
namespace base {
class TimeDelta;
class TimeTicks;
} // namespace base
namespace network {
class NetworkConditions;
// ThrottlingNetworkInterceptor emulates network conditions for transactions
// with specific client id.
class COMPONENT_EXPORT(NETWORK_SERVICE) ThrottlingNetworkInterceptor {
public:
using Throttle... |
<?php
namespace Magento\ConfigurableProduct\Ui\DataProvider\Product\Form\Modifier;
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;
use Magento\Ui\Component\Modal;
use Magento\Ui\Component\Form;
use Magento\Ui\Component\Container;
use Magento\Framework\UrlInterface;
/**
* Data provider fo... |