code
stringlengths
4
1.01M
language
stringclasses
2 values
package appalounge; import org.json.JSONArray; import org.json.JSONObject; import resources.Constructors; import resources.exceptions.ApiException; import resources.exceptions.AuthRequiredException; import resources.exceptions.BadRequestException; import resources.exceptions.DataNotSetException; import resources.infra...
Java
package com.carlisle.incubators.PopupWindow; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import com.carlisle.incubators.R; /** * Created by chengxin on 11/24/16. */ public class PopupWindowActivity extends AppCompa...
Java
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Serenghetto::Application.initialize!
Java
# Phusion Passenger - https://www.phusionpassenger.com/ # Copyright (c) 2010 Phusion Holding B.V. # # "Passenger", "Phusion Passenger" and "Union Station" are registered # trademarks of Phusion Holding B.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and ass...
Java
// ReSharper disable RedundantNameQualifier // ReSharper disable InconsistentNaming namespace Gu.Analyzers.Benchmarks.Benchmarks { public class GU0050IgnoreEventsWhenSerializingBenchmarks { private static readonly Gu.Roslyn.Asserts.Benchmark Benchmark = Gu.Roslyn.Asserts.Benchmark.Create(Code.AnalyzersP...
Java
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002,2008 Oracle. All rights reserved. * * $Id: EntityConverter.java,v 1.11 2008/01/07 14:28:58 cwl Exp $ */ package com.sleepycat.persist.evolve; import java.util.Collections; import java.util.HashSet; import java.util.Set; /** * A...
Java
/* * Popular Repositories * Copyright (c) 2014 Alberto Congiu (@4lbertoC) * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; var React = require('react'); /** * Like Array.map(), but on an object's own properties. ...
Java
# Arduino-Protothread-Library
Java
<?php namespace Sitpac\ExtranetBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * DisponibilidadVehi * * @ORM\Table(name="disponibilidad_vehi") * @ORM\Entity */ class DisponibilidadVehi { /** * @var integer * * @ORM\Column(name="id_disp_vehi", type="integer", nullable=false) * @ORM\Id...
Java
<!DOCTYPE html><meta charset=utf-8><title>WICS</title><script type="application/its+xml"> <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> <its:localeFilterRule selector="//@*" localeFilterType="include" localeFilterList="*"/> <its:dirRule dir="l...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ott: 31 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesh...
Java
module ResetConfigHelper def self.included(base) base.instance_eval do around(:each) do |example| begin Capybara::AsyncRunner.config.commands_directory = ROOT.join('spec/support/js') example.run ensure Capybara::AsyncRunner.config.reset! end end ...
Java
import assert from 'assert' import {fixCase} from '../../src/lib/words/case' import Locale from '../../src/locale/locale' describe('Corrects accidental uPPERCASE\n', () => { let testCase = { 'Hey, JEnnifer!': 'Hey, Jennifer!', 'CMSko': 'CMSko', 'FPs': 'FPs', 'ČSNka': 'ČSNka', 'BigONE': 'BigONE', ...
Java
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\ResourceBundle; use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler...
Java
#!/usr/bin/env python from __future__ import division, print_function, absolute_import from os.path import join def configuration(parent_package='', top_path=None): import warnings from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info, BlasNotFoundError ...
Java
package photoeffect.effect.otherblur; import java.awt.image.BufferedImage; import measure.generic.IGenericWorkload; public interface IEffectOtherBlur extends IGenericWorkload<BufferedImage> { }
Java
#!/bin/bash -x # # Generated - do not edit! # # Macros TOP=`pwd` CND_CONF=default CND_DISTDIR=dist TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging TMPDIRNAME=tmp-packaging OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/PIC24_Dev_Board_Template.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX} OUTPUT_BASENAME=PIC24_Dev_Board_Template...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>kildall: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
Java
import Store from '../../Store'; import Expires from '../../Expires'; import { lpush } from '../lpush'; import { lpushx } from '../lpushx'; describe('Test lpushx command', () => { it('should prepend values to list', () => { const redis = new MockRedis(); redis.set('mylist', []); expect((<any>redis).lpush...
Java
<!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> ...
Java
Rust-brainfuck ============== A Brainfuck interpreter made in Rust. - Yes, it works, and it's fully compliant. - No, it is not very fast (or at all (yet)). - Yes, it is overkill. - Yes, it is useless. Man, did you play with receipts as a kid or something? Usage ----- Make sure to have _Rust 0.10_ and _Make_ availa...
Java
/** * Reparse the Grunt command line options flags. * * Using the arguments parsing logic from Grunt: * https://github.com/gruntjs/grunt/blob/master/lib/grunt/cli.js */ module.exports = function(grunt){ // Get the current Grunt CLI instance. var nopt = require('nopt'), parsedOptions = parseOptions(nopt, gru...
Java
module.exports = { "name": "ATmega16HVB", "timeout": 200, "stabDelay": 100, "cmdexeDelay": 25, "syncLoops": 32, "byteDelay": 0, "pollIndex": 3, "pollValue": 83, "preDelay": 1, "postDelay": 1, "pgmEnable": [172, 83, 0, 0], "erase": { "cmd": [172, 128, 0, 0], "delay": 45, "pollMethod":...
Java
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.DataContracts.Common { using System; using Newtonsoft.Json; using YamlDotNet.Serialization; using Microsoft.DocAsCode.Ut...
Java
--- published: true title: Landed on TinyPress layout: post --- For a long time I tried to find a simple way to write technical articles mainly for my own consumption. Hopefully TinyPress is the way to go...
Java
--- layout: page title: Guerrero - Yates Wedding date: 2016-05-24 author: Maria Morgan tags: weekly links, java status: published summary: Cras bibendum diam erat, non. banner: images/banner/leisure-03.jpg booking: startDate: 03/21/2016 endDate: 03/23/2016 ctyhocn: BALAMHX groupCode: GYW published: true --- Viv...
Java
--- layout: page title: Stokes Falls International Conference date: 2016-05-24 author: Christopher Barajas tags: weekly links, java status: published summary: Quisque sit amet risus finibus orci egestas posuere. Donec. banner: images/banner/leisure-03.jpg booking: startDate: 05/14/2016 endDate: 05/15/2016 ctyhocn...
Java
--- layout: page title: Megan Manning's 102nd Birthday date: 2016-05-24 author: Justin Rowe tags: weekly links, java status: published summary: Nullam et eros sagittis, volutpat augue ac, ultrices augue. banner: images/banner/meeting-01.jpg booking: startDate: 04/28/2019 endDate: 04/29/2019 ctyhocn: RICARHX gro...
Java
export function JavapParser(input: any): this; export class JavapParser { constructor(input: any); _interp: any; ruleNames: string[]; literalNames: (string | null)[]; symbolicNames: (string | null)[]; constructor: typeof JavapParser; get atn(): any; compilationUnit(): CompilationUnitCont...
Java
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by Brian Nelson 2016. * * See license in repo for more information * * https://github.com/sharpHDF/sharpHDF * * ...
Java
# Integration tests for rust_fuse The purpose of this crate is to provide a set of tests that will verify filesystems written with rust_fuse in action. To run it, you need to be capable of mounting arbitrary weird FUSE filesystems under temp directories.
Java
SHELL = /bin/sh # V=0 quiet, V=1 verbose. other values don't work. V = 0 Q1 = $(V:1=) Q = $(Q1:0=@) ECHO1 = $(V:1=@ :) ECHO = $(ECHO1:0=@ echo) NULLCMD = : #### Start of system configuration section. #### srcdir = . topdir = /usr/local/include/ruby-2.6.0 hdrdir = $(topdir) arch_hdrdir = /usr/local/include/ruby-2.6...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>najaxjs Tutorial: relaylinker | Ajax simple library</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <lin...
Java
using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; namespace UniversityStudents.Models { // You can add profile data for the user by adding more properties to your ApplicationUser class...
Java
const express = require('express'); const app = express(); const path = require('path'); const userCtrl = require('./userCtrl.js'); //extra middleware const bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({extended: true}), bodyParser.json()); app.use(express.static(path.join(__dirname, '../../node...
Java
package com.wjiec.learn.reordering; public class SynchronizedThreading { private int number = 0; private boolean flag = false; public synchronized void write() { number = 1; flag = true; } public synchronized int read() { if (flag) { return number * number; ...
Java
--- layout: base --- <div class="body-container"> <!--[if lt IE 8]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <nav class="navbar navbar-light bg-faded"> <div class="...
Java
<?php namespace Torchbox\Thankq\Api; class doContactInsert { /** * @var esitWSdoContactInsertArgument $doContactInsertArgument */ protected $doContactInsertArgument = null; /** * @param esitWSdoContactInsertArgument $doContactInsertArgument */ public function __construct($doConta...
Java
package eu.hgross.blaubot.android.views; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Handler; import android.os.Looper; import android.util.AttributeSet; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget...
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("17...
Java
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Td</title> <!-- <script src="http://use.edgefonts.net/source-sans-pro;source-code-pro.js"></script> --> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic|Source+Code+Pro:300...
Java
#!/usr/bin/env python # -*- coding: utf-8 -*- import zmq from zmq.eventloop import ioloop as ioloop_mod import zmqdecorators import time SERVICE_NAME = "urpobot.motor" SERVICE_PORT = 7575 SIGNALS_PORT = 7576 # How long to wait for new commands before stopping automatically COMMAND_GRACE_TIME = 0.250 class motorserv...
Java
from rest_framework import serializers from . import models class Invoice(serializers.ModelSerializer): class Meta: model = models.Invoice fields = ( 'id', 'name', 'additional_infos', 'owner', 'creation_date', 'update_date', )
Java
<footer class="site-footer"> <div class="wrapper"> <h2 class="footer-heading small-site-title">{{ site.title }}</h2> <div class="footer-col-wrapper"> <div class="footer-col footer-col-1"> <ul class="contact-list footer-content"> <li>Powered By <a href="http://github.com/hemangsk/Gra...
Java
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace Izzo.Collections.Immutable { [DebuggerDisplay( "Count = {Count}" )] public sealed partial class ImmutableList<T> : IImmutableList<T> { public static readonly ImmutableList<T> Empty = new I...
Java
#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SESSION_NAME="$1" source "$CURRENT_DIR/helpers.sh" dismiss_session_list_page_from_view() { tmux send-keys C-c } session_name_not_provided() { [ -z "$SESSION_NAME" ] } main() { if session_name_not_provided; then dismiss_sessio...
Java
<?php /** * Locale data for 'ksb'. * * This file is automatically generated by yiic cldr command. * * © 1991-2007 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in http://www.unicode.org/copyright.html. * * @copyright 2008-2013 Yii Software LLC (http://www.yiiframework.com/license/) *...
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Function template begins_with</title> <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../in...
Java
module Models class TimeStamp attr_accessor :sec attr_accessor :usec end end
Java
class Users::SessionsController < Devise::SessionsController layout :layout def presign end def layout if params[:no_layout].present? return false else return 'user' end end end
Java
<!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...
Java
exports.find = function(options) { options || (options = {}); options.param || (options.param = 'query'); options.parse || (options.parse = JSON.parse); return function(req, res, next) { var query = req.query[options.param]; var conditions = query ? options.parse(query) : {}; re...
Java
// MooTools: the javascript framework. // Load this file's selection again by visiting: http://mootools.net/more/f0c28d76aff2f0ba12270c81dc5e8d18 // Or build this file again with packager using: packager build More/Assets More/Hash.Cookie /* --- script: More.js name: More description: MooTools More license: MIT-st...
Java
"""Basic thermodynamic calculations for pickaxe.""" from typing import Union import pint from equilibrator_api import ( Q_, ComponentContribution, Reaction, default_physiological_ionic_strength, default_physiological_p_h, default_physiological_p_mg, default_physiological_temperature, ) fro...
Java
// 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...
Java
/* 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...
Java
.typeahead-container { width: 240px; position: relative; margin-top: 10px; margin-left: 10px; } .typeahead-container.show .dropdown-menu { display: block; } .dropdown-menu { display: none; }
Java
import os #Decoration Starts print """ +=============================================================+ || Privilege Escalation Exploit || || +===================================================+ || || | _ _ _ ____ _ __ ____ ___ _____ | || || | | | | | / \ / ___| |/ / ...
Java
# 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...
Java
<!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...
Java
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...
Java
<!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> ...
Java
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...
Java
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...
Java
"""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...
Java
StockPredict ============ Predict stock market prices based on discovered patterns
Java
# 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): ...
Java
# 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', ...
Java
\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}
Java
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...
Java
<?php /* *--------------------------------------------------------------- * APPLICATION ENVIRONMENT *--------------------------------------------------------------- * * You can load different configurations depending on your * current environment. Setting the environment also influences * things like logging an...
Java
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...
Java
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,...
Java
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...
Java
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...
Java
/************************** 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; } /**********************...
Java
<!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...
Java
<!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...
Java
<!-- 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...
Java
/* 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 ...
Java
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...
Java
// // 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...
Java
// 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
Java
/* * 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...
Java
# 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...
Java
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 ...
Java
<!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...
Java
<?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...
Java
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 ...
Java
<?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...
Java
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...
Java
<!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="@韩雨"/> ...
Java
<!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...
Java
<!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...
Java
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...
Java
<?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...
Java
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...
Java
'use strict'; module.exports = require('./toPairsIn'); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2VudHJpZXNJbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCxHQUFpQixRQUFRLGFBQVIsQ0FBakIiLCJmaWxlIjoiZW50cmllc0luLmpzIiwic291cmNlc0...
Java
""" -*- 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...
Java
<!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> ...
Java