code
stringlengths
4
1.01M
language
stringclasses
2 values
package gogo import ( "net/http" "net/http/httptest" "testing" "github.com/golib/assert" ) func Test_NewResponse(t *testing.T) { it := assert.New(t) recorder := httptest.NewRecorder() response := NewResponse(recorder) it.Implements((*Responser)(nil), response) it.Equal(http.StatusOK, response.Status()) it...
Java
#if !defined(AFX_DIALOG3_H__8EF7DE42_F33E_4217_87B0_FE9ACBCE3E84__INCLUDED_) #define AFX_DIALOG3_H__8EF7DE42_F33E_4217_87B0_FE9ACBCE3E84__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Dialog3.h : header file // ////////////////////////////////////////////////////////////////////////...
Java
# Load DSL and set up stages require 'capistrano/setup' # Include default deployment tasks require 'capistrano/deploy' # Include tasks from other gems included in your Gemfile require 'capistrano/rvm' require 'capistrano/bundler' require 'capistrano/rails' require 'capistrano/rails/migrations' require 'capistrano/ngi...
Java
var mongoose = require('mongoose'); var bcrypt = require('bcrypt'); var saltRounds = 10; var userSchema = new mongoose.Schema({ email: { type: String, index: {unique: true} }, password: String, name: String }); //hash password userSchema.methods.generateHash = function(password){ return bcrypt.hashSync(passw...
Java
<?php namespace Wolphy\Jobs; use Illuminate\Bus\Queueable; abstract class Job { /* |-------------------------------------------------------------------------- | Queueable Jobs |-------------------------------------------------------------------------- | | This job base class provides a centra...
Java
#!/bin/sh echo "Stopping web-server ..." COUNT_PROCESS=1 while [ $COUNT_PROCESS -gt 0 ] do COUNT_PROCESS=`ps -Aef | grep node | grep -c server.js` if [ $COUNT_PROCESS -gt 0 ]; then PID_PROCESS=`ps -Aef | grep node | grep server.js | awk '{print $2}'` if [ ! -z "$PID_PROCESS" ]; then echo "Killing web server P...
Java
<?php namespace RectorPrefix20210615; if (\class_exists('t3lib_collection_StaticRecordCollection')) { return; } class t3lib_collection_StaticRecordCollection { } \class_alias('t3lib_collection_StaticRecordCollection', 't3lib_collection_StaticRecordCollection', \false);
Java
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die m...
Java
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'ar' from layers_basic import LW_Layer, default_data_format from layers_convolutional import conv_output_length ############################################### class _LW_Pooling1D(LW_Layer): input_dim = 3 def __init__(self, pool_size=2, strides=None, padd...
Java
class CreateEventTypes < ActiveRecord::Migration def change create_table :event_types do |t| t.string :name, :limit => 80 t.timestamps end end end
Java
/* * Copyright 2013 MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
require "empty_port/version" require 'socket' require 'timeout' # ## Example # require 'empty_port' # class YourServerTest < Test::Unit::TestCase # def setup # @port = EmptyPort.get # @server_pid = Process.fork do # server = TCPServer.open('localhost', @port) # end # ...
Java
module.exports = { 'throttle': 10, 'hash': true, 'gzip': false, 'baseDir': 'public', 'buildDir': 'build', 'prefix': '' };
Java
.vertical-center { min-height: 100%; /* Fallback for browsers do NOT support vh unit */ min-height: 100vh; /* These two lines are counted as one :-) */ display: flex; align-items: center; } @media (min-width: 768px){ #wrapper {/*padding-right: 225px;*/ padding-left: 0;} .side-nav{right: 0;left: aut...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>使用 button 定义按钮</title> </head> <body> <form action="http://www.baidu.com" method="get"> <button type="button"><b>提交</b></button><br/> <button type="submit"><img sec="./img/3.jpg" alt="图片"></button><br/> </form> </body>...
Java
--- layout: post title: Tweets date: 2019-08-08 summary: These are the tweets for August 8, 2019. categories: ---
Java
import type { FormatRelativeFn } from '../../../types' // Source: https://www.unicode.org/cldr/charts/32/summary/te.html const formatRelativeLocale = { lastWeek: "'గత' eeee p", // CLDR #1384 yesterday: "'నిన్న' p", // CLDR #1393 today: "'ఈ రోజు' p", // CLDR #1394 tomorrow: "'రేపు' p", // CLDR #1395 nextWeek...
Java
INSERT INTO customers(id, name) VALUES (1, 'Jane Woods'); INSERT INTO customers(id, name) VALUES (2, 'Michael Li'); INSERT INTO customers(id, name) VALUES (3, 'Heidi Hasselbach'); INSERT INTO customers(id, name) VALUES (4, 'Rahul Pour');
Java
/* * * BitcoinLikeKeychain * ledger-core * * Created by Pierre Pollastri on 17/01/2017. * * The MIT License (MIT) * * Copyright (c) 2016 Ledger * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
Java
<?php namespace AppBundle\Repository; /** * Buyers_PropertiesRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class Buyers_PropertiesRepository extends \Doctrine\ORM\EntityRepository { }
Java
#!/usr/bin/env ruby #Example handler file.. infile = ARGV.first outfile = File.basename(infile, ".tif") + ".jpg.tif" system("~/cm/processing_scripts/rgb_to_jpeg_tif.rb --internal-mask #{infile} #{outfile}")
Java
using Newtonsoft.Json; using ProtoBuf; using ITK.ModelManager; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Steam.Models { [Model("SteamPlayerBans")] [ProtoContract] [JsonObject(MemberSerialization.OptIn)] public class Pl...
Java
/* * Business.h * UsersService * * Copyright 2011 QuickBlox team. All rights reserved. * */ #import "QBUsersModels.h"
Java
--- layout: post title: ESPN took a picture of me categories: link --- Check [this link](http://espn.go.com/college-football/story/_/id/9685394/how-do-nebraska-fans-feel-bo-pelini-recent-behavior) for some story about Bo Pelini's goofing off, and -- look there in the last photo! -- it's some goofball in a Nebras...
Java
// // GFTestAppDelegate.h // TestChaosApp // // Created by Michael Charkin on 2/26/14. // Copyright (c) 2014 GitFlub. All rights reserved. // #import <UIKit/UIKit.h> @interface GFTestAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
Java
var modules = { "success" : [ {id: 1, name:"控制台", code:"console", protocol:"http", domain:"console.ecc.com", port:"18333", created:'2017-03-08 00:00:00', creator:'1', modified:'2017-03-08 00:00:00', modifier:'1'}, {id: 2, name:"服务中心", code:"service-center", protocol:"http", domain:"sc.ecc.com", port:"18222", creat...
Java
const { createServer, plugins: { queryParser, serveStatic } } = require('restify'); const { join } = require('path'); const fetch = require('node-fetch'); const proxy = require('http-proxy-middleware'); const { PORT = 5000 } = process.env; const server = createServer(); server.use(queryParser()); server.get('/',...
Java
/** * @author: * @date: 2016/1/21 */ define(["core/js/layout/Panel"], function (Panel) { var view = Panel.extend({ /*Panel的配置项 start*/ title:"表单-", help:"内容", brief:"摘要", /*Panel 配置 End*/ oninitialized:function(triggerEvent){ ...
Java
# Django Media Albums [![Build Status](https://travis-ci.org/VelocityWebworks/django-media-albums.svg?branch=master)](https://travis-ci.org/VelocityWebworks/django-media-albums) This app is used to create albums consisting of any combination of the following: * Photos * Video files * Audio files This app also optio...
Java
<!-- Safe sample input : get the $_GET['userData'] in an array sanitize : settype (float) File : unsafe, use of untrusted data in a comment --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its doc...
Java
$('#modalUploader').on('show.bs.modal', function (event) { var uploader = new qq.FileUploaderBasic({ element: document.getElementById('file-uploader-demo1'), button: document.getElementById('areaSubir'), action: '/Files/Upload', params: { ruta: $('#RutaActual').val() }, allo...
Java
// setToken when re-connecting var originalReconnect = Meteor.connection.onReconnect; Meteor.connection.onReconnect = function() { setToken(); if(originalReconnect) { originalReconnect(); } }; if(Meteor.status().connected) { setToken(); } function setToken() { var firewallHumanToken = Cookie.get('sikka-...
Java
<% nameScope = @config['name_scope'] %> </div> </div> </div> <footer class="cortana-footer"> Build with love using Trulia's <a href="https://github.com/trulia/hologram">Hologram</a> and <a href="https://github.com/Yago/Cortana">Cortana</a> ! </footer> </div> <script src="theme-bu...
Java
// // rbLinkedList.h // rbLinkedList // // Created by Ryan Bemowski on 4/6/15. // #pragma once #include <string> struct Node { int key; Node *next; }; class rbLinkedList { public: /** Constructor for the rbLinkedList class. */ rbLinkedList(); /** Deconstructor for the rbLinkedList class...
Java
// // KAAppDelegate.h // UIViewController-KeyboardAdditions // // Created by CocoaPods on 02/03/2015. // Copyright (c) 2014 Andrew Podkovyrin. All rights reserved. // #import <UIKit/UIKit.h> @interface KAAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
Java
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Example</title> <link rel="stylesheet" href="css/base.css" /> <script src="../../asset/react/react.js"></script> <script src="../../asset/react/react-dom.js"></script> <script src="../../asset/react/browser.min.js"></script> ...
Java
using System.Collections.ObjectModel; using System.ComponentModel; using GalaSoft.MvvmLight.Command; namespace Treehopper.Mvvm.ViewModels { /// <summary> /// A delegate called when the selected board changes /// </summary> /// <param name="sender">The caller</param> /// <param name="e">The new...
Java
import React from 'react'; import ReactDOM from 'react-dom'; import componentOrElement from 'react-prop-types/lib/componentOrElement'; import ownerDocument from './utils/ownerDocument'; import getContainer from './utils/getContainer'; /** * The `<Portal/>` component renders its children into a new "subtree" outside o...
Java
dojo.provide("plugins.dijit.SyncDialog"); // HAS A dojo.require("dijit.Dialog"); dojo.require("dijit.form.Button"); dojo.require("dijit.form.ValidationTextBox"); // INHERITS dojo.require("plugins.core.Common"); dojo.declare( "plugins.dijit.SyncDialog", [ dijit._Widget, dijit._Templated, plugins.core.Common ], { /...
Java
namespace TraktApiSharp.Objects.Basic.Json.Factories { using Objects.Basic.Json.Reader; using Objects.Basic.Json.Writer; using Objects.Json; internal class CommentLikeJsonIOFactory : IJsonIOFactory<ITraktCommentLike> { public IObjectJsonReader<ITraktCommentLike> CreateObjectReader() => new...
Java
package com.sdl.selenium.extjs3.button; import com.sdl.selenium.bootstrap.button.Download; import com.sdl.selenium.extjs3.ExtJsComponent; import com.sdl.selenium.web.SearchType; import com.sdl.selenium.web.WebLocator; public class DownloadLink extends ExtJsComponent implements Download { public Download...
Java
angular.module('perCapita.controllers', []) .controller('AppCtrl', ['$scope', '$rootScope', '$ionicModal', '$timeout', '$localStorage', '$ionicPlatform', 'AuthService', function ($scope, $rootScope, $ionicModal, $timeout, $localStorage, $ionicPlatform, AuthService) { $scope.loginData = $localStorage.getOb...
Java
# VBA.ModernTheme ### Windows Phone Colour Palette and<p>Colour Selector using WithEvents Version 1.0.1 The *Windows Phone Theme Colours* is a tight, powerful, and well balanced palette. This tiny Microsoft Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing *Wi...
Java
var http = require("http"); var querystring = require("querystring"); // 核心模块 var SBuffer=require("../tools/SBuffer"); var common=require("../tools/common"); var zlib=require("zlib"); var redis_pool=require("../tools/connection_pool"); var events = require('events'); var util = require('util'); function ProxyAgent(...
Java
--- layout: post title: "Hello World" image: feature: nomadsland.jpg date: 2016-09-19 20:24:11 +0200 categories: personal, coding --- I enjoy tinkering - building little electronic gadgets and apps - especially if it has something to do with [cryptocurrencies]. Currently my day-job is building Bitcoin infrastructu...
Java
<?php namespace RobotsTxtParser; class CommentsTest extends \PHPUnit\Framework\TestCase { /** * @dataProvider generateDataForTest */ public function testRemoveComments($robotsTxtContent) { $parser = new RobotsTxtParser($robotsTxtContent); $rules = $parser->getRules('*...
Java
/* * The MIT License * * Copyright 2016 njacinto. * * 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
--- layout: post title: slacker로 slack bot 만들기 comments: true tags: - python - slack - 봇 - slacker --- &nbsp;&nbsp;&nbsp; 멘토님께서 라인의 `notification`을 이용해서 봇 만든것을 보고 따라 만들었다. 봇 만들고 싶은데 핑계가 없어서 고민하다가 동아리에서 `slack`을 쓰기 때문에 슬랙봇을 만들어보기로 했다. 스터디하는 사람들을 대상으로 커밋한지 얼마나 되었는지 알려주는 용도로 만들었다. 결과물은 아래와 같다. <img src="/images/commit-be...
Java
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosHeart extends React.Component { render() { if(this.props.bare) { return <g> <path d="M359.385,80C319.966,80,277.171,97.599,256,132.8C234.83,97.599,192.034,80,152.615,80C83.647,80,32,123.238,32,195.779 c0,...
Java
<?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS); $breadcrumb->add(NAVBAR_TITL...
Java
--- layout: home title: JARVARS comments: false ---
Java
{% extends "admin/base.html" %} {% load i18n %} {% block title %}{{ title }} | {% trans 'lab purchase management' %}{% endblock %} {% block branding %} <h1 id="site-name">{% trans 'LabHamster' %}</h1> {% endblock %} {% block nav-global %}{% endblock %}
Java
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockitousage.verification; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import static org.mo...
Java
<?php declare(strict_types=1); namespace Atk4\Ui\Demos; use Atk4\Ui\Crud; use Atk4\Ui\UserAction\ExecutorFactory; // Test for hasOne Lookup as dropdown control. /** @var \Atk4\Ui\App $app */ require_once __DIR__ . '/../init-app.php'; $model = new Product($app->db); $model->addCondition($model->fieldName()->name, ...
Java
/* HardwareSerial.h - Hardware serial library for Wiring Copyright (c) 2006 Nicholas Zambetti. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2...
Java
import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as courseActions from '../../actions/courseActions'; import CourseForm from './CourseForm'; import {authorsFormattedForDropdown} from '../../selectors/selectors'; import toastr from 'toastr'; ...
Java
.sessionForm{ padding: 10px; } .carapaceForm{ padding: 10px; border: 3px solid #000000; min-width: 960px; margin-bottom: 10px; } label{ margin: 5px; } input{ margin: 5px; } button{ margin: 5px; } .section{ border: 1px solid #000000; margin-bottom: 10px; } .carapaceSection{ ...
Java
AmazonTemplateDescriptionCategorySpecificGridRowRenderer = Class.create(AmazonTemplateDescriptionCategorySpecificRenderer, { // --------------------------------------- attributeHandler: null, // --------------------------------------- process: function() { if (this.specificHand...
Java
Rails.application.config.middleware.use OmniAuth::Builder do provider :provider, ENV["KEY"], ENV["SECRET"] end
Java
package controller.server; import controller.LibraryService; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import java.rmi.RemoteException; public class RMIServer { public static void main(String[] args) throws RemoteException, NamingException { Li...
Java
define([ 'angular' ], function (ng) { 'use strict'; return ng.module('backgroundModule', []); });
Java
const pkg = state => state.pkg const app = state => state.app const device = state => state.app.device const sidebar = state => state.app.sidebar const effect = state => state.app.effect const menuitems = state => state.menu.items const componententry = state => { return state.menu.item.filter(c => c.meta && c.meta.l...
Java
title: HOWTO: Install Ubuntu on Your Eee PC author: Rami Taibah permalink: howto-install-ubuntu-on-your-eee-pc tags: eee-pc, ubuntu, howto I have [posted]({filename}/blog/2008-02-06-eee-pcfinally.markdown) earlier that the "easy mode" of the Eee PC is like living on the bottom bunker in a basement cell of the Alcatraz...
Java
using System; using System.Collections.Generic; using System.Linq; using BlackBox.Service; using EbInstanceModel; using IFC2X3; namespace BlackBox.Predefined { public partial class BbProduct : BbBase { [EarlyBindingInstance] public virtual IfcRelAggregates IfcRelAggregates { get; protected se...
Java
################################################## """ symbols(name(s), assumptions...) Calls `sympy.symbols` to produce symbolic variables and symbolic functions. An alternate to the recommended `@syms`, (when applicable) In sympy `sympy.symbols` and `sympy.Symbol` both allow the construction of symbolic variabl...
Java
using UnityEngine; public class Crouch : MonoBehaviour { public float crouchColliderProportion = 0.75f; private bool crouching; private float colliderCenterY, centerOffsetY; private ChipmunkBoxShape box; private Jump jump; private Sneak sneak; private WalkAbs move; private AnimateTiledConfig crouchAC; v...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Plato - lib/cmds/nt.js</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/...
Java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.applicationinsights.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import ...
Java
__precompile__(true) module ImplicitEquations using ValidatedNumerics import ValidatedNumerics: Interval, diam using RecipesBase using Compat include("predicates.jl") include("intervals.jl") include("tupper.jl") include("asciigraphs.jl") #include("plot.jl") include("plot_recipe.jl") export eq, neq, ⩵, ≷, ≶ export...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ angular.module('MetronicApp').controller('UsuariosCtrl', function ($scope, GetSv, $rootScope, PostSv,toaster) { $scope.usuarios =...
Java
#include <vector> #include <memory> #include <iostream> using namespace std; shared_ptr<vector<int>> make() { return make_shared<vector<int>>(); } shared_ptr<vector<int>> read(shared_ptr<vector<int>> p) { cout << "Enter values: " << endl; int x; while (cin >> x) { p->push_back(x); } return p; } void print...
Java
/* * This file exports the configuration Express.js back to the application * so that it can be used in other parts of the product. */ var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session = require('express-ses...
Java
--- layout: pattern summary: "Base classes for creating simple 'nav-like' lists. Ideal for simple nav menus or for forming the basis of more complex navigation componenets." --- <ul class="tan-nav-menu tan-nav-menu--stacked"> {% for i in (1..4) %} <li class=""> <a href="#">Stacked Link {{i}}</a> </li> {% endfor...
Java
(function() { chai.should(); describe("Dropzone", function() { var getMockFile, xhr; getMockFile = function() { return { status: Dropzone.ADDED, accepted: true, name: "test file name", size: 123456, type: "text/html" }; }; xhr = null; beforeEa...
Java
answer = sum [1..100] ^ 2 - foldl (\x y -> y^2 + x) 0 [1..100]
Java
/** * generated by Xtext */ package dk.itu.smdp.group2.ui.outline; import org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider; /** * Customization of the default outline structure. * * see http://www.eclipse.org/Xtext/documentation.html#outline */ @SuppressWarnings("all") public class Questiona...
Java
<?php /* * ghz.me url shortener * when a long url hz. * * (c) 2014 Sam Thompson <contact@samt.us> * License: MIT */ define('ROOT_PATH', __DIR__ . '/'); require ROOT_PATH . 'loader.php'; $app = new Ghz\App(); // Handle our two cases: // - Redirect (when requestiong anything except BASEPATH) // - Save URL when p...
Java
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <title>module Rack::Mime - 'Rack Documentation'</title> <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet"> <script type="text/javascript"> var rdoc_rel_prefix = "../"; </script> <script type="...
Java
--- layout: page title: Middleton - Mcdaniel Wedding date: 2016-05-24 author: Larry Rios tags: weekly links, java status: published summary: Vestibulum ante ipsum primis in faucibus orci luctus et. banner: images/banner/leisure-02.jpg booking: startDate: 02/27/2019 endDate: 03/02/2019 ctyhocn: BROHSHX groupCode...
Java
package wsclient import ( "github.com/cosminrentea/gobbler/testutil" "fmt" "strings" "testing" "time" "github.com/gorilla/websocket" "github.com/stretchr/testify/assert" ) var aNormalMessage = `/foo/bar,42,user01,phone01,{},,1420110000,0 Hello World` var aSendNotification = "#send" var anErrorNotification...
Java
namespace LadderLogic.Controller.State { using Surface; public class CursorState : State { public CursorState () : base(StateType.CursorState) { } #region implemented abstract members of State public override bool Handle (State previous, Segment prevSegment, Segment newSegment, bool left) { base.H...
Java
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2019_12_01 module Models # # A load balancer probe. # class Probe < SubResource include MsRestAzure ...
Java
#pragma once #include <mime/mimepp/mimepp.h> namespace Zimbra { namespace MAPI { #define PR_URL_NAME PROP_TAG(PT_TSTRING, 0x6707) #define EXCHIVERB_OPEN 0 #define EXCHIVERB_RESERVED_COMPOSE 100 #define EXCHIVERB_RESERVED_OPEN 101 #define EXCHIVERB_REPLYTOSENDER ...
Java
<?php namespace Juice\UploadBundle\Form\Type; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormView; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class BaseFileType extends AbstractUploadType { public function buildView(FormView $view, FormInterface $form, array $optio...
Java
<html> <head> <meta http-equiv="refresh" content="0; url=https://minecrafthopper.net/"> <link rel="canonical" href="https://minecrafthopper.net/"/> </head> </html>
Java
<?php namespace TFE\LibrairieBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; class AccompagnementModifierType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilde...
Java
using Dufry.Comissoes.Domain.Validation; namespace Dufry.Comissoes.Domain.Interfaces.Validation { public interface IValidation<in TEntity> { ValidationResult Valid(TEntity entity); } }
Java
import {HttpClient} from '@angular/common/http'; import {Injectable} from '@angular/core'; import {Observable, ReplaySubject, throwError} from 'rxjs'; import {map, tap, switchMap} from 'rxjs/operators'; import {SocketService} from './sockets'; import {StorageService} from './storage'; @Injectable({ provide...
Java
{-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeOperators #-} module DirectoryAPI.API ( directoryAPIProxy , DirectoryAPI ) where import Servant import AuthAPI.API (AuthToken) import Models (File, Node, NodeId) type DirectoryAPI = "ls" :> -- List all files AuthToken :> G...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <script src="jquery/jquery-1.8.1.js"></script> <script src="jquery/jquery-ui-1.10.3.custom.js"></script> <script src="treema/tv4.js"></script> <script src="treema/treema.js"></script> <link href="jquery/jquery-ui-1.10.3.custom.css" rel="style...
Java
package com.lightspeedhq.ecom; import com.lightspeedhq.ecom.domain.LightspeedEComError; import feign.FeignException; import lombok.Getter; /** * * @author stevensnoeijen */ public class LightspeedEComErrorException extends FeignException { @Getter private LightspeedEComError error; public LightspeedE...
Java
edit-movie ========== Script to edit Star Wars with ffmpeg to make it a bit more child-friendly
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About POPCoin</source> <translation>POPCoin-i buruz</translation> <...
Java
<?php namespace ZpgRtf\Tests\Objects; use PHPUnit\Framework\TestCase; use ZpgRtf\Objects\EpcRatingsObject; class EpcRatingsObjectTest extends TestCase { /** * @var EpcRatingsObject */ protected $object; public function setUp() { $this->object = new EpcRatingsObject(); } pu...
Java
import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = entry[1] if not src in graph: graph[src] = {} graph[src][dst]...
Java
/* Copyright (c) 2014-2020, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #include "core/or/or.h" #ifndef TOR_LOG_TEST_HELPERS_H #define TOR_LOG_TEST_HELPERS_H /** An element of mock_saved_logs(); records the log element that we * received. */ typedef struct mock_saved_log_entry_t { int sev...
Java
/* * The Plaid API * * The Plaid REST API. Please see https://plaid.com/docs/api for more details. * * API version: 2020-09-14_1.78.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package plaid import ( "encoding/json" ) // WalletTransactionExecuteResponse WalletTra...
Java
chrome.app.runtime.onLaunched.addListener(function(){ chrome.app.window.create('index.html', { bounds: { width: Math.round(window.screen.availWidth - 100), height: Math.round(window.screen.availHeight - 100) } }); });
Java
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require "yaml" shared_examples "a bullet" do let(:capacity) { 2 } subject do described_class.new(:machines => machines, :guns => capacity) end describe :fire do it "spawns correct number of threads" do bullets = ["first", "second...
Java
#!/usr/bin/env python # # Copyright 2010 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
Java