answer stringlengths 15 1.25M |
|---|
# -*- coding: utf-8 -*-
import math
""" procedure to generate Gaussian of unit area when passed a FWHM"""
#IDL: PRO GAUSS2,FWHM,LENGTH,NGAUS
def gauss2(fwhm, length):
#length=length*1l & FWHM=FWHM*1l
#NGAUS=FLTARR(LENGTH)
ngaus = [0.0 for i in range(length)]
#This expression for CHAR comes from requ... |
src="jquery-3.2.1.min";
$(document).ready(function(){
$("td:contains('-')").filter(":contains('€')").addClass('neg');
$(".betrag").filter(":contains('-')").addClass('neg');
});
function goBack() {
window.history.back();
} |
AMD::Engine.routes.draw do
get '/amd/:asset', to: 'assets#finder'
end |
<div class="navbar navbar-default navbar-static-top" ng-controller="NavbarCtrl">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" ng-click="isCollapsed = !isCollapsed">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span... |
var compare = require('typewiselite')
var search = require('binary-search')
function compareKeys (a, b) {
return compare(a.key, b.key)
}
module.exports = function (_compare) {
var ary = [], kv
_compare = _compare || compare
function cmp (a, b) {
return _compare(a.key, b.key)
}
return kv = {
getIndex... |
namespace Grauenwolf.TravellerTools.Names
{
public class RandomPerson
{
<summary>
Initializes a new instance of the <see cref="RandomName"/> class.
</summary>
<param name="firstName"></param>
<param name="lastName"></param>
internal RandomPerson(Result user)
... |
define( [
'jquery',
'angular',
'json!nuke/data/dummy_model.json',
'json!nuke/data/dummy_layout.json',
'text!nuke/demo.html'
], function( $, ng, dummyModel, dummyLayout, htmlDemoTemplate ) {
'use strict';
var module = ng.module( 'NukeDemoApp', [ 'nbe' ] )
.run( [ '$templateCache', function( $t... |
module Editor::Controllers::Document
class Export
include Editor::Action
include ::Noteshare::Core::Document
expose :document, :active_item
def call(params)
@active_item = 'editor'
@document = DocumentRepository.find params[:id]
ContentManager.new(@document).export
redirect_to ... |
Rethinker
======
Rethinker offers a minimalist ActiveRecord-like API service layer for [RethinkDB](www.rethinkdb.com), the main focus is to simplify the relational queries for has-one, has-many, many-many relationships, with filters, and nested relational query support.
#Install
`
npm install rethinker
`
#Running Tests... |
title: chap3
* content
{:toc}
* technique
basic swing
BPbasic swingLearningfoundationa suite of techniquesimproveimplemention
* technique
available techniques techniquein-depth study
Mastering those important techniquestechniqueimportant techniqueNNtechnique
techniquepick up
## The cross-entropy cost function
*
NNlear... |
from . import config
from django.shortcuts import render
from mwoauth import ConsumerToken, Handshaker, tokens
def requests_handshaker():
consumer_key = config.OAUTH_<TwitterConsumerkey> = config.O<API key>
consumer_token = ConsumerToken(consumer_key, consumer_secret)
return Handshaker("https://meta.wikimed... |
using UnityEngine;
using System.Collections;
public class Menu : MonoBehaviour
{
public GUIStyle exit;
public GUIStyle play;
// Use this for initialization
void Start () {
Screen.showCursor = true;
}
// Update is called once per frame
void Update () {
}
void OnGUI() {
... |
package org.gw4e.eclipse.builder.exception;
import org.gw4e.eclipse.builder.GW4EParser;
import org.gw4e.eclipse.builder.Location;
public class <API key> extends <API key> {
private static final long serialVersionUID = 1L;
public <API key>(Location location, String message,<API key> p) {
super(location, ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
namespace VSCodeDebug
{
public class Message
{
public int id { get; }
public string format { get; }
public dynamic variables { get; }
public dynamic showUser { get; }
public dynamic sendTe... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_27) on Thu Jan 23 20:12:05 EST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class org.apache.lucene.search.BooleanQuery.TooManyClauses (Lucene 4.6.1 API)</title>
<me... |
/**
* This is where the magic happens. The Game object is the heart of your game,
* providing quick access to common functions and handling the boot process.
*
* "Hell, there are no rules here - we're trying to accomplish something."
* Thomas A. Edison
*
* @class Ph... |
#include "pci.h"
#include "pciids.h"
#include "kstdio.h"
#include "heap.h"
#include "ehci.h"
#define headerAddress(bus,dev,func,reg) \
((uint32_t)((((bus) & 0xFF) << 16) | (((dev) & 0x1F) << 11) | \
(((func) & 0x07) << 8) | (((reg) & 0x3F) << 2) | 0x80000000L)) \
uint8_t pci_re... |
module <API key>
module Adapter
class JsonApi
class Relationship
def initialize(parent_serializer, <API key>, association)
serializer = association.serializer
options = association.options
links = association.links
meta = association.meta
@object = p... |
# -*- coding: utf-8 -*-
""" Request Management System - Controllers """
prefix = request.controller
resourcename = request.function
if prefix not in deployment_settings.modules:
session.error = T("Module disabled!")
redirect(URL(r=request, c="default", f="index"))
# Options Menu (available in all Functions' Vie... |
#![crate_name = "rusoto"]
#![crate_type = "lib"]
#![cfg_attr(feature = "unstable", feature(custom_derive, plugin))]
#![cfg_attr(feature = "unstable", plugin(serde_macros))]
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
#![cfg_attr(feature = "nightly-testing", allow(<API key>, <API key>, ptr_arg, <API key>))... |
w5 w7 QUERY3 w76 w25 w16 w1 w30 w5 w3 w98 w7 QUERY1 w80 <A HREF = page97.html > QUERY1 QUERY2 QUERY3 w59 QUERY2 w81 QUERY2 </A> <A HREF = page90.html > QUERY2 w5 w32 </A> w18 <A HREF = page15.html > w21 w3 w97 w8 w4 </A> <A HREF = page71.html > QUERY1 </A> w14 w5 w13 w18 QUERY1 w6 w48 w11 w17 QUERY2 w14 w4 <A HREF = pa... |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="<API key>"><table class="ztable"><tr><th class="ztd1"><b> </b></... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
<?php
namespace Epsilon\Environment;
defined('EPSILON_EXEC') or die();
use Epsilon\Factory;
use Epsilon\Object\Object;
/**
* Class Cookie
*
* @package Epsilon\Environment
*/
class Cookie extends Object
{
private static $Instance;
private $Cookies;
private $newCookies;
public $L... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
# Compiler, Flags, Directory Name and Executable Name
CC= g++
CFLAGS= -std=c++11
ODIR= ../obj
# Source codes and objects (Add here new .cpp tests separated by spaces)
SRCS= testPoint.cpp
EXEC= t1
OBJS= $(patsubst %.cpp,$(ODIR)/%.o,$(SRCS))
all: $(EXEC)
# Concatenate objects with your new directory
$(OBJS): | $(ODIR)
# ... |
package org.jabref.gui.openoffice;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JDialog;
i... |
// GuidExtensions.cs
// Craig Fowler <craig@csf-dev.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 do so, ... |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$template = get_option( 'template' );
switch ( $template ) {
case 'twentyeleven' :
echo '<div id="primary"><div id="content" role="main" class="twentyeleven">';
break;
case 'twentytwelve' :
echo '<div id="prim... |
# Apollo REST Data Source
This package exports a ([`RESTDataSource`](https://github.com/apollographql/apollo-server/tree/main/packages/<API key>)) class which is used for fetching data from a REST API and exposing it via GraphQL within Apollo Server.
## Documentation
View the [Apollo Server documentation for data sourc... |
package com.ricex.aft.android.request;
import org.springframework.http.HttpStatus;
public class AFTResponse<T> {
/** The successful response from the server */
private final T response;
/** The error response from the server */
private final String error;
/** The HttpStatus code of the response */
... |
<?php
use Cake\Core\Plugin;
use Cake\Routing\Router;
Router::scope('/', function ($routes) {
/**
* Here, we are connecting '/' (base path) to a controller called 'Pages',
* its action called 'display', and we pass a param to select the view file
* to use (in this case, src/Template/Pages/home.ctp)...
*/
$routes... |
/* app/ui/map/svg */
define(
[
'jquery',
'raphael',
'app/ui/map/data',
'app/ui/map/util',
'util/detector',
'pubsub'
],
function ($, Raphael, MapData, MapUtil, Detector) {
'use strict';
var SVG;
return {
nzte: {},
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost:8889',
'username' => 'root',
'password' => 'root',
'database' => 'belttest',
'dbdriver' => 'mysqli',
'dbpre... |
<?php
// src/AppBundle/Entity/Blog.php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="blog")
*/
class Blog
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(... |
import {Chart} from 'react-google-charts';
import React, {Component, PropTypes} from 'react';
import DataFormatter from '../../utils/DataFormatter';
class EnvyBarChart extends Component {
constructor(props) {
super(props);
this.state={
options:{
hAxis: {title: 'Event Type... |
using ApiAiSDK.Model;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using UPT.BOT.Aplicacion.DTOs.BOT;
using UPT.BOT.Distribucion.Bot.Acceso.Documento;
namespace UPT.BOT.Distribucion.Bot.BotService.Dia... |
"use strict";
let mongoose = require('mongoose'),
Schema = mongoose.Schema,
EmailValidator = require('./emailValidator');
class User {
constructor(explicitConnection) {
this.explicitConnection = explicitConnection;
this.schema = new Schema({
email: {
type: 'string',
trim: t... |
package cn.edu.ustc.appseed.clubseed.activity;
/*
* Show the detail content of the event which you select.
* Why to use a custom toolbar instead of the default toolbar in ActionBarActivity?
* Because the custom toolbar is very convenient to edit it and good to unify the GUI.
*/
import android.content.Intent;
import an... |
package com.smbc.droid;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.android.volley.toolbox.NetworkImageView;
public class MainActivity extends FragmentActi... |
#pragma once
#include "Task.h"
namespace vlp {
class WaitTask : public Task {
public:
void run(Engine& engine) override;
};
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace image_viewer
{
static class Program
{
<summary>
The main entry point for the application.
</summary>
[STAThread]
static void Main()
... |
using System;
using OKHOSTING.UI.Controls;
using OKHOSTING.UI.Controls.Layouts;
using OKHOSTING.UI.Xamarin.Mac.Controls;
using OKHOSTING.UI.Xamarin.Mac.Controls.Layout;
namespace OKHOSTING.UI.Xamarin.Mac
{
public class Platform
{
public override T Create<T>()
{
T control = null;
... |
<!DOCTYPE html><html><head><meta charset="utf-8" />
<meta http-equiv="refresh" content="0;url=/place/togo/health/" />
</head></html> |
MIT License
Copyright (c) 2016 Dan Guevarra
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... |
module.export = {
}; |
(function (ns) {
// dependencies
var assert = require('assert');
var esgraph = require('esgraph');
var worklist = require('analyses');
var common = require("../../base/common.js");
var Context = require("../../base/context.js");
var Base = require("../../base/index.js");
var codegen = re... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>plugin_mmasgis: Class Members - Variables</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/j... |
# <API key>
A light and easy to use notifications library for Angular 2 & 4. It features both regular page notifications (toasts) and push notifications.
Forked From [<API key>](http://flauc.github.io/<API key>)
Updates: Compatible with Angular 2 & Angular 4. Removed animations module.
## Example
Take a look at the liv... |
package lab;
public class IntArrayWorker
{
/** two dimensional matrix */
private int[][] matrix = null;
/** set the matrix to the passed one
* @param theMatrix the one to use
*/
public void setMatrix(int[][] theMatrix)
{
matrix = theMatrix;
}
/**
* Method to return the total
* @return th... |
# Contributing
**Mule** is open source software; contributions from the community are encouraged. Please take a moment to read these guidelines before submitting changes.
Code style
All PHP code must adhere to the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/<API key>.md) standard.
Branching an... |
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title>
<meta name="description" content="{{ page.description }}">
<meta name="keywords" content="{{ page.tags | join: ', ' }}">
<meta property="og:locale" content="en_US">
<meta property="og:title" content="{% if page... |
#include <bits/stdc++.h>
using namespace std;
vector<int> adj[143];
int n; bool seen[143];
int dfs(int u) {
seen[u] = true;
int result = 0;
for (int v: adj[u])
if (!seen[v])
result += dfs(v) + 1;
return result;
}
int main() {
ios_base::sync_with_stdio(0);cin.tie(0);
while (ci... |
<?php
namespace SergeiK\izVladimiraBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
class CarAdmin extends Admin
{
/**
* @param DatagridMa... |
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace NAudio.Lame
{
<summary>
Decoder for ID3v2 tags
</summary>
public static class ID3Decoder
{
<summary>
Read an ID3v2 Tag from the current positi... |
// <API key>.h
// CORKit
#import <UIKit/UIKit.h>
typedef void (^<API key>)();
@interface <API key> : UIViewController
- (void)<API key>:(UIViewController *)viewController animated:(BOOL)animated completion:(<API key>)completion;
- (void)<API key>:(BOOL)animated completion:(<API key>)completion;
@end |
import {ListRange} from '@angular/cdk/collections';
import {
<API key>,
ChangeDetectorRef,
Component,
ElementRef,
Inject,
Input,
NgZone,
OnDestroy,
OnInit,
ViewChild,
ViewEncapsulation,
} from '@angular/core';
import {DomSanitizer, SafeStyle} from '@angular/platform-browser';
import {<API key>, fr... |
module Devise
module Hooks
# A small warden proxy so we can remember, forget and
# sign out users from hooks.
class Proxy #:nodoc:
include Devise::Controllers::Rememberable
include Devise::Controllers::SignInOut
attr_reader :warden
delegate :cookies, :env, :to => :warden
def ... |
import array
import numbers
real_types = [numbers.Real]
int_types = [numbers.Integral]
iterable_types = [set, list, tuple, array.array]
try:
import numpy
except ImportError:
pass
else:
real_types.extend([numpy.float32, numpy.float64])
int_types.extend([numpy.int32, numpy.int64])
iterable_types.appen... |
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{{ site.description }}">... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import { toggleSelect } from '../actions/users';
import { createLink } from '../../utils';
class User extends Component {
render() {
const <API key> = this.props.user.<API key> ? this.props.use... |
<?php
namespace PPICacheModule\Cache\Driver;
use PPICacheModule\Cache\CacheInterface;
class MemoryCache implements CacheInterface
{
/**
* @var array $data
*/
protected $data = array();
/**
* {@inheritdoc}
*/
public function get($key)
{
return isset($this->data[$key]) ? ne... |
/**
* Style for forms
*/
label {
font-size: smaller;
}
input[type=text],
input[type=password] {
font-size: 1.2em;
width: 300px;
}
input[type=submit],
input[type=reset] {
font-size: 1.2em;
}
textarea {
font-size: 1.2em;
width: 300px;
min-height: 200px;
}
p.buttons {
padding-top: 22px;
padding-bottom:... |
package com.smartbit8.laravelstorm.run;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.Executor;
import com.intellij.execution.configurations.*;
import com.intellij.execution.process.*;
import com.intellij.execution.runners.<API key>;
import com.intellij.ide.browsers.*;
import com.intel... |
# WiseFriend
User (mentee) can create an account
User can log in
When creating account, user will fill out profile and answer questions to be matched
User can browse a list of resources
After being matched - user can fill out surveys once per month in order to assess the quality of the match.
Mentor can create an accou... |
FactoryGirl.define do
factory :question do
sq_no '2'
query 'What is Ruby?'
question_type "Hard"
association :level
association :content
after(:build) do |question|
FactoryGirl.create(:correct, :question => question)
2.times {|i| FactoryGirl.create(:incorrect, :question => question)... |
$.preload = function(){
var tmp = [], i = arguments.length;
// reverse loop run faster
for( ; i-- ; ) tmp.push( $( '<img />' ).attr( 'src', arguments[ i ] ));
}; |
/*jshint indent: 4, browser:true*/
/*global L*/
/*
* L.TimeDimension.Player
*/
//'use strict';
L.TimeDimension.Player = (L.Layer || L.Class).extend({
includes: (L.Evented || L.Mixin.Events),
initialize: function(options, timeDimension) {
L.setOptions(this, options);
this._timeDimension = timeD... |
<?php
namespace pagosBundle\Entity;
use Doctrine\ORM\EntityRepository;
use Doctrine\DBAL\DriverManager;
class pagoRepository extends EntityRepository
{
public function facturar($lineas,$entidad,$cuenta) {
$datos=array('serie'=>'',
'folio'=>'',
'empresa_id'=>'',
... |
package com.bitdubai.fermat_bnk_api.layer.bnk_wallet.bank_money.exceptions;
import com.bitdubai.fermat_api.FermatException;
public class <API key> extends FermatException {
public static final String DEFAULT_MESSAGE = "Falled To Get Bank Transaction Wallet Bank Money.";
public <API key>(String message, Exceptio... |
<?php
namespace SMARTASK\HomeBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use SMARTASK\UserBundle\Entity\User ;
use FOS\ElasticaBundle\Configuration\Search;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Task
*
* @ORM\Table(name="task")
* @Search(repositoryClass="SMARTASK\HomeBundle\Repository\Task... |
package modelo;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
* @author Deivis
*/
public class Cotacao {
private int id;
private Date data;
private Double valor;
private TipoMoeda tipoMoeda;
public TipoMoeda getTipoMo... |
<?php
namespace MM\Util\Dummy;
trigger_error("simulating php error/warining");
class Dummy2 {
} |
<?php
/*
Safe sample
input : Uses popen to read the file /tmp/tainted.txt using cat command
sanitize : settype (float)
construction : use of sprintf via a %d
*/
$handle = popen('/bin/cat /tmp/tainted.txt', 'r');
$tainted = fread($handle, 4096);
pclose($handle);
if(settype($tainted, "float"))
$tainted = $tainted ;
els... |
// EFDataSource.h
// Pods
#import <Foundation/Foundation.h>
@class EFCellModel;
@protocol EFDataSource <NSObject>
@required
- (NSInteger)count;
- (EFCellModel *)objectAtIndex:(NSInteger)index;
- (void)add:(EFCellModel *)object;
- (void)removeAtIndex:(NSInteger)index;
- (void)updateAtIndex:(NSInteger)index model:(EFCe... |
'use strict';
angular.module('mean.settings').config(['$stateProvider',
function($stateProvider) {
var checkLoggedin = function($q, $timeout, $http, $location) {
// Initialize a new promise
var deferred = $q.defer();
// Make an AJAX call to check if the user is logged in
$http.get('/logged... |
<!-- Modal ADD -->
<div class="modal fade" id="modal-form" role="dialog">
<div class="modal-dialog modal-lg">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"><sm... |
#Attribute set in both superclass and subclass
class C(object):
def __init__(self):
self.var = 0
class D(C):
def __init__(self):
self.var = 1 # self.var will be overwritten
C.__init__(self)
#Attribute set in both superclass and subclass
class E(object):
def __init__(self):
se... |
#include <iostream>
#include <fftw3.h>
#include <omp.h>
#include <cstdlib>
#include <sweet/SimulationVariables.hpp>
class TestFFTPlans
{
public:
bool importWisdom(int <API key>)
{
static const char *wisdom_file = "sweet_fftw";
std::cout << "<API key>(" << wisdom_file << ")" << std::endl;
... |
<form id="formCopyMove">
<fieldset>
<div class="modal-body">
<label>{{i18n.select_destination}}:</label>
<div id="copyMoveTree"><div class="text-center"><span class="icon icon-spin5 animate-spin"></span></div></div>
</div>
<div class="modal-footer">
<button type="button" class="btn b... |
class Comment < Sequel::Model
many_to_one :post
include Splam
splammable :body do |splam|
splam.threshold = 40
splam.rules = [:bad_words, :html, :bbcode, :href, :chinese, :line_length, :russian]
end
def before_save
return false if super == false
self.published = !self.splam?
true
end
end |
#pragma once
#define FILE_NAME_MAX 512
#define FILE_PATH_MAX 512
typedef struct linked_list_s linked_list;
typedef struct list_item_s list_item;
typedef struct meta_info_s {
char name[0x100];
char compatible[0x10];
char description[0x200];
char developer[0x100];
char devsite[0x100];
char added[0... |
namespace EVTC_Log_Parser.Model
{
public class Interval
{
public int Start { get; set; }
public int End { get; set; }
}
} |
package br.com.dbsoft.rest.dados;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.<API key>;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include... |
import PropTypes from 'prop-types'
import React from 'react'
import block from 'bem-cn-lite'
import { Field, reduxForm } from 'redux-form'
import { compose } from 'underscore'
import { connect } from 'react-redux'
import { renderTextInput } from '../text_input'
import { renderCheckboxInput } from '../checkbox_input'
im... |
using System.Collections.Generic;
using DotSpatial.Data;
namespace DotSpatial.Symbology
{
<summary>
Interface for LayerProvider.
</summary>
public interface ILayerProvider
{
#region Properties
<summary>
Gets a basic description of what your provider does.
</summary>
... |
using System.Runtime.Serialization;
namespace PushbulletSharp.Models.Responses.Ephemerals
{
[DataContract]
public class DismissalEphemeral : IEphemeral
{
<summary>
Gets or sets the type.
</summary>
<value>
The type.
</value>
[DataMember(Name = "type")]... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_02) on Mon Apr 25 06:16:42 CEST 2016 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>org.gradle.api.plugins.jetty (Gradle API 2.13)</title>
<meta name="date" content="2016-04-25">
<... |
* {
margin: 0;
padding: 0;
}
h2 {
font-family: verdana, sans-serif;
font-size: 18px;
margin: 10px 5px;
}
.box h2 {
background:#ddd;
color:black;
padding:5px;
font-size: 14px;
margin: 0;
}
.box p { color:#333; padding:5px; font-size: 14px}
.box, .box-v {
border:1px solid #ddd;
... |
package com.landenlabs.all_flipanimation;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.graphics.Camera;
import android.graphics.Matrix;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClic... |
I am an unordered list. I am typically used for unnumbered lists |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DesktopCharacter.Model.Locator;
using DesktopCharacter.ViewModel.SettingTab;
namespace DesktopCharacter.ViewModel
{
class SettingViewModel : Livet.ViewModel
{
public <API key> Launch... |
.style-target {
font-family: Arial, sans-serif;
} |
<?php
declare(strict_types=1);
namespace LooplineSystems\CloseIoApiWrapper\Model;
use LooplineSystems\CloseIoApiWrapper\Library\Exception\<API key>;
use LooplineSystems\CloseIoApiWrapper\Library\Exception\InvalidUrlException;
use LooplineSystems\CloseIoApiWrapper\Library\<API key>;
use LooplineSystems\CloseIoApiWrapper... |
package com.example.apahlavan1.top10downloader;
import android.app.Application;
import android.test.ApplicationTestCase;
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} |
#ifndef BLOWFISH_H
#define BLOWFISH_H
// ** NOTICE **
// The following resources are required by this module (or submodules):
#define BLOWFISHDATA 21000
// Since this is a reusable class, we don't have access to a resource file.
// 1) Make sure that the above defines are "rolled into" your projec... |
# Agenda
_A monthly event manager_
Check out the [DEMO](http://danielemeli.com/agenda)
## Setup
The project is already compiled in the /dist folder. By the way, it you want to compile it by yourself, here is the 3 steps.
- Install [Node.js](https:
- In the root folder run `npm i` then `gulp build`
- Run a php server... |
import pymongo
def connect ():
'''
Create the connection to the MongoDB and create 3 collections needed
'''
try:
# Create the connection to the local host
conn = pymongo.MongoClient()
print 'MongoDB Connection Successful'
except pymongo.errors.ConnectionFailure, err:
... |
/* Customized CSS for jQuery UI: simple info button and box. */
.ui-widget-content
{
font-family: Verdana,Arial,sans-serif;
font-size:11px;
}
/* trim space around info button */
.ui-button-text-only .ui-button-text
{ padding: 0px; }
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .u... |
<div class="commune_descr limited">
<p>
Bettainvillers est
un village
situé dans le département de Meurthe-et-Moselle en Lorraine. Elle totalisait 194 habitants en 2008.</p>
<p>Si vous pensez venir habiter à Bettainvillers, vous pourrez aisément trouver une maison à acheter. </p>
<p>Le nombre de logemen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.