code
stringlengths
4
1.01M
language
stringclasses
2 values
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateList extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('modelList', function(Blueprint $table) { $table->increments('id'); $table->strin...
Java
--- type: docs order: 10 title: "Transloadit" module: "@uppy/transloadit" permalink: docs/transloadit/ category: "File Processing" tagline: "manipulate and transcode uploaded files using the <a href='https://transloadit.com'>transloadit.com</a> service" --- The `@uppy/transloadit` plugin can be used to upload files to...
Java
module Tire module Model module Persistence # Provides infrastructure for storing records in _Elasticsearch_. # module Storage def self.included(base) base.class_eval do extend ClassMethods include InstanceMethods end end mo...
Java
require 'googleanalytics/mobile'
Java
class ItemsController < ApplicationController def create item = Item.new(item_params) item.user_id = @user.id if item.save render json: item, status: 201 else render json: item.errors, status: 422 end end def destroy item = find_item item.destroy head 204 end def index render json: @user...
Java
# Build bootstrap Go compiler
Java
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtNetwork module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid comm...
Java
using UnityEngine; using UnityEngine.UI; using System.Collections; public class Killer : MonoBehaviour { public Transform RobotPlayer; public GameObject Robot; public Text GameOVER; // Use this for initialization void Start() { RobotPlayer = GetComponent<Transform>(); } void Fix...
Java
--- title: Comment Section --- Sample comment section mblazonry can input to components. Elements can be added and removed easily. Base organism contains an icon+header section with text input and submit button.
Java
module S3Bear module ViewHelpers # def s3bear_bucket # S3Bear.config.bucket + '.s3.amazonaws.com/upload.html' # end end end ActionView::Base.send(:include, S3Bear::ViewHelpers)
Java
module Linter class Base def self.can_lint?(filename) self::FILE_REGEXP === filename end def initialize(hound_config:, build:, repository_owner_name:) @hound_config = hound_config @build = build @repository_owner_name = repository_owner_name end def file_review(commit_fil...
Java
<!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"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Lighthouse: lapack/...
Java
<?php /* * FluentDOM * * @link https://thomas.weinert.info/FluentDOM/ * @copyright Copyright 2009-2021 FluentDOM Contributors * @license http://www.opensource.org/licenses/mit-license.php The MIT License * */ namespace FluentDOM\Query { use FluentDOM\Query; use FluentDOM\TestCase; require_once __DIR__.'...
Java
(function() { 'use strict'; angular .module('app.match') .run(appRun); appRun.$inject = ['routerHelper']; /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [{ state: 'match', config: { url: '/ma...
Java
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-docu', templateUrl: './docu.component.html', styleUrls: ['./docu.component.scss'] }) export class DocuComponent implements OnInit { constructor() { } ngOnInit() { } }
Java
using System; using System.Linq; using Cresce.Datasources.Sql; using Cresce.Models; using NUnit.Framework; namespace Cresce.Business.Tests.Integration.Sql { [TestFixture] internal class InvoiceRepositoryTests : SqlTests { private SqlInvoiceRepository _repository; private Patient _patient; ...
Java
### 我的博客 地址:[http://BTeam.github.io](http://BTeam.github.io) ### 安装说明 1. fork库到自己的github 2. 修改名字为:`username.github.io` 3. clone库到本地,参考`_posts`中的目录结构自己创建适合自己的文章目录结构 4. 修改CNAME,或者删掉这个文件,使用默认域名 5. 修改`_config.yml`配置项 6. It's done! ### 鸣谢 本博客框架来自 [闫肃](http://yansu.org)
Java
class Portal::CollaborationPolicy < ApplicationPolicy end
Java
// // This is the main include file for the gcode library // It parses and executes G-code functions // // gcode.h // #ifndef GCODE_H #define GCODE_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdarg.h> #ifndef NRF51 // G-code debug print unsigned int debug(const char *f...
Java
import { DOCUMENT } from '@angular/common'; import { ApplicationRef, ComponentFactoryResolver, Inject, Injectable, Injector } from '@angular/core'; import { BaseService } from 'ngx-weui/core'; import { ToptipsComponent, ToptipsType } from './toptips.component'; @Injectable({ providedIn: 'root' }) export class ToptipsS...
Java
require 'test_helper' class QuestionSubjectiveTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
Java
var loadJsons = require('../lib/loadJsons'); describe("Get a recursive directory load of JSONs", function() { var data; beforeEach(function(done) { if(data) done(); else { loadJsons("./specs")(function(d) { data = d; done(); }); } }); it("Should return right number of j...
Java
--- layout: post status: publish published: true title: Moved to Jekyll blog engine date: 2015-10-20 22:31:25.000000000 +05:30 comments: [] --- I have been using wordpress since the time I started blogging. I decided to make a move to the Jekyll static templating engine after I came to know about its simplicity and ab...
Java
using System; using System.Diagnostics; using System.Text; namespace BgeniiusUniversity.Logging { public class Logger : ILogger { public void Information(string message) { Trace.TraceInformation(message); } public void Information(string fmt, params object[] vars)...
Java
--- layout: article title: "The Zen of Design Patterns (2nd Edition)" categories: programing tags: [java, reading] toc: false image: teaser: programing/2017-11-05-The-Zen-of-Design-Patterns-(2nd-Edition)/teaser.jpg date: 2017-11-05 --- 让设计模式成为一种习惯 --- ## 第一章 单一职责原则 缩略语: * SRP(Single Responsibility Principle,...
Java
<?php /** * Rule for required elements * * PHP version 5 * * LICENSE: * * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>, * Bertrand Mansion <golgote@mamasam.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
Java
class String def split_on_unescaped(str) self.split(/\s*(?<!\\)#{str}\s*/).map{|s| s.gsub(/\\(?=#{str})/, '') } end end
Java
import axios from 'axios'; import { updateRadius } from './radius-reducer'; import { AddBType } from './b-type-reducer'; // import { create as createUser } from './users'; // import history from '../history'; /* ------------------ ACTIONS --------------------- */ const ADD_B_TYPE = 'ADD_B_TYPE'; const ADD_LNG_...
Java
<h4>Lists</h4> <h5>Simple List</h5> <mdl-list> <mdl-list-item> <mdl-list-item-primary-content> Bryan Cranston </mdl-list-item-primary-content> </mdl-list-item> <mdl-list-item> <mdl-list-item-primary-content> Aaron Paul </mdl-list-item-primary-content> </mdl-list-item> <mdl-list-i...
Java
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
Java
module Softlayer module User class Customer module Access autoload :Authentication, 'softlayer/user/customer/access/authentication' end end end end
Java
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', 'skatejs'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('skatejs')); } else { var mod = { exports: {} }; ...
Java
using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIButton : MonoBehaviour { [SerializeField] private GameObject targetObject; [SerializeField] private string targetMessage; public Color highlightColor = Color.cyan; public void OnMouseOver() { Sprit...
Java
<footer class="main-footer"> <div class="pull-right hidden-xs"> </div> <strong>Orange TV.</strong> All rights reserved. </footer> <!-- Control Sidebar --> <!-- /.control-sidebar --> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> ...
Java
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
Java
# Velocity Library last modified: 5/1/2019 9:00 AM. A reusable library in Velocity for Cascade with examples. This is the code base the Upstate team use to implement our Brisk site. The other part of the Upstate library: https://github.com/drulykg/Cascade-CMS/tree/master/_brisk A note about filenames. All files who...
Java
using Newtonsoft.Json; using System.Collections.Generic; namespace EaToGliffy.Gliffy.Model { public class GliffyParentObject : GliffyObject { [JsonProperty(PropertyName = "children")] public List<GliffyObject> Children { get; set; } } }
Java
// Copyright (c) 2011-2015 The Cryptonote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonOutputStreamSerializer.h" #include <cassert> #include <stdexcept> #include "Common/StringTools.h" using Comm...
Java
# Be sure to restart your server when you modify this file. Refinery::Application.config.session_store :cookie_store, :key => '_skwarcan_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rak...
Java
/* * author: Lisa * Info: Base64 / UTF8 * 编码 & 解码 */ function base64Encode(input) { var keyStr = "ABCDEFGHIJKLMNOP" + "QRSTUVWXYZabcdef" + "ghijklmnopqrstuv" + "wxyz0123456789+/" + "="; var output = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; do { chr1 = input[i++]; chr2 =...
Java
<?php namespace ShinyDeploy\Domain\Database; use ShinyDeploy\Core\Crypto\PasswordCrypto; use ShinyDeploy\Core\Helper\StringHelper; use ShinyDeploy\Exceptions\DatabaseException; use ShinyDeploy\Exceptions\MissingDataException; use ShinyDeploy\Traits\CryptableDomain; class ApiKeys extends DatabaseDomain { use Crypt...
Java
require File.dirname(__FILE__) + '/../spec_helper' describe "Standard Tags" do dataset :users_and_pages, :file_not_found, :snippets it '<r:page> should allow access to the current page' do page(:home) page.should render('<r:page:title />').as('Home') page.should render(%{<r:find url="/radius"><r:title...
Java
module ParametresHelper end
Java
class CreateMappableMaps < ActiveRecord::Migration def change create_table :mappable_maps do |t| t.string :subject t.string :attr t.string :from t.string :to t.timestamps end end end
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=ASCII"> <link rel="stylesheet" href="style.css" type="text/css"> <title>MXML Only Components - Adobe Flex 2 Language Reference</title> </...
Java
LinkLuaModifier("modifier_cleric_berserk", "heroes/cleric/cleric_modifiers.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_cleric_berserk_target", "heroes/cleric/cleric_modifiers.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_cleric_berserk_no_order", "heroes/cleric/cleric_modifiers.lua", LUA_MODIF...
Java
export function mockGlobalFile() { // @ts-ignore global.File = class MockFile { name: string; size: number; type: string; parts: (string | Blob | ArrayBuffer | ArrayBufferView)[]; properties?: FilePropertyBag; lastModified: number; constructor( ...
Java
package net.talayhan.android.vibeproject.Controller; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.Bundle; import android.provid...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Marionette Components</title> </head> <body> Marionette View Test <script src='../build/view.js'></script> </body> </html>
Java
--- title: 分享-认同 的魅力 tags: ---
Java
<?php namespace Oro\Bundle\ApiBundle\Processor\Shared\Rest; use Oro\Bundle\ApiBundle\Metadata\RouteLinkMetadata; use Oro\Bundle\ApiBundle\Processor\Context; use Oro\Bundle\ApiBundle\Provider\ResourcesProvider; use Oro\Bundle\ApiBundle\Request\AbstractDocumentBuilder as ApiDoc; use Oro\Bundle\ApiBundle\Request\ApiActi...
Java
Başardım :)
Java
const path = require('path'), fs = require('fs'), glob = require('glob'), pug = require('pug'), stylus = require('stylus'), nib = require('nib'), autoprefixer = require('autoprefixer-stylus'), {rollup} = require('rollup'), rollupPluginPug = require('rollup-plugin-pug'), rollupPluginResolve = require...
Java
package org.xcolab.client.contest.pojo; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import org.xcolab.client.contest.pojo.tables.pojos.ContestCollectionCard; @JsonDeserialize(as = ContestCollectionCard.class) public interface IContestCollectionCard { Long getId(); void setId(Long id);...
Java
Style ===== **Author**: gejiawen **Email**: gejiawen@baidu.com **Desp**: > 将会阐述一些基本的代码样式、文件命名、变量命名、代码组织等规范
Java
<!DOCTYPE html> <html dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Text Editor</title> <link href="favicon.ico" rel="shortcut icon"> </head> <body spellcheck="false"> <p style=" background: #ffa; border: 1px dashed; ...
Java
module ActiveWarehouse #:nodoc: # Class that supports prejoining a fact table with dimensions. This is useful if you need # to list facts along with some or all of their detail information. class PrejoinFact # The fact class that this engine instance is connected to attr_accessor :fact_class ...
Java
from array import array import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.metrics import classification_report, roc_auc_score, roc_curve from sklearn import tree import cPickle ...
Java
--- layout: default og_type: article --- <article class="post grid u-pad-both pjax-animate"> <section class="grid__row"> <span class="post__date typography__mono">{{ page.date | date: "%-d %B %Y" }}</span> {{ content }} </section> </article> {% if page.comments != Nil %} {% assign showComments = page.comments ...
Java
package utils; import java.io.*; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; ...
Java
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Java
//--------------------------------------------------------------------------- // // <copyright file="ByteAnimationUsingKeyFrames.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. // </copyright> // // This file was generated, please do not edit it directly. // // Please see http:...
Java
'use strict'; const Hoek = require('hoek'); exports.plugin = { register: async (plugin, options) => { plugin.ext('onPreResponse', (request, h) => { try { var internals = { devEnv: (process.env.NODE_ENV === 'development'), meta: options.meta, credentials: request.auth.isAuthenticated ? request...
Java
'use strict'; //Customers service used to communicate Customers REST endpoints angular.module('customers') .factory('Customers', ['$resource', function($resource) { return $resource('customers/:customerId', { customerId: '@_id' }, { update: { method: 'PUT' } }); } ]) .factory('Notify', ['$rootScope'...
Java
#pragma once char separator; #ifdef _WIN32 #define DIR_SEPARATOR '\\' #else #define DIR_SEPARATOR '/' #endif #include <string> #include <algorithm> using namespace std; class PathUtil{ public: /*A small function to extract FileName from File Path C:/File.exe -> File.exe */ string static extractFileName(string Fil...
Java
/* some devices call home before accepting a wifi access point. Spoof those responses. */ var path = require('path'); exports.load = function(server, boatData, settings) { var endpointMap = [ {'route': '/kindle-wifi/wifiredirect.html', 'responseFile': 'kindle.html'} , {'route': '/kindle-wifi/wi...
Java
# twitterStreamerMap To start the project ``` git clone https://github.com/klosorio10/ExamenFinalWebDev.git cd ExamenFinalWebdev cd ExamenFinal ``` A simple boilerplate for a Meteor 1.4 Twitter streamer application with React. Uses the twitter [npm](https://www.npmjs.com/package/twitter) module for connecting to ...
Java
USE [VipunenTK] GO /****** Object: Table [dbo].[d_erikoislaakarikoulutus] Script Date: 14.9.2017 13:55:52 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[d_erikoislaakarikoulutus]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[d...
Java
# diofa-vendeghaz-orfu www.diofa-vendeghaz-orfu.hu
Java
# Basics Toast is a Rack application that hooks into Ruby on Rails providing a REST interface for ActiveRecord models. For each model a HTTP interface can be configured. Using Toast's configuration DSL one declares which of its attributes are exposed, which are readable and/or writable using white lists. Web...
Java
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using TestProjectFromCsv.ValidationSteps; namespace TestProjectFromCsv { public class Program { public static void Main(string[] args) {...
Java
class AlbumsController < ApplicationController respond_to :html, :xml, :json attr_reader :current_album_type, :author_name load_and_authorize_resource def index @albums = Album.by_type params[:album_type] respond_with(@albums) end def show get_current_album_type get_author_name if @cur...
Java
// フォーマット var koyomi = require('../..').create(); var format = koyomi.format.bind(koyomi); var eq = require('assert').equal; koyomi.startMonth = 1; // 序数 (CC:経過日数) eq(format(20150101, 'CC'), '1'); eq(format(20150101, 'CC>0'), '1st'); eq(format(20150102, 'CC>0'), '2nd'); eq(format(20150103, 'CC>0'), '3rd');...
Java
# ImageHelper [![Version](https://img.shields.io/cocoapods/v/AFImageHelper.svg?style=flat)](http://cocoapods.org/pods/AFImageHelper) [![License](https://img.shields.io/cocoapods/l/AFImageHelper.svg?style=flat)](http://cocoapods.org/pods/AFImageHelper) [![Platform](https://img.shields.io/cocoapods/p/AFImageHelper.svg?s...
Java
import { apiGet, apiPut, apiDelete } from 'utils/api' import { flashError, flashSuccess } from 'utils/flash' import { takeLatest, takeEvery, call, put, select } from 'redux-saga/effects' import { filter, find, without, omit } from 'lodash' import { filesUrlSelector } from 'ducks/app' import { makeUploadsSelector } fro...
Java
using ShiftCaptain.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Security.Principal; using System.Web; using System.Web.Security; namespace ShiftCaptain.Infrastructure { public static class Authentication { public...
Java
# Angular.js Enterprise Edition Lazy Load Boilerplate > **TODO:** review and update This boilerplate (seed project, starting project) helps you build large scale [Angular.js](https://angularjs.org/) applications with [Require.js](http://requirejs.org/) -- <!-- toc --> * [Overview](#overview) * [Installation Guide]...
Java
;;; keydown-counter.asm -- Count keydown form P3.2 and outputs in P1 using LED ;; Author: Zeno Zeng <zenoofzeng@gmail.com> ;; Time-stamp: <2014-12-25 21:56:36 Zeno Zeng> ;;; Commentary: ;; Count keydown from P3.2 then ouputs using 8bit P1 (in LED) ;;; Code: ORG 0000H AJMP INIT ORG 0003H AJ...
Java
var self = module.exports; self = (function(){ self.debug = true; self.prefix = '/kaskade'; self.ssl = false; /*{ key: {PEM}, cert: {PEM} }*/ self.port = 80; self.host = '0.0.0.0'; self.onConnectionClose = new Function(); self.redis = false; ...
Java
# encoding: utf-8 require_relative "qipowl/version" require_relative "qipowl/constants" require_relative "qipowl/core/mapper" require_relative "qipowl/core/ruler" require_relative "qipowl/core/bowler" require_relative "qipowl/bowlers/html" require_relative "qipowl/bowlers/i_sp_ru" #require_relative "qipowl/bowlers/c...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Retina</title> <link rel="stylesheet" href="http://pic.lvmama.com/min/index.php?f=/styles/v6/header_new.css"> <link rel="stylesheet" href="css/monokai-sublime.css"> <link rel="stylesheet" href="css/docs.css"> <link rel="styles...
Java
// // AppDelegate.h // testspinner // // Created by Christian Menschel on 29/09/15. // Copyright © 2015 TAPWORK. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
Java
<html><body> <h4>Windows 10 x64 (19041.264)</h4><br> <h2>_PPM_IDLE_STATES</h2> <font face="arial"> +0x000 InterfaceVersion : UChar<br> +0x001 IdleOverride : UChar<br> +0x002 EstimateIdleDuration : UChar<br> +0x003 ExitLatencyTraceEnabled : UChar<br> +0x004 NonInterruptibleTransition : UChar<br>...
Java
# coding=utf-8 from setuptools import setup from Cython.Build import cythonize setup( name="cyfib", ext_modules=cythonize('cyfib.pyx', compiler_directives={'embedsignature': True}), )
Java
package org.eggermont.hm.cluster; import cern.colt.matrix.DoubleFactory1D; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; public class ClusterFactory { private final DoubleMatrix2D x; private final DoubleMatrix1D blocks; private final DoubleMatrix1D vMin; private f...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading; using SharpDeflate; using vtortola.WebSockets; using vtortola.WebSockets.Rfc6455; namespace RohBot { public sealed class WebSocketServer<TClient> : IDisposable where TClient : WebSocketClient, new(...
Java
/* eslint-disable no-undef */ const cukeBtnSubmit = '//button[@data-cuke="save-item"]'; const cukeInpSize = '//input[@data-cuke="size"]'; const cukeInpTitle = '//input[@data-cuke="title"]'; const cukeInpContent = '//textarea[@data-cuke="content"]'; const cukeSize = '//x-cuke[@id="size"]'; const cukeTitle = '//x-cu...
Java
<!DOCTYPE html> <?php include("initial-header.php"); include("config.php"); include('swift/lib/swift_required.php'); $error = ""; if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); ...
Java
package net.spy.digg.parsers; import java.io.IOException; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import net.spy.digg.Story; /** * Parse a stories response. */ public class StoriesParser extends TimePagedItemParser<Story> { @Override protected String getRootEl...
Java
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("Op...
Java
require "../test_helper" require "rorschart/data/rorschart_data" module Rorschart class TestPivotSeries < Minitest::Unit::TestCase def test_pivot # Given data = [ {"collector_tstamp"=> Date.parse("2013-11-02"), "series" => "A", "count"=> 1}, {"collect...
Java
/* * The MIT License (MIT): http://opensource.org/licenses/mit-license.php * * Copyright (c) 2013-2014, Chris Behrens * * 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 restrict...
Java
package de.thomas.dreja.ec.musicquiz.gui.dialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import de.thomas.dreja.ec.musicquiz.R; import de.thomas.dreja.ec.musicqu...
Java
/* * Panel */ .panel { margin: 5rem auto; max-width: 64rem; background: $white; border: 0.4rem solid $black; box-shadow: 5px 5px 0px $black; &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } .panel-header { padding: 2rem; background: $secondary; border-bottom: 0.4rem solid $bl...
Java
angular-multi-select-tree ============================= A native Angular multi select tree. No JQuery. ![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=<badge_key>) #### Demo Page: [Demo] (http://htmlpreview.github.io/?https://github.com/kjvelarde/angular-multiselectsearchtree/b...
Java
// // DNTag.h // DNTagView // // Created by dawnnnnn on 16/9/1. // Copyright © 2016年 dawnnnnn. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface DNTag : NSObject @property (nonatomic, copy) NSString *text; @property (nonatomic, copy) NSAttribute...
Java
--- seo: title: Scheduling Parameters description: Scheduling an email with SMTP keywords: SMTP, send email, scheduling title: Scheduling Parameters weight: 10 layout: page navigation: show: true --- With scheduling, you can send large volumes of email in queued batches or target individual recipients by speci...
Java
#pragma once #include "FtInclude.h" #include <string> namespace ft { class Library { public: Library(); ~Library(); FT_Library library = nullptr; Library(const Library&) = delete; Library(Library&&) = delete; Library& operator = (const Library&) = delete; Library& operat...
Java
package com.github.fhtw.swp.tutorium.guice; import com.github.fhtw.swp.tutorium.composite.Leaf; import com.github.fhtw.swp.tutorium.composite.LeafTypeProvider; import com.github.fhtw.swp.tutorium.reflection.AnnotatedTypeFinder; import org.reflections.Configuration; import javax.inject.Inject; import java.util.Set; p...
Java
#!/bin/sh tokenizer() { STRNG="${1}" DELIM="${2}" while : do NEW="${STRNG%${DELIM}}" while case "$NEW" in *${DELIM}*);; *)break;; esac do NEW="${NEW%${DELIM}*}" done TOKEN="${NEW%${DELIM}...
Java