answer stringlengths 15 1.25M |
|---|
#include "QtAV/LibAVFilter.h"
#include <QtCore/QSharedPointer>
#include "QtAV/private/Filter_p.h"
#include "QtAV/Statistics.h"
#include "QtAV/AudioFrame.h"
#include "QtAV/VideoFrame.h"
#include "QtAV/private/AVCompat.h"
#include "utils/internal.h"
#include "utils/Logger.h"
/*
* libav10.x, ffmpeg2.x: av_buffersink_read... |
import os
import pydot
# import pprint
FONT = "Lucida Sans"
def graphviz_setup(gviz_path):
os.environ['PATH'] = gviz_path + ";" + os.environ['PATH']
def add_child(graph, child_id, child_label, parent_id, colour):
node = pydot.Node(child_id, style="filled", fillcolor=colour, label=child_label, shape="polygon", f... |
import { get_definition } from './../base';
export const push_link = (
oid, linkurl, linkname, onmenu='true', instance_name,
when, additional_args, description
) => get_definition({
oid,
linkurl,
linkname,
onmenu,
instance_name
},
{
label: 'VersionOne - Pu... |
#endregion
namespace RedBadger.Xpf.Graphics
{
<summary>
Represents a Texture.
</summary>
public interface ITexture
{
<summary>
Gets the height of this texture in pixels.
</summary>
int Height { get; }
<summary>
Gets the width of this texture in pixels.... |
<?php
namespace fufudao\base;
use yii\behaviors\TimestampBehavior;
//use yii\behaviors\AttributeBehavior;
use yii\db\ActiveRecord as ar;
use yii\db\Expression;
class ActiveRecord extends ar
{
public function behaviors()
{
return [
'timestamp' => [
'class' => TimestampBeh... |
# Cookbook Name:: dokku
# Spec:: plugins
require "spec_helper"
describe "dokku::plugins" do
context "when all attributes are default" do
let(:chef_run) do
runner = ChefSpec::ServerRunner.new
runner.converge(described_recipe)
end
before do
stub_command("which nginx").and_return("/usr/bin/... |
'use strict';
// Load the application's configuration
const config = require('../server/config');
const url = config.express_host + '/api';
// Required modules
const async = require('async');
const colors = require('colors');
const request = require('request');
// Counter for the Measurements
let counter = 1;
// Re... |
import React from 'react'
import {HOC, Link} from 'cerebral-view-react'
import PageProgress from '../PageProgress'
// View
class AutoReload extends React.Component {
constructor (props) {
super(props)
this.state = {
secondsElapsed: 0
}
this.onInterval = this.onInterval.bind(this)
}
component... |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J <API key>
#SBATCH -e <API key>.err.txt
#SBATCH -o <API key>.out.txt
source /etc/profile.modules
module load gcc
module load matlab
cd ~/deepLearn && srun ./deepFunction 4 'RBM' 'DBM' '128 1000 1500 1... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Task Management System</title>
... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Test Users Roles Demote</title>
</head>
<body>
<?php
require_once('test-util.php');
require_once(dirname(__FILE__) . '/../lib/ca-... |
# coffeehaus
A coffeescript shop for JVM locals.
## /!\ Extraction in progress
This library is the extraction of the coffeescript compiler used
in [coffeescripted-sbt](https://github.com/softprops/coffeescripted-sbt) for use as a standalone library
## install
(todo)
## usage
This library provides scala interfaces for c... |
from common import *
if len(sys.argv) < 2:
log('ERROR output directory is required')
time.sleep(3)
exit()
# setup the output directory, create it if needed
output_dir = sys.argv[1]
if not os.path.exists(output_dir):
os.makedirs(output_dir)
# log in and load personal library
api = open_api()
library = <A... |
require "./test/test_helper"
require "pinker/rule"
include Pinker
regarding "remember helps gather up things that get returned if the rule is valid." do
class Request
def initialize(path_info, query_string=nil)
@path_info = path_info
@query_string = query_string
end
end
test "stick things in m... |
// Why base-58 instead of standard base-64 encoding?
// - Don't want 0OIl characters that look the same in some fonts and
// could be used to create visually identical looking account numbers.
// - A string with non-alphanumeric characters is not as easily accepted as an account number.
// - E-mail usually won't l... |
/* Client-side router settings */
Router.configure({
layoutTemplate:"layout",
notFoundTemplate:"page_not_found",
loadingTemplate:"loading"
});
Router.route("/", {
name:"home",
template:"home"
});
Router.route("/profile", {
name:"profile",
template:"profile"
});
Router.route("/admin", {
name:"admin",
t... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include <time.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <string.h>
#include <plugin.h>
#include <amixer-plugin.h>
void vol_increase (KTPreferences *preferences);
vo... |
<?php
namespace S327at\L51blog\Models;
use Illuminate\Database\Eloquent\Model;
class Group extends Model {
} |
package com.calebmeyer.bettercrafting.creativetab;
import com.calebmeyer.bettercrafting.constants.Project;
import com.calebmeyer.bettercrafting.initialization.ModItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class CreativeTabBCT {
public static final CreativeTabs <API ... |
//Change class of "Home" and "About"
function setActive() {
document.getElementById("about").className += "active"
document.getElementById("home").setAttribute('class','no')
} |
<?php
class PostModel extends CI_Model
{
public $id;
public $title;
public $content;
public $date;
public $author;
public $upvotes = 0;
public $downvotes = 0;
public $voters;
public function __construct()
{
parent::__construct();
}
public function GetAll()
{
... |
title: 'PB & Homemade J'
author: lbjay
layout: post
permalink: /2007/10/05/pb-homemade-j/
categories:
- "What's for Lunch"
<abbr class="unapi-id" title=""><!-- --></abbr>
<div style="float: right; margin-left: 10px; margin-bottom: 10px;">
<a href="http://www.flickr.com/photos/37849137@N00/1490397893/" t... |
layout: default
<h2>{{ page.title }}</h2>
<div class="post">
{{ content }}
</div> |
body {
color: #ffffff;
font-family: Monospace, sans-serif;
font-size: 13px;
text-align: center;
font-weight: bold;
background-color: #000000;
margin: 0;
overflow: hidden;
cursor: none;
-<API key>: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
... |
<html><body>
<h4>Windows 10 x64 (18362.329)</h4><br>
<h2><API key></h2>
<font face="arial"> +0x000 PreparedCell : Uint4B<br>
+0x004 OldValueCell : Uint4B<br>
+0x008 NameLength : Uint2B<br>
+0x00c DataSize : Uint4B<br>
</font></body></html> |
<reference types="xrm" />
export declare function findIndex(handlers: Xrm.Events.<API key>[], handler: Xrm.Events.<API key>): number; |
<?php
namespace Vilks\DataObject;
use Vilks\DataObject\Exception\<API key>;
use Vilks\DataObject\Exception\<API key>;
use Vilks\DataObject\Exception\<API key>;
use Vilks\DataObject\Exception\<API key>;
use Vilks\DataObject\Validator\<API key>;
/**
* Base DataObject
*
* @package Vilks\DataObject
*/
abstract class Da... |
import _plotly_utils.basevalidators
class <API key>(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self,
plotly_name="showexponent",
parent_name="scatterpolar.marker.colorbar",
**kwargs
):
super(<API key>, self).__init__(
plotly_name=plotly_n... |
<?php
namespace Midnight\Crawler\Plugin\TestData;
class MuryoTestData extends AbstractTestData
{
/**
* @var string
**/
protected $rss_name = 'muryo.xml';
/**
* @var array
**/
protected $html_paths = array(
'muryo/71340.html',
'muryo/71370.html',
'muryo/71376.h... |
using System;
using Argus.Extensions;
namespace Argus.Data
{
<summary>
Contains a string name/value pair seperated by an equals sign. The values can be set via the properties or by passing in a
delimited string. E.g. FirstName=Blake.
</summary>
<remarks></remarks>
public class Parameter
{ |
__author__ = 'miko'
from Tkinter import Frame
class GameState(Frame):
def __init__(self, *args, **kwargs):
self.stateName = kwargs["stateName"]
self.root = args[0]
self.id = kwargs["id"]
Frame.__init__(self, self.root.mainWindow)
self.config(
background="gold"
... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Fri Feb 22 14:06:12 EET 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
javalabra.chess.core.impl.state (Chess 0.0.1-SNAPSHOT API)
</TITLE>
<META NAME="date" CONTENT="2013-02-22">
<LINK ... |
from csacompendium.csa_practice.models import PracticeLevel
from csacompendium.utils.pagination import <API key>
from csacompendium.utils.permissions import IsOwnerOrReadOnly
from csacompendium.utils.viewsutils import <API key>, CreateAPIViewHook
from rest_framework.filters import DjangoFilterBackend
from rest_framewor... |
export const ADD_COCKTAIL = 'ADD_COCKTAIL';
export const LOAD_COCKTAILS = 'LOAD_COCKTAILS';
export const ADD_SPIRIT = 'ADD_SPIRIT';
export const REMOVE_SPIRIT = 'REMOVE_SPIRIT';
export const UPDATE_HUE = 'UPDATE_HUE'; |
#include <algorithm>
#include <iostream>
#include "RustyFist/DrawMe.h"
#include "RustyFist/TouchSink.h"
#include "OpenGLLayer.h"
using namespace cocos2d;
using namespace std;
OpenGLLayer::OpenGLLayer()
{
}
OpenGLLayer::~OpenGLLayer()
{
}
bool OpenGLLayer::init()
{
return Layer::init();
}
cocos2d::Scene* OpenGLLayer... |
// <API key>.h
// ximber
@import Foundation;
/**
* The connection transformation is a basic data structure that holds a block that is
* executed on each node found at the xpath
*/
@interface <API key> : NSObject
@property (nonatomic, copy, readonly) NSString *xPath;
@property (nonatomic, copy, readonly) NSString *... |
/* icon */
.ico-file{width: 32px;height: 32px;display: inline-block;vertical-align: middle;background: url(../img/spr-icon.png) -384px 0 no-repeat;}
.ico-bt-file{background-position: 0 0}
.ico-bt-link{background-position: -32px 0}
.ico-chm{background-position: -64px 0}
.ico-xls{background-position: -96px 0}
.ico-link{b... |
#include "tcp_socket.h"
using namespace easynet;
//TCPSocket
TCPSocket::TCPSocket(EPOLLSvrPtr s) {
socket_handler_ = nullptr;
svr_ = s;
msg_ = nullptr;
step_ = READ_HEAD;
}
void TCPSocket::SetHandler(On_Socket_Handler h){
socket_handler_ = h;
}
void TCPSocket:... |
{% extends 'base.html' %}
{% block content %}
<div class="row">
<div class="col-md-12">
<form action="/login" method="post">
{{ form.csrf_token }}
{{ form.next(value=next) }}
<div class="form-group">
{{ form.username.label }}
{{ form.userna... |
using Android.OS;
using Android.Text;
using Android.Util;
using REKT.Graphics;
using REKT.Graphics.Unsafe;
using REKT.DI;
using SkiaSharp;
using System;
using System.Text;
using D = System.Diagnostics.Debug;
using NativeActivity = Android.App.Activity;
using NativeBitmap = Android.Graphics.Bitmap;
using NativeBitmapFac... |
// animating the scroll effect
$('.screenshots').on('click', function(e){
e.preventDefault();
$("html, body").animate({ scrollTop: "950px", duration: 500 });
}); |
#include "strm.h"
#include <math.h>
static int
num_plus(strm_stream* strm, int argc, strm_value* args, strm_value* ret)
{
strm_value x, y;
strm_get_args(strm, argc, args, "NN", &x, &y);
if (strm_int_p(x) && strm_int_p(y)) {
*ret = strm_int_value(strm_value_int(x)+strm_value_int(y));
return STRM_OK;
}
... |
<html>
<head>
</head>
<body>
<h2>
Their Antiquity
</h2>
<span class="oldenglish">
Who
</span>
<span class="oldenglish">
were
</span>
<span class="oldenglish">
the
</span>
originall
<span class="oldenglish">
writers
</span>
<span class="oldenglish">
of
</span>
<span class... |
'use strict';
var path = require('path');
module.exports = path.join.bind(path, __dirname, '..'); |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Master thesis presentation – OpenLaws</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Presentation of Master thesis @... |
<?php
namespace RunOpenCode\AssetsInjection\Tests\Mockup;
use RunOpenCode\AssetsInjection\Contract\Compiler\<API key>;
use RunOpenCode\AssetsInjection\Contract\ContainerInterface;
use RunOpenCode\AssetsInjection\Library\LibraryDefinition;
use RunOpenCode\AssetsInjection\Value\CompilerPassResult;
/**
* Class DummyCompi... |
var markdown = window.markdownit();
$(document).ready(function() {
var $wish = $('#wish');
var <API key> = $('#todos .notification-area');
var <API key> = $('#todos .notification-area > i');
var <API key> = $('#todos .notification-area > span');
$('#news-stream .menu .item').tab({history:false});
... |
// AWSAppDelegate.h
// TAWS
@import UIKit;
@interface AWSAppDelegate : UIResponder <<API key>>
@property (strong, nonatomic) UIWindow *window;
@end |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-erasure: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... |
# This file is part of beets.
# 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, publish,
# permit persons to whom the Software is furnished to do so, subject to
# the follow... |
require_relative '../animation'
module NixonPi
module Animations
class <API key> < Animation
register :count_from_to, self
accepted_commands :start_value, :single_digit?
# TODO: unfinished and untested
def initialize(options = {})
super(options)
@options[:single_digit?] ||=... |
FROM python:3
ADD ./simplesocial /simplesocial
WORKDIR /simplesocial
RUN pip install -r requirements.txt
EXPOSE 8000
CMD [ "python", "manage.py", "runserver", "0.0.0.0:8000"] |
layout: post
title: "Class Based Views"
date: 2013-05-13 07:04
tags: [python, django, yakindanegitim]
icons: [python]
Web development is a bit repetitive and web frameworks try to reduce this burden. One of the best features of Django for making object manipulation easier is class based views(CBV). We are usually good ... |
local Swapout = require('sconce.Swapout')
return function(tester)
local suite = torch.TestSuite()
function suite.<API key>()
local swapout = Swapout.new(1.0)
local actual = swapout:forward({torch.Tensor{1, 2}, torch.Tensor{3, 2}})
local expected = torch.Tensor{4, 4}
tester:eq(actual, expected)
end... |
"use strict";
var http_1 = require("@angular/http");
var AppSettings = (function () {
function AppSettings() {
}
Object.defineProperty(AppSettings, "API_OPTIONS", {
get: function () {
var headers = new http_1.Headers({ 'Content-Type': 'application/json' }), options = new http_1.RequestOp... |
const fs = require('fs')
const path = require('path')
const {<API key>, getConfig} = require('./common')
const buildCache = {}
module.exports = (params) => {
const baseConfig = getConfig(params)
const config = Object.assign({}, baseConfig)
config.outputPath = path.join(__dirname, '../dist-' + config.app)
return... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using tomware.Microwf.Domain;
using tomware.Microwf.Infrastructure;
namespace tomware.Microwf.Engine
{
public interface <API key>
{
Task<IEnumerable<WorkItemViewModel>> GetSnapshotAsync();
Task<PaginatedList<WorkItemViewModel... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.strings.label.xml
Template File: sources-sink-18.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data using a connect socket (client side)
* GoodSource: Fixed string
* Sink: w32spa... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->... |
<html><body>
<h4>Windows 10 x64 (19041.208) 2004</h4><br>
<h2><API key></h2>
<font face="arial"> +0x000 Key : Uint4B<br>
+0x000 <API key> : Pos 0, 16 Bits<br>
+0x000 LargePageCost : Pos 16, 8 Bits<br>
+0x000 UnitCount : Pos 24, 8 Bits<br>
</font></body></html> |
<?php
namespace RDF\<API key>\Type;
/**
*
*
* @author Richard Fullmer <richardfullmer@gmail.com>
*/
class CMYKColor
{
/**
* @var float
*/
protected $cyan;
/**
* @var float
*/
protected $magenta;
/**
* @var float
*/
protected $yellow;
/**
* @var float
... |
<html>
<head>
<title> Install SEO Commerce</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<style>
#container {
margin:auto;
}
label, input {
display: block;
}
</style>
</head>
<body>
<div class="container">
<form action="pasang_p.... |
{{ define "main" }}
<!-- Header -->
{{ partial "header" . }}
<div class="container">
<section id="projects">
<h4 class="my-5">{{ .Site.Data.projects.name }}</h4>
<div class="panel">
<div class="panel-body">
{{ range $el := .Site.Data.projects.source }}
<h5>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DebtSnowBall2017
{
class LoanList
{
private List<Loan> loanList;
public LoanList()
{
this.loanList = new List<Loan>();
... |
package render
import (
"github.com/gin-gonic/gin"
)
func Error(c *gin.Context, msg string) {
String(c, msg, 400)
} |
#include "glut_viewer_gui.h"
#include <GLsdk/gl_stuff.h>
#include <GL/glut.h>
#include <iostream>
#include <stdarg.h>
#include <math.h>
#include <stdio.h>
namespace GlutViewerGUI {
static void printf_xy(GLfloat x, GLfloat y, const char *format, ...) {
va_list args;
char buffer[1024], *p;
va_... |
<?php
/**
* Description of aSites
*
* @author almaz
*/
class aSitesUsers extends Action {
protected $defaultAct = 'List';
protected function configure() {
require_once $this->module->pathModels . 'as_Sites.php';
require_once $this->module->pathModels . 'as_SitesUsers.php';
$authModul... |
package cz.muni.fi.pa165.mushrooms.service.exceptions;
/**
* @author bkompis
*/
public class <API key> extends <API key> {
public <T> <API key>(String what, String operation, T entity, Throwable e) {
super("Could not " + operation + " " + what + " (" + entity + ").", e);
}
public <API key>(String ... |
#!/usr/bin/env python
import subprocess
import praw
from hashlib import sha1
from flask import Flask
from flask import Response
from flask import request
from cStringIO import StringIO
from base64 import b64encode
from base64 import b64decode
from ConfigParser import ConfigParser
import OAuth2Util
import os
import mark... |
#![cfg_attr(all(feature = "nightly", test), feature(test))]
#![cfg(all(feature = "nightly", test))]
extern crate test;
extern crate cxema;
#[cfg(test)]
use cxema::sha2::{Sha256};
use cxema::digest::Digest;
use test::Bencher;
#[bench]
pub fn sha256_10(bh: &mut Bencher) {
let mut sh = Sha256::new();
let bytes = [... |
using System.Collections.Generic;
using JsonApiDotNetCore.Resources;
using JsonApiDotNetCore.Resources.Annotations;
using JsonApiDotNetCore.Serialization.Objects;
namespace JsonApiDotNetCore.Serialization.Building
{
<summary>
Responsible for converting resources into <see cref="ResourceObject" />s given a colle... |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.0.3; zh-tw; ME171 Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="http... |
<html>
<head>
<script src='https://surikov.github.io/webaudiofont/npm/dist/WebAudioFontPlayer.js'></script>
<script src='<API key>.js'></script>
<script>
var selectedPreset=<API key>;
var AudioContextFunc = window.AudioContext || window.webkitAudioContext;
... |
'use strict';
var page = 'projects';
module.exports = {
renderPage: function(req, res) {
if (!req.user) {
res.redirect('/login');
} else {
res.render(page, {
helpers: {
activeClass: function(section) {
if (section === 'projects') {
return 'active';
... |
[> callback, const QString& text, const QString& yesLabel, const QString& noLabel)
: MenuScreen(mainClass), text(text) {
menuOptions.append(buildMenuItem([this, callback]() {
root->popState();
... |
'use strict';
//Ghost service used for communicating with the ghost api
angular.module('ghost').factory('Ghost', ['$http', 'localStorageService',
function($http, localStorageService) {
return {
login: function() {
return $http.get('api/ghost/login').
success(f... |
from flask_webapi import status
from unittest import TestCase
class TestStatus(TestCase):
def <API key>(self):
self.assertFalse(status.is_informational(99))
self.assertFalse(status.is_informational(200))
for i in range(100, 199):
self.assertTrue(status.is_informational(i))
de... |
package org.sfm.tuples;
public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> {
private final T20 element19;
public Tuple20(T1 element0, T2 element1, T3... |
<?php
$districts = array('Ampara', 'Anuradhapura', 'Badulla', 'Batticaloa', 'Colombo', 'Galle', 'Gampaha', 'Hambantota', 'Jaffna', 'Kaluthara', 'Kandy', 'Kilinochchi', 'Kegalle', 'Mannar', 'Matale', 'Matara', 'Monaragala', 'Mulattivu', 'Nuwaraeliya', 'Polonnaruwa', 'Rathnapura', 'Trincomalee', 'Vavuniya');
?>
<!DOCTYPE... |
#ifndef _TWI_H_
#define _TWI_H_
#define TW_START 0x08 // Start condition transmitted
#define TW_REP_START 0x10 // Repeated Start condition transmitted
#define TW_MT_SLA_ACK 0x18 // SLA+W transmitted, ACK received
#define TW_MT_SLA_NACK 0x20
#define TW_MT_DATA_ACK... |
package com.viaversion.viaversion.protocols.<API key>;
import com.viaversion.viaversion.api.protocol.AbstractProtocol;
import com.viaversion.viaversion.api.protocol.remapper.PacketRemapper;
import com.viaversion.viaversion.api.type.Type;
import com.viaversion.viaversion.protocols.<API key>.<API key>;
import com.viavers... |
//config file for bae
if(sumeru.BAE_VERSION){
sumeru.config.database({
dbname : '',
user: '',//bae 3.0 required
password: ''//bae 3.0 required
});
sumeru.config({
site_url : '' //with tailing slash
});
} |
.<API key> {
display: flex;
align-items: center;
justify-content: center;
background-color: #eee;
position: fixed;
z-index: 100;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.collapsible header {
background-color: #546e7a !important;
} |
#include <cassert>
#include <cmath>
#include "gtest/gtest.h"
#include "interlude.hpp"
// defined in the header
// #define MAT_SIZE 5
using std::cout;
using std::endl;
// void matDiagSum(int a[][MAT_SIZE], int rows, int cols){
// 1 2 3 4 5 1 2 3 4 5
... |
<?php
namespace Metrol\HTML\Table;
/**
* Defines an HTML Table Foot Area
*/
class Foot extends Section
{
public function __construct()
{
parent::__construct('tfoot');
$this->rows = array();
}
} |
clean_zsh_history
==============
Erase tautological history in `.zsh_history`.
# Usage
python ./clean_zsh_history.py [path/to/.zsh_history]
default arguments is `$HOME/.zsh_history` |
import sys
sys.path.insert(0,'../')
from fast_guided_filter import blur
print("hello") |
#include "core/bomberman.hpp"
#include "core/menu.hpp"
#include "core/screens.hpp"
#include "core/view.hpp"
#include "core/views/menu.hpp"
MenuView::MenuView(Screen *screen, Menu *menu)
: View(screen)
, menu(menu)
, clock(Timer::get(2))
{
}
MenuView::~MenuView()
{
delete this->menu;
}
void MenuView::upd... |
<reference src="js/tempus-dominus"/>
/*global $ */
tempusDominus.jQueryInterface = function (option, argument) {
if (this.length === 1) {
return tempusDominus.jQueryHandleThis(this, option, argument);
}
// "this" is jquery here
return this.each(function () {
tempusDominus.jQueryHandleThis(this, option, ... |
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
@Pipe({
name: 'sanitizeHtml',
pure: false
})
export class SanitizerPipe implements PipeTransform {
constructor(private _sanitizer: DomSanitizer) {
}
transform(v: string): SafeHtml... |
<?php
namespace Nexy\PayboxDirect\Tests\Symfony\Bridge\DependencyInjection;
use Matthias\<API key>\PhpUnit\<API key>;
use Nexy\PayboxDirect\Bridge\Symfony\DependencyInjection\Configuration;
use Nexy\PayboxDirect\Bridge\Symfony\DependencyInjection\<API key>;
use SebastianBergmann\Diff\<API key>;
use Symfony\Component\De... |
.jqCron-selector {
position: relative;
}
.jqCron-cross,
.<API key> {
cursor: pointer;
border-radius: 3px;
border: 1px solid #ddd;
margin: 0 0.2em;
padding: 0 0.5em;
}
.jqCron-container.disable .jqCron-cross:hover,
.jqCron-container.disable .<API key>:hover,
.jqCron-cross,
.<API key> {
backgr... |
# from test_plus.test import TestCase
# class TestUser(TestCase):
# def setUp(self):
# self.user = self.make_user()
# def test__str__(self):
# self.assertEqual(
# self.user.__str__(),
# 'testuser' # This is the default username for self.make_user()
# def <API key>(se... |
<?php
class <API key> {
const NOTICE_ID = '<API key>';
const NOTICE_GROUP = '<API key>';
/**
* @var WPML_Notices
*/
private $admin_notices;
public function __construct( WPML_Notices $admin_notices ) {
$this->admin_notices = $admin_notices;
}
/**
* @param int $track_str... |
using System;
using System.Xml.Serialization;
namespace EZOper.NetSiteUtilities.AopApi
{
<summary>
<API key>.
</summary>
public class <API key> : AopResponse
{
}
} |
#ifndef ACCOUNTDIALOG_H
#define ACCOUNTDIALOG_H
#include <QDialog>
namespace Ui {
class AccountDialog;
}
class AccountDialog : public QDialog
{
Q_OBJECT
public:
explicit AccountDialog(QWidget *parent = 0);
~AccountDialog();
private slots:
// TODO:
void <API key>();
void <API key>();
void <AP... |
import Telescope from 'meteor/nova:lib';
import Posts from "meteor/nova:posts";
import Comments from "meteor/nova:comments";
import Users from 'meteor/nova:users';
serveAPI = function(terms){
var posts = [];
var parameters = Posts.parameters.get(terms);
const postsCursor = Posts.find(parameters.selector, paramete... |
class ImportResult < ActiveRecord::Base
belongs_to :import
enum status: [ :starting, :running, :finishing, :finished, :stalled, :aborted ]
serialize :found_listing_keys
serialize :<API key>
serialize :snapshots
def <API key>
previous_run = self.import.import_results.where(['start_time < ?', self.start_t... |
package fr.pizzeria.exception;
public class StockageException extends Exception {
public StockageException() {
super();
}
public StockageException(String message, Throwable cause) {
super(message, cause);
}
public StockageException(String message) {
super(message);
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.