answer stringlengths 15 1.25M |
|---|
demo-ui-android
============
Android SDK UI
01_ActionBar:()
02_PortraitShape:
03_MessageBubble:
04_ChatBackground:
<API key>:
06_FriendList:
07_GroupSettingsDemo
09_SendMessageCusomizationDemo
11_PortraitClickBehaviorDemo |
from .virtual_create import *
__all__ = ["VirtualCreate"] |
package tehnut.lib.mc.tile.sync.adapters;
import net.minecraft.nbt.NBTTagCompound;
public class NBTAdapterString implements INBTTypeAdapter<String> {
public static final INBTTypeAdapter<String> INSTANCE = new NBTAdapterString();
@Override
public void write(NBTTagCompound compound, String value, String field... |
#import "NSObject.h"
@class NSMutableDictionary, NSString;
@interface <API key> : NSObject
{
NSMutableDictionary *<API key>;
NSString *<API key>;
}
+ (id)allocWithZone:(struct _NSZone *)arg1;
+ (id)sharedManager;
@property(retain, nonatomic) NSString *<API key>; // @synthesize <API key>=<API key>;
@property(ret... |
namespace TotaMoviesRental.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class <API key> : DbMigration
{
public override void Up()
{
AlterColumn("dbo.Customers", "Birthdate", c => c.DateTime(nullable: false));
}
public override... |
layout: post
title: "Algorithms"
date: 2013-03-15
excerpt: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. "
comments: false
Portland in shoreditch Vice, labore typewriter pariatur hoodie fap sartorial Austin. Pinterest literally occupy Schlitz forage. Odio ad blue bottle vinyl, 90's narwhal... |
//adding opensource modules to application
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var bcrypt = require('bcrypt-nodejs');
var passport = req... |
const gulp = require('gulp');
const gutil = require('gulp-util');
const runSequence = require('run-sequence');
const buildServer = require('./helpers/buildServer');
const runStdPlatform = require('./helpers/runStdPlatform');
const runWebPlatform = require('./helpers/runWebPlatform');
const tryPackage = require('./helpe... |
#ifndef __PARTICLE_H__
#define __PARTICLE_H__
#include "scene.h"
#include <vector>
#include <functional>
#include <3ds/types.h>
const u8 STILL = 1;
const u8 FLOATING = 2;
const u8 BURNABLE = 4;
const u8 BURNS_TO_EMBER = 8;
const u8 SELECTABLE = 16;
const u8 DATA = 32;
const u8 NO_DRAW = 64;
class Scene;
class ParticleT... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - The HTML Presentation Framework</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<met... |
package prg2.connectfour.persistence;
import java.io.File;
import java.io.<API key>;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import prg2.connectfour.logic.Game;
import prg2.connectfour.logic.GameFactory;
import prg2.connectfour.logic.Grid;
import prg... |
from django.db import models
# Create your models here.
class ImageModel(models.Model):
image = models.ImageField(upload_to = 'pic_folder/') |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lc: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... |
<?php
namespace BattleWheel\Application\Models;
use BattleWheel\Framework\Model\VanillaModel as VanillaModel;
class Error extends VanillaModel
{
} |
require "smooth_operator/associations/reflection"
module SmoothOperator
module Associations
class <API key> < Reflection
attr_reader :related_reflection, :macro
def initialize(association, related_reflection, options)
super(association, options)
@related_reflection, @macro = related_re... |
<nav id="dl-menu" class="dl-menuwrapper" role="navigation">
<button class="dl-trigger">Open Menu</button>
<ul class="dl-menu">
<li><a href="{{ site.url }}/"><i class="fa fa-fw fa-home"></i></a></li>
<li>
<a href="#"><i class="fa fa-fw fa-star"></i></a>
<ul class="dl-subme... |
class NumArray {
public:
vector<int> sum;
NumArray(vector<int> &nums) {
sum.reserve(nums.size());
int s = 0;
for (int i : nums) {
s += i;
sum.push_back(s);
}
}
int sumRange(int i, int j) {
return i > 0 ? sum[j] - sum[i - 1] : sum[j];
}
... |
<div class="col-lg-12 location-container">
<table class="table">
<tr class="location-row" style="cursor: pointer" ng-repeat="loc in locations" apptouch="locationClick(loc)">
<td>{{loc.name}}</td>
<td>{{loc.address}}</td>
<td><button class="btn btn-warning" apptouch="doEdi... |
# <API key>: true
require 'test_helper'
require 'prolog/services/markdown_to_html'
describe 'Prolog::Services::MarkdownToHtml' do
let(:described_class) { Prolog::Services::MarkdownToHtml }
it 'has no initializer method, instead using that of BasicObject' do
method = described_class.new.method :initialize
ex... |
describe("About Expects", function() {
// We shall contemplate truth by testing reality, via spec expectations.
it("should expect true", function() {
expect(true).toBeTruthy(); //This should be true
});
// To understand reality, we must compare our expectations against reality.
it("should expect equality"... |
/* class BHashTable declaration */
/* virtual functions */ |
SmsCheck::Engine.routes.draw do
end |
describe('Moto Eviscerator', function() {
integration(function() {
describe('Moto Eviscerator\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
inPlay: ['moto-eviscerato... |
<?php
namespace PhpPdg\CfgBridge;
use PHPCfg\Script;
class System {
/** @var Script[] */
private $scripts = [];
public function addScript($filename, Script $script) {
if (isset($this->scripts[$filename]) === true) {
throw new \<API key>("CFG with filename `$filename` already exists");
... |
package org.knowm.xchange.cryptsy.dto.account;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.knowm.xchange.cryptsy.dto.<API key>;
/**
* @author ObsessiveOrange
*/
public class <API key> extends <API key><List<CryptsyTransfers>> {
/**
* Constru... |
// Why base-58 instead of standard base-64 encoding?
// - Don't want 0OIl characters that look the same in some fonts and
// could be used to create visually identical looking account numbers.
// - A string with non-alphanumeric characters is not as easily accepted as an account number.
// - E-mail usually won't l... |
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Simple Transactional Email</title>
<style>
img {
border: none;
-<API key>: bicu... |
#include "ei.h"
#include <gtk/gtk.h>
#include <gmodule.h>
#include <glade/glade.h>
#include <pango/pango.h>
/* starts the cnode, returns file descriptor*/
int gn_start_cnode(char **argv);
/* called when there's data on the erlang node socket */
gboolean gn_handle_read(GIOChannel *source,GIOCondition cond,gpointer data)... |
#include <iostream>
#include <memory>
#include <list>
#include <vector>
#include <string>
#include "Astar.hpp"
#define debug
int main() {
Astar a;
Map warehouseMap;
#ifdef debug
std::vector<int> mapArray {1, 1, 1, 1, 0, 1, 0,
0, 0, 0, 1, 1, 0, 0,
... |
/*
ID: yezhiyo1
PROG: nuggets
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <string>
#include <algorithm>
#include <cmath>
#include <memory.h>
using namespace std;
ifstream fin("nuggets.i... |
from collections import OrderedDict
__author__ = 'adam'
from pytrademonster.constants import <API key>
from pytrademonster.objects import QuoteChain, QuoteOptionItem, QuoteItem
import xmltodict
class QuoteRequests(object):
'''
Create payload items for quote requests
'''
def <API key>(self, symbol):
... |
import { Component, TemplateRef, Input } from '@angular/core';
@Component( {
selector: 'tl-listbox-template',
template: `
<ng-container *ngTemplateOutlet="template; context: listContext"></ng-container>
`,
} )
export class TlListBoxTemplate {
@Input() template: TemplateRef<any>;
@Input() item: an... |
window.addEventListener('load', () => {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js');
} else {
console.warn('Service workers aren\'t supported in this browser.');
}
}); |
'use strict';
export const Words = new Mongo.Collection('Words');
if (Meteor.isServer) {
Meteor.publish('Words', () => {
return Words.find({});
});
} |
namespace EventImplementation.Models
{
using Contracts;
public delegate void <API key>(object sender, NameChangeEventArgs e);
public class Dispatcher : IDispatcher
{
private string name;
public event <API key> NameChange;
public string Name
{
get => this.name;... |
using FlaUI.Core.Input;
using FlaUI.Core.UITests.TestFramework;
using NUnit.Framework;
namespace FlaUI.Core.UITests.Elements
{
[TestFixture(AutomationType.UIA2, TestApplicationType.Wpf)]
[TestFixture(AutomationType.UIA3, TestApplicationType.Wpf)]
public class PopupTests : UITestBase
{
public Pop... |
#!/usr/bin/perl
use warnings;
use strict;
open (FASTA, "/users/liype/maf/reference/HumanDB/hg18_knownGeneMrna.fa") or die "Error: cannot read from fastafile: $!\n";
my (%mrnaseq);
my ($curname, $curseq);
while (<FASTA>) {
s/[\r\n]+$
if (m/^>([\w\.]+)/) { #NEED TO CHECK THIS
if ($curseq) {
$... |
package javax.lang.model.util;
import javax.annotation.processing.<API key>;
import javax.lang.model.SourceVersion;
import static javax.lang.model.SourceVersion.*;
/**
* A skeletal visitor of program elements with default behavior
* appropriate for the {@link SourceVersion#RELEASE_7 RELEASE_7}
* source version.
*
... |
# NATS-Bench: Benchmarking NAS Algorithms for Architecture Topology and Size #
# The history of benchmark files are as follows, #
# where the format is (the name is NATS-tss-[version]-[md5].pickle.pbz2) #
# [2020.08.31] NATS-tss-v1_0-3ffb9.pickle.pbz2 #
# py... |
"use strict";
describe('Thermostat', function() {
var thermostat;
beforeEach(function() {
// $('body').append('<h1>hello</h1>');
thermostat = new Thermostat();
});
describe('by default', function() {
it('is set to 20 degrees', function() {
expect(thermostat.temperatur... |
mavis.Arrow = function(_axes, _params) {
this.axes = _axes;
this.start = new mavis.Vector(0, 0);
this.end = new mavis.Vector(1, 1);
this.count = 1; //Number of ticks
this.strokeStyle = "black";
this.lineWidth = 4;
this.strokeAlpha = 1;
for (var key in _params) this[key] = _params[key];
}... |
import { directive as vDragged } from 'v-dragged'
export default {
directives: {
dragged: vDragged
}
} |
<?php
echo "<table class='w3-table-all'>
<tr class='w3-blue'>
<th>Usuario</th>
<th>Materia</th>
<th>Nota</th>
<th>Fecha</th>
<th>Opciones</th>
</tr>";
foreach ($cursadas as $row){
echo "<tr>";
echo "<td>" . $alumno;
echo "<td>" . $row['nombre'];
echo "<td>" . '<input type="text" class="form-control" id="not... |
require 'hadoop/bcftools/errors'
module Hadoop::Bcftools
# HdfsUploader uploads files from local to HDFS.
# @author Wei-Ming Wu
class HdfsUploader
include Errors
# Creates a HdfsUploader.
# @param [String] hadoop_cmd the path of Hadoop command
def initialize hadoop_cmd
@hadoop_cmd = hadoop_c... |
#include "CEGUI/Window.h"
#include "CEGUI/Exceptions.h"
#include "CEGUI/WindowManager.h"
#include "CEGUI/System.h"
#include "CEGUI/FontManager.h"
#include "CEGUI/ImageManager.h"
#include "CEGUI/Cursor.h"
#include "CEGUI/CoordConverter.h"
#include "CEGUI/<API key>.h"
#include "CEGUI/<API key>.h"
#include "CEGUI/widgets/... |
<API key>
====================
Angular directive for validating UTF-8 full names on text inputs
## Usage
js
angular.module('yourapp', ['nameValidation']).controller('InYourController', ['nameValidation', function(nameValidation){
this.valid = nameValidation('\u1920\u8212 \u8211');
}]);
html
<form name="ctrl.form">
... |
# SOAP API Node Js connector
This project demotrates how to connect to the Mystifly OnePoint SOAP API server with Node Js
## End points
Create Session
WIP
## To-do
1. use LowFareSearchGZip instead
2. Evaluate AirRevalidate |
#!/bin/bash
set -e
INPUT="$1"
if [ ! -f "${INPUT}" ]; then
echo "input file not exist"
exit 1
fi
virt-sparsify --check-tmpdir continue --convert qcow2 ${INPUT} ${INPUT}.sparsify
qemu-img convert -c -p -f qcow2 -O qcow2 ${INPUT}.sparsify ${INPUT}
rm -vf ${INPUT}.sparsify
chmod 0640 ${INPUT} |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class BarcodeMSI | TPS Broadcast</title>
<link rel="stylesheet" href="resources/style.css?<SHA1-like>">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="grou... |
/* eslint-disable */
// !!! DO NOT EDIT THIS FILE !!! //
// This file is auto-generated by scripts/<API key>.sh in the repository. //
// Please refer to the script code to learn how to update the source data. //
import { WebAPICallResult } from '../WebCl... |
import {Issue} from "../issue";
import {ABAPRule} from "./_abap_rule";
import * as Statements from "../abap/2_statements/statements";
import * as Expressions from "../abap/2_statements/expressions";
import * as Structures from "../abap/3_structures/structures";
import {BasicRuleConfig} from "./_basic_rule_config";
impo... |
<!DOCTYPE html>
<html lang="en">
<head prefix="og: http://ogp.me/ns
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="">
<meta property="og:title" content="Running ... |
using UnityEngine;
using System.Collections;
public class CreatureUtils : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
//Keep creature inside world boundries
public void KeepWithinBoundries(GameObject creature) {
... |
'use strict';
var assert = require('assert');
var fill = require('./');
it('should fill the elements in the array to the specified length.', function () {
assert.deepEqual(fill(['a', 'b', 'c'], 10), ['a','b','c','a','b','c','a','b','c','a']);
assert.deepEqual(fill(['ab', 'cd'], 3), ['ab', 'cd', 'ab']);
assert.dee... |
#ifndef SCENE_H
#define SCENE_H
#include "Exporter/Definitions/Model.h"
#include <string>
#include <vector>
class Scene {
public:
Scene();
~Scene();
std::string name;
std::vector<Model*>* models;
Model* GetModelByModelName(std::string name);
void <API key>();
private:
};
#endif // SCENE_H |
#include "k_points_util.h"
#include <algorithm>
#include <boost/functional/hash.hpp>
#include <cmath>
#include <exception>
#include <unordered_set>
#include "../array_math.h"
int KPointsUtil::get_n_k_points(const double rcut) {
int count = 0;
const int n_max = std::floor(static_cast<float>(rcut));
double rcut_squ... |
(function(g,b){b.useDefaults();ltoptions.debug?b.setLevel(b.Debug):b.setLevel(b.WARN);g.onerror=function(a,d,e,f,c){if(e||d)a=a+"\nurl: "+d+"\non line "+e,f&&(a=a+" symbol "+f),c&&"stack"in c&&(a=a+"\n"+c.stack),b.error(a)}})(window,Logger); |
package coremock
import (
"net"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore"
syncds "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore/sync"
context "gx/ipfs/<API key>/go-net/context"
commands "github.com/ipfs/go-ipfs/commands"
core "githu... |
.tt-hint {
display: none;
}
.tt-menu {
width: 332px;
margin: 8px 0;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
-<API key>: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
-moz-box-shad... |
module.exports = require('./lib').default;
module.exports.default = module.exports;
module.exports.NextButton = require('./lib').NextButton;
module.exports.PreviousButton = require('./lib').PreviousButton;
module.exports.PagingDots = require('./lib').PagingDots; |
#pragma once
#include "Position.h"
#include "Action.h"
#include "PlayerState.h"
#define GUARD_RADIUS 4.5f
#define GUARD_LINE 2.5f
#define DIRECTION_TOLERANCE 0.1f
#define <API key> 15.0f
#define <API key> 0.25f
#define <API key> 1.2f
#define <API key> 2.0f
#define <API key> 11.0f
#define <API key> 20.0
#define <API key... |
require 'spec_helper'
require 'puppet_spec/compiler'
describe "Two step scoping for variables" do
include PuppetSpec::Compiler
def <API key>(message, node = Puppet::Node.new('the node'))
catalog = compile_to_catalog(yield, node)
catalog.resource('Notify', 'something')[:message].should == message
end
bef... |
<?php
namespace haqqi\metronic\controllers;
use haqqi\metronic\base\MetronicController;
class PortletController extends MetronicController
{
public function actionSolid() {
return $this->render('solid');
}
} |
<!DOCTYPE html PUBLIC "-
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script type="text/javascript">
function AddToFaves_hp() {
var is_4up = parseInt(navigator.appVersion);
... |
<?php
namespace Ecommit\JavascriptBundle\Overlay;
class JQueryPopupOverlay extends AbstractOverlay
{
public function __construct($useBootstrap)
{
$this->useBootstrap = $useBootstrap;
}
public function <API key>($modalId, $options = array())
{
$modalId = str_replace(' ', '', $modalId)... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'form_ui.ui'
# Created: Fri Apr 01 21:42:03 2016
# by: PyQt4 UI code generator 4.11.2
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeErro... |
<?php
if(isset($_POST['email'])) {
// CHANGE THE TWO LINES BELOW
$email_to = "cparks0225@gmail.com";
$email_subject = "website html form submissions";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted... |
#include "unitTests.h"
#include "boost/date_time/posix_time/posix_time.hpp"
//#include <thrust\complex.h>
#define sizeSmall 4
#define sizeLarge 1024
/ minor
// float type
void test_minor_float_1()
{
Array<float> m( 2, 2 );
m( 0, 0 ) = 0;
m( 0, 1 ) = 0.1f;
m( 1, 0 ) = 0.2f;
m( 1, 1 ) = 0.3f;
Arra... |
using System.Collections.Generic;
using UnityEngine;
/**
* Base class for everything that can be attacked (buildings, units, minions, heroes).
* Requires an Animator an will pass the following parameters to the animator:
* - UnitStatus
* - NrEnemies
* Requires a trigger collider to detect enemies within its ra... |
The MIT License (MIT)
Copyright (c) 2014 Simon Reimler <saimon@devdactic.com>
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, co... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Index | Hayttp API</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min... |
// flow-typed signature: <API key>
declare module 'utm' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'utm/index.es' {
declare module.exports:... |
<?php
namespace Riverline\WorkerBundle\Provider;
class PRedis implements ProviderInterface
{
protected $predis;
public function __construct($predisConfiguration)
{
if (!class_exists('Predis\Client')) {
throw new \LogicException("Can't find PRedis lib");
}
$this->predis = ... |
// of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// and/or sell 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 substant... |
<layout>
<div class="container" ng-controller="BlockDetailPageCtrl as detail">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Block {{detail.block.hash | removeLeadingZeros}}</h1>
<button type="button" class="btn btn-default" ng-click="detail.verifyBlock()">Verify</button><span>Verif... |
'use strict';
var JSONRPCFactory = require('../../lib');
var Names = {
v1: 'JSONRPC_V1',
v2: 'JSONRPC_V2'
};
describe('JSONRPCFactory (lib/jsonrpc-factory.js)', function () {
it('v1 method should gives ' + Names.v1 + ' object', function () {
expect(JSONRPCFactory.v1().constructor.name).toBe(Names.v1);
});
... |
<?php
namespace Phormium\Exception;
/**
* Thrown when a Model class is not valid, e.g. has invalid $_meta.
*/
class <API key> extends OrmException
{
} |
# koa-context [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url]
> Extend koa context
## Installation
npm install --save koa-context
## Usage
With file `context/csrf.js`
module.exports = {
csrf: function() {
// ... |
require "format_fallback/version"
module ActionView
class PathSet < Array
def <API key>(path, prefix = nil, partial = false, details = {}, key = nil)
if prefix == "layouts"
# Layouts have their own way of managing fallback, better leave them alone
<API key>(path, prefix, partial, details, ke... |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("<API key>", "eHA.settings")
from django.core.management import <API key>
<API key>(sys.argv) |
<p><img src="/img/daria.jpg" class="img-responsive" alt="Daria Multipurpose Three-Column Bootstrap Theme" /></p> |
from pale.fields.string import StringField
class TimestampField(StringField):
"""A field for timestamp strings."""
value_type = 'timestamp'
# TODO - timestamp field rendering |
// AppDelegate.h
// 01-ImageDisplay
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <<API key>>
@property (strong, nonatomic) UIWindow *window;
@end |
package openisetl.runtime._val
object UndefinedVal {
val undefined = new UndefinedVal
}
class UndefinedVal private extends BaseVal {
override def typeName = "Undefined"
override def toString = typeName
} |
import AcTypes from '../configs/types';
import { Record,Map } from 'immutable';
const {
QUERY_BY_ID
} = AcTypes;
const InitialState = Record({
article:Map({})
});
const initialState = new InitialState();
export default function BLogDetailReducer(state = initialState, action = {}) {
switch (action.type) {
... |
package auth
import (
"encoding/json"
"net/http"
"time"
"github.com/l10n-center/api/src/config"
"github.com/l10n-center/api/src/errs"
"github.com/l10n-center/api/src/middleware"
"github.com/l10n-center/api/src/model"
"github.com/l10n-center/api/src/tracing"
"github.com/asaskevich/gov... |
[
* [CCQ](https://github.com/ccqpein)
* [Yixuan](https://github.com/YixuanBurnett)
:
-
- ?
-
- ,:
+ ? ? ? ?
+ ? ? !?
+ / /? /? ?
+ ?????
+ ....
- , `0->1` ,,...
~ ,,,...
> [Q&A:issues](https://github.co... |
using System;
using System.Linq;
using System.Xml;
using JetBrains.Annotations;
namespace Corelicious.Extensions {
public static class XmlNodeExtensions {
[NotNull]
public static XmlElement[] SelectElements([NotNull] this XmlNode node, [NotNull] String xpath) {
if (node == null) throw ne... |
<?php
// This file exist in purpose to uniting all style tag we load in every page (header)
?>
<link href="<?= asset_url(); ?>css/bootstrap.min.css" rel="stylesheet">
<link href="<?= asset_url(); ?>css/<API key>.min.css" rel="stylesheet">
<!-- disabling responsiveness -->
<style>
.container{
width: 970px !important;
... |
package org.kaerdan.mvp_navigation.example1_activities;
import org.kaerdan.mvp_navigation.R;
import org.kaerdan.mvp_navigation.core.ui.favorite_list.<API key>;
import org.kaerdan.mvp_navigation.core.ui.favorite_list.<API key>;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v... |
'use strict';
function create(value) {
return /* BasicCameraView */{
_0: value
};
}
function value(basicCameraView) {
return basicCameraView._0;
}
exports.create = create;
exports.value = value;
/* No side effect */ |
/** @define rbDatetimeControl; use strict */
/**
* The `.rbDatetimeControl` component...
*/
:root {
--<API key>: var();
}
/**
* 1. Comment
*/
.DatetimeControl {
}
@font-face {
font-family: 'Glyphicons Halflings';
src: url('./fonts/<API key>.eot');
src: url('./fonts/<API key>.eot?#iefix') format('embedded-... |
<?php
<API key>(array('Faker', 'autoload'));
/**
* A fake text generator.
*
* @todo document API
*/
class Faker {
static function autoload($classname) {
$classpath = dirname(__FILE__) . '/' . str_replace('_', '/', $classname) . '.php';
if (file_exists($classpath)) {
require_once $cla... |
export class Message {
constructor(
){}
} |
<?php
return [
'name' => 'Increnta',
'description' => 'Enable some features like send email alerts on campaigns',
'version' => '1.0',
'author' => 'Fernando Rubio',
'services' => array(
'events' => array(
'plugin.increnta.campaignbundle.subscriber' => array(
... |
(function () {
'use strict';
angular.module('profile')
.component('profileAboutBlock', {
templateUrl: 'partials/profile-about-block.html',
controller: profileAboutBlock,
controllerAs: 'vm',
bindings: {
profile: '<'
}
});... |
/**
* Interface definition for UI service tier.
*/
package net.bolbat.kit.service.ui; |
<?php
namespace Tempo\Bundle\AppBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\Col... |
var chai = require('chai');
var util = require('util');
var path = require('path');
var poplar = require('poplar');
var ApiBuilder = poplar.ApiBuilder;
var glue = require('../');
glue.autoload('myLoaders', path.join(__dirname, './loaders'));
var SampleApp = require('./sample_app');
var expect = chai.expect;
describe('g... |
namespace AIBots
{
partial class NetworkForm<World, Bot, Settings>
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.