answer stringlengths 15 1.25M |
|---|
package visualk.gallery.db;
import java.awt.Color;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import visualk.db.MysqlLayer;
import visualk.gallery.objects.Artist;
import visualk.gallery.objects.Work;
public class DbGallery extends MysqlLayer{
public DbGallery(String user, St... |
package soc.message;
/**
* This reply from server means this client currently isn't allowed to connect.
*
* @author Robert S Thomas
*/
public class SOCRejectConnection extends SOCMessage
{
private static final long serialVersionUID = 100L; // last structural change v1.0.0 or earlier
/**
* Text message... |
(function (angular) {
'use strict';
var config = {
githubApiUrl: 'https://api.github.com/',
};
angular.module('myGithubApp').constant('config', config);
})(angular); |
<html>
<style>
body
{
font-family: Helvetica, Arial;
color: #2B332E;
}
.errorlist li
{
margin: 0;
color: red;
}
a
{
text-decoration: none;
color: #2B332E;
}
p.button
{
font-size: 0.875em;
font-weight: bold;
float: left;
border: 1px solid #C0CCC4;
background-color: #ebf2ee;
... |
#include "fonts.h"
Fonts::Fonts() {
<API key> = Font(Typeface::<API key>(
BinaryData::RobotoRegular_ttf, BinaryData::<API key>));
proportional_light_ = Font(Typeface::<API key>(
BinaryData::RobotoLight_ttf, BinaryData::RobotoLight_ttfSize));
monospace_ = Font(Typeface::<API key>(
BinaryData::Dro... |
package org.codefx.jwos.file;
import org.codefx.jwos.analysis.AnalysisPersistence;
import org.codefx.jwos.artifact.AnalyzedArtifact;
import org.codefx.jwos.artifact.CompletedArtifact;
import org.codefx.jwos.artifact.DownloadedArtifact;
import org.codefx.jwos.artifact.FailedArtifact;
import org.codefx.jwos.artifact.Fail... |
package Calibradores;
import java.io.File;
import Metricas.MultiescalaConBorde;
import Modelo.UrbanizandoFrenos;
public class TanteadorTopilejo extends Tanteador {
UrbanizandoFrenos CA;
public TanteadorTopilejo() {
// int[] <API key> = {1, 1, 1, 333, 333, 333, 1, 1, 444, 400, 400, 555};
// puntoDe... |
#!/bin/bash
#Coded by:FadyHazem/V2.0 Support:<API key>.
#You can recodeing this script but yo must typing the own of this script(FadyHazem).
echo "Welcome i will help you to update your system."
sleep 4
echo "This script support:<API key>"
sleep 2
read -p "What's your distro name?:" DISTRO
echo "Now updateing $DISTRO"
... |
package me.mast3rplan.phantombot.event.ytplayer;
import me.mast3rplan.phantombot.twitchwsirc.Channel;
import me.mast3rplan.phantombot.ytplayer.YTPlayerState;
public class YTPlayerStateEvent extends YTPlayerEvent {
private final YTPlayerState state;
public YTPlayerStateEvent(YTPlayerState state) {
this.s... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_102) on Tue Feb 21 18:04:04 GMT 2017 -->
<title>gate.chineseSeg (${plugin.name} JavaDoc)</title>
<meta name="date" content="2017-02-21">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<s... |
using System;
namespace org.btg.Star.Rhapsody
{
public struct SkeletalPoint
{
public int x
{
get;
set;
}
public int y
{
get;
set;
}
public int z
{
get;
set;
}
p... |
package org.thoughtcrime.securesms.jobs;
import androidx.annotation.NonNull;
import org.thoughtcrime.securesms.dependencies.<API key>;
import org.thoughtcrime.securesms.jobmanager.Data;
import org.thoughtcrime.securesms.jobmanager.Job;
import org.thoughtcrime.securesms.jobmanager.impl.NetworkConstraint;
import org.thou... |
require_relative '../../spec_helper'
describe TypedRb::TypeSignature::Parser do
it 'parses a unit type' do
result = described_class.parse('unit')
expect(result).to eq(:unit)
end
it 'parses an atomic type' do
result = described_class.parse('Bool')
expect(result).to eq('Bool')
end
it 'parses a g... |
<form class="form-horizontal" method="POST" action="{{ request.url }}">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">{{ _('Edit Participant') }}</h4>
</div>
<div class="modal-body" style="padding-bot... |
#include "house2.h"
int House2::objCount = 0;
GImage *House2::image = nullptr;
House2::House2(int x, int y)
{
posx = x;
posy = y;
width = 336;
height = 366;
if(!objCount)
image = new GImage("./assets/house-a.gif",width,height,GImage::IS_TRANSPARENT,0);
objCount++;
if(Debug::debug_ena... |
package com.silvermatch.advancedMod.block;
import com.silvermatch.advancedMod.init.ModBlocks;
import com.silvermatch.advancedMod.reference.Reference;
import com.silvermatch.advancedMod.utility.Names;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.Entit... |
using System;
using System.Linq;
using LeagueSharp;
using LeagueSharp.Common;
using EloBuddy;
using LeagueSharp.Common;
namespace ezEvade.SpecialSpells
{
class Darius : ChampionPlugin
{
static Darius()
{
// todo: fix for multiple darius' on same team (one for all)
}
... |
package pg.autyzm.friendly_plans.manager_app.view.task_create;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup... |
package de.ovgu.cide.export.virtual.internal;
import java.util.Set;
import org.eclipse.jdt.core.dom.CompilationUnit;
import de.ovgu.cide.export.<API key>;
import de.ovgu.cide.export.useroptions.IUserOptionProvider;
import de.ovgu.cide.features.IFeature;
import de.ovgu.cide.features.source.ColoredSourceFile;
/**
* how ... |
#ifdef WITH_LIBREGEX
# include REGEX_HEADER
#endif
/*=export_func optionUnstackArg
* private:
*
* what: Remove option args from a stack
* arg: + tOptions* + pOpts + program options descriptor +
* arg: + tOptDesc* + pOptDesc + the descriptor for this arg +
*
* doc:
* Invoked for options that are equiv... |
<ion-header-bar align-title="left" class="bar-positive">
<div class="buttons">
<button class="button button-clear icon ion-chevron-left" ng-click="back('menu');"></button>
</div>
<h1 class="title">Guimo</h1>
</ion-header-bar>
<ion-pane>
<ion-content>
<div class="row">
<div class="col">
... |
class HomeController < <API key>
def index
@movies = Movie.all.sort_by{|movie| movie.rank}.reverse.first(7)
@books = Book.all.sort_by{|book| book.rank}.reverse.first(7)
@albums = Album.all.sort_by{|album| album.rank}.reverse.first(7)
end
end |
{% load <API key> %}
<div id="<API key>">
<h1>report: <a href="/report/#report/{{ report.pk }}/details/">{{ report.name }}</a></h1>
</div>
{% <API key> object report.pk %}
<div class="<API key> clearfix">
<div class="text-bullet">
<span class="name">link:</span>
<span class="value">
<a href="/report/e... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
public partial class <API key> {
<summary>
pnlUIContext control.
</summary>
<remarks>
Auto-generated field.
... |
#!/usr/bin/env bash
set -e
if [ ${TARGET} = "win64" ]; then
EXTENSION=zip
else
if [ ${TRAVIS_OS_NAME} = "linux" ]; then
EXTENSION=tar.gz
else
EXTENSION=dmg
fi
fi
curl -T OpenPSTD-${<API key>}.${<API key>}.${TRAVIS_BUILD_NUMBER}-${TARGET}.${EXTENSION} ${WEBDAV} |
// <auto-generated>
// This code was generated from a template.
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
namespace FoodInventory.Data.Models
{
using System;
us... |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.05.14 at 05:14:09 PM CDT
@javax.xml.bind.annotation.XmlSchema(namespace = "http:
packa... |
#ifndef THREAD_H_INCLUDED
#define THREAD_H_INCLUDED
#include <bitset>
#include <condition_variable>
#include <mutex>
#include <thread>
#include <vector>
#include "material.h"
#include "movepick.h"
#include "pawns.h"
#include "position.h"
#include "search.h"
const int MAX_THREADS = 128;
const int <API key> = 8;
struct T... |
<?php
define('INTERNAL', 1);
define('JSON', 1);
if (isset($_POST['view'])) {
define('PUBLIC', 1);
}
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
safe_require('artefact', 'resume');
$limit = param_integer('limit', null);
$offset = param_integer('offset', 0);
$type = param_alpha('type');
$view = param_... |
<?php
$client = ClientData::getById($_GET["id"]);
$client->del();
$_SESSION['message'] = L::<API key>;
$_SESSION['alert_type'] = 'success';
Core::redir("./index.php?view=clients");
?> |
/**
* @addtogroup OutputTranslator
* @{
* @file OutputTranslator/Scala.hh
* @author Massimiliano Pagani
* @version 1.0
* @date 2016-10-18
*
*/
#if !defined( <API key> )
#define <API key>
#include "OutputTranslator/Base.hh"
#include "Tydal/Grammar/BaseType.hh"
#include "Tydal/Grammar/VariantType.hh"
namespace Ou... |
{% load wagtailcore_tags wagtailimages_tags jetstream_tags %}
<div class="row-wrapper {{ self.style }}
{% if self.background.background_color or self.background.background_image %} bg {% endif %}
{% if self.background.background_color and not self.background.background_image %} bg-color-{{ self.background.backgroun... |
/* ptinit.c - ptinit */
#include <xinu.h>
struct ptnode *ptfree; /* list of free message nodes */
struct ptentry porttab[NPORTS]; /* port table */
int32 ptnextid; /* next table entry to try */
syscall ptinit(
int32 maxmsgs /* total messages in ... |
'use strict';
angular.module('aurea')
.directive('d3Bars', function ($window, $timeout, d3Service) {
return {
restrict: 'EA',
scope: {
data: '=',
onClick: '&'
},
link: function (scope, ele, attrs) {
d3Service.d3(... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Thu Oct 24 15:10:37 CEST 2013 -->
<title>UdpListener</title>
<meta name="date" content="2013-10-24">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<s... |
package com.softech.ls360.lms.api.proxy.service;
import com.softech.vu360.lms.webservice.message.lmsapi.serviceoperations.user.AddUserResponse;
import com.softech.vu360.lms.webservice.message.lmsapi.serviceoperations.user.UpdateUserResponse;
import com.softech.vu360.lms.webservice.message.lmsapi.types.user.UpdateableUs... |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 5.2.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by the Perl program only. The format and even
# the name or ... |
define(['Scripts/App/CommentsScraper'], function(CommentsScraper) {
describe('myFilter', function() {
var failTest = function(error) {
expect(error).toBeUndefined();
};
beforeEach(function(){
jasmine.addMatchers({
toBeEqualComment: function() {
return {
compare: f... |
<!-- <div class="jumbotron">
<h1>Welcome!</h1>
<?php echo $content->getHtml(); ?>
</div>
<div class="row" style="padding: 15px;">
<?php
$bgcolors = array('blue','green','orange','grey');
$i=0;
foreach($content->children as $child){
$mod = $i % count($bgcolors);
$color = ... |
package cz.cuni.lf1.lge.ThunderSTORM.estimators;
import cz.cuni.lf1.lge.ThunderSTORM.detectors.<API key>;
import cz.cuni.lf1.lge.ThunderSTORM.estimators.PSF.EllipticGaussianPSF;
import cz.cuni.lf1.lge.ThunderSTORM.estimators.PSF.<API key>;
import cz.cuni.lf1.lge.ThunderSTORM.estimators.PSF.Molecule;
import cz.cuni.lf1.... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import xml.dom.minidom
import sys
import signal
import os
import getopt
from queue import Queue
from threading import Thread
import time
class SetQueue(Queue):
def _init(self, maxsize):
Queue._init(self, maxsize)
self.all_items = set()
... |
package org.renjin.invoke.codegen;
import com.google.common.collect.Lists;
import com.sun.codemodel.*;
import org.apache.commons.math.complex.Complex;
import org.renjin.invoke.annotations.<API key>;
import org.renjin.invoke.model.JvmMethod;
import org.renjin.invoke.model.PrimitiveModel;
import org.renjin.primitives.vec... |
package eu.geopaparazzi.core.preferences;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.ArrayAdapter;
import android.widget.L... |
<?php
class removeAccents extends CommonServices{
private $accented;
private $unaccented;
public function __construct($string) {
$this->accented = $string;
$this->unaccented = $this->removeAccents($string);
}
public function get(){
return $this->unaccented;
}
private ... |
#ifndef FILETOAST_WORKER_H
#define FILETOAST_WORKER_H
void * worker(void *);
char * readfile(t_job *);
int senddata(t_job * job);
#endif //FILETOAST_WORKER_H |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# pkpgcounter : a generic Page Description Language parser
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PART... |
const actions = {
// Video ended
ended({dispatch,commit}, video) {
video.isPlaying = false;
dispatch('next', video);
commit('PLAYING',video);
},
// Add video to queue
addToQueue({state, dispatch, commit }, obj) {
var index = _.findIndex(state.queue, function(o) {
... |
<!DOCTYPE html>
<html>
<head>
<title>Washington State Courts - Supreme Court Calendar </title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-c... |
package com.baeldung.collection.filtering;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
/**
* Various filtering examples.
*
* @author Rodolfo Felipe
... |
// core
import React from 'react';
import PropTypes from 'react';
// components
import Loading from '../../components/loading/Loading';
// styles
var style = require('./_index.scss');
// data
var Timeline = require('<API key>').Timeline;
var Twitter = React.createClass({
getInitialState: function(){
return {
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_60) on Sun Oct 25 17:08:11 MDT 2015 -->
<title>Generated Documentation (Untitled)</title>
<script type="text/javascript">
targetPage = "" + window.location.search;
if (targetPage != "" && targetPage != "undefined"... |
#! /bin/bash
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TMP_DIR="$BASE_DIR""/.tmp"
BASE_DIR_NAME="$(basename $BASE_DIR)"
HTDOCS="$BASE_DIR"'/htdocs'
EXPORT_DIR="$BASE_DIR"'/exported-html'
FILE_SUFFIX=".html"
PATH_TYPE='relative'
if [[ ! -d "$EXPORT_DIR" ]]; then
echo "Creating export directory: ""... |
/**
* Contains the Ui and actions for the detailed document view and edit and all supplemental uis.
*/
package eu.ggnet.dwoss.redtapext.ui.cao.document; |
using System;
using System.Threading;
using Viki.LoadRunner.Engine.Core.Scenario.Interfaces;
using Viki.LoadRunner.Engine.Strategies.Replay.Interfaces;
using Viki.LoadRunner.Engine.Strategies.Replay.Scheduler.Interfaces;
namespace Viki.LoadRunner.Playground.Replay
{
public class ReplayScenario : IReplayScenario<str... |
#!/usr/bin/env python
import sys
import glob
import serial
def serial_ports():
""" Lists serial port names
:raises EnvironmentError:
On unsupported or unknown platforms
:returns:
A list of the serial ports available on the system
"""
if sys.platform.startswith('win'):... |
function Greeter(person) {
return "Hello, " + person;
}
var RandomGuy = "Random Dude";
alert(Greeter(RandomGuy));
//# sourceMappingURL=HelloWorld.js.map |
<?php
namespace sebastiangolian\php\logger;
/*
Logger::getInstance()->addDefaultLog('test');
Logger::getInstance()->addLog(new Message('type', 'message'));
echo Logger::getInstance()->generateAllMessages();
*/
class Logger
{
private static $instance;
private $messages = [];
private function __construct(... |
/**
* This file defines the fitness_params object.
*
* TODOs:
* - a few TODOs in the file but ok
*
* FINISHED!
*
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;
using toolbox;
/**
* namespace for biogas plant optimization
*
* Definition of:
* - fitnes... |
#include <stdio.h>
#include <math.h>
#include "context.h"
#include "plans.h"
#include "tuner_util.h"
#include "tuner_exhaust.h"
// TUNER INTERFACE
cuzmem_plan*
<API key> (enum cuzmem_tuner_action action, void* parm)
{
CUZMEM_CONTEXT ctx = get_context();
// TUNER START
if (CUZMEM_TUNER_START == action) {
... |
/** NAME : bgraph_bipart_bd.c **/
/** AUTHOR : Francois PELLEGRINI **/
/** FUNCTION : This module builds a band graph around **/
/** the frontier in order to decrease **/
/** problem size for the strategy to be **/
/** ... |
<?php
defined('MYAAC') or die('Direct access not allowed!');
class Usage_Statistics {
private static $report_url = 'https://my-aac.org/report_usage.php';
public static function report() {
$data = json_encode(self::getStats());
$options = array(
'http' => array(
'heade... |
<style>
ion-content{
background-color: #00091a;
color:#e6eeff;
}
ion-card{
text-align: right;
}
/*global CSS*/
#gems{
background-color: inherit;
}
.more {
float: none;
}
.menu{
transform: translate(-50%, 55%);
}
/*small devices*/
@media (min-width: 320px) and (max-width: 480px) {
.more{
margi... |
# piconf
##Before we begin:
* This is my first project using Git & GitHub
* My first complex C project
* First attempt at a autotools project
* My Main languages are Java, JScript, Python & BASIC
* It will contain stupid / beginners mistakes & bad smelling
* The proof on concept was written in python but C has been cho... |
using System;
using System.Linq;
using LeagueSharp;
using LeagueSharp.Common;
using Slutty_ryze.Properties;
namespace Slutty_ryze
{
internal class Program
{
readonly static Random Seeder = new Random();
private static bool _casted;
private static int _lastw;
#region onload
... |
@import "../<API key>/css/agency.min.css";
.text-primary {
color: #ff7058;
}
a {
color: #ff7058;
}
a:hover,
a:focus,
a:active,
a.active {
color: #324a5e;
}
.btn-primary {
background-color: #ff7058;
border-color: #ff7058;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open... |
/*!
* \file journal.h
*
* \author Marek Vavrusa <marek.vavrusa@nic.cz>
*
* \brief Journal for storing transactions on permanent storage.
*
* Journal stores entries on a permanent storage.
* Each written entry is guaranteed to persist until
* the maximum file size or node count is reached.
* Entries are remove... |
#ifndef <API key>
#define <API key>
#include <QObject>
class TNuiColorStream;
class <API key> : public QObject
{
Q_OBJECT
public:
<API key>(TNuiColorStream *stream);
void setEnabled(bool enabled);
bool isEnabled() const { return m_enabled; }
void draw(uchar *data, uint length);
signals:
void ena... |
#include "../lib/includes.h"
#include "../lib/utils.h"
#include "../lib/methnum.h"
#include "../Enum_type.h"
#include "../Var/var.h"
#include "../T0/t0.h"
#include "upot.h"
void test_der ( Upot * U , U_type upot_t , T0_type t0_t, bool phi_eq_phibar );
#define TD_T(f,df,nf,str) do{ testderiv(f,df,Tmin ,Tmax ,N,0.001... |
<!DOCTYPE html PUBLIC "-
<html>
<head>
<title>top section: About This Document</title>
<meta name="description" content="top section: About This Document">
<meta name="keywords" content="top section: About This Document">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta n... |
/* global window, document, define, jQuery, setInterval, clearInterval */
;(function(factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports !== 'undefined') {
module.exports = factory(require('jquery'));
} else {
... |
namespace BarionClientLibrary.Operations.Common
{
public class ShippingAddress
{
public string Country { get; set; }
public string City { get; set; }
public string Region { get; set; }
public string Zip { get; set; }
public string Street { get; set; }
public strin... |
#ifndef OBJ_NPC_H
#define OBJ_NPC_H
#include <string>
#include <common_features/size.h>
#include <ConfigPackManager/level/config_npc.h>
#include "../graphics/graphics.h"
#include "spawn_effect_def.h"
// //Defines:// //
// obj_npc //
// npc_Markers //
struct obj_npc
{
/* OpenGL */
bool isInit;
PGE... |
/*! \file st.h
\brief Class representing FPU's ST register.
*/
#ifdef ST_H
#error Already included
#else
#define ST_H
class st: public reg
{
public:
st();
st(std::string const &name);
~st();
st &operator()(size_t i);
std::string name() const override;
private:
... |
#include <iostream>
#include <stdexcept>
#include <vector>
#include "latticeBase.hpp"
#include "collisionBase.hxx"
#include "latticeNode.hxx"
#include "latticeModel.hxx"
#include "ZouHeNode.hpp"
#include "latticeNode.hxx"
ZouHeNode::ZouHeNode
(
latticeBase &lb,
collisionBase &cb,
latticeModelD2Q9 &D2Q9,
... |
package net.minecraft.server;
import java.io.IOException;
public class <API key> implements Packet<<API key>> {
private int a;
private byte b;
public <API key>() {}
public <API key>(Entity entity, byte b0) {
this.a = entity.getId();
this.b = b0;
}
public void a(<API key> <API key... |
@{
# Script module or binary module file associated with this manifest.
ModuleToProcess = 'AntivirusBypass.psm1'
# Version number of this module.
ModuleVersion = '3.0.0.0'
# ID used to uniquely identify this module
GUID = '<API key>'
# Author of this module
Author = 'Matthew Graeber'
Copyright = 'BSD 3-Clause'
# Descri... |
@charset "utf-8";
/* CSS Document */
*{margin:0;padding:0;}
ul{list-style:none;}
a{text-decoration:none;}
img,input,textarea{border:none;}
.clear{clear:both;}
::-moz-selection{background:#41EC49;}
::selection{background:#41EC49;}
@font-face{
font-family:ziti;
src:url(../fonts/Munro.eot),url(../fonts/Munro.otf),... |
package cmake.icons;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
public class CMakeIcons {
public static final Icon FILE = IconLoader.getIcon("/icons/cmake.png");
public static final Icon MACRO = IconLoader.getIcon("/icons/hashtag.png");
public static final Icon FUN = IconLoader.getIc... |
# Initialise
# Load lib functions if not already loaded
unless($_SHARED{lib}) {
spi_exec_query("select lib()");
}
my $lib = $_SHARED{lib};
$lib->{clear_cache}(); |
#include "umsdevice.h"
#include "utils.h"
#include "<API key>.h"
#include "<API key>.h"
#include "actiondialog.h"
#include "localize.h"
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QTextStream>
static const QLatin1String constSettingsFile("/.is_audio_player");
static const QLatin1String constMusicFol... |
HostCMS 6.7 = <API key> |
def _setup_pkgresources():
import pkg_resources
import os
import plistlib
pl = plistlib.readPlist(os.path.join(
os.path.dirname(os.getenv('RESOURCEPATH')), "Info.plist"))
appname = pl.get('CFBundleIdentifier')
if appname is None:
appname = pl['CFBundleDisplayName']
path = os.... |
<?php
defined ( '_JEXEC' ) or die ();
class plgKunenaJoomla extends JPlugin {
public function __construct(&$subject, $config) {
// Do not load if Kunena version is not supported or Kunena is offline
if (!(class_exists('KunenaForum') && KunenaForum::isCompatible('2.0') && KunenaForum::installed())) r... |
#!/bin/bash
#change to develop branch
git checkout develop
#create new branch from develop
git checkout -b feature/dummy
git add dummy.py
git commit -m"added dummy.py"
#push to remote
git push -u origin feature/dummy
#after that is sufficient
git push |
#include "gremlin.h"
void cs_kroneckerIupdate(const cs *A, int nI, const cs *C){
int i, j, k, cnt, an, am;
double *Ax;
an = A->n;
am = A->m;
Ax = A->x;
cnt = 0;
for(i = 0; i < an; i++){
for(j = 0 ; j < nI ; j++){
for(k = 0; k < am; k++){
C->x[cnt] = Ax[i*an... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
div.spacer { margin: 1em 0; }
</style>
<title>
<API key>(3P)</title>
</h... |
<?php
/**
* Automatically loads the specified file.
*
* @package PluginName\Lib
*/
namespace PluginName\Lib;
/**
* Automatically loads the specified file.
*
* Examines the fully qualified class name, separates it into components, then creates
* a string that represents where the file is loaded on disk.
*
* @p... |
#include <stdlib.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <netdb.h>
#include <pthread.h>
#include <errno.h>
#include <ert/util/util.hpp>
#include <ert/res_util/arg_pack.hpp>
#include <ert/job_queue/queue_driver.hpp>
#include <ert/job_queue/rsh_driver.hpp>
struct rsh... |
require 'package'
class Harfbuzz < Package
description 'HarfBuzz is an OpenType text shaping engine.'
homepage 'https:
version '1.7.6-0'
source_url 'https://github.com/harfbuzz/harfbuzz/releases/download/1.7.6/harfbuzz-1.7.6.tar.bz2'
source_sha256 '<SHA256-like>'
binary_url ({
aarch64: 'https://dl.bintr... |
title: "2017-09-14 Indentation"
date: 2017-09-13T20:38:45-05:00
tags:
- haskell
draft: false
description: Indentation matters. A lot.
Indentation is significant in Haskell. Haskell uses indentation to
group pieces of code together. This is similar to Python, but there
are "false cognates" - similar code that is indent... |
package com.brejza.matt.habmodem;
import group.pals.android.lib.ui.filechooser.FileChooserActivity;
import group.pals.android.lib.ui.filechooser.io.localfile.LocalFile;
import java.io.File;
import java.util.List;
import android.os.Bundle;
import android.os.Environment;
import android.os.Parcelable;
import android.prefe... |
#!/usr/bin/env python
# sample module
from jira.client import JIRA
def main():
jira = JIRA()
JIRA(options={'server': 'http://localhost:8100'})
projects = jira.projects()
print projects
for project in projects:
print project.key
# Standard boilerplate to call the main() function.
if __name__ ... |
package ai.hellbound;
import l2s.commons.util.Rnd;
import l2s.gameserver.ai.CtrlEvent;
import l2s.gameserver.ai.Mystic;
import l2s.gameserver.model.Creature;
import l2s.gameserver.model.Playable;
import l2s.gameserver.model.World;
import l2s.gameserver.model.instances.NpcInstance;
import bosses.BelethManager;
/**
* @a... |
#ifndef <API key>
#define <API key>
#include "ATOOLS/Math/Vector.H"
namespace PHOTONS {
class <API key> {
private:
double m_b1;
double m_b2;
double m_c;
double m_theta;
double m_phi;
ATOOLS::Vec4D m_dir;
... |
package be.ipl.mobile.projet.historypub;
import android.app.Application;
import android.test.ApplicationTestCase;
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} |
#include "Exception.h"
#include "MDB/MDBRow.h"
MDB::MDBRow:: MDBRow(MDBField** fields_, int numcols_ )
: field_m(fields_), numcols_m(numcols_)
{
}
MDB::MDBRow:: ~MDBRow()
{
for(int i=0; i< numcols_m; i++)
{
delete field_m[i];
}
delete [] field_m;
}
MDB::MDBField& MDB::MDBRow:: operator [] (i... |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substanti... |
CREATE TABLE `UserState`(
`StateId` NVARCHAR(64) NOT NULL UNIQUE,
`Description` NVARCHAR(512),
PRIMARY KEY(`StateId`)
);
INSERT INTO `UserState`
VALUES
('Active','Пользователь активен'),
('Bloked','Пользователь заблокирован'); |
<!-- Admin info view -->
<!-- Title -->
<h2 class="accordion-toggle chevron">
<!-- Toggle -->
<button type="button" aria-expanded="false" bb-accordion>
<span>
<i class="fas fa-info-circle fa-fw"></i> {{_t('info')}}
</span>
</button>
</h2>
<!-- Content -->
<div class="accordion" hidden>
<div class=... |
<?php
// include.php - Handles options for subscribe2
// DO NOT EDIT THIS FILE AS IT IS SET BY THE OPTIONS PAGE
if (!isset($this->subscribe2_options['autosub'])) {
$this->subscribe2_options['autosub'] = "no";
} // option to autosubscribe registered users to new categories
if (!isset($this->subscribe2_options['newr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.