answer
stringlengths
15
1.25M
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package HW09_101044044; /** * CSE241_HW09 Samet Sait Talayhan 101044044 */ /** * @author talayhan * */ public class Family { // Data fields private Person father = null; private Person mother = null; ...
namespace LEDLIB { public class LED3DObjectSet { public LED3DObject obj; public ILED3DCanvas filter; public LED3DObjectSet(LED3DObject obj, ILED3DCanvas filter) { this.obj = obj; this.filter = filter; } public LED3DObjectSet(LED3DObject obj...
package io.github.anantharajuc; public class IfStatement { public static void main(String[] args) { int age = 19; if (age > 18) { System.out.println("Eligible to Vote"); } } }
class UserPolicy < ApplicationPolicy def create? user.admin? end def update? user.admin? || is_self? end def destroy? return false if is_guest? user.admin? || is_self? end private def is_self? user == record end end
import _ from 'lodash' import Vue from 'vue' import test from 'ava' import FlexTableColumn from '../../src/components/FlexTableColumn.vue' Vue.config.productionTip = false test('has a mounted hook', (t) => { t.true(_.isFunction(FlexTableColumn.mounted)) }) test('has data as function', (t) => { t.true(_.isFunction(F...
#include "include/<API key>.h" #include "include/<API key>.h" <API key>::<API key>() { // Constructor } <API key>::~<API key>() { // Destructor } void <API key>::updateSensor(IMessage* msg) { this->data = ((<API key>*)msg)->getData(); delete msg; } double <API key>::getDistanceCM() { // No-Op re...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class AboutUs extends CI_Controller { /** * AboutUs constructor. */ public function __construct() { parent::__construct(); if(!is_validated()){ redirect(BASEURL); } $this->load->model(...
package com.pcalouche.spat.config; import com.pcalouche.spat.interceptors.LoggerInterceptor; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.spring...
export const plus = (f, l) => { let next = {}; if (typeof l === 'number') { next.low = l; next.high = 0; } else if (typeof l === 'object') { if (l.high && l.low && l.unsigned) { next = l; } else { throw new Error('Not a uint64 data'); } } return { high: f.high + next.high, ...
<?php use REBELinBLUE\Deployer\Validators\ChannelValidator; class <API key> extends TestCase { /** * @dataProvider <API key> */ public function testValidate($value, $valid) { $validator = new ChannelValidator; $result = $validator->validate('channel', $value, null); if ($va...
import { Component } from '@angular/core'; import { NavController, NavParams, LoadingController, ToastController } from 'ionic-angular'; import { FilePath, Transfer } from 'ionic-native'; import { File } from '@ionic-native/file'; import { Http, Headers } from '@angular/http'; @Component({ selector: 'page-download', ...
<legend> Frete grátis para entrega - {ACAO} <div class="pull-right"> <a href="{URLLISTAR}" title="Listar frete grátis de formas de entrega" class="btn">Voltar</a> </div> </legend> <form action="{ACAOFORM}" method="post" class="form-horizontal"> <input type="hidden" name="<API key>" id="<API key>...
<?php class IndexController extends <API key> { /** * @var Zend_Auth * */ protected $_auth = null; public function init() { $this->_auth = Zend_Auth::getInstance(); } public function indexAction() { //$this->view-><API key> = date('M d, Y - H:i:s'); //$...
class CreateDesks < ActiveRecord::Migration def change create_table :desks do |t| t.string :style t.integer :price t.text :description t.timestamps end end end
'use strict'; var maxBot = 11; var mode; var mw = {}; var mwId; function getMwId() { mwId = $.url().segment(4); } function isNewMicroworld() { return ($.url().segment(3) === 'new'); } function <API key>() { var behaviour_name = $(this).attr('id'); var behaviour_type = $(this).text(); $(this).closest...
<?php namespace Bixie\Userprofile\User; use Bixie\Userprofile\Model\Profilevalue; use Pagekit\Application as App; use Pagekit\User\Model\User; use Pagekit\Util\Arr; class ProfileUser implements \JsonSerializable { use ProfileUserTrait; /** * @var integer */ public $id; /** * @var User ...
namespace ModuleHost { using System.Web.Http; public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API routes config.<API key>(); config.Routes.MapHttpRoute( ...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="ApiGen 2.8.0" /> <title>Overview</title> <script type="text/javascript" src="resources/combined.js"></script> <script type="text/javascript" src="elementlist.js"></scri...
package net.tofweb.starlite; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.LinkedList; import org.junit.Before; import org.junit...
<div class="<API key>"> <div class="ys-table-fixed-top" style="padding-left:160px;"> <div class="ys-table-static <API key>" style="width:160px;"> <table class="table table-no-bordered amp-table table-hover table-header-fixed" style="width:100%;"> <thead> <tr s...
layout: page title: "Workshop 1 materials" header: no image: title: "grays_lato_img.gif" permalink: "/info1/" comments: false Useful info for the day # Archives Examples from the two data sets used for the Kaggle Challenge on day two are available online: + The [50 voices 50 faces](http: + [Sisterhood](http: Bo...
package jqian.sootex.location; import soot.SootField; import soot.Type; /** Model a static class field */ public class GlobalLocation extends Location{ protected final SootField _field; GlobalLocation(SootField field){ this._field=field; } public SootField getSootField(){ return _field; ...
package blend_test import ( "image/color" "testing" "github.com/tv42/quobar/blend" ) var ( white = color.RGBA{R: 255, G: 255, B: 255, A: 255} green = color.RGBA{R: 0, G: 255, B: 0, A: 255} yellow = color.RGBA{R: 255, G: 255, B: 0, A: 255} red = color.RGBA{R: 255, G: 0, B: 0, A: 255} ) v...
(function($){ // jQuery no conflict 'use strict'; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - Section - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ console.log('file.js loaded'); })(jQuery); // jQuery no conflict
package eu.verdelhan.ta4j.indicators.trackers; import eu.verdelhan.ta4j.Decimal; import eu.verdelhan.ta4j.TimeSeries; import eu.verdelhan.ta4j.indicators.CachedIndicator; import eu.verdelhan.ta4j.indicators.helpers.<API key>; import eu.verdelhan.ta4j.indicators.helpers.<API key>; /** * Directional movement indicator. ...
layout: post title: ChUG - The Chembl User Group date: '2010-07-27T16:31:00.000+01:00' author: John Overington tags: - Humour (maybe) - ChUG modified_time: '2010-07-27T16:31:48.755+01:00' thumbnail: http://4.bp.blogspot.com/_SlPG9DIz_AA/TE72uS3yBzI/AAAAAAAAA0Y/biebl4nkdWc/s72-c/59-linkedin-logo.jpg blogger_id: tag:blog...
<?php namespace Panlatent\SiteCli\Site; use ArrayIterator; use <API key>; abstract class Node extends ArrayIterator implements NodeInterface { const PRETTY_SEPARATOR = '/'; /** * @var string */ protected $name; /** * @var string */ protected $path; /** * @var \Panlatent\...
package org.jsoup.integration; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.ServerConnector; import org.eclipse.jetty.servlet.ServletHandler; import org.jsoup.integration.servlets.BaseServlet; import java.util.concurrent.atomic.AtomicInteger; public class TestServer { private static final...
# coding: utf-8 from __future__ import absolute_import from m3.actions.urls import get_url from m3_ext.ui import containers from m3_ext.ui import controls from m3_ext.ui import menus from m3_ext.ui import render_component from m3_ext.ui.fields import ExtSearchField class ExtObjectTree(containers.ExtTree): class Tre...
<?php namespace Redking\ParseBundle; /** * Container for all ORM events. * * This class cannot be instantiated. * * @author Roman Borschel <roman@code-factory.org> * * @since 2.0 */ final class Events { /** * Private constructor. This class is not meant to be instantiated. */ private function ...
import { CustomError } from 'ts-custom-error'; export class IgClientError extends CustomError { constructor(message = 'Instagram API error was made.') { super(message); // Fix for ts-custom-error. Otherwise console.error will show JSON instead of just stack trace Object.defineProperty(this, 'name', { ...
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>mobos-gui: Main Page</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 ...
// <summary> // Provides extension methods for <see cref="IRenderContext" />. // </summary> namespace OxyPlot { using System; using System.Collections.Generic; using System.Linq; <summary> Provides extension methods for <see cref="IRenderContext" />. </summary> public static class Renderin...
from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Optional __version__ = "20.0.dev0" def main(args=None): # type: (Optional[List[str]]) -> int from pip._internal.utils.entrypoints import _wrapper return _wrapper(args)
require 'addressable/uri' class Projects::CompareController < Projects::<API key> # Authorize before_filter :<API key> before_filter :<API key>! def index end def show base_ref = Addressable::URI.unescape(params[:from]) head_ref = Addressable::URI.unescape(params[:to]) compare_result = CompareSe...
<?php namespace CaptainHook\App\Runner\Hook; use CaptainHook\App\Hooks; use CaptainHook\App\Runner\Hook; class PostMerge extends Hook { /** * Hook to execute * * @var string */ protected $hook = Hooks::POST_MERGE; }
using System; using System.Windows; using System.Windows.Controls; namespace System.Windows.Automation.Peers { public class <API key> : <API key> { public <API key>(MediaElement owner) : base(owner) { } override protected string GetClassNameCore() { return...
// 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...
from keras.models import Sequential, model_from_json from keras.layers import Dense, Dropout, Activation, Flatten, Convolution2D, MaxPooling2D, Lambda, ELU from keras.layers.normalization import BatchNormalization from keras.optimizers import Adam import cv2 import csv import numpy as np import os from random import ra...
package it.cavallium.warppi.teavm; import java.io.PrintWriter; import java.net.URL; import java.util.HashMap; import java.util.Map; import org.teavm.jso.browser.Window; import org.teavm.jso.dom.html.HTMLDocument; import it.cavallium.warppi.Platform; import it.cavallium.warppi.gui.graphicengine.GraphicEngine; import it....
package pool import ( "fmt" "net" ) const ( _net = "udp4" ) func createUDPConnection(address string) (*net.UDPConn, error) { addr, err := net.ResolveUDPAddr(_net, address) if err != nil { return nil, err } conn, err := net.DialUDP(_net, nil, addr) if err != nil { return n...
<?php /** * @author Tomasz Jakub Rup <tomasz.rup@gmail.com> */ class sfGuardMessageQuery extends <API key> { }
<?php namespace Jac\ContactBundle\Entity; class Contact { protected $address; protected $comments; protected $companyName; protected $emailAddress; protected $faxNumber; protected $fullName; protected $phoneNumber; protected $position; protected $<API key>; /* Class getters */ ...
<?php namespace SymphonyCms\Toolkit; use \SymphonyCms\Symphony; use \SymphonyCms\Toolkit\Section; use \SymphonyCms\Toolkit\EntryManager; use \SymphonyCms\Toolkit\FieldManager; /** * The `SectionManager` is responsible for managing all Sections in a Symphony * installation by exposing basic CRUD operations. Sections a...
#if FILESYSTEM using System; using RoaringDB.Storage; namespace RoaringDB.Operations.Storage { internal class WriteDataOp : WriteOp { public int BitmapIndex { get; } public WriteDataOp(DbFile file, int index, byte[] data, int offset, int count) : base(file, file.Containers[index].Sta...
transcript_list=$1 stemmer=$2 for transcript in $transcript_list; do python audio_features/cscore.py $transcript $stemmer done
<!DOCTYPE html> <html lang="es"> <head> <meta name="description" content="Free Web tutorials"> <meta name="keywords" content="HTML,CSS,XML,JavaScript"> <title>Jelly Color</title> <?php include("includes/head.php"); ?> <link rel="stylesheet" href="shared/css/productoBase.css"> </head> <body > <?p...
var q = require("./quasi"); exports.ps = function (opt) { opt = opt || {}; var strokeWidth = opt.strokeWidth || "0.015"; if (opt.color) console.error("The ps module does not support the `color` option."); // PS header var ret = [ "%%!PS-Adobe-1.0 " , "%%%%BoundingBox: -1 -1 766.354 567...
<?php namespace nctech\feBundle\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($crawler->fi...
#ifndef <API key> #define <API key> #include <string> class CRPCTable; class CWallet; class JSONRPCRequest; void <API key>(CRPCTable &t); /** * Figures out what wallet, if any, to use for a JSONRPCRequest. * * @param[in] request JSONRPCRequest that wishes to access a wallet * @return nullptr if no wallet should be ...
package org.codehaus.xfire.aegis.example; import javax.xml.namespace.QName; import org.codehaus.xfire.aegis.<API key>; import org.codehaus.xfire.aegis.<API key>; import org.codehaus.xfire.aegis.type.TypeMapping; import org.codehaus.xfire.aegis.type.basic.BeanType; import org.codehaus.xfire.service.Service; import org.c...
p { font-style: italic; text-align: center; margin-top: 50px; } .calc-main-body { margin-top: 20px; width: 350px; display: block; margin-left: 15%; margin-right: 10%; } .row { margin-top: 5px; } .btn { height: 50px; font-size: 20px; } .btn-enter { height: 105px; } .footer { margin-top: 50px; ...
import { <API key> } from '@angular/<API key>'; import { enableProdMode } from '@angular/core'; import { environment } from './environments/environment'; import { AppModule } from './app/app.module'; if (environment.production) { enableProdMode(); } <API key>().bootstrapModule(AppModule).catch(err => console.log(er...
using System; using Melanchall.DryWetMidi.Common; namespace Melanchall.DryWetMidi.Devices { <summary> Holds settings for <see cref="MidiClock"/> used by a clock driven object. </summary> public sealed class MidiClockSettings { #region Fields private Func<TickGenerator> <API key> = ()...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Welcome extends CI_Controller { public function index() { $this->load->view('welcome_message'); } public function sesi() { } }
#ifndef __CONFIG_H #define __CONFIG_H #include <linux/sizes.h> #include <asm/arch/stm32.h> #define CONFIG_PREBOOT /* * Number of clock ticks in 1 sec */ #define CONFIG_SYS_HZ 1000 #define <API key> #define CONFIG_SYS_HZ_CLOCK 64000000 /* * malloc() pool size */ #define <API key> ...
package com.dodola.animview; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.AsyncTask; import android.text.Html; import android.util.AttributeSet; import android.widget.TextView; import com.nos...
package com.peterpotts.common.sample /** * Sample data generator trait that incorporates for-comprehension. */ trait Sample[+A] { def next(): A def flatMap[B](function: A => Sample[B]): Sample[B] = new FlatMapSample[A, B](this, function) def map[B](function: A => B): Sample[B] = new MapSample[A, B](this, functi...
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" # PLEASE DO NOT EDIT IT DIRECTLY. FROM debian:buster-slim RUN set -eux; \ apt-get update; \ apt-get install -y --<API key> \ # utilities for keeping Debian and OpenJDK CA certificates in sync ca-certificates p11-kit \ ; \
package view; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.util.Observable; import java.util.Observer; import javax.swing.ImageIcon; impor...
#include "fUML/Semantics/Values/impl/<API key>.hpp" #ifdef NDEBUG #define DEBUG_MESSAGE(a) #else #define DEBUG_MESSAGE(a) a #endif #ifdef ACTIVITY_DEBUG_ON #define ACT_DEBUG(a) a #else #define ACT_DEBUG(a) #endif //#include "util/ProfileCallCount.hpp" #include <cassert> #include <iostream> #include <sst...
print('this is a'); print(__FILE__, __LINE__, __DIR__); load('./b.js'); // b engine.get(FILENAME)
using Microsoft.Azure.Mobile.Server; namespace <API key>.DataObjects { public class Store : EntityData { public string Name { get; set; } public string LocationHint { get; set; } public string StreetAddress { get; set; } public string City { get; set; } public string Stat...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W29290_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
package com.tum.ident.fastdtw.matrix; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; public class Array2D { // PRIVATE DATA final private ArrayList<ArrayList<Object>> rows; // ArrayList of ArrayList (an array of rows in the array) private int numOfElements; // CONSTRUCT...
class CreateBanksTable < ActiveRecord::Migration def change create_table :banks do |t| t.references :agendas t.references :users t.timestamps end end end
require 'spec_helper' #Defines a model class which implements the status bar gem. class MyClass < ActiveRecord::Base # Helper which makes all the status_bar functions available. acts_as_status_bar MAX = 100 def save end #Initializes an object and its relative status bar passing its id as an options hash d...
# -*- coding: UTF-8 -*- require 'app_test_helper' include UseCases describe NewEvent do # Merely testing that the new call works, not that the entity created is valid; see the CreateGathering test for this it "creates a new Event with default attributes" do response = NewEvent.new.exec response.event.wont_b...
import PropTypes from 'prop-types'; export const validAxisType = PropTypes.oneOf([ 'category', 'linear', 'logarithmic', 'datetime' ]); export const validChartType = PropTypes.oneOf([ 'area', 'arearange', 'areaspline', 'areasplinerange', 'bar', 'boxplot', 'bubble', 'candlestick', 'column', 'c...
# called from wnf.py # lib/wnf.py --install [rootpassword] [dbname] [source] from __future__ import unicode_literals import os, sys, json import webnotes import webnotes.db import getpass from webnotes.model.db_schema import DbManager from webnotes.model.sync import sync_for from webnotes.utils import cstr class Instal...
require 'pry' require 'active_record' ActiveRecord::Base.<API key> adapter: "sqlite3", database: ":memory:" ActiveRecord::Schema.define do self.verbose = false create_table :orders, :force => true do |t| t.timestamps t.string :dummy end create_table :order_items, :force => true do |t| t.integer :ord...
<div class="content"> <div class="categories"> <div class="container"> <?php foreach ($categories as $category):?> <div class="col-md-2 focus-grid"> <a href="<?php echo base_url()."index.php/middleware/categories/".$this->encryp...
/** * Fixes/updates/deletes existing adapter objects, * so they don't have to be deleted manually */ export declare function fixAdapterObjects(): Promise<void>; export declare function <API key>(): Promise<void>;
# Exceptions When an `Exception` is thrown during execution, NodalFlow catches it, perform few cleanup operations, including triggering the proper callback and then re-throws it as is if it's a `NodalFlowException` or else throws a `NodalFlowException` with the original exception set as previous. This means that NodalF...
var Line = require('./Line'); Line.Angle = require('./Angle'); Line.BresenhamPoints = require('./BresenhamPoints'); Line.CenterOn = require('./CenterOn'); Line.Clone = require('./Clone'); Line.CopyFrom = require('./CopyFrom'); Line.Equals = require('./Equals'); Line.Extend = require('./Extend'); Line.GetMidPoint = requ...
#ifndef __mainframe_impl__ #define __mainframe_impl__ #include <wx/timer.h> #include <wx/imaglist.h> #include <wx/arrstr.h> #include "gui.h" #include "ping.h" #include "view.h" #include "query.h" class Label; Main Window - presenting the servers online. This is the implementation of MainFrame (which is generated) this ...
'use strict'; // User routes use users controller var users = require('../controllers/users'); module.exports = function(app, passport) { app.route('/logout') .get(users.signout); app.route('/users/me') .get(users.me); // Setting up the users api app.route('/register') .post(user...
'use strict'; // Disable eval and Buffer. window.eval = global.eval = global.Buffer = function() { throw new Error("Can't use eval and Buffer."); } const Electron = require('electron') const IpcRenderer = Electron.ipcRenderer; var Urlin = null; // element of input text window.addEventListener('load', ()=> { ...
var roshamboApp = angular.module('roshamboApp', []), roshambo= [ { name:'Rock', src:'img/rock.png' }, { name:'Paper', src:'img/paper.png' }, { name:'Scissors', src:'img/scissors.png' } ], roshamboMap=roshambo.reduce(function...
"use strict"; module.exports = { "wires.json": { ":path/": `./path-`, }, "path-test.js"() { module.exports = `parent`; }, "/child": { "wires-defaults.json": { ":path/": `./defaults-`, }, "wires.json": { ":path/": `./child-`, }, ...
import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: if self.IN[self.OUT.index(response)] == action and ...
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports){ module.exports = 'highcharts-ng'; } (function () { 'use strict'; /*global angular: false, Highcharts: false */ angular.module('highcharts-ng', []) .factory('highchartsNG', ['$q', '$window', highchartsNG]) ...
#ifndef <API key> #define <API key> void <API key>(); #endif // <API key>
# App Admin This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.8. ## Development server Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. ## Code scaffolding Run `ng generate comp...
<?php return array ( 'id' => 'mot_e398b_ver2', 'fallback' => 'mot_e398_ver1', 'capabilities' => array ( 'model_name' => 'E398B', ), );
/** moduleBank constants * */ import { ModuleCode } from '../types/modules'; export const FETCH_MODULE = 'FETCH_MODULE' as const; // Action to fetch modules export const FETCH_MODULE_LIST = 'FETCH_MODULE_LIST' as const; export const <API key> = '<API key>' as const; export const REMOVE_LRU_MODULE = 'REMOVE_LRU_MODULE' ...
/** * @file SchedEntry.h * * $Id: SchedEntry.h 935 2008-12-10 21:47:27Z mitza $ * * @author Chris Gill <cdgill@cs.wustl.edu> */ #ifndef SCHEDENTRY_H #define SCHEDENTRY_H #include "ace/pre.h" #include "orbsvcs/Sched/sched_export.h" #include "orbsvcs/RtecSchedulerC.h" #include "orbsvcs/<API key>.h" #include ...
# Preserving State (like the Requested URL) When calling ``initImplicitFlow``, you can pass an optional state which could be the requested url: TypeScript this.oauthService.initImplicitFlow('http: After login succeeded, you can read this state: TypeScript this.oauthService.tryLogin({ onTokenReceived: (info) => { ...
angular.module("uiSwitch",[]).directive("switch",function(){return{restrict:"AE",replace:!0,transclude:!0,template:function(n,e){var s="";return s+="<span",s+=' class="switch'+(e['class']?" "+e['class']:"")+'"',s+=e.ngModel?' ng-click="'+e.disabled+" ? "+e.ngModel+" : "+e.ngModel+"=!"+e.ngModel+(e.ngChange?"; "+e.ngCha...
# pylint: disable-msg=too-many-lines """OPP Hardware interface. Contains the hardware interface and drivers for the Open Pinball Project platform hardware, including the solenoid, input, incandescent, and neopixel boards. """ import asyncio from collections import defaultdict from typing import Dict, List, Set, Union, ...
#ifndef _HOURLY_H #define _HOURLY_H #include "wage.h" #define HOURLY_ID 5 #include <iostream> #include <stdlib.h> using namespace std; /* An hourly worker gets paid for every hour worked */ class HourlyWorker : public WageWorker { private: float thisWeekHours; // hours worked this week protected: ...
package org.spongepowered.mod.mixin.core.client.gui; import net.minecraft.client.gui.GuiOptions; import net.minecraft.world.EnumDifficulty; import net.minecraft.world.storage.WorldInfo; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injectio...
from django.db import models from constituencies.models import Constituency from <API key>.models import Party from elections.models import Election class Person(models.Model): name = models.CharField(blank=False, max_length=255) remote_id = models.CharField(blank=True, max_length=255, null=True) source_url...
// IsExtraAttribute.cs // Aaron Bockover <aaron.bockover@gmail.com> // 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 ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>flocq: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lens: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int n= 20; label: cout << n << endl; n if(n > 0){ goto label; } std::cout << "endle" << '\n'; std::cout << "string euqals: " << (strcmp("hello", "hello")) << '\n'; if(strcmp("hello", "hello") == 0){ ...
using System; using System.Collections.Generic; using System.Linq; namespace Slack.Api { public static class ProfileHelper { public static User GetProfile(ICollection<User> users, string userId) { if (users == null) { throw new <API key>(nameof(users)); ...
var assert = require('assert') var parse = require('../').parse function addTest(arg, bulk) { function fn_json5() { //console.log('testing: ', arg) try { var x = parse(arg) } catch(err) { x = 'fail' } try { var z = eval('(function(){"use strict"\nreturn ('+String(arg)+'\n)\n})()'...
package com.integpg.synapse.actions; import com.integpg.logger.FileLogger; import java.io.IOException; import java.util.Json; public class CompositeAction extends Action { private String[] _actions; public CompositeAction(Json json) { _actions = (String[]) json.get("Actions"); ActionHash.put((St...