answer stringlengths 15 1.25M |
|---|
using System;
using UnityEngine;
using LuaInterface;
public class GraphicsWrap
{
public static void Register(IntPtr L)
{
LuaMethod[] regs = new LuaMethod[]
{
new LuaMethod("DrawMesh", DrawMesh),
new LuaMethod("DrawMeshNow", DrawMeshNow),
new LuaMethod("DrawPro... |
.ng-invalid-url{
background: red;
}
tr > td{
text-overflow: ellipsis !important;
overflow: hidden !important;
white-space: nowrap !important;
} |
<?php
class EdenImageIndexTest extends <API key>
{
public function testBlur() {
$class = eden('image', __DIR__ . '/assets/stars.gif', 'gif');
// var_dump($class->getDimensions());
$this->assertInstanceOf('Eden\Image\Index', $class);
}
} |
package com.example.madiskar.<API key>.fragments;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import com.example.madiskar.<API key>.R;
public class SettingsFragment extends PreferenceFragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIn... |
// <API key>.h
// RealmTest
#import <UIKit/UIKit.h>
@interface <API key> : <API key>
- (void)reload;
@end |
<div class="well">Well, it's a well! Could add well-sm or well-lg too</div> |
# Civilization
Java console game based off Sid Meier's Civilization V
*DEVELOPMENT ON HOLD UNTIL PROCEDURAL GENERATION ALGORITHM COMPLETED
Screenshots

Checklist
- [ ] Reduce use of exceptions as logical operator
- [ ] Add layout for GUI interface
- [ ] Fix synch... |
'use strict';
// var declaration
var mongoose = require('mongoose'),
Timesheet = mongoose.model('Timesheet'),
_ = require('lodash');
var <API key> = require('../performance/<API key>.service.server');
// helper function declaration
var updateTimesheet = function(req, res) {
Timesheet.findById(req.body._id, ... |
<link rel=stylesheet media=all href="/css/detail.css">
<style>
/* 750 */
@media only screen and (min-width:751px)
{
}
/* 960 */
@media only screen and (min-width:961px)
{
}
/* 1280 */
@media only screen and (min-width:1281px)
{
}
</style>
<script defer src="/js/detail.js"... |
package l2;
import java.util.Stack;
public class LeftMostAppFinder implements AppFinder {
// Stack interface
// peek top, peek
// LinkedList, (Deque), allocate
// : LinkedList peek null, Stack throw exception
// : replace, root
protected Stack<Node> path = new Stack<>();
protect... |
<h1>10. Centuries to Nanoseconds</h1>
</br>
Write program to enter an integer number of centuries and convert it to years, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds.
</br>
<h4>Examples</h4>
</br>
<table>
<tr>
<th>Input</th>
<th>Output</th>
</tr>
<tr>
<... |
namespace Task03.PageEvents
{
using System;
public partial class Events : System.Web.UI.Page
{
protected void Page_PreInit(object sender, EventArgs e)
{
Response.Write("Page_PreInit invoked" + "<hr/>");
}
protected void Page_Init(object sender, EventArgs e)
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Snapshot` struct in crate `rustc_trans`.">
<meta name="key... |
div.pager {
padding: 3px;
text-align: right;
}
div.pager-size {
padding: 3px;
text-align: left;
}
a.pager-button, a.pager-button:before, a.pager-button:after {
cursor: pointer;
}
div.pager a.selected, div.pager a.selected:hover, div.pager a.selected:active {
color: #dfd;
background: #666;
... |
package example
import org.scalatest.FunSuite
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class ListsSuite extends FunSuite {
/**
* Tests are written using the `test` operator which takes two arguments:
*
* - A description of the test. This descriptio... |
require 'spiderfw/model/model_hash'
module Spider; module Model
# The request object specifies which data is to be loaded for a model. It is similar in purpose to
# the SELECT ... part of an SQL query.
class Request < ModelHash
# @return [bool] if true, the total number of rows returned by the query... |
{% load i18n %}{% spaceless %}
<dl class="sub-nav">
<dt class="hide">Sections:</dt>
<dd{% if active_tab == 'edit' %} class="active"{% endif %}>
<a href="{% url 'sveedocuments:page-edit' page_instance.slug %}">{% trans "Edit" %}</a>
</dd>
<dd{% if active_tab == 'history' %... |
#include "panebase.h"
PaneBase::PaneBase(QWidget *parent, Qt::WindowFlags flags)
:QWidget(parent, flags)
{
}
PaneBase::~PaneBase()
{
} |
package com.googlecode.jmxtrans.model.output.support.pool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import stormpot.Expiration;
import stormpot.SlotInfo;
import java.net.Socket;
public class SocketExpiration implements Expiration<SocketPoolable> {
private static final Logger log = LoggerFactory.getL... |
/* rotate tile in 3D*/
.outblock.rotate3d
{
border-width:0px;
}
.rotate3d {
-webkit-perspective: 800px;
-ms-perspective: 800px;
-o-perspective: 800px;
perspective: 800px;
overflow: visible
}
.faces {
-<API key>: preserve-3d;
-webkit-transition: -webkit-transform 1s;
-ms-transform-style: preserve-3d;... |
/* global asciidoctor, Chartist, hljs */
// exports
asciidoctor.browser.renderer = (webExtension, document, Constants, Settings, Dom, Theme) => {
const module = {}
/**
* Initialize the HTML document
*/
module.prepare = () => {
Dom.setViewport()
}
/**
* Update the content of the HTML document
*... |
<?php
namespace App\Repositories;
use App\League;
class TeamRepository
{
/**
* Get all of the Teams for a given League.
*
* @param League $league
* @return Collection
*/
public function forLeague(League $league)
{
return $league->teams()
->orderBy('name'... |
<?php
namespace EC\PrincipalBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\OptionsResolver\<API key>;
class ValoracionType extends AbstractType
{
public function buildForm(<API key> $builder, array $options)
{
$builder->add('mensaj... |
#include "../src/qt/csvmodelwriter.h"
#if !defined(<API key>)
#error "The header file 'csvmodelwriter.h' doesn't include <QObject>."
#elif <API key> != 63
#error "This file was generated using the moc from 4.8.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed to... |
var main=require('../main');
main.directive('loginForm', function () {
return {
restrict: 'AE',
template:"<div style='height: 500px;'><label for='username'>:</label><input type='text' name='username' placeholder=''><label for='password'>:</label><input type='password' name='password' placeholder=''></div>"
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { <API key> } from './config-setting.component';
describe('<API key>', () => {
let component: <API key>;
let fixture: ComponentFixture<<API key>>;
beforeEach(async(() => {
TestBed.<API key>({
declarations: [ <API key> ]
... |
layout: post
title: "Common Misconceptions Executives Have About AI"
posturl: https://thinkgrowth.org/<API key>
tags:
- Overview
{% include post_info_header.md %}
Would be fun to see which executives actually have these misconceptions. I wonder how many times somebody utters on brainstorming meetings "let's use AI to s... |
<<<< HEAD
<?php
require "includes\ViewManager.php";
use ArcherSys\Viewer\ViewManager;
ViewManager::addProductForum("main");
?>
====
<?php
require "includes\ViewManager.php";
use ArcherSys\Viewer\ViewManager;
ViewManager::addProductForum("main");
?>
>>>> <SHA1-like> |
{
"title" : "How do I Convert a Microsoft Excel Spreadsheet to a PDF? "
}
How do I Convert a Microsoft Excel Spreadsheet to a PDF?
==
It is very simple to convert a Microsoft Excel Spreadsheet to a PDF file on the command line using [Docto](https://github.com/tobya/docto). You can also do this easily in Microsoft... |
Template.managegroup.group = function() {
var g = GROUPS.findOne(Session.get("gid"));
if (!g) g = {_id:Session.get("gid"),nogroup:true};
return g;
}
/*Template.managegroup.groupusers = function() {
return Meteor.users.find();
}*/
Template.managegroup.userscount = function() {
return Meteor.users.find().count(... |
Copyright (c) 2015 Jeff Calaway
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublic... |
<?php
namespace Equip\Structure\Traits;
trait CanIterate /* implements Iterator */
{
public function current()
{
return current($this->values);
}
public function key()
{
return key($this->values);
}
public function next()
{
next($this->values);
}
public fu... |
import * as bt from '@babel/types'
import { visit } from 'recast'
import { Node, TemplateChildNode, <API key> } from '@vue/compiler-dom'
import Documentation, { ParamTag } from '../Documentation'
import { <API key> } from '../parse-template'
import <API key> from '../utils/<API key>'
import getDoclets from '../utils/ge... |
let code = {}
code.basic = `\
<vb-form-item addons>
<vb-button color="info">Confirm</vb-button>
<vb-button color="warning">Reset</vb-button>
</vb-form-item>
<vb-form-item addons>
<vb-input placeholder="Find a repository"></vb-input>
<vb-button color="info">Search</vb-button>
</vb-form-item>
<vb-form-item addons... |
<!doctype html>
<html>
<head>
<script src="lib/phaser-no-physics.min.js"></script>
<script src="labyrinthz.js"></script>
<link rel="stylesheet" href="style.css" type="text/css"/>
<title>Labyrinthz</title>
</head>
<body>
<div id="content">
<h1>Labyrinthz</h1>
<div id="wrapper"></div>
<div id=... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{zXQ9:function(t,e,n){"use strict";var u=n("TqRt");e.__esModule=!0,e.default=void 0;var a=u(n("VbXa")),o=u(n("q1tI")),r=function(t){function e(){return t.apply(this,arguments)||this}return(0,a.default)(e,t),e.prototype.render=function(){return o.default.createElem... |
FindAVIFile
Locate AVIFILE library and include paths
AVIFILE (http://avifile.sourceforge.net/) is a set of libraries for
i386 machines to use various AVI codecs. Support is limited beyond
Linux. Windows provides native AVI support, and so doesn't need this
library. This module defines
::
AVIFILE_INCLUDE_DIR, where... |
Riak for Go
=============
[.
[.
## Status
Core functionality (fetch, store, secondary indexes, links) is complete, but many advanced features... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pystructure.pystructure import PYStructureVisitor
class <API key>(object):
def setup_class(self):
self.visitor = PYStructureVisitor()
def <API key>(self):
func_name = "foo"
args_list = []
default_list = []
kwarg = None
... |
// ==UserScript==
// @author James Edward Lewis II
// @description This loads Twitter emoji where possible, using the open-source Twemoji API.
// @name Twemojify
// @namespace greasyfork.org
// @version 1.0.0
// @include *
// @grant none
// @run-at document-start
// ==/UserScript==
// greatly inspired by the Twemojify ... |
from ._testutil import GibsonTest, run_until_complete
from aiogibson import errors
class CommandsTest(GibsonTest):
@run_until_complete
def test_set(self):
key, value = b'test:set', b'bar'
response = yield from self.gibson.set(key, value, expire=3)
self.assertEqual(response, value)
... |
// <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>
namespace Colors.Properties {
[global::System.Runtime.CompilerServices.<API key>()]
[global::System.CodeDom.Compiler.<AP... |
import React from 'react';
import XYChartReadme from '!!raw-loader!../../../../visx-xychart/README.md';
import * as XYChartPackage from '../../../../visx-xychart/src';
import DocPage from '../../components/DocPage';
import XYChartTile from '../../components/Gallery/XYChartTile';
const components = Object.values(XYChart... |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Secur... |
/* jshint node: true */
'use strict';
module.exports = {
normalizeEntityName: function(entityName) {
return entityName;
},
afterInstall: function() {
return this.<API key>('auth0-lock', '~6.6.2');
}
}; |
#ifndef <API key>
#define <API key>
#include <stdio.h>
#include <iostream>
#include <string>
#include <stdexcept>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <Eigen/Dense>
#include "v4r/common/impl/SmartPtr.hpp"
#include <v4r/keypoints/<API key... |
// OOP244 Milestone 2: error class, dynamic memory
// File: Error.cpp
#include <cstring>
#include "Error.h"
using namespace std;
namespace ict
{
Error::Error()
{
//clog << "[INFO] - Error()" << endl;
// Sets the message_ member variable to nullptr
message_ = nullptr;
... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace InceptionCache.Core
{
public interface ICacheProvider
{
Task<T> GetAsync<T>(string key) where T : class;
T Get<T>(string key) where T : class;
Task<T[]> GetAsync<T>(string[] keys) where T : class;
... |
=
* [Home](page:0)
* [The Hillhead Trail](tour:hillhead-trail) |
# Week 1
It's about thinking, not learning new math techniques
Learn to stop looking for formulas or procedures to follow
You have to look at what the problem says
It's about understanding, not doing
## Background Reading: What is Mathematics?
1. More than arithmetic.
- Most math used in modern science and engineerin... |
import React from "react";
import PropTypes from "prop-types";
import cx from "classnames";
import { Portal } from "./../Portal";
import { Overlay } from "./../Overlay";
import CSSModules from "react-css-modules";
import styles from "./Modal.css";
export class Modal extends React.PureComponent {
constructor(props) {
... |
import * as React from 'react';
import {
View,
Image,
Text,
TextInput,
ScrollView,
StyleSheet,
} from 'react-native';
const MESSAGES = [
'okay',
'sudo make me a sandwich',
'what? make it yourself',
'make me a sandwich',
];
export default class Chat extends React.Component {
render() {
return (... |
/*jshint node:true, es3:false*/
'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var yosay = require('yosay');
var chalk = require('chalk');
var _ = require('lodash');
var nameHelper = require('../../lib/name-helper.js');
var XdCodeGenerator = yeoman.genera... |
:host {
display: inline-block;
}
:host([disabled]) {
pointer-events: none;
}
:host > .io-editor {
white-space: nowrap;
display: inline-block;
}
:host > .io-editor:focus {
outline: 0;
}
:host > .io-editor.invalid:focus {
color: red;
}
:host > .io-value-label {
vertical-align: top;
} |
# coding: us-ascii
require_relative 'helper'
class FooBar
include Hash::Keyable
attr_accessor :var
end
foo = FooBar.new
bar = FooBar.new
The foo do
EQL bar
foo.var = 'foo'
bar.var = 'bar'
NG EQL?(bar)
bar.var = 'foo'
EQL bar
end
class FooBar
def my_specific1
:specific1
end
protected
def <API... |
<HTML><HEAD>
<TITLE>Review for Sunshine (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0145503">Sunshine (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?David+Bezanson">David Beza... |
package gg.uhc.fancyfreeze.events;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class PlayerUnfreezeEvent extends Event {
private static final HandlerList handlers = new HandlerList();
@Override
public HandlerList getHandlers() {
return ... |
"use strict";
var fx = require("framework");
var Class = fx.import("framework.Class");
var App = fx.import("framework.app.App");
var ImageView = fx.import("framework.ui.view.ImageView");
var CompositeView = fx.import("framework.ui.view.CompositeView");
var FrameAnimation = fx.import("framework.ui.animation.FrameAnimati... |
export default function BookListController(BookFactory) {
BookFactory.getBooks().then(function(response){
this.books = response.data;
}.bind(this));
// BookFactory.getBooks().then((response) =>{
// this.books = response.data;
} |
// ReSharper disable once CheckNamespace
namespace Data.DbClient
{
internal interface IDbFileHandler
{
<API key> <API key>(string fileName);
}
} |
import React from 'react';
import { Link } from 'react-router';
export class AboutView extends React.Component {
render() {
return (
<div className='container text-center'>
<h1>SUCH WOW SUCH DOGEE</h1>
<hr />
<Link to='/'>Back To Home View</Link>
</div>
);
}
}
export defa... |
package ch.ethz.syslab.telesto.console;
import javax.swing.SwingUtilities;
import ch.ethz.syslab.telesto.console.gui.ConsoleWindow;
public class Main implements Runnable {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Main());
}
@Override
public void run() {
Con... |
import Location from '../../geo/location';
import Tile from '../../geo/tile';
import City from '../../geo/city';
import Path from '../../geo/path';
import { catane } from './dices';
import { RandomResources } from './resources';
import * as geo from '../../geo/geo';
export class RoundGenerator {
constructor(nbRings... |
package com.liulu.think;
public class Train extends Thread{
public InputNeuron[] InputNeurons;
public HiddenNeuron[] HiddenNeurons;
public OutputNeuron[] OutputNeurons;
public Train(){}
public void run(){}//run,,
public void optimize(){}
} |
const gulp = require('gulp');
const uglify = require('gulp-uglify');
const pump = require('pump');
const coffee = require('gulp-coffee');
const mocha = require('gulp-mocha');
gulp.task('coffee', () => |
// Use of this source code is governed by a MIT-style
package user
import (
"net/http"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/db"
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/g... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;
var UserSchema = new Schema({
// basic
name: { type: String },
loginname: { type: String },
std_id: { type: ObjectId },
psw: { type: String },
url: { type: String },
profile_image_url: { t... |
module TheCityAdmin
# This adapter is the standard for all loading objects.
class ApiReader
attr_reader :headers
# Constructor
# def initialize
# end
# Loads the list
# @return the data loaded in a JSON object.
def load_feed
# if !@cacher.nil? and !@cacher.is_cache_expired?( @class... |
<?php namespace Jacopo\Authentication\Tests\Unit;
use App, Config, Event;
use Illuminate\Database\QueryException;
use Illuminate\Support\MessageBag;
use Jacopo\Authentication\Exceptions\UserExistsException;
use Jacopo\Authentication\Models\User;
use Jacopo\Authentication\Services\UserRegisterService;
use Jacopo\Librar... |
'use strict';
var Polls = require('../models/polls.js');
function PollHandler () {
this.addPoll = function(req, res) {
var poll = req.body;
poll.userId = req.user.github.id;
poll.username = req.user.github.username;
Polls
.create(poll, function (err) {
if ... |
#pragma once
#include "cinder/Surface.h"
#include "cinder/gl/Texture.h"
#include "cinder/Timeline.h"
using namespace ci;
struct Sprite
{
enum State
{
NORMAL,
CLICK,
};
enum PosState
{
CORRECT,
HALF,
WRONG
};
void addDegree(float deg);
void setPosFr... |
'use strict';
const AWS = require('aws-sdk');
const { promisify } = require('./promises');
const dbSettings = {
region: 'docker-compose',
endpoint: 'http://dynamodb:8000',
accessKeyId: '<API key>',
secretAccessKey: '<API key>',
};
const dynamoDb = new AWS.DynamoDB(dbSettings);
const docClient = new AWS.... |
// ViewController.h
// BkAppDelegate
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end |
Copyright (c) 2015 Niilo Ursin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublice... |
#!/bin/bash
UNREAL_PROXY_PATH=/DroneLab/demos/bluerov/unreal_proxy
DEMO_PATH=/DroneLab/demos/bluerov
SITL_POSITION_PORT=9989
ENTRY_POINT=unreal_proxy
ENTRY_PATH=$UNREAL_PROXY_PATH/
DRONESIMLAB_PATH=../../
#game defenitions
#GAME_PATH=/DroneLab/baked_games/Ocean1_packed/LinuxNoEditor/
GAME_PATH=/project_files/Ocean1_pac... |
module VCloud
module ParsesXml
def self.included(base)
base.send(:include, HappyMapper)
base.extend(ClassMethods)
end
module ClassMethods
def has_links
self.class_eval do
has_many :links, 'VCloud::Link', :xpath => '.'
end
end
def <API key>
se... |
<div ng-controller="UserController" ng-init="findAll()">
<script type="text/ng-template" id="myModalContent.html">
<div class="modal-header">
<div class="title-container">
<h3 class="modal-title">Confirmación para borrar usuario</h3>
</div>
</div>
<div class=... |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ServiceFabric::V6_2_0_9
module Models
# Defines an hour and minute of the day specified in 24 hour time.
class TimeOfDay
includ... |
// for more details.
// modifications are permitted.
using Neo.IO.Json;
using Neo.VM;
using Neo.VM.Types;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text.Json;
using Array = Neo.VM.Types.Array;
using Boolean = Neo.VM.... |
import expect from 'expect'
import React from 'react'
import { createMemoryHistory } from 'history'
import { createRoutes } from '../RouteUtils'
import matchRoutes from '../matchRoutes'
import Route from '../Route'
import IndexRoute from '../IndexRoute'
import shouldWarn from './shouldWarn'
describe('matchRoutes', func... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Medi... |
(function() {
if (window.isAlreadyPrepared) return;
window.isAlreadyPrepared = true;
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (!!request.format) {
copy(request.format);
}
});
function copy(format) {
return execCopy(<API key>(format));
}
function e... |
using Floreview.Models;
using Microsoft.AspNet.Identity;
using System;
using System.Security.Claims;
using System.Threading.Tasks;
namespace Floreview.DataAccess.Interfaces
{
public interface IIdentityManager
{
bool AddUserToRole(string userId, string roleName);
void ClearUserRoles(string userId... |
<?php
declare(strict_types=1);
namespace MsgPhp\Domain\Event;
/**
* @author Roland Franssen <franssen.roland@gmail.com>
*/
interface DomainEvent
{
} |
#pragma once
#include "Vector2.h"
//reloaded
class Matrix2 {
public:
Matrix2();
Matrix2(float a_m1, float a_m2, float a_m3, float a_m4);
Matrix2(Matrix2 & other);
Matrix2(float * a_array);
//Matrix2(float *a_array);
//todo:concatenation, subscript operator, cast operator, setrotate
Matrix2 o... |
<?php
class PostMessage
{
const CONVO_LOCATION = '../conversation/conversation.txt';
public function WriteToConversation($message, $who)
{
$file = __DIR__.'/'.self::CONVO_LOCATION;
$messages = unserialize(file_get_contents($file));
$messages[] = array(
'from' => $who,
... |
package redis.clients.jedis;
import redis.clients.jedis.commands.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
public abstract class <API key> extends PipelineBase implements
<API key>, <API key>, ClusterPipeline,
<API key>, <API key>, BasicRedisPipeline {
protected Client client = nul... |
title: Swift-Alamofire
date: 2021-10-25
tags:
- 19
- iOS
author: HeKai
iOS
## 1URL
[http:

calendar.jsdatedayYYYY/MM
 {
$scope.hello = "world";
}
}
MainCtrl.$inject = ['$scope'];
export default MainCtrl; |
package Graficos;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.util.ArrayList;
import javax.swing.*;
public class Botao extends javax.swing.JButton { //Herda todas caracteristicas de JButton
private static final long serialVersionUID = 1L;
// Declara COmponentes
private JLabel label... |
<?php
namespace Jmbermudo\LsiUserBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class <API key> extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->assertTrue($cra... |
#ifndef TOOLLISTENER_H_
#define TOOLLISTENER_H_
#include "Paintable.h"
class ToolListener {
public:
virtual void <API key>(Paintable* p) = 0;
virtual void <API key>(Paintable* p) = 0;
};
#endif /*TOOLLISTENER_H_*/ |
MIT License
Copyright (c) 2017 Jordan Adams
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... |
module Corral
class Feature
attr_reader :condition, :disabled
def initialize(feature, condition, disabled)
@feature = feature
@condition = condition
@disabled = disabled
end
class << self
def features
@features ||= {}
end
def push(name, condition, disabled =... |
<?php
namespace App\VitrineBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* LoisirRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class LoisirRepository extends EntityRepository
{
} |
console.log('two2'); |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Enum TypeKind
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum TypeKind
">
<meta name="generato... |
require 'rails_helper'
RSpec.describe Maker::Concept, :type => :model do
pending "add some examples to (or delete) #{__FILE__}"
end |
namespace Shopify.Tests {
using Shopify.Unity.SDK;
using System.Collections.Generic;
public class MockLoaderErrors : IMockLoader {
public bool <API key>(string query) {
return Is404Query(query) || IsGraphQLErrorQuery(query);
}
public void HandleResponse(string query, <API... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.