text
stringlengths
3
1.05M
{-# htermination guard :: Bool -> Maybe () #-} import Monad
package com.michalgoly.business; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; /** * This entity represents the email newsletter subscriber. * * @author Michal Goly */ @Entity public cl...
package com.josemnieves.warsservice.GW2Api.V2.Account.Wallet; /** * Created by josen on 9/28/2015. */ public class Wallet { private String id; private String value; private Currency currency; public String getId () { return id; } public void setId (String id) { this....
package com.amazonaws.services.opsworks.model.transform; import java.math.*; import javax.annotation.Generated; import com.amazonaws.services.opsworks.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static ...
@implementation UILabel (LineAndWordSpace) - (void)setUpLineSpace:(float)lineSpace WordSpace:(float)wordSpace{ NSString *labelText = self.text; NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:labelText attributes:@{NSKernAttributeName:@(wordSpace)}]; NSMutabl...
from avro_codec import AvroCodec class RegisteredSchemaAvroCodec(object): """ Avro codec which ensure the schema associated with the instance is present in a confluent schema registry. """ def __init__(self, topic_name, schema, registry_provider): self.registry_provider = registry_provide...
import TextField from '@ember/component/text-field' import {get, set} from '@ember/object' import {run} from '@ember/runloop' export default TextField.extend({ type: 'search', // Time in MS to wait (debounce) the search. wait: 0, // Required selector for content tag. Refers to document.querySelectorAll() so ...
/** * This module contains all logic related to hosting/joining games. */ var PendingGame = require("./entities/pending_game"); var MapInfo = require("../common/map_info"); var lobbySlots = []; var lobbyId = -1; var numLobbySlots = 7; var Lobby = { getLobbySlots: function() { return lobbySlots; }, getLobbyId: ...
namespace OnlineStore.Common.Models { using System; public interface IAuditInfo { DateTime CreatedOn { get; set; } bool PreserveCreatedOn { get; set; } DateTime? ModifiedOn { get; set; } } }
[Things to note: Pull Requests **must** fix an issue. Discussion about the feature / bug takes place in the issue, discussion of the implementation takes place in the PR. Please also see the [Contributing Guide](https://github.com/smartdevicelink/sdl_core/blob/master/.github/CONTRIBUTING.md) for information on branch n...
bool ClientSocket::Connect(struct addrinfo *ai, struct timeval* ts_timeout) { int sktopts = 0; // Set socket to non-blocking if timeout is specified if( ts_timeout != NULL ) { sktopts = fcntl(m_fd, F_GETFL); if( sktopts < 0 ) { THROW_ERROR("Error getting socket optio...
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.admob" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="18" /> <application andr...
from django.contrib import admin from django.contrib.admin import register from . import models as m
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr" dir="ltr"> <!-- Mirrored from 2012.pgday.fr/lib_scripts_jquery_jquery-ui-theme_images_lib_scripts_jquery_jquery-ui-theme_images_...
Don't get me wrong here. I do think the architecture of Redux is great and superior in keeping your async app bugfree. But I'm not working a product oriented organization and I need to get my projects done before time runs out. I hope this starting point Inspired by [ReactNativeTS](https://github.com/mrpatiwi/ReactN...
class nodemgr_comcachecleanup { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService() G...
'use strict'; /** * @module nock/intercepts */ var RequestOverrider = require('./request_overrider'), common = require('./common'), inherits = require('util').inherits, Interceptor = require('./interceptor'), http = require('http'), parse = require('...
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.providers.assistants; import java.util.ArrayList; import java.util.List; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart; import org.eclipse.gmf.runtime.emf.type.core.IElementType; import org.ws...
package dev.jeka.core.api.depmanagement.resolution; import dev.jeka.core.api.depmanagement.JkModuleId; import dev.jeka.core.api.depmanagement.JkVersion; import dev.jeka.core.api.depmanagement.JkVersionedModule; /** * Information about problem when resolving dependencies */ public class JkModuleDepProblem { pri...
namespace net { namespace { // Examines the current extension in |file_name| and tries to return the correct // extension the file should actually be using. Used by EnsureSafeExtension. // All other code should use EnsureSafeExtension, as it includes additional // safety checks. base::FilePath::StringType GetCorrect...
from setuptools import setup, find_packages from os.path import join, dirname with open(join(dirname(__file__), 'scrapyrt/VERSION'), 'rb') as f: version = f.read().decode('ascii').strip() setup( name="scrapyrt", version=version, author='Scrapinghub', author_email='info@scrapinghub.com', url="h...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TableColumnStylingExampleComponent } from './table-column-styling-example.component'; describe('TableColumnStylingExampleComponent', () => { let component: TableColumnStylingExampleComponent; let fixture: ComponentFixture<TableColumnStyli...
package com.vesperin.base.matchers; import com.vesperin.base.*; import com.vesperin.utils.Immutable; import org.eclipse.jdt.core.dom.ASTNode; import org.eclipse.jdt.core.dom.ASTParser; import org.eclipse.jdt.core.dom.TypeDeclaration; import java.util.Arrays; import java.util.List; import java.util.Objects; /** * @a...
doc: doxygen config.dxy coverage: g++ -std=c++14 --coverage ex5.cpp -o ex5 -lboost_system -lboost_timer ./ex5 ../acycpos-1.gph lcov --capture --directory ../ --output-file coverage.info genhtml coverage.info --output-directory out check: cppcheck ex5.cpp run: g++ -std=c++14 ex5.cpp -o ex5 -lboost_system -lb...
#pragma warning disable 0472 using System; using System.Text; using System.IO; using System.Collections; using System.ComponentModel; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Xml.Serialization; using BLToolkit.Aspects; using BLToolkit.DataAccess...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_31) on Tue May 01 15:50:55 CEST 2012 --> <TITLE> OperatingSystem </TITLE> <META NAME="date" CONTENT="2012-05-01"> <LINK REL ="stylesheet" TYPE="tex...
// ------------------------------------------------------------------------------------------------- // <copyright file="DatatypeDefinitionReal.cs" company="RHEA System S.A."> // // Copyright 2017-2022 RHEA System S.A. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this ...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class VerifyLogin extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('user','',TRUE); } function index() { //This method will have the credentials validation $this->lo...
<?xml version="1.0"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0...
""" # UI/UX Authoring Tool # @license http://www.apache.org/licenses/LICENSE-2.0 # Author @ Jamil Hussain """ from django import forms from .models import App class AppCreationForm(forms.ModelForm): #A form for creating new APP. Includes all the requiredfields app_name = forms.CharField() class Meta: ...
void gen_input_var( unsigned char key1[MUGGLE_DES_BLOCK_SIZE], unsigned char key2[MUGGLE_DES_BLOCK_SIZE], unsigned char key3[MUGGLE_DES_BLOCK_SIZE], unsigned char iv[MUGGLE_DES_BLOCK_SIZE], unsigned char *input, unsigned int num_bytes) { srand((unsigned int)time(NULL)); uint32_t r = 0; r = (uint32_t)rand(); ...
<?php require_once(TOOLKIT . '/class.datasource.php'); Class datasourceevents_3_latest extends SectionDatasource { public $dsParamROOTELEMENT = 'events-3-latest'; public $dsParamConditionalizer = '(if value of ({$pt1}) is ())'; public $dsParamORDER = 'asc'; public $dsParamPAGINATERESULTS = 'yes'; public ...
<?php namespace Modules\WorkOrder; use Modules\Customer\CustomerService; use Modules\Customer\Models\Customer; use Modules\WorkOrder\Mappers\WorkOrderMapper; use Modules\WorkOrder\Models\Schedule; use Modules\WorkOrder\Models\WorkOrder; use Modules\WorkOrder\Models\WorkOrderFullCollection; class WorkOrderService ex...
// Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
/* $Leanaux: , v1.1 2014/04/07 21:44:00 anders Exp $ */ /* * Copyright (c) 2014, Anders Franzen. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * 1. Redistributions of source code must ...
CREATE PROCEDURE [dbo].[prc_QueryContentConflict] @SourceId UNIQUEIDENTIFIER, @SessionId UNIQUEIDENTIFIER AS CREATE TABLE #Delta (ChangeGroupId bigint, ChangeActionId bigint, ActionId uniqueidentifier, ActionPath nvarchar(max)) -- Temporarily table for delta CREATE TABLE #MigrationInstruction (ChangeGroupId bigint...
using System; using FlubuCore.Services; namespace FlubuCore.BuildServers { public class GitLab { public static bool RunningOnGitLabCi => Environment.GetEnvironmentVariable("CI_SERVER")?.Equals("yes", StringComparison.OrdinalIgnoreCase) ?? false; /// <summary> /// Indicates whether bui...
© Copyright 2017, Sofast Company. All rights reserved
if [ -z "$WORKSPACE" ]; then echo "Define WORKSPACE location" exit 1 fi BASE_DISTRO=ostro-os CURRENT_PROJECT=ostro-os-xt BUILD_DIR=${BUILD_DIR:-${WORKSPACE}/build} BUILD_CACHE_DIR=$BUILD_DIR/bb-cache BUILDOS="opensuse-42.1" GIT_PROXY_COMMAND=oe-git-proxy TARGET_MACHINE="intel-corei7-64" BUILD_ARGS="--build-arg uid=...
using DrumbleApp.Shared.Data.Factories; using DrumbleApp.Shared.Data.Models; using DrumbleApp.Shared.Data.Schema; using DrumbleApp.Shared.Interfaces; using System; using System.Collections.Generic; using System.Linq; namespace DrumbleApp.Shared.Data.Repositories { public sealed class PathRepository : GenericRepos...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
package org.opensingular.lib.wicket.util.behavior; import org.apache.wicket.Component; import org.apache.wicket.behavior.AttributeAppender; import org.apache.wicket.model.IModel; import java.io.Serializable; public class ConditionalAttributeAppender extends AttributeAppender { private IModel<Boolean> enabled; ...
<!DOCTYPE html> <!-- Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <link rel="import" href="/core/tracks/highlighter.html"> <link rel="import" href="/core/tracks/container_track.html"> <link rel="impor...
[//]: # (title: Get started with Kotlin/Native using Gradle) [Gradle](https://gradle.org) is a build system that is very commonly used in the Java, Android, and other ecosystems. It is the default choice for Kotlin/Native and Multiplatform when it comes to build systems. While most IDEs, including [IntelliJ IDEA](htt...
require "spec_helper" require_relative "../../shared_examples/solver_shared_examples" module Robots describe Solvers::Bfs do let(:solver) { described_class.new(state) } it_should_behave_like "a solver" end end
package io.fabric8.openshift.api.model.hive.v1; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import ...
class Primitiva { public: enum TipoPrimitiva { TipoPrimitivaPlano, TipoPrimitivaEsfera }; protected: //Propiedades Generales TipoPrimitiva m_TipoPrimitiva; Material m_Material; //Propiedades de Plano Plane m_Plano; //Propiedades de Esfera y Luz Vector3 m_Centro; CoordType m_Radio, m_RadioSq, m_RadioIn...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_33) on Wed Aug 27 10:21:29 CEST 2014 --> <TITLE> Uses of Interface com.gsma.android.mobileconnect.userinfo.OpenIDConnectCallbackUserinfoReciever </TI...
package com.hpcloud.mon.app.command; import java.util.List; import javax.annotation.Nullable; import org.hibernate.validator.constraints.NotEmpty; import com.hpcloud.mon.app.validation.AlarmValidation; public class CreateAlarmCommand { @NotEmpty public String name; public String description; @NotEmpty publi...
package strategies import ( "github.com/open-gtd/server/tags/domain" ) func init() { RegisterCreateStrategy(domain.Label, labelStrategy{}) RegisterConvertStrategy(domain.Label, labelStrategy{}) } type labelStrategy struct { } func (ls labelStrategy) Create(name domain.Name) (domain.Tag, error) { return domain.C...
#ifndef Py_CONFIG_H #define Py_CONFIG_H /* pyconfig.h. NOT Generated automatically by configure. This is a manually maintained version used for the Watcom, Borland and Microsoft Visual C++ compilers. It is a standard part of the Python distribution. WINDOWS DEFINES: The code specific to Windows should be...
layout: playlists title: Night Driving season: Fall 2020 permalink: /playlists/nightdriving image: ../images/2020-night-driving.jpg stream: https://open.spotify.com/playlist/08De2P7psJcntyrjlgQSN8?si=RZZcFGIFTKCUP1KPwu9Fsw --- 1. *Nikes* - Frank Ocean 2. *Knocked Around* - Dinosaur Jr. 3. *Ascension Day* - Talk Talk 4...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- Mirrored from bvs.wikidot.com/monster:metal-idol by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10 Jul 2022 03:06:34 GMT ...
module Rico class Collection include Rico::Object include Enumerable extend Forwardable def_delegators :members, :each, :[], :length, :count # Adds the requested items to the array and stores the object # # items - items to be added to the array # # Returns the result of the stor...
<style> .tableleft{font-weight:bold;background-color:#F5F5F5;} </style> <h1>Change password</h1> <form action="" method="post"> <table class="table table-bordered table-hover definewidth m10"> <tr> <td width = "20%" class="tableleft">User ID</td> <td><p><?php echo rbac_conf(array('I...
package com.amazonaws.services.route53domains.model.transform; import java.util.Map; import java.util.Map.Entry; import com.amazonaws.services.route53domains.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import ...
author: Aniket title: Technology To The Rescue layout: post type: post category: weblog tags: - Rescue - Technology --- Neck aches are damn pissing off but they are a part and parcel of a coder's life. Can't help them but can't avoid them too. Leaving this topic aside, there is something interesting about the cha...
package com.redmadrobot.chronos.mock.gui; import com.redmadrobot.chronos.Chronos; import com.redmadrobot.chronos.ChronosConnector; import com.redmadrobot.chronos.ChronosOperation; import org.jetbrains.annotations.Contract; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.an...
class User < ActiveRecord::Base # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :omniauthable has_and_belongs_to_many :comp...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ex...
"use strict"; const Int64 = require('node-int64'); class BufferStream { constructor(a1) { if (typeof a1 === 'number') { this._buf = Buffer.allocUnsafe(a1); } else if (Buffer.isBuffer(a1)) { this._buf = a1; } else { throw TypeError('BufferStream only accept number or Buffer type as argu...
package com.twitter.scalding.jdbc import cascading.jdbc.{ MySqlScheme, JDBCScheme, TableDesc } case class DriverClass(get: String) trait JdbcDriver { def driver: DriverClass def getTableDesc( tableName: TableName, columnNames: Array[ColumnName], columnDefinitions: Array[Definition]) = new TableDe...
/** * AngularJS-Material-Mocks * * Developers interested in running their own custom unit tests WITH angular-material.js loaded... * must also include this *mocks* file. Similar to `angular-mocks.js`, `angular-material-mocks.js` * will override and disable specific AngularJS Material performance settings: * * -...
<plugin class="senv" author="sparky" version="4.0" headersize="Main"> <bitmask16 name="Radiosity Properties.Flags" offset="0x00"> <option name="Simple Parameterization" info="lightmap texture parameterization should correspond to diffuse texture parameterization" value="15"/> <option name="Ignore Normals" info="ligh...
 using Evolution.Domain.Entity.SystemSecurity; using Evolution.Application.SystemSecurity; using System; using System.Linq; using Evolution.Domain.Entity.SystemManage; using Evolution.Application.SystemManage; using Evolution.Application; using Microsoft.AspNetCore.Mvc; using Evolution.Framework; using Microsoft.AspNe...
<!DOCTYPE html> <html lang="en"><meta charset="utf-8" /> <title>Oil Crisis galore! The End as we know it?! - Reflections</title> <meta name="description" content="Default Page Description" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale...
@implementation UIImage (ResizableImage) + (UIImage*)resizableImageNamed:(NSString *)imageName capInsets:(UIEdgeInsets)capInsets { return [[UIImage imageNamed:imageName] resizableImageWithCapInsets:capInsets]; } + (UIImage*)resizableImageNamed:(NSString *) imageName capInsets:(UIEdgeInsets) capInsets resizeMode:(...
import luigi import sciluigi import contextlib import wave from tvd import series_plugins from tvd import Episode import pyannote.core.json from pyannote.core import Segment, Timeline, Annotation import pyannote.parser from pyannote_workflows.utils import AutoOutput def get_episode(task): return Episode(serie...
package catalog import "golang.org/x/text/internal/catmsg" // A Message holds a collection of translations for the same phrase that may // vary based on the values of substitution arguments. type Message = catmsg.Message type firstInSequence = catmsg.FirstOf
import pkgutil import numpy as np import glue def test_histogram_data(): data = glue.core.data.Data(label="Test Data") comp_a = glue.core.data.Component(np.random.uniform(size=500)) comp_b = glue.core.data.Component(np.random.normal(size=500)) data.add_component(comp_a, 'uniform') data.add_compo...
package com.cloudbees.gasp.model; public class Restaurant extends GaspDataObject { private int id; private String name; private String website; private String placesId; private String url; public int getId() { return id; } public void setId(int id) { this.id = id; ...
title: 'Get Local Task Variable' weight: 250 menu: main: name: Get identifier: "rest-api-task-get-local-variable" parent: "rest-api-task-local-variables" pre: "GET `/task/{id}/localVariables/{varName}`" --- Retrieves a variable from the context of a given task by id. # Method GET `/task/{id}/lo...
package io.vitess.jdbc; import io.vitess.proto.Query; import io.vitess.proto.Topodata; import io.vitess.util.Constants; import io.vitess.util.StringUtils; import java.io.UnsupportedEncodingException; import java.lang.reflect.Field; import java.sql.DriverPropertyInfo; import java.sql.SQLException; import java.util.A...
import { Validator } from '../validators/validator'; import { ValidationError } from "../errors/validation"; export declare class Filed { static OPTION: symbol; static uuid(): any; type: any; default: any; required: Boolean; set: Function; get: Function; validators: Array<Function>; ...
angular.module('bootstrap.form.demo', ['bootstrap.form'], function() { }) .controller('DemoController', ['$scope', function($scope) { }]);
<?php namespace phpqbo\Entities; /** * Type Abstract Class */ abstract class Type { }
namespace workspace { class DeliverSalesOrder { public: DeliverSalesOrder() : isDelivered_(false), isCanceled_(false) {} void markAsDelivered() { if (isDelivered_) return; if (isCanceled_) throw std::domain_error("@isCanceled_ is true"); isDelivered_ = true; ...
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\CandidatoSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Inscrição realizada com sucesso!!!'; $this->params['breadcrumbs'][] = ['label' => 'Candidatos', 'url' => ['index']];...
 //======================================================================================================================== // // COMMON FUNCTIONS AND CONSTANTS // //======================================================================================================================== "use strict"; var _COMMONS...
package com.thoughtworks.xstream.mapper; import com.thoughtworks.xstream.alias.ClassMapper; import java.util.HashMap; import java.util.Iterator; import java.util.Map; /** * Mapper that allows a fully qualified class name to be replaced with an alias. * * @author Joe Walnes * @author J&ouml;rg Schaible */ publi...
class LocationGeneratorFactory { public: LocationGeneratorFactory(); ~LocationGeneratorFactory(); void Init(); LocationGenerator* Get(Location* loc, bool first = false); private: AcademyGenerator* academy; CampGenerator* camp; CaveGenerator* cave; CityGenerator* city; DungeonGenerator* dungeon; EncounterGene...
package org.springframework.jms.listener.serversession; import javax.jms.JMSException; import javax.jms.ServerSession; import org.springframework.jms.listener.serversession.ListenerSessionManager; /** * SPI interface to be implemented by components that manage * JMS ServerSessions. Usually, but not necessarily, ...
#include "stdafx.h" #include "ODBCEscapeSequenceParser.h" #include "CdapException.h" #include "ArgumentsParser.h" #define REGEX_FUNCTION L"^\\{fn ([^\\(]+)\\((.*)\\)\\}$" #define REGEX_FUNCTION_START L"^\\{fn " #define REGEX_DATE L"^\\{d ('[^']*')\\}" #define REGEX_TIMESTAMP L"^\\{ts ('[^']*...
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>SurveyOptionsApi | connectwise-rest-api</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" h...
layout: post author: grassycheetah94 title: "Thomas Newlin's Final Project: Update 1" --- My code: <iframe src="https://trinket.io/embed/python/6e99500ab3" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe> ```python Milestones -Stage 1- CHECK Create a football field, u...
RecentItem.lua @Author : DengSir (tdaddon@163.com) @Link : https://dengsir.github.io ]] BuildEnv(...) local RecentItem = Addon:NewClass('RecentItem', GUI:GetClass('ItemButton')) function RecentItem:Constructor() local Bg = self:CreateTexture(nil, 'BACKGROUND') do Bg:SetAllPoints(self) ...
package com.winterwell.json; /** * The <code>JSONString</code> interface allows a <code>toJSONString()</code> * method so that a class can change the behavior of * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>, * and <code>JSONWriter.value(</code>Object<code>)</code>. The * <code>toJSONStri...
using System.Web.Mvc; using System.Web.Routing; namespace WebApiPlayPen.Api { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "De...
ACE_BEGIN_VERSIONED_NAMESPACE_DECL namespace ACE { namespace HTTP { const ACE_CString Request::HTTP_GET = "GET"; const ACE_CString Request::HTTP_HEAD = "HEAD"; const ACE_CString Request::HTTP_PUT = "PUT"; const ACE_CString Request::HTTP_POST = "POST"; const ACE_CString Reques...
from bondpy import bondpy class AttachmentSession(object): """ A context that synchronizes the execution of the runtime system and this attachment using bondpy. Once the context is exited, the runtime system can proceed. """ def __init__(self, topic, key): self.bond = bondpy.Bond(topic...
package org.springframework.cloud.netflix.ribbon; import java.net.URI; import java.net.URISyntaxException; import java.util.Map; import com.netflix.client.config.CommonClientConfigKey; import com.netflix.client.config.DefaultClientConfigImpl; import com.netflix.loadbalancer.Server; import org.junit.Test; import st...
size=102400 source=../dist/osx_dist_0.6.1/ # TODO: Version number title=TileCutter applicationName=TileCutter.app finalDMGPath=../dist/ finalDMGName=TileCutter_osx_0.6.1.dmg # TODO: Version number hdiutil create -srcfolder ${source} -volname "${title}" -fs HFS+ \ ...
You can create records by calling the [`createRecord()`](https://www.emberjs.com/api/ember-data/2.16/classes/DS.Store/methods/createRecord?anchor=createRecord) method on the store. ```js store.createRecord('post', { title: 'Rails is Omakase', body: 'Lorem ipsum' }); ``` The store object is available in controller...
import { combineReducers } from 'redux'; import counter from './counter'; const reducer = combineReducers({ counter, }); export default reducer;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_55) on Thu Apr 24 20:55:47 UTC 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="utf-8"> <title>org.apache.solr.sea...
package main.java; import java.util.ArrayList; import java.util.List; public class RadixSort9 { public static int getSignificant(final int num, final int raidix) { if (num < 0) { throw new IllegalArgumentException(); } if (raidix < 0) { throw new IllegalArgumentException(); } final int divisor = (...
package java.util; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.ObjectStreamField; import java.security.BasicPermission; import java.security.Permission; import java.security.PermissionCollection; import org.apache.harmony.luni.util.Util; /** * {@c...
<?php // +--------------------------------------------------+ // | Copyright (c) Markus Tacker | // | All rights reserved. | // +--------------------------------------------------+ // | This source code is protected by international | // | copyright law and may ...
CCircle::CCircle(const V2f &centerCircle, float &radius, std::string const & lineColor, std::string const & fillColor) :m_centerCircle(centerCircle), m_radius(radius), m_lineColor(lineColor), m_fillColor(fillColor) { } float CCircle::GetShapeArea() const { return float(fabs(M_PI * pow(m_radius, 2))); } float CCi...
class UsersController < ApplicationController before_action :require_login, only: [:edit, :update] # Sign up def new @user = User.new end def create @user = User.new(new_user_params) @user.activated = false if @user.save UserMailer.registered_email(@user).deliver_now flash_messag...