answer stringlengths 15 1.25M |
|---|
const os = require("os");
const fs = require("fs");
const config = {
}
let libs;
switch (os.platform()) {
case "darwin": {
libs = [
"out/Debug_x64/libpvpkcs11.dylib",
"out/Debug/libpvpkcs11.dylib",
"out/Release_x64/libpvpkcs11.dylib",
"out/Release/libpvpkcs11.dylib",
];
break;
}
... |
using System;
using Xunit;
using System.Linq;
using hihapi.Models;
using hihapi.Controllers;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.OData.Results;
using hihapi.test.common;
namespace hihapi.unittest.Finance
{
[Collection("HIHAPI_Unit... |
<?php
# MantisBT - a php based bugtracking system
# MantisBT is free software: you can redistribute it and/or modify
# (at your option) any later version.
# MantisBT is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
/**
* MantisBT Core API's
... |
team_mapping = {
"SY": "Sydney",
"WB": "Western Bulldogs",
"WC": "West Coast",
"HW": "Hawthorn",
"GE": "Geelong",
"FR": "Fremantle",
"RI": "Richmond",
"CW": "Collingwood",
"CA": "Carlton",
"GW": "Greater Western Sydney",
"AD": "Adelaide",
"GC": "Gold Coast",
"ES": "Es... |
from keras.applications import imagenet_utils
from keras.applications import mobilenet
def <API key>(image):
image -= 127.5
return image
def <API key>(preprocessType):
if preprocessType == "dummy":
return <API key>
elif preprocessType == "mobilenet":
return mobilenet.preprocess_input
... |
using System;
namespace TheS.Runtime
{
internal class CallbackException : FatalException
{
public CallbackException()
{
}
public CallbackException(string message, Exception innerException) : base(message, innerException)
{
// This can't throw something like Ar... |
<?php
namespace App\Http\Controllers;
use App\Jobs\GetInstance;
use App\Models\Build;
use App\Models\Commit;
use App\Models\Repository;
use App\RepositoryProviders\GitHub;
use Illuminate\Support\Facades\DB;
class DashboardController extends Controller
{
public function index()
{
$repositories = Reposito... |
#pragma once
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#include "../types/types.h"
#pragma warning(pop)
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#include "../actionbatching/actionbatching.h"
#pragma warning(pop)
/** include
*/
#include "./opengl_impl.h"
#include "./ope... |
<?php
namespace Vich\UploaderBundle\Mapping;
use Vich\UploaderBundle\Naming\NamerInterface;
/**
* PropertyMapping.
*
* @author Dustin Dobervich <ddobervich@gmail.com>
*/
class PropertyMapping
{
/**
* @var \ReflectionProperty $property
*/
protected $property;
/**
* @var \ReflectionProperty... |
personalprojects
=============
A bunch of little things I made in my freetime
PyPong
A simple pong game made in Python and Pygame.
**Changes Made**: Made the AI a bit (a lot) worse, you can actually win now.
Maze Runner
A maze app that uses Deep Field Search (DFS) to make a perfect maze and then uses the same algorithm... |
#ifndef <API key>
#define <API key>
#include "sigmawallet.h"
namespace elysium {
class SigmaWalletV0 : public SigmaWallet
{
public:
SigmaWalletV0();
protected:
uint32_t BIP44ChangeIndex() const;
SigmaPrivateKey GeneratePrivateKey(uint512 const &seed);
class Database : public SigmaWallet::Database {
... |
# Gears #
*Documentation may be outdated or incomplete as some URLs may no longer exist.*
*Warning! This codebase is deprecated and will no longer receive support; excluding critical issues.*
A PHP class that loads template files, binds variables to a single file or globally without the need for custom placeholders/var... |
(function (window) {
'use strict';
window.JWLB = window.JWLB || {};
window.JWLB.View = window.JWLB.View || {};
// Event handling
var wallOnClick = function (event) {
if (event.target.tagName.toLowerCase() === 'img') {
var id = event.target.parentNode.dataset.id;
var selectedPhoto = this.photos... |
module InfinityTest
module Core
class Base
# Specify the Ruby Version Manager to run
cattr_accessor :strategy
# * :rvm
# * :rbenv
# * :ruby_normal (Use when don't pass any rubies to run)
# * :auto_discover(defaults)
self.strategy = :auto_discover
# Specify Ruby vers... |
<?php
session_start();
require_once('../php/conexion.php');
$conect = connect::conn();
$user = $_SESSION['usuario'];
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$sql = "insert into cotidiano (dir_origen,dir_destino,semana,hora,usuario,estado) values (?,?,?,?,?,?);";
$favo = sqlsrv_query($conect,$sql,array($_POST['... |
using System;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.MSProjectApi.Enums
{
<summary>
SupportByVersion MSProject 11, 12, 14
</summary>
<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff863548(v=office.14).aspx </remarks>
[SupportB... |
//#define USE_TOUCH_SCRIPT
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
namespace GarageKit
{
[RequireComponent(typeof(Camera))]
public class FlyThroughCamera : MonoBehaviour
{
public static bool winTouch = false;
public static bool update... |
"use strict";
const readdir = require("../../");
const dir = require("../utils/dir");
const { expect } = require("chai");
const through2 = require("through2");
const fs = require("fs");
let nodeVersion = parseFloat(process.version.substr(1));
describe("Stream API", () => {
it("should be able to pipe to other streams ... |
<?php
namespace PHPExiftool\Driver\Tag\Font;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class PreferredSubfamily extends AbstractTag
{
protected $Id = 17;
protected $Name = 'PreferredSubfamily';
protected $FullName = 'Font::Name';
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (10.0.2) on Fri Sep 21 22:00:31 PDT 2018 -->
<title>U-Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="date" content="2018-09-21">
<link rel="stylesheet" type="text/css" href="../styl... |
package com.microsoft.azure.management.synapse.v2019_06_01_preview;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.<API key>;
/**
* Defines values for <API key>.
*/
public final class <API key> extends <API key><<API key>> {
/** Static value Initial for... |
// Base class for a module. Stores the environment and handles magic such as route annotations.
export class Module {
constructor(env) {
this.env_ = env;
let decoratedRoutes = Object.getPrototypeOf(this).decoratedRoutes_;
if (!decoratedRoutes)
return;
decoratedRoutes.forEach(route => {
env... |
<?php
namespace PhpCsFixer\Fixer\PhpUnit;
use PhpCsFixer\AbstractFixer;
use PhpCsFixer\FixerDefinition\CodeSample;
use PhpCsFixer\FixerDefinition\FixerDefinition;
use PhpCsFixer\Tokenizer\Tokens;
/**
* @author Roland Franssen <franssen.roland@gmail.com>
*/
final class <API key> extends AbstractFixer
{
/**
* ... |
layout: post
title: "OJ"
date: 2016-12-20 11:36:52
categories:
tags: OJ algorithms
mathjax: true
OJ
OJOnline JudgeOJTYVJRQNOJURAL
LeetcodeOJOJLeetCode OJ
OJACMLeetCode
LeetCodeOJGitHub
LeetCodebug
OJLeetCode
LeetCodehttps://leetcode.com/
![<API key>.png-65.6kB][1]
![<API key>.png-91.4kB][2]
LeetCodelintcode
[1... |
package com.timotheteus.raincontrol.handlers;
import com.timotheteus.raincontrol.tileentities.IGUITile;
import com.timotheteus.raincontrol.tileentities.<API key>;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inven... |
<?php
namespace Matthimatiker\<API key>\Locking;
use Symfony\Component\Filesystem\LockHandler;
class FileLockManager implements <API key>
{
/**
* The directory that contains the lock files.
*
* @var string
*/
private $lockDirectory = null;
/**
* Contains the locks that are currently... |
// Core is a collection of helpers
// Nothing specific to the emultor application
"use strict";
// all code is defined in this namespace
window.te = window.te || {};
// te.provide creates a namespace if not previously defined.
// Levels are seperated by a `.` Each level is a generic JS object.
// Example:
// te.provi... |
# Backup v4.x Configuration
# Config Options
# The options here may be overridden on the command line, but the result
# will depend on the use of --root-path on the command line.
# If --root-path is used on the command line, then all paths set here
# will be overridden. If a path (like --tmp-path) is not given along wi... |
import Ember from 'ember';
let __TRANSLATION_MAP__ = {};
export default Ember.Service.extend({ map: __TRANSLATION_MAP__ }); |
package cmd
import (
"github.com/fatih/color"
out "github.com/plouc/go-gitlab-client/cli/output"
"github.com/spf13/cobra"
)
func init() {
getCmd.AddCommand(getProjectVarCmd)
}
var getProjectVarCmd = &cobra.Command{
Use: resourceCmd("project-var", "project-var"),
Aliases: []string{"pv"},
... |
export interface IContact {
id?: number;
email: string;
listName: string;
name: string;
} |
// 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:
// copies or substantial p... |
package unit.com.bitdubai.fermat_dmp_plugin.layer.basic_wallet.bitcoin_wallet.developer.bitdubai.version_1.structure.<API key>;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.exceptions.<API key>;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.bitcoin_wallet.interfaces.<API key>;
import com.bitduba... |
using System;
namespace Sherlock
{
<summary>
A reader than can read values from a pipe.
</summary>
<typeparam name="T">The type of value to read.</typeparam>
public interface IPipeReader<T> : IDisposable
{
<summary>
Attempts to read a value from the pipe.
</summary>
... |
# Nitrogen 2.0 New Features
New Elements, Actions, and API functions
* wf:wire can now act upon CSS classes or full JQuery Paths, not just Nitrogen elements. For example, wf:wire(".people > .address", Actions) will wire actions to any HTML elements with an "address" class underneath a "people" class. Anything on http:/... |
package gogo
import (
"net/http"
"net/http/httptest"
"testing"
"github.com/golib/assert"
)
func Test_NewResponse(t *testing.T) {
it := assert.New(t)
recorder := httptest.NewRecorder()
response := NewResponse(recorder)
it.Implements((*Responser)(nil), response)
it.Equal(http.StatusOK,... |
#if !defined(<API key>)
#define <API key>
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dialog3.h : header file
// CDialog3 dialog
class CDialog3 : public CDialog
{
// Construction
public:
CDialog3(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDialog3)
enum { ... |
# Load DSL and set up stages
require 'capistrano/setup'
# Include default deployment tasks
require 'capistrano/deploy'
# Include tasks from other gems included in your Gemfile
require 'capistrano/rvm'
require 'capistrano/bundler'
require 'capistrano/rails'
require 'capistrano/rails/migrations'
require 'capistrano/nginx... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt');
var saltRounds = 10;
var userSchema = new mongoose.Schema({
email: {
type: String,
index: {unique: true}
},
password: String,
name: String
});
//hash password
userSchema.methods.generateHash = function(password){
ret... |
<?php
namespace Wolphy\Jobs;
use Illuminate\Bus\Queueable;
abstract class Job
{
use Queueable;
} |
#!/bin/sh
echo "Stopping web-server ..."
COUNT_PROCESS=1
while [ $COUNT_PROCESS -gt 0 ]
do
COUNT_PROCESS=`ps -Aef | grep node | grep -c server.js`
if [ $COUNT_PROCESS -gt 0 ]; then
PID_PROCESS=`ps -Aef | grep node | grep server.js | awk '{print $2}'`
if [ ! -z "$PID_PROCESS" ]; then
... |
<?php
namespace <API key>;
if (\class_exists('<API key>')) {
return;
}
class <API key>
{
}
\class_alias('<API key>', '<API key>', \false); |
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'ar'
from layers_basic import LW_Layer, default_data_format
from <API key> import conv_output_length
class _LW_Pooling1D(LW_Layer):
input_dim = 3
def __init__(self, pool_size=2, strides=None, padding='valid'):
if strides is None:
strides... |
class CreateEventTypes < ActiveRecord::Migration
def change
create_table :event_types do |t|
t.string :name, :limit => 80
t.timestamps
end
end
end |
require "empty_port/version"
require 'socket'
require 'timeout'
# ## Example
# require 'empty_port'
# class YourServerTest < Test::Unit::TestCase
# def setup
# @port = EmptyPort.get
# @server_pid = Process.fork do
# server = TCPServer.open('localhost', @port)
# end
# ... |
.vertical-center {
min-height: 100%; /* Fallback for browsers do NOT support vh unit */
min-height: 100vh; /* These two lines are counted as one :-) */
display: flex;
align-items: center;
}
@media (min-width: 768px){
#wrapper {/*padding-right: 225px;*/ padding-left: 0;}
.side-nav{right: 0;left: auto;... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> button </title>
</head>
<body>
<form action="http:
<button type="button"><b></b></button><br/>
<button type="submit"><img sec="./img/3.jpg" alt=""></button><br/>
</form>
</body>
</html> |
layout: post
title: Tweets
date: 2019-08-08
summary: These are the tweets for August 8, 2019.
categories: |
import type { FormatRelativeFn } from '../../../types'
const <API key> = {
lastWeek: "'గత' eeee p", // CLDR #1384
yesterday: "'నిన్న' p", // CLDR #1393
today: "'ఈ రోజు' p", // CLDR #1394
tomorrow: "'రేపు' p", // CLDR #1395
nextWeek: "'తదుపరి' eeee p", // CLDR #1386
other: 'P',
}
const formatRelative: Format... |
INSERT INTO customers(id, name)
VALUES (1, 'Jane Woods');
INSERT INTO customers(id, name)
VALUES (2, 'Michael Li');
INSERT INTO customers(id, name)
VALUES (3, 'Heidi Hasselbach');
INSERT INTO customers(id, name)
VALUES (4, 'Rahul Pour'); |
#ifndef <API key>
#define <API key>
#include "../../../bitcoin/<API key>.hpp"
#include <string>
#include <vector>
#include <utils/DerivationScheme.hpp>
#include "../../../utils/Option.hpp"
#include "../../../preferences/Preferences.hpp"
#include "../../../api/Configuration.hpp"
#include "../../../api/DynamicObject.hpp"... |
<?php
namespace AppBundle\Repository;
/**
* <API key>
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class <API key> extends \Doctrine\ORM\EntityRepository
{
} |
#!/usr/bin/env ruby
#Example handler file..
infile = ARGV.first
outfile = File.basename(infile, ".tif") + ".jpg.tif"
system("~/cm/processing_scripts/rgb_to_jpeg_tif.rb --internal-mask #{infile} #{outfile}") |
using Newtonsoft.Json;
using ProtoBuf;
using ITK.ModelManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Steam.Models
{
[Model("SteamPlayerBans")]
[ProtoContract]
[JsonObject(MemberSerialization.OptIn)]
public class Play... |
layout: post
title: ESPN took a picture of me
categories: link
Check [this link](http://espn.go.com/college-football/story/_/id/9685394/<API key>) for some story about Bo Pelini's goofing off, and -- look there in the last photo! -- it's some goofball in a Nebraska trilby. |
// GFTestAppDelegate.h
// TestChaosApp
#import <UIKit/UIKit.h>
@interface GFTestAppDelegate : UIResponder <<API key>>
@property (strong, nonatomic) UIWindow *window;
@end |
var modules = {
"success" : [
{id: 1, name:"", code:"console", protocol:"http", domain:"console.ecc.com", port:"18333", created:'2017-03-08 00:00:00', creator:'1', modified:'2017-03-08 00:00:00', modifier:'1'},
{id: 2, name:"", code:"service-center", protocol:"http", domain:"sc.ecc.com", port:"18222... |
const {
createServer,
plugins: { queryParser, serveStatic }
} = require('restify');
const { join } = require('path');
const fetch = require('node-fetch');
const proxy = require('<API key>');
const { PORT = 5000 } = process.env;
const server = createServer();
server.use(queryParser());
server.get('/', async (req, re... |
define(["core/js/layout/Panel"],
function (Panel) {
var view = Panel.extend({
/*Panel start*/
title:"-",
help:"",
brief:"",
/*Panel End*/
oninitialized:function(triggerEvent){
this._super();
this.mainReg... |
# Django Media Albums
[ users to upload photos.
This app requires Django 1.8, 1.9, 1.10, or 1.11.
## Installation
Step 1 of 5: ... |
<!
Safe sample
input : get the $_GET['userData'] in an array
sanitize : settype (float)
File : unsafe, use of untrusted data in a comment
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its documentation ... |
$('#modalUploader').on('show.bs.modal', function (event) {
var uploader = new qq.FileUploaderBasic({
element: document.getElementById('file-uploader-demo1'),
button: document.getElementById('areaSubir'),
action: '/Files/Upload',
params: { ruta: $('#RutaActual').val() },
allow... |
// setToken when re-connecting
var originalReconnect = Meteor.connection.onReconnect;
Meteor.connection.onReconnect = function() {
setToken();
if(originalReconnect) {
originalReconnect();
}
};
if(Meteor.status().connected) {
setToken();
}
function setToken() {
var firewallHumanToken = Cookie.get('sikka-hu... |
<% nameScope = @config['name_scope'] %>
</div>
</div>
</div>
<footer class="cortana-footer">
Build with love using Trulia's <a href="https:
</footer>
</div>
<script src="theme-build/js/vendors.min.js"></script>
<script type="text/javascript">
var jQuery_no_conflict = $.noConfli... |
// rbLinkedList.h
// rbLinkedList
#pragma once
#include <string>
struct Node
{
int key;
Node *next;
};
class rbLinkedList
{
public:
/** Constructor for the rbLinkedList class.
*/
rbLinkedList();
/** Deconstructor for the rbLinkedList class.
*/
~rbLinkedList();
/** Determine if the ... |
// KAAppDelegate.h
// <API key>
#import <UIKit/UIKit.h>
@interface KAAppDelegate : UIResponder <<API key>>
@property (strong, nonatomic) UIWindow *window;
@end |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Basic Example</title>
<link rel="stylesheet" href="css/base.css" />
<script src="../../asset/react/react.js"></script>
<script src="../../asset/react/react-dom.js"></script>
<script src="../../asset/react/browser.min.js"></script>
... |
using System.Collections.ObjectModel;
using System.ComponentModel;
using GalaSoft.MvvmLight.Command;
namespace Treehopper.Mvvm.ViewModels
{
<summary>
A delegate called when the selected board changes
</summary>
<param name="sender">The caller</param>
<param name="e">The new selected board</param>
... |
import React from 'react';
import ReactDOM from 'react-dom';
import componentOrElement from 'react-prop-types/lib/componentOrElement';
import ownerDocument from './utils/ownerDocument';
import getContainer from './utils/getContainer';
/**
* The `<Portal/>` component renders its children into a new "subtree" outside of... |
dojo.provide("plugins.dijit.SyncDialog");
// HAS A
dojo.require("dijit.Dialog");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.ValidationTextBox");
// INHERITS
dojo.require("plugins.core.Common");
dojo.declare( "plugins.dijit.SyncDialog",
[ dijit._Widget, dijit._Templated, plugins.core.Common ], {
//P... |
namespace TraktApiSharp.Objects.Basic.Json.Factories
{
using Objects.Basic.Json.Reader;
using Objects.Basic.Json.Writer;
using Objects.Json;
internal class <API key> : IJsonIOFactory<ITraktCommentLike>
{
public IObjectJsonReader<ITraktCommentLike> CreateObjectReader() => new <API key>();
... |
package com.sdl.selenium.extjs3.button;
import com.sdl.selenium.bootstrap.button.Download;
import com.sdl.selenium.extjs3.ExtJsComponent;
import com.sdl.selenium.web.SearchType;
import com.sdl.selenium.web.WebLocator;
public class DownloadLink extends ExtJsComponent implements Download {
public DownloadLink() {
... |
angular.module('perCapita.controllers', [])
.controller('AppCtrl', ['$scope', '$rootScope', '$ionicModal', '$timeout', '$localStorage', '$ionicPlatform', 'AuthService',
function ($scope, $rootScope, $ionicModal, $timeout, $localStorage, $ionicPlatform, AuthService) {
$scope.loginData = $localStorage.getObje... |
# VBA.ModernTheme
Windows Phone Colour Palette and<p>Colour Selector using WithEvents
Version 1.0.1
The *Windows Phone Theme Colours* is a tight, powerful, and well balanced palette.
This tiny Microsoft Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing *WithEvents... |
var http = require("http");
var querystring = require("querystring");
var SBuffer=require("../tools/SBuffer");
var common=require("../tools/common");
var zlib=require("zlib");
var redis_pool=require("../tools/connection_pool");
var events = require('events');
var util = require('util');
function ProxyAgent(preHeaders,p... |
layout: post
title: "Hello World"
image:
feature: nomadsland.jpg
date: 2016-09-19 20:24:11 +0200
categories: personal, coding
I enjoy tinkering - building little electronic gadgets and apps - especially if it has something to do with [cryptocurrencies]. Currently my day-job is building Bitcoin infrastructure. The ... |
<?php
namespace RobotsTxtParser;
class CommentsTest extends \PHPUnit\Framework\TestCase
{
/**
* @dataProvider generateDataForTest
*/
public function testRemoveComments($robotsTxtContent)
{
$parser = new RobotsTxtParser($robotsTxtContent);
$rules = $parser->getRules('*');
$t... |
package org.nfpj.utils.arrays;
import java.util.Iterator;
import java.util.<API key>;
import java.util.function.Predicate;
import org.nfpj.utils.predicates.TruePredicate;
/**
*
* @author njacinto
* @param <T> the type of object being returned by this iterator
*/
public class ArrayFilterIterator<T> implements Iterat... |
layout: post
title: slacker slack bot
comments: true
tags:
- python
- slack
-
- slacker
`notification` . `slack` . . .
<img src="/images/commit-bell.jpeg" alt=" " style="width: 480px; margin-left: auto; margin-right: auto; "/>
. [Slack Apps](https:... |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosHeart extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M359.385,80C319.966,80,277.171,97.599,256,132.8C234.83,97.599,192.034,80,152.615,80C83.647,80,32,123.238,32,19... |
<?php
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SPECIALS));
require(DIR_WS_INCLUDES . 'template_top.php');
?>
<h1><?php echo HEADING_TITLE; ?></h1>
<div class="contentContainer">
<div class="c... |
{% extends "admin/base.html" %}
{% load i18n %}
{% block title %}{{ title }} | {% trans 'lab purchase management' %}{% endblock %}
{% block branding %}
<h1 id="site-name">{% trans 'LabHamster' %}</h1>
{% endblock %}
{% block nav-global %}{% endblock %} |
package org.mockitousage.verification;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.anyString;
import static org.mockito.Mockito.atMost;
import static org.mockito.Mockito.atMostOnce;
import s... |
<?php
declare(strict_types=1);
namespace Atk4\Ui\Demos;
use Atk4\Ui\Crud;
use Atk4\Ui\UserAction\ExecutorFactory;
// Test for hasOne Lookup as dropdown control.
/** @var \Atk4\Ui\App $app */
require_once __DIR__ . '/../init-app.php';
$model = new Product($app->db);
$model->addCondition($model->fieldName()->name, '=', '... |
#ifndef HardwareSerial_h
#define HardwareSerial_h
#include <inttypes.h>
#include "Print.h"
struct ring_buffer;
#if defined(__AVR_ATmega103__)
class HardwareSerial : public Print
{
private:
ring_buffer *_rx_buffer;
volatile uint8_t *_ubrr;
volatile uint8_t *_ucr;
volatile uint8_t *_usr;
volatile ui... |
import React, {PropTypes} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as courseActions from '../../actions/courseActions';
import CourseForm from './CourseForm';
import {<API key>} from '../../selectors/selectors';
import toastr from 'toastr';
export class Manag... |
.sessionForm{
padding: 10px;
}
.carapaceForm{
padding: 10px;
border: 3px solid #000000;
min-width: 960px;
margin-bottom: 10px;
}
label{
margin: 5px;
}
input{
margin: 5px;
}
button{
margin: 5px;
}
.section{
border: 1px solid #000000;
margin-bottom: 10px;
}
.carapaceSection{
pa... |
<API key> = Class.create(<API key>, {
attributeHandler: null,
process: function()
{
if (this.specificHandler.isSpecificRendered(this.indexedXPath) && !this.isValueForceSet()) {
return '';
}
if (!this.load()) {
return '';
}
this.<API key>();
... |
Rails.application.config.middleware.use OmniAuth::Builder do
provider :provider, ENV["KEY"], ENV["SECRET"]
end |
package controller.server;
import controller.LibraryService;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.rmi.RemoteException;
public class RMIServer {
public static void main(String[] args) throws RemoteException, NamingException {
Libra... |
define([
'angular'
], function (ng) {
'use strict';
return ng.module('backgroundModule', []);
}); |
const pkg = state => state.pkg
const app = state => state.app
const device = state => state.app.device
const sidebar = state => state.app.sidebar
const effect = state => state.app.effect
const menuitems = state => state.menu.items
const componententry = state => {
return state.menu.item.filter(c => c.meta && c.meta.l... |
title: HOWTO: Install Ubuntu on Your Eee PC
author: Rami Taibah
permalink: <API key>
tags: eee-pc, ubuntu, howto
I have [posted]({filename}/blog/<API key>.markdown) earlier that the "easy mode" of the Eee PC is like living on the bottom bunker in a basement cell of the Alcatraz. Liberating it to the default Xandros "ad... |
using System;
using System.Collections.Generic;
using System.Linq;
using BlackBox.Service;
using EbInstanceModel;
using IFC2X3;
namespace BlackBox.Predefined
{
public partial class BbProduct : BbBase
{
[<API key>]
public virtual IfcRelAggregates IfcRelAggregates { get; protected set; }
p... |
"""
symbols(name(s), assumptions...)
Calls `sympy.symbols` to produce symbolic variables and symbolic functions. An alternate to the recommended `@syms`, (when applicable)
In sympy `sympy.symbols` and `sympy.Symbol` both allow the construction of symbolic variables and functions. The `Julia` function `symbols` is a... |
using UnityEngine;
public class Crouch : MonoBehaviour {
public float <API key> = 0.75f;
private bool crouching;
private float colliderCenterY, centerOffsetY;
private ChipmunkBoxShape box;
private Jump jump;
private Sneak sneak;
private WalkAbs move;
private AnimateTiledConfig crouchAC;
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Plato - lib/cmds/nt.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/sv... |
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.applicationinsights.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;... |
angular.module('MetronicApp').controller('UsuariosCtrl', function ($scope, GetSv, $rootScope, PostSv,toaster) {
$scope.usuarios = [];
$scope.add = false;
$scope.edit = false;
$scope.a_editar = {};
$scope.usuario = {};
$scope.getUsers = function () {
GetSv.getData("usuarios").then(functio... |
#include <vector>
#include <memory>
#include <iostream>
using namespace std;
shared_ptr<vector<int>> make() {
return make_shared<vector<int>>();
}
shared_ptr<vector<int>> read(shared_ptr<vector<int>> p) {
cout << "Enter values: " << endl;
int x;
while (cin >> x) {
p->push_back(x);
}
retu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.