answer stringlengths 15 1.25M |
|---|
'use strict';
function valuefy(value) {
if (typeof value !== 'object') {
return (typeof value === 'string') ? `"${value}"` : value;
}
let values = [];
if (Array.isArray(value)) {
for (const v of value) {
values.push(valuefy(v));
}
values = `[${values.join(',')... |
<?php
namespace App\Notifications\Mship;
use App\Notifications\Notification;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class <API key> extends Notification implements ShouldQueue
{
use Queueable;
private $token;
/**
* Cr... |
export default class TasksService {
static async fetchTasks() {
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
await delay(1000);
return [
{ id: 0, description: "task1", status: "Active" },
{ id: 1, description: "task2", status: "Active" },
];
}
} |
// GUISlider.h
// GUIPlayerView
#import <UIKit/UIKit.h>
@interface GUISlider : UISlider
- (void)setSecondaryValue:(float)value;
- (void)<API key>:(UIColor *)tintColor;
@property (nonatomic, retain) NSNumber * thick;
@end
@interface GUISlider (extra)
@property(nonatomic, assign) NSNumber* thickNess;
@end |
#ifndef RUBY_EXT_UTILS_HPP_
#define RUBY_EXT_UTILS_HPP_ 1
#include <functional>
#include <ruby.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <typeinfo>
#ifdef __GNUC__
#include <cxxabi.h>
#endif
template <typename T>
static const char *
type_name()
{
#ifdef __GNUC__
const int buf_size = 32... |
function Message(chat, body) {
this._chat = chat;
this._body = body;
}
Message.prototype.getChat = function() {
return this._chat;
};
Message.prototype.getBody = function() {
return this._body;
};
module.exports = Message; |
<?php
namespace PLL\SocialBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\... |
package septemberpack.september;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import java.util.Random;
public class Asteroid {
Bitmap bitmap;
private int line1x;
private int line1y;
private int line2x;
private int line2y;
private int line3x;
p... |
import React from 'react';
import { shallow } from 'enzyme';
import UserProfile from '../UserProfile';
import Wrapper from '../Wrapper';
describe('<UserProfile />', () => {
it('should render <Wrapper />', () => {
const wrapper = shallow(<UserProfile />);
expect(wrapper.find(Wrapper).length).toEqual(1);
});
... |
class <API key> < ActiveRecord::Migration[5.1]
def change
create_table :<API key> do |t|
t.text :name
t.timestamps
end
end
end |
## Examples:
**As filters:**
twig
{{ subject | preg_filter(pattern, replacement, limit) }}
{{ subject | preg_grep(pattern) }}
{{ subject | preg_match(pattern) }}
{{ subject | preg_quote(delimiter) }}
{{ subject | preg_replace(pattern, replacement, limit) }}
{{ subject | preg_split(pattern) }}
**As functions:**
twig
{{ ... |
<ul class="menu-item">
<li class="home"><a href="/">{{ site.title }}</a></li>
{% for link in site.data.navigation %}
{% if link.url_en contains 'http' %}
{% assign domain = '' %}
{% else %}
{% assign domain = site.url_en %}
{% endif %}
<li><a href="{{ domain }}{{ link.url_en ... |
<?php
namespace Davidsneal\MaxCDN\OAuth;
class OAuthDataStore {
function lookup_consumer($consumer_key) {
// implement me
}
function lookup_token($consumer, $token_type, $token) {
// implement me
}
function lookup_nonce($consumer, $token, $nonce, $timestamp) {
// implement me... |
import React from 'react';
import {
ActivityIndicator,
StyleSheet,
Image,
Text,
View,
ListView,
TouchableOpacity
} from 'react-native';
import Dimensions from 'Dimensions';
const {width, height} = Dimensions.get('window');
import globalVariables from '../globalVariables.js';
import LookCell from './LookCe... |
#!/usr/bin/env python
import sys
import os
from treestore import Treestore
try: taxonomy = sys.argv[1]
except: taxonomy = None
t = Treestore()
treebase_uri = 'http://purl.org/phylo/treebase/phylows/tree/%s'
tree_files = [x for x in os.listdir('trees') if x.endswith('.nex')]
base_uri = 'http:
tree_list = set(t.list_tree... |
<?php
namespace Anonym\Facades;
use Anonym\Patterns\Facade;
/**
* Class Validation
* @package Anonym\Facades
*/
class Validation extends Facade
{
/**
* return the validation facade
*
* @return string
*/
protected static function getFacadeClass(){
return 'validation';
}
} |
{% extends 'swp/base.html' %}
{% load static %}
{% block content %}
<div class="container-fluid">
<div class="page-header">
<h1>{{ event.title }}</h1>
</div>
{% if user.is_authenticated %}
<form
action="{% url 'new_event' event.slug.hex %}" method="POST"
enctype="multipart/form-data" class="form-inl... |
package queier
import (
"github.com/julienschmidt/httprouter"
"net/http"
"encoding/json"
"fmt"
"strconv"
"broker-gateway/entities"
"github.com/satori/go.uuid"
)
type Router interface {
Start(port int)
}
type router struct {
q Querier
http *httprouter.Router
}
func NewRouter(q Que... |
:: Sample batch script for Post-Job Bot Event
:: If you enable 'For all commands, use job details as arguments'
:: some details about the just-finished job will be appended to the
:: command as arguments.
::
:: Argument order is as follows for render operations after each job completes
:: %1 => The row in... |
<?php
class maPrivileges{
public static function AuthorizedAccess($sUsercase, $sType){
if(Session::CheckAuthentication()){
return (Storage::Get("user.root", false)) ? true : Storage::Get("privilege.{$sType}.{$sUsercase}", false);
}
else{
Ou... |
var cv = require('../lib/opencv');
var COLOR = [0, 255, 0]; // default red
var thickness = 2; // default 1
cv.readImage('./files/mona.png', function(err, im) {
if (err) throw err;
if (im.width() < 1 || im.height() < 1) throw new Error('Image has no size');
im.detectObject('../data/<API key>.xml', {}, function(err... |
// SproutCore -- JavaScript Application Framework
sc_require('controllers/object');
sc_require('mixins/selection_support');
sc_require('private/tree_item_observer');
/**
@class
A TreeController manages a tree of model objects that you might want to
display in the UI using a collection view. For the most part, yo... |
title: Custom Login
description: This tutorial will show you how to use the Auth0 Ionic SDK to add authentication and authorization to your mobile app.
<%= include('../../_includes/_package', {
githubUrl: 'https://github.com/auth0-samples/auth0-ionic-samples',
pkgOrg: 'auth0-samples',
pkgRepo: 'auth0-ionic-sample... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Pfz.AnimationManagement;
using Pfz.AnimationManagement.Abstract;
u... |
package fables.kotlin.jee.rest;
import fables.kotlin.jee.business.<API key>;
import fables.kotlin.jee.business.KittenEntity;
import javax.inject.Inject;
import javax.ws.rs.*;
/**
* JSON REST CRud service.
* JEE will first create one noarg instance, and then injected instances.
*
* @author Zeljko Trogrlic
*/
@Path(... |
<?php
return array(
'debug' => true,
'url' => 'http://localhost/web.api',
'timezone' => 'UTC',
'locale' => 'en',
'key' => '<API key>',
'providers' => array(
'Illuminate\Foundation\Providers\<API key>',
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Cache\<API key>',
... |
import React, {Component} from 'react';
import PdfJS from './pdfJS';
import Contract from "../../contract";
import Event from '../../event';
import AnnotationLoader from '../../annotator/loader';
class Viewer extends Component {
constructor(props) {
super(props);
this.state = ({
page_no... |
use std::collections::{HashMap};
use std::path::{Path};
use std::sync::{Arc};
use crossbeam::sync::{MsQueue};
use glium::backend::{Facade};
use debug::{gnomon, indicator};
use inverse_kinematics::{Chain};
use model::{Model};
use unlit_model::{UnlitModel};
use render::render_frame::{RenderFrame};
pub const DEPTH_DIMENSI... |
var ratio = require('ratio')
function error(actual, expected) {
return Math.abs(actual - expected) / expected
}
function approx(target, max) {
max = (max || 10)
// find a good approximation
var best = 1, j, e, result
for (var i = 1; i < max; i++) {
j = Math.round(i * target)
e = erro... |
// For email, run on linux (perl v5.8.5):
// perl -e 'print pack "H*","<API key>"'
// Author - Sourabh S Joshi
#ifndef POKER_HAND_H_
#define POKER_HAND_H_
#include <iostream>
#include <array>
#include <vector>
#include <string>
#include <sstream>
using std::vector;
using std::ostream;
using std:... |
.yan-github {
position: fixed;
bottom:0;
right:0;
min-width:350px;
outline:1px solid rgba(0, 0, 0, 0.3);
min-height:200px;
background: #FFFFFF;
border-radius:3px;
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
z-index: 10000
}
.yan-github ul{
padding:0
}
.yan-github li {
list-... |
var State = require('../state'),
path = require('path'),
mkdirp = require('mkdirp').mkdirp,
fs = require('fs');
/**
* Write out the input to the destination filename.
*
* This can only apply to single string inputs.
*
* @method writeTask
* @param options {Object} Write task options
* @param op... |
# <API key>: true
require 'grape/router'
require 'grape/api/instance'
module Grape
# The API class is the primary entry point for creating Grape APIs. Users
# should subclass this class in order to build an API.
class API
# Class methods that we want to call on the API rather than on the API object
NON_OV... |
(function () {
"use strict";
/**
* This module have an ability to contain constants.
* No one can reinitialize any of already initialized constants
*/
var module = (function () {
var constants = {},
hasOwnProperty = Object.prototype.hasOwnProperty,
prefix = (Ma... |
# <API key>: true
module RuboCop
module Formatter
# This formatter formats report data in clang style.
# The precise location of the problem is shown together with the
# relevant source code.
class ClangStyleFormatter < SimpleTextFormatter
ELLIPSES = '...'
def report_file(file, offenses)
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="An approach to developing modern web applications">
<meta name="author" content="Marc J. Greenberg">
<title>ElectricDiscoTech</title>
... |
package me.nereo.<API key>;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.net.Uri;
import android.os.Bundle;
import android.o... |
Provides a Ruby wrapper for the Dutch NS API.
## Installation
Add this line to your application's Gemfile:
gem 'ns'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ns
## Usage
ns_client = Ns::Client.new(api_key, api_password)
available_stations = ns_client.get_stations
advice... |
#include <onyxudp/udpclient.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
/* This test just makes sure the client library compiles and doens't crash on start. */
void on_error(udp_client_params_t *client, UDPERR code, char const *name) {
fprintf(stderr, "on_error: code %d: %s\n", code, name);
as... |
<p>This is the test-route view.</p> |
# alsa-switch
Switching of Alsa audio devices
the purpose of alsa-switch is to control the flow of multiple audio-streams going through a system while supporting priority streams
You invoke audio-switch like this:
auido-switch <input-device> <output-device> <control-file>
for example
audio-switch microphone speaker... |
package wanghaisheng.com.yakerweather;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
// 2016-01-21, jjuiddong
#pragma once
namespace cvproc
{
class cDetectRect
{
public:
cDetectRect();
virtual ~cDetectRect();
bool Init();
bool Detect(const cv::Mat &src);
void UpdateParam(const <API key> &recogConfig);
public:
bool m_show;
cRectCont... |
import * as React from 'react';
import { AppliedFilter, DataTypes, GridFilters, numberWithCommas, ReactPowerTable, withInternalPaging, withInternalSorting } from '../../src/';
import { defaultColumns, partyList, sampledata } from './shared';
// //if coming in from DTO
// const availDTO = [
// { fieldName: 'number',... |
<section id="content">
<!--start container
<div id="breadcrumbs-wrapper" class="" style="width:100%;">
<div class="<API key> grey hide-on-large-only">
<i class="mdi-action-search active"></i>
<input type="text" name="Search"... |
foscam-android-sdk
===============
Foscam Android SDK for H.264 IP Cameras (FI9821W)
05/12/2015: THIS PROJECT IS DEPRECATED. Please refer to http://foscam.us/forum/<API key>.html for future updates. |
package network
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/tracing"... |
var address = '';
var config = {};
var requestGroupId = 0;
var readRequestsTodo = 0;
var readRequestsDone = 0;
var scanRequestsTodo = [0, 0, 0];
var scanRequestsDone = [0, 0, 0];
var scanResults = [];
var requestSentCounter = 0;
var <API key> = 0;
var <API key> = 0;
var requestInProgress = false;
var requestQueue = [];... |
<ul class="breadcrumb">
{% for url, label in breadcrumbs %}
<li>
{% ifnotequal forloop.counter breadcrumbs_total %}
<a href="{{ url }}">{{ label|safe }}</a>
{% else %}
{{ label|safe }}
{% endifnotequal %}
{% if not forloop.last ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-erasure: 3 m 5 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matrix
{
public class Matrix<T>
where T : struct
{
private T[,] matrix;
public Matrix(int x, int y)
{
matrix = new T[x, y];
}
public int LengthX
{
... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Kategori extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('Kategori_model');
}
public function index($page = 0){
if(!$this->session->userdata('sesilogin')... |
from .stats_view_base import StatsViewSwagger, <API key>
from .<API key> import <API key>
class <API key>(<API key>):
"""API View - Dataverse counts by Month."""
# Define the swagger attributes
# Note: api_path must match the path in urls.py
api_path = '/dataverses/count/monthly'
summary = ('Number ... |
// Generated by class-dump 3.5 (64 bit).
#import "CDStructures.h"
#import <IDEKit/<API key>.h>
@interface <API key> : <API key>
{
}
+ (id)<API key>:(id)arg1;
@end |
package goldrush;
/**
* @author Reina Michele cl418656
* @author Bonissone Davidecl427113
*/
public class BoniMichele extends GoldDigger{
int t=0;
int j=99;
@Override
public int chooseDiggingSite(int[] distances) {
for (int i=0; i<distances.length; i++){
if (t==0){
if (dista... |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace Paradix
{
public sealed class KeyboardController : IController
{
// TODO : List of keys UP / DOWN / PRESSED / RELEASED
public PlayerIndex Player { get; set; } = PlayerIndex.One;
public KeyboardState CurrentStat... |
module.exports = {
parserOptions: {
sourceType: 'script',
},
}; |
package com.docuware.dev.Extensions;
import java.io.Closeable;
import java.io.InputStream;
/**
*
* @author Patrick
*/
public class EasyCheckoutResult implements Closeable {
private String EncodedFileName;
public String getEncodedFileName() {
return EncodedFileName;
}
void setEncodedFileName(S... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CharacterModelLib.Models
{
public class CharacterProject : NotifyableBase
{
public CharacterProject()
{
characterCollect... |
import uuid
from django.db import models
from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.models import BaseUserManager
from django.utils import timezone
from <API key>.models import BaseUserRole
from <API key>.models.base_base_profile import EXPERT_USER_TYPE... |
package experiments;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import data.StateImpl;
import datahandler.word2vec.<API key>;
import state2vec.State2Vec;
public class State2VecTest {
protected static final Logger logger = LoggerFacto... |
#ifndef AC_GEGBLABB_H
#define AC_GEGBLABB_H
// object code form for any purpose and without fee is hereby granted,
// restricted rights notice below appear in all supporting
// documentation.
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, IN... |
<?php
namespace Doctrine\ODM\MongoDB\Mapping\Annotations;
use Doctrine\Common\Annotations\Annotation;
abstract class AbstractDocument extends Annotation
{
} |
// Generated by class-dump 3.5 (64 bit).
#import "NSObject.h"
@class KFContact;
@protocol IKFContactExt <NSObject>
@optional
- (void)<API key>:(KFContact *)arg1;
- (void)onModifyKFContact:(KFContact *)arg1;
@end |
package lv.emes.libraries.utilities.validation;
/**
* Actions for error that occur in validation process.
*
* @author eMeS
* @version 1.2.
*/
public interface MS_ValidationError<T> {
MS_ValidationError <API key>(<API key> action);
/**
* Returns message of validation error using pre-defined method to f... |
#ifndef _absnodeaction_h_
#define _absnodeaction_h_
#include "cocos2d.h"
using namespace cocos2d;
#include <string>
#include <iostream>
#include <vector>
using namespace std;
namespace uilib
{
class TouchNode;
enum EaseType
{
EaseNone,
EaseIn,
EaseOut,
EaseInOut,
EaseExponentialIn,
EaseExponenti... |
window.ImageViewer = function(url, alt, title){
var img = $('<img />').attr('src', url).attr('alt', title).css({
display: 'inline-block',
'max-width': '90vw',
'max-height': '90vh'
});
var a = $('<a></a>').attr('target', '_blank')
.attr('title', title)
.attr('href', ur... |
layout: post.html
title: "Fundraising for PyLadies for PyCon 2015"
tag: [PyCon]
author: Lynn Root
author_link: http://twitter.com/roguelynn
**TL;DR**: [Donate](#ways-to-donate) to PyLadies for PyCon!
It's that time again! With [PyCon 2015][0] planning in high gear, PyLadies is revving up to raise funds to help women at... |
#ifndef <API key>
#define <API key>
#include "amount.h"
#include <stdint.h>
#include <vector>
class CBlockIndex;
class CCoinsViewCache;
class CTransaction;
class CValidationState;
/** Transaction validation functions */
/** Context-independent validity checks */
bool CheckTransaction(const CTransaction& tx, CValidation... |
layout: post
title: Week three and implementing twig template
The week three of coding period has ended and this time I learnt about something very new to me, Twig template. In Drupal 8 Twig has replaced PHPTemplate as default templating engine which meant that the theming of module had to be done from beginning.
Also ... |
#include <compiler.h>
#if defined(CPUCORE_IA32) && defined(SUPPORT_MEMDBG32)
#include <common/strres.h>
#include <cpucore.h>
#include <pccore.h>
#include <io/iocore.h>
#include <generic/memdbg32.h>
#define MEMDBG32_MAXMEM 16
#define <API key> 128
#define MEMDBG32_LEFTMARGIN 8
typedef struct {... |
// opjlib.h
// opjlib
#import <Foundation/Foundation.h>
@interface opjlib : NSObject
@end |
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-11-01 20:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('phone_numbers', '0001_initial'),
('sim... |
package ch.spacebase.openclassic.api;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.<API key>;
import java.net.HttpURLConnection;
import java.net.<API ... |
#! /bin/bash
BASHRC="$HOME/.bashrc"
echo "# java setting" >> $BASHRC
echo "export JAVA_HOME=\$(/usr/libexec/java_home)" >> $BASHRC
echo "" >> $BASHRC |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace <API key>
{
public class ParkingRamp : ParkingConstruct
{
[Newtonsoft.Json.JsonIgnore]
public List<ParkingFloor> Floors { get; private set; }
public override bool... |
package org.gojul.gojulutils.data;
/**
* Class {@code GojulPair} is a simple stupid pair class. This class is notably necessary
* when emulating JOIN in database and such a class does not exist natively in the JDK.
* This object is immutable as long as the object it contains are immutable. Since
* this object is no... |
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using Microsoft.CodeAnalysis;
namespace ErrorProne.NET.Extensions
{
public static class <API key>
{
public static IEnumerable<SyntaxNode> EnumerateParents(this SyntaxNode node)
{
Contract.Requires(node != null);
... |
#include "elements.h"
#include "mpi_compat.h"
#include "gcmc.h"
#include "memory.h"
#include "random.h"
#include "neighbor.h"
#include "ff_md.h"
#include "MAPP.h"
#include "atoms_md.h"
#include "comm.h"
#include "dynamic_md.h"
using namespace MAPP_NS;
GCMC::GCMC(AtomsMD*& __atoms,ForceFieldMD*&__ff,DynamicMD*& __dynami... |
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "mqtt.h"
// Connect to MQTT and set up subscriptions based on configuration
void MQTT::connect() {
// Connect to broker
this->mqttClient.setServer(this->host, this->port);
mqttClient.connect(this->clientId);
Serial.print("Connected to MQTT, with server... |
using System.Collections.Generic;
namespace SmartMeter.Business.Interface.Mapper {
public interface IMapTelegram {
Persistence.Interface.ITelegram Map(ITelegram businessTelegram);
Business.Interface.ITelegram Map(Persistence.Interface.ITelegram persistenceTelegram);
IEnumerable<ITelegram> Map(IEnumerable<... |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>NTU D3js HW01</title>
<link rel="stylesheet" type="text/css" href="main.css">
<script src="https://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<!-- page 4 -->
<br>
<br>... |
define("helios/Helios-Debugger", ["amber/boot", "amber_core/Kernel-Objects", "helios/Helios-Core", "helios/Helios-Workspace"], function($boot){
var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals;
smalltalk.addPackage('Helios-Debugger');
smalltalk.packages["Helios-Debugger"].transport = {"ty... |
MIME-Version: 1.0
Server: CERN/3.0
Date: Monday, 16-Dec-96 23:33:46 GMT
Content-Type: text/html
Content-Length: 3390
Last-Modified: Tuesday, 20-Feb-96 22:21:50 GMT
<html>
<head>
<title> CodeWarrior for CS100 </title>
</head>
<body>
<h2> Setting Up CodeWarrior for CS100 </h2>
CodeWarrior can be run on your own personal ... |
<div ng-class="{ invalid: !ngDisabled && !valid }">
<div class="form-group">
<label ng-show="ngLabel" class="control-label">{{ngLabel}}<small ng-show="ngTip">({{ngTip}})</small></label>
<div class="row <API key>">
<div class="col-sm-6 <API key>" ng-class="{ 'has-error': !ngDisabled && !v... |
def calc():
h, l = input().split(' ')
mapa = []
for i_row in range(int(h)):
mapa.append(input().split(' '))
maior_num = 0
for row in mapa:
for col in row:
n = int(col)
if (n > maior_num):
maior_num = n
qtd = [0 for i in range(maior_num + 1)... |
package com.stulsoft.ysps.pduration
import scala.concurrent.duration._
object PDuration {
def main(args: Array[String]): Unit = {
println("==>main")
var fiveSec = 5.seconds
println(s"fiveSec=$fiveSec")
fiveSec = 15.seconds
println(s"fiveSec=$fiveSec")
println("<==main")
}
} |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QApplication>
#include <QMainWindow>
#include <QTextEdit>
#include <QMenu>
#include <QMenuBar>
#include <QAction>
#include <QDialog>
#include <QDesktopWidget>
#include <QMdiArea>
#include <QMdiSubWindow>
#include <QDockWidget>
#include <QTreeWidget>
#include <QProcess... |
/**
* Error for services to through when they encounter a problem with the request.
* Distinguishes between a bad service request and a general error
*/
function ServiceError(message) {
this.name = "ServiceError";
this.message = (message || "");
}
ServiceError.prototype = Object.create(Error.prototype, {
... |
import shaven from 'shaven'
const svgNS = 'http:
export default function (svg, config) {
const yDensity = 0.1
const yRange = config.max.value - config.min.value
const graphHeight = config.height * 0.8
const graphWidth = config.width * 0.95
const coSysHeight = config.height * 0.6
const coSysWidth = config.wi... |
require File.dirname(__FILE__) + '/spec'
class Object
class << self
# Lookup missing generators using const_missing. This allows any
# generator to reference another without having to know its location:
# RubyGems, ~/.rubigen/generators, and APP_ROOT/generators.
def <API key>(class_id)
if md = ... |
<sup><sup>*Release notes were automatically generated by [Shipkit](http://shipkit.org/)*</sup></sup>
# 0.9.17
- 2020-05-31 - [17 commits](https:
- [Enhancement] Deploy locally to OpenHAB [(
# 0.9.14
- 2019-03-18 - [2 commits](https:
- No pull requests referenced in commit messages.
# 0.9.13
- 2019-03-18 - [2 commi... |
import Ember from "ember";
export default Ember.Route.extend({
model: function() {
return this.store.query('answer', {correct: true});
}
}); |
<?php
namespace Sokil\Mongo\Validator;
/**
* Alphanumeric values validator
*
* @author Dmytro Sokil <dmytro.sokil@gmail.com>
*/
class <API key> extends \Sokil\Mongo\Validator
{
public function validateField(\Sokil\Mongo\Document $document, $fieldName, array $params)
{
if (!$document->get($fieldName)... |
<?php
/**
* swPagesAdmin actions.
*
* @package soleoweb
* @subpackage swPagesAdmin
* @author Your name here
* @version SVN: $Id: actions.class.php 8507 2008-04-17 17:32:20Z fabien $
*/
class <API key> extends sfActions
{
public function executeIndex($request)
{
$this->sw_blog_tagList = new swBl... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double <API key>;
FOUNDATION_EXPORT const unsigned char <API key>[]; |
//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
'use strict';
\n\
const vec4 K_RGB2HSB = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n\
\n\
vec3 czm_RGBToHSB(vec3 rgb)\n\
{\n\
vec4 p = mix(vec4(rgb.bg, K_RGB2HSB.wz), vec4(rgb.gb, K_RGB2HSB.xy), step(rgb.b, rgb... |
# Intro
This is the documentation of [Weave.jl](http://github.com/mpastell/weave.jl). Weave is a scientific report generator/literate programming tool
for Julia. It resembles [Pweave](http://mpastell.com/pweave) and, Knitr
and Sweave.
**Current features**
* Noweb, markdown or script syntax for input documents.
* Execut... |
/**
* Demo App for TopcoatTouch
*/
$(document).ready(function() {
<% if (kitchenSink) {
if (mvc) { %>
// Create the topcoatTouch object
var tt = new TopcoatTouch({menu: [{id: 'help', name: 'Help'}, {id: 'info', name: 'Info'}, {id: 'about', name: 'About'}]});
tt.on(tt.EVENTS.MENU_ITEM_CLICKED, functi... |
use std::borrow::{Borrow, Cow};
use std::ffi::{CStr, CString};
use std::fmt;
use std::mem;
use std::ops;
use std::os::raw::c_char;
use std::ptr;
const STRING_SIZE: usize = 512;
This is a C String abstractions that presents a CStr like
interface for interop purposes but tries to be little nicer
by avoiding heap allocati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.