code
stringlengths
4
1.01M
// MIT License // Copyright (c) 2017 Simon Pettersson // 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...
/* MicroJava Parser Semantic Tester * * Test only semantics. The grammar in all tests are correct. */ package MicroJava; import java.io.*; public class TestParserSemantic { public static void main(String args[]) { if (args.length == 0) { executeTests(); } else { for (in...
.typeahead-container { width: 240px; position: relative; margin-top: 10px; margin-left: 10px; } .typeahead-container.show .dropdown-menu { display: block; } .dropdown-menu { display: none; }
import os #Decoration Starts print """ +=============================================================+ || Privilege Escalation Exploit || || +===================================================+ || || | _ _ _ ____ _ __ ____ ___ _____ | || || | | | | | / \ / ___| |/ / ...
# pi ### Simple implementation of Pi calculation ### Calculates Pi by the infinite series: ``` 4 * Pi = 1 - 1/3 + 1/5 - 1/7 + ... ``` For simplicity of implementation, I have converted this to the equivalent formulation: ``` Pi = 4 - 4/3 + 4/5 - 4/7 + ... ``` The code algorithm is implemented in iterative st...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqoban: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
package fi.helsinki.cs.okkopa.main.stage; import fi.helsinki.cs.okkopa.mail.read.EmailRead; import fi.helsinki.cs.okkopa.main.ExceptionLogger; import java.io.IOException; import java.io.InputStream; import java.util.List; import javax.mail.Message; import javax.mail.MessagingException; import org.apache.commons.io.IOU...
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
import codecs unicode_string = "Hello Python 3 String" bytes_object = b"Hello Python 3 Bytes" print(unicode_string, type(unicode_string)) print(bytes_object, type(bytes_object)) #decode to unicode_string ux = str(object=bytes_object, encoding="utf-8", errors="strict") print(ux, type(ux)) ux = bytes_object.dec...
package simple.practice; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import simple.practice.service.GreetingService; @Component public class Greeting { @Autowired private GreetingService greetingService; public String printGreeting(String name...
"""Class to perform random over-sampling.""" # Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com> # Christos Aridas # License: MIT from collections.abc import Mapping from numbers import Real import numpy as np from scipy import sparse from sklearn.utils import check_array, check_random_state from sklear...
StockPredict ============ Predict stock market prices based on discovered patterns
# Source Generated with Decompyle++ # File: session_recording.pyc (Python 2.5) from __future__ import absolute_import from pushbase.session_recording_component import FixedLengthSessionRecordingComponent class SessionRecordingComponent(FixedLengthSessionRecordingComponent): def __init__(self, *a, **k): ...
# Generated by Django 2.1 on 2018-08-26 00:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('model_filefields_example', '0001_initial'), ] operations = [ migrations.AlterField( model_name='book', name='cover', ...
\begin{figure}[H] \centering \includegraphics[width=6in]{figs/run_29/run_29_ctke_vs_r_mesh_scatter} \caption{Scatter plot of turbulent kinetic energy vs radius at $z/c$=7.75, $V_{free}$=31.26, station3} \label{fig:run_29_ctke_vs_r_mesh_scatter} \end{figure}
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensio...
<?php /* *--------------------------------------------------------------- * APPLICATION ENVIRONMENT *--------------------------------------------------------------- * * You can load different configurations depending on your * current environment. Setting the environment also influences * things like logging an...
require 'active_service/model/attributes/nested_attributes' require 'active_service/model/attributes/attribute_map' require 'active_service/model/attributes/serializer' module ActiveService module Model # This module handles attribute methods not provided by ActiveAttr module Attributes extend ActiveSu...
require 'corelib/numeric' require 'corelib/rational/base' class ::Rational < ::Numeric def self.reduce(num, den) num = num.to_i den = den.to_i if den == 0 ::Kernel.raise ::ZeroDivisionError, 'divided by 0' elsif den < 0 num = -num den = -den elsif den == 1 return new(num,...
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using Anarian.Interfaces; using Anarian.Events; namespace Anarian.DataStructures.Input { public class Controller : IUpdatable { PlayerIndex...
package api2go import ( "context" "time" ) // APIContextAllocatorFunc to allow custom context implementations type APIContextAllocatorFunc func(*API) APIContexter // APIContexter embedding context.Context and requesting two helper functions type APIContexter interface { context.Context Set(key string, value inte...
/************************** GENERAL ***************************/ body { background-color: #151515; color: #999; } a { text-decoration: none; color: #4db8ff; } #wrapper { max-width: 940px; margin: 0 auto; padding: 0 5%; } img { max-width: 100%; } h3{ margin: 0 0 1em 0; } /**********************...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fcsl-pcm: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>relation-algebra: 4 m 10 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
<!-- HTML header for doxygen 1.8.6--> <!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" conte...
/* HEZahran CSS v1.0 ---------------------------------------------------------- Copyright (c) 2014, HEZahran.com. All rights reserved. Coded and Authored with all the love in the world. Coder: Hashem Zahran @antikano || @hezahran ------------------------------------------------------------*/ /*-- custom fonts ...
Network module for Go (UDP broadcast only) ========================================== See [`main.go`](main.go) for usage example. The code is runnable with just `go run main.go` Features -------- Channel-in/channel-out pairs of (almost) any custom or built-in datatype can be supplied to a pair of transmitter/receiv...
// // ISNetworkingResponse.h // InventorySystemForiPhone // // Created by yangboshan on 16/4/28. // Copyright © 2016年 yangboshan. All rights reserved. // #import <Foundation/Foundation.h> #import "ISNetworkingConfiguration.h" @interface ISNetworkingResponse : NSObject @property (nonatomic, assign, readonly) ISUR...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE typedef int (WINAPIV *PSYM_ENUMERATESYMBOLS_CALLBACK)(_SYMBOL_INFO *, unsigned int, void *); END_ATF_NAMESPACE
/* * Copyright (C) 2013 Joseph Mansfield * * 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, pu...
# Entity Framwork Guidelines Entity Framework (EF) is the recommended ORM to use these days. There are other options, but most documentation (read: stackoverflow posts) use EF. In EF, you make C# objects to represent your table, use special attributes or naming conventions to tell the EF database generator what table...
Set-StrictMode -Version 2 function Test-SqlServer { <# .SYNOPSIS Tests if a SQL Server exists and can be connected to. Optonally checks for a specific database or table. .PARAMETER Server The SQL Server to test .PARAMETER Database The database to test exists on the SQL Server ...
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>bartpy.node &mdash; BartPy 0.0.1 documentati...
<?php namespace moonland\phpexcel; use yii\helpers\ArrayHelper; use yii\base\InvalidConfigException; use yii\base\InvalidParamException; use yii\i18n\Formatter; use PhpOffice\PhpSpreadsheet\Spreadsheet; /** * Excel Widget for generate Excel File or for load Excel File. * * Usage * ----- * * Exporting data into...
module Text class Sorter def self.sort(text_components) components = text_components.clone components = components.shuffle nil_priorities, components = components.partition {|c| c.priority.nil? } components = components.sort_by(&:priority_index) components = components.reverse ...
<?php require_once('../../global_functions.php'); require_once('../../connections/parameters.php'); try { if (!isset($_SESSION)) { session_start(); } $s2_response = array(); $db = new dbWrapper_v3($hostname_gds_site, $username_gds_site, $password_gds_site, $database_gds_site, true); if (e...
module Prawn module Charts class Bar < Base attr_accessor :ratio def initialize pdf, opts = {} super pdf, opts @ratio = opts[:ratio] || 0.75 end def plot_values return if series.nil? series.each_with_index do |bar,index| point_x = first_x_point i...
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="twitter:card" content="summary" /> <meta name="twitter:creator" content="@韩雨"/> ...
<!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...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paco: 3 m 36 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="st...
package com.swfarm.biz.product.dao.impl; import com.swfarm.biz.product.bo.SkuSaleMapping; import com.swfarm.biz.product.dao.SkuSaleMappingDao; import com.swfarm.pub.framework.dao.GenericDaoHibernateImpl; public class SkuSaleMappingDaoImpl extends GenericDaoHibernateImpl<SkuSaleMapping, Long> implements SkuSaleM...
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; class ProfileFormType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('name'); } public function getParent...
using Nethereum.Generators.Model; using Nethereum.Generators.Net; namespace Nethereum.Generator.Console.Models { public class ContractDefinition { public string ContractName { get; set; } public ContractABI Abi { get; set; } public string Bytecode { get; set; } public Contra...
'use strict'; module.exports = require('./toPairsIn'); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2VudHJpZXNJbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCxHQUFpQixRQUFRLGFBQVIsQ0FBakIiLCJmaWxlIjoiZW50cmllc0luLmpzIiwic291cmNlc0...
""" -*- coding: utf-8 -*- """ from python2awscli import bin_aws from python2awscli.error import AWSNotFound, ParseError, AWSDuplicate from python2awscli import must class BaseSecurityGroup(object): def __init__(self, name, region, vpc, description, inbound=None, outbound=None): """ :param name: S...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./533b52ee4ec32c5f9daf62ace85296f6775b00542726cad61b6612cd9767a7a6.html">Teleport</a> <hr> ...
# # Copyright (c) Microsoft Corporation. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR AN...
/* The MIT License (MIT) Copyright (c) 2014 Manni Wood 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, pu...
package com.fqc.jdk8; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; public class test06 { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5}; ArrayList<Integer> list = Arrays.stream(arr).collec...
// Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. package mafmt import ( nmafmt "github.com/multiformats/go-multiaddr-fmt" ) // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var IP = nmafmt.IP // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var TCP = nmafm...
# gofmt package An [Atom](http://atom.io) package for running `gofmt` on your buffer. Hit Ctrl-Alt-G to run it on the current file, or use command `gofmt:gofmt`, or remap to whatever keybinding you like. TODO: * Error highlighting * Flexible configuration ## Licensing and Copyright Copyright 2014 Christopher Swe...
USE [ANTERO] GO /****** Object: View [dw].[v_koski_lukio_opiskelijat_netto] Script Date: 1.2.2021 14:00:39 ******/ DROP VIEW IF EXISTS [dw].[v_koski_lukio_opiskelijat_netto] GO /****** Object: View [dw].[v_koski_lukio_opiskelijat_netto] Script Date: 1.2.2021 14:00:39 ******/ SET ANSI_NULLS ON GO SET QUOTED_I...
var chalk = require('chalk'); var safeStringify = require('fast-safe-stringify') function handleErrorObject(key, value) { if (value instanceof Error) { return Object.getOwnPropertyNames(value).reduce(function(error, key) { error[key] = value[key] return error }, {}) } return value } function...
#pragma once #include "toolscollector.h" #include "widgetsettings.h" #include "toolbase.h" namespace Engine { namespace Tools { struct GuiEditor : public Tool<GuiEditor> { SERIALIZABLEUNIT(GuiEditor); GuiEditor(ImRoot &root); virtual Threading::Task<bool> init() override; vi...
<?php if (isset($consumers) && is_array($consumers)){ ?> <?php $this->load->helper('security'); ?> <tbody> <?php foreach($consumers as $consumer){ ?> <tr> <td> <a data-toggle="modal" data-target="#dynamicModal" href="<?php echo site_url("consumers/edit/$consumer->id");?>"><span ...
package rholang.parsing.delimc.Absyn; // Java Package generated by the BNF Converter. public class TType2 extends TType { public final Type type_1, type_2; public TType2(Type p1, Type p2) { type_1 = p1; type_2 = p2; } public <R,A> R accept(rholang.parsing.delimc.Absyn.TType.Visitor<R,A> v, A arg) { return v.vis...
require 'rubygems' require 'test/unit' require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'sinatra' require 'sinatra/path' class Test::Unit::TestCase end
"use strict" const createTileGridConverter = require(`./createTileGridConverter`) const colorDepth = require(`./colorDepth`) module.exports = ({palette, images}) => { const converter = createTileGridConverter({ tileWidth: 7, tileHeight: 9, columns: 19, tileCount: 95, raw32bitData: colorDepth.con...
import * as EventLogger from './' const log = new EventLogger() log.info('Basic information') log.information('Basic information') log.warning('Watch out!') log.warn('Watch out!') log.error('Something went wrong.') log.auditFailure('Audit Failure') log.auditSuccess('Audit Success') // Configurations new EventLogger(...
# cactuscon2015 Badge design for CactusCon 2015
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_imdbc_session'
<?xml version="1.0" encoding="iso-8859-1"?> <!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"> <head> <title>Class: HTML::Sanitizer</title> <meta http-equiv="Content...
# -*- coding: utf-8 -*- """urls.py: messages extends""" from django.conf.urls import url from messages_extends.views import message_mark_all_read, message_mark_read urlpatterns = [ url(r'^mark_read/(?P<message_id>\d+)/$', message_mark_read, name='message_mark_read'), url(r'^mark_read/all/$', message_mark_all_r...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function(){ var oldAction = $('#comment-form').attr("action"); hljs.initHighlightingOnLoad(); $('#coolness div').hover(function(){ $('#coolness .second').fadeOut(50...
#include "Sound.h" #include <Windows.h> #include "DigitalGraffiti.h" Sound::Sound(void) { // Find music and sound files std::string exeDir = DigitalGraffiti::getExeDirectory(); DigitalGraffiti::getFileList(exeDir + "\\sound\\instructions\\*", instructionsMusicList); DigitalGraffiti::getFileList(exeDir + "...
using System.Collections.ObjectModel; using AppStudio.Common; using AppStudio.Common.Navigation; using Windows.UI.Xaml; namespace WindowsAppStudio.Navigation { public abstract class NavigationNode : ObservableBase { private bool _isSelected; public string Title { get; set; } ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>canon-bdds: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
# AndSpecification(*T*) Constructor Additional header content Initializes a new instance of the <a href="T_iTin_Export_ComponentModel_Patterns_AndSpecification_1">AndSpecification(T)</a> class **Namespace:**&nbsp;<a href="N_iTin_Export_ComponentModel_Patterns">iTin.Export.ComponentModel.Patterns</a><br />**Assembly...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <CRecallRequest.hpp> START_ATF_NAMESPACE namespace Info { using CRecallRequestctor_CRecallRequest2_ptr = void (WINAPIV*)(struct CRecal...
class DiscountTechnicalTypesController < ApplicationController before_action :set_discount_technical_type, only: [:show, :edit, :update, :destroy] # GET /discount_technical_types # GET /discount_technical_types.json def index @discount_technical_types = DiscountTechnicalType.all end # GET /discount_te...
using System.Net.Sockets; namespace VidereLib.EventArgs { /// <summary> /// EventArgs for the OnClientConnected event. /// </summary> public class OnClientConnectedEventArgs : System.EventArgs { /// <summary> /// The connected client. /// </summary> public TcpClient...
require 'rubygems' require 'net/dns' module Reedland module Command class Host def self.run(address) regular = Net::DNS::Resolver.start address.join(" ") mx = Net::DNS::Resolver.new.search(address.join(" "), Net::DNS::MX) return "#{regular}\n#{mx}" end end end end
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> <title>onSupportNavigateUp</title> </head><body><link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script> <script type="text/javascript" src="../.....
# Set up gems listed in the Gemfile. # See: http://gembundler.com/bundler_setup.html # http://stackoverflow.com/questions/7243486/why-do-you-need-require-bundler-setup ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) # Require ge...
#!/bin/bash STEP=$1 TEST=$2 case "$STEP" in install) echo "Installing..." if [ -d vendor ]; then chmod 777 -R vendor rm -r vendor fi COMPOSER=dev.json composer install ;; script) echo "Run tests..."; if [ ! -d vendor ]; then ...
(function(Object) { Object.Model.Background = Object.Model.PresentationObject.extend({ "initialize" : function() { Object.Model.PresentationObject.prototype.initialize.call(this); } },{ "type" : "Background", "attributes" : _.defaults({ "skybox" : { "type" : "res-texture", "name" : "...
<div class="mini-graph clearfix"> <div class="nav"><nav><a class="breadcrumb" href="/">Offices</a> > <span>{{office}}</span></nav></div> <h3>NYC Campaign Contributions: {{office}}</h3> <hr> <ul> <li ng-click="byTotal($event)" class="chart-option active-option">Total Funds</li> <li ng-cli...
<?php namespace HsBundle; use HsBundle\DependencyInjection\Compiler\ReportsCompilerPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; class HsBundle extends Bundle { public function build(ContainerBuilder $container) { parent::build($cont...
<!DOCTYPE html> <head> <meta charset="utf-8"> <link href="../style/campfire.css" rel="stylesheet"> <link href="../style/bootstrap/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="chart" id="wall"></div> </body> <script src="../script/campfire-wall.js" charset="utf-8"></script> </html>
import './Modal.scss' import pugTpl from './Modal.pug' import mixin from '../../mixin' import alert from '@vue2do/component/module/Modal/alert' import confirm from '@vue2do/component/module/Modal/confirm' export default { name: 'PageCompModal', template: pugTpl(), mixins: [mixin], data() { return { ...
package com.igonics.transformers.simple; import java.io.PrintStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; imp...
require 'test_helper' module ContentControl class UploadsHelperTest < ActionView::TestCase end end
/* * JDIVisitor * Copyright (C) 2014 Adrian Herrera * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This...
# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # 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, ...
<div> <h1 class="page-header">项目详情</h1> <form class="form-horizontal" name="project" role="form"> <div class="form-group"> <label for="projectName" class="col-sm-2 control-label">选择项目</label> <div class="col-sm-5"> <select class="form-control" ng-model="projectName" name="projectName" id="p...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cShART { public class ARTFlystick : ARTObject { private bool visible; private int numberOfButtons; private int numberOfControllers; ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>PruneCluster - Realworld 50k</title> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" /> <link rel="stylesheet" href="https://cdnj...
using System; using System.Text.RegularExpressions; namespace _07_Hideout { class Hideout { static void Main() { string input = Console.ReadLine(); while (true) { string[] parameters = Console.ReadLine().Split(); string key ...
using System.ComponentModel.DataAnnotations; namespace JezekT.AspNetCore.IdentityServer4.WebApp.Models.AccountSettingsViewModels { public class ConfirmEmailViewModel { [Display(Name = "Email", ResourceType = typeof(Resources.Models.AccountSettingsViewModels.ConfirmEmailViewModel))] public stri...
require "rails_helper" describe "announcements/_public_announcement" do it "renders nothing when announcements are not visible" do allow(view).to receive(:announcement_visible?).and_return(false) render expect(rendered).to eq "" end it "renders the announcement when announcements are visible" do ...
var a;function SongView(){ListView.call(this);this.name="SongView";this.allDataLoaded=this.songsLoaded=false;this.sortVariable="bezeichnung"}Temp.prototype=ListView.prototype;SongView.prototype=new Temp;songView=new SongView;a=SongView.prototype; a.getData=function(d){if(d){var c=[];allSongs!=null&&$.each(churchcore_so...
"use strict"; var i = 180; //3分固定 function count(){ if(i <= 0){ document.getElementById("output").innerHTML = "完成!"; }else{ document.getElementById("output").innerHTML = i + "s"; } i -= 1; } window.onload = function(){ setInterval("count()", 1000); };
class IE @private def ie_config @client = Selenium::WebDriver::Remote::Http::Default.new @client.read_timeout = 120 @caps = Selenium::WebDriver::Remote::Capabilities.ie('ie.ensureCleanSession' => true, :javascript_enabled => true, ...
#include <fstream> #include <iostream> #include <vector> int main(int argc, char **argv) { std::vector<std::string> args(argv, argv + argc); std::ofstream tty; tty.open("/dev/tty"); if (args.size() <= 1 || (args.size() & 2) == 1) { std::cerr << "usage: maplabel [devlocal remote]... remotedir\n"; retur...
package com.catsprogrammer.catsfourthv; /** * Created by C on 2016-09-14. */ public class MatrixCalculator { public static float[] getRotationMatrixFromOrientation(float[] o) { float[] xM = new float[9]; float[] yM = new float[9]; float[] zM = new float[9]; float sinX = (float)...
default_app_config = "gallery.apps.GalleryConfig"
import { browser, by, element } from 'protractor'; export class Angular2Page { navigateTo() { return browser.get('/'); } getParagraphText() { return element(by.css('app-root h1')).getText(); } }
<!-- START LEFT SIDEBAR NAV--> <?php $role = ""; switch($this->session->userdata('ROLE_ID')){ case 1: $role = "Administrator"; break; case 2: $role = "Adopting Parent"; break; case 3: $role = "Biological Parent/Guardian"; break; } ?> <aside id="left-sideb...
package es.sandbox.ui.messages.argument; import es.sandbox.ui.messages.resolver.MessageResolver; import es.sandbox.ui.messages.resolver.Resolvable; import java.util.ArrayList; import java.util.List; class LinkArgument implements Link, Resolvable { private static final String LINK_FORMAT = "<a href=\"%s\" title...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os, sys import tempfile from winsys._compat import unittest import uuid import win32file from winsys.tests.test_fs import utils from winsys import fs class TestFS (unittest.TestCase): filenames = ["%d" % i for i in range (5)] def setUp (se...