code
stringlengths
4
1.01M
language
stringclasses
2 values
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Sandsound</title> <link rel="stylesheet" href="/css/reset.css"> <link rel="stylesheet" href="/css/style.css"> </head> <body> <canvas id="canvas" class="background"></canvas> <!-- Ne s'affiche que si sur mobile :) --> <div class="mobile"> ...
Java
require 'lapine/test/exchange' module Lapine module Test module RSpecHelper def self.setup(_example = nil) RSpec::Mocks::AllowanceTarget.new(Lapine::Exchange).to( RSpec::Mocks::Matchers::Receive.new(:new, ->(name, properties) { Lapine::Test::Exchange.new(name, properties) ...
Java
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
Java
using Brandbank.Xml.Logging; using System; namespace Brandbank.Api.Clients { public sealed class FeedbackClientLogger : IFeedbackClient { private readonly ILogger<IFeedbackClient> _logger; private readonly IFeedbackClient _feedbackClient; public FeedbackClientLogger(ILogger<IFeedbackC...
Java
<?php namespace Zodream\Infrastructure\Http\Input; /** * Created by PhpStorm. * User: zx648 * Date: 2016/4/3 * Time: 9:23 */ use Zodream\Infrastructure\Base\MagicObject; abstract class BaseInput extends MagicObject { /** * 格式化 * @param array|string $data * @return array|string */ prote...
Java
--- home: true heroImage: /sofa128.png actionText: Get Started → features: - title: Schema definition details: Strict modeling based on schema with automatic and custom type validation. - title: Database operations details: Insert, upsert and remove documents. - title: Middleware details: Support for pre and post...
Java
<?php /* * This file is part of the Grosona. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Grosona; use Grosona\PhpProcess\Utils\Logger; use Grosona\PhpProcess\TrobuleHandler; /** * Read configurati...
Java
class DashboardController < ApplicationController def index end end # vim: fo=tcq
Java
-- 创建T_Good表 CREATE TABLE IF NOT EXISTS T_Good ( goodId INTEGER PRIMARY KEY NOT NULL, good TEXT, "createAt" TEXT DEFAULT (datetime('now', 'localtime')) );
Java
const getAllMatchers = require("./getAllMatchers"); describe("unit: getAllMatchers", () => { let handler; let matcherStore; beforeEach(() => { matcherStore = [{}, {}, {}]; handler = getAllMatchers(matcherStore); }); test("it should return all matchers", () => { expect(handler()).toHaveProperty...
Java
table { font-family: Consolas, Monaco, monospace; font-size: 1em; line-height: 1.44em; } table th, table td { padding: 0.4em 0.8em; }
Java
--- layout: post title: "Welcome to Jekyll!" tags: [web, jekyll] --- Vestibulum vulputate ac sem dapibus sagittis. Phasellus vestibulum ligula quam, vitae porta risus posuere sit amet. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam lobortis nisl ut semper suscipit. Aenean eget sem nisl. Sed gr...
Java
# [parser](https://github.com/yanhaijing/template.js/blob/master/packages/parser) [![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base) [template.js](https://github.com/yanhaijing/template.js)的模板编译器 ## 兼容性 单元测试保证支持如下环境: | IE | CH | FF | SF | O...
Java
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
Java
Unicode.sublime-package ======================= Disclaimer ---------- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Installation ------------ Install package to: * __OSX:__ `~/Lib...
Java
<?php namespace Koalamon\IntegrationBundle\Integration; class Integration { private $name; private $image; private $description; private $url; private $activeElements; private $totalElements; /** * Integration constructor. * * @param $name * @param $image * @param...
Java
--- layout: page title: Roger Mercado's 91st Birthday date: 2016-05-24 author: Juan Rodgers tags: weekly links, java status: published summary: In molestie nec mauris a pretium. Pellentesque massa. banner: images/banner/meeting-01.jpg booking: startDate: 06/25/2016 endDate: 06/27/2016 ctyhocn: SCOINHX groupCode...
Java
import redis import logging import simplejson as json import sys from msgpack import Unpacker from flask import Flask, request, render_template from daemon import runner from os.path import dirname, abspath # add the shared settings file to namespace sys.path.insert(0, dirname(dirname(abspath(__file__)))) import setti...
Java
/******************************************************************************* * * * Author : Angus Johnson * * Version : 6.4.2 ...
Java
module AttrValidator # Copied from here https://github.com/rails/rails/blob/master/activesupport/lib/active_support/concern.rb # # A typical module looks like this: # # module M # def self.included(base) # base.extend ClassMethods # base.class_eval do # scope :disabled, -> { ...
Java
package ca.codybanman.AstroidEscape; import org.robovm.apple.foundation.NSAutoreleasePool; import org.robovm.apple.uikit.UIApplication; import com.badlogic.gdx.backends.iosrobovm.IOSApplication; import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration; import ca.codybanman.AstroidEscape.AEGame; public ...
Java
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Xml; using System.Xml.Serialization; using System.IO; namespace TimeOut { ...
Java
#include "V3DResourceMemory.h" #include "V3DDevice.h" #include "V3DBuffer.h" #include "V3DImage.h" #include "V3DAdapter.h" /******************************/ /* public - V3DResourceMemory */ /******************************/ V3DResourceMemory* V3DResourceMemory::Create() { return V3D_NEW_T(V3DResourceMemory...
Java
<?php namespace Peridot\Leo\Interfaces; use Peridot\Leo\Assertion; use Peridot\Leo\Interfaces\Assert\CollectionAssertTrait; use Peridot\Leo\Interfaces\Assert\ObjectAssertTrait; use Peridot\Leo\Interfaces\Assert\TypeAssertTrait; use Peridot\Leo\Leo; /** * Assert is a non-chainable, object oriented interface * on to...
Java
<?php declare(strict_types=1); namespace Gitilicious\GitClient\Test\Unit\Cli\Output; use Gitilicious\GitClient\Cli\Output\Output; class OutputTest extends \PHPUnit_Framework_TestCase { public function testGetNumberOfLines() { $output = new Output('foo' . PHP_EOL . 'bar'); $this->assertSame(2...
Java
black = '#202427'; red = '#EB6A58'; // red green = '#49A61D'; // green yellow = '#959721'; // yellow blue = '#798FB7'; // blue magenta = '#CD7B7E'; // pink cyan = '#4FA090'; // cyan white = '#909294'; // light gray lightBlack = '#292B35'; // medium gray lightRed = '#...
Java
import cuid from "cuid"; import Result, { isError } from "../../common/Result"; import assert from "assert"; import { di, singleton, diKey } from "../../common/di"; import { ILocalFiles, ILocalFilesKey } from "../../common/LocalFiles"; import { IStoreDB, IStoreDBKey, MergeEntity } from "../../common/db/StoreDB"; import...
Java
<html> <head> <title>Julian Fellows's panel show appearances</title> <script type="text/javascript" src="../common.js"></script> <link rel="stylesheet" media="all" href="../style.css" type="text/css"/> <script type="text/javascript" src="../people.js"></script> <!--#include virtual="head.txt" --> </head> <body> <!-...
Java
var createSubmit = function(name, primus, keyDict) { return function(event) { var message = $('#message').val(); if (message.length === 0) { event.preventDefault(); return; } $('#message').val(''); $('#message').focus(); var BigInteger = for...
Java
<?php namespace action\sub; use net\shawn_huang\pretty\Action; class Index extends Action { protected function run() { $this->put([ 'holy' => 'shit' ]); } }
Java
<?php namespace keeko\account\action; use keeko\framework\foundation\AbstractAction; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use keeko\framework\domain\payload\Success; /** * User Widget * * This code is automatically created. Modifications will probably be over...
Java
// Copyright (c) 2015-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <zmq/zmqabstractnotifier.h> #include <util.h> CZMQAbstractNotifier::~CZMQAbstractNotifier() { assert(!psocket)...
Java
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
Java
import builder = require('botbuilder'); export module Helpers { export class API { public static async DownloadJson(url:string, post:boolean=false, options:any=undefined): Promise<string>{ return new Promise<string>(resolve => { var XMLHttpRequest = require("xmlhttprequest")....
Java
using System; using System.Collections.Generic; using System.Linq; using System.Web; using WingtipToys.Models; namespace WingtipToys.Logic { public class AddProducts { public bool AddProduct(string ProductName, string ProductDesc, string ProductPrice, string ProductCategory, string ProductImagePath) ...
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.security.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.c...
Java
<?php namespace Seahinet\Catalog\Indexer; use Seahinet\Catalog\Model\Collection\Product; use Seahinet\Catalog\Model\Product as ProductModel; use Seahinet\Catalog\Model\Collection\Category; use Seahinet\Lib\Db\Sql\Ddl\Column\UnsignedInteger; use Seahinet\Lib\Indexer\Handler\AbstractHandler; use Seahinet\Lib\I...
Java
package org.superboot.service; import com.querydsl.core.types.Predicate; import org.springframework.data.domain.Pageable; import org.superboot.base.BaseException; import org.superboot.base.BaseResponse; /** * <b> 错误日志服务接口 </b> * <p> * 功能描述: * </p> */ public interface ErrorLogService { /** * 按照微服务模块进行分组...
Java
UNIX BUILD NOTES ================ Build Instructions: Ubuntu & Debian Build requirements: ------------------- ```bash sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils ``` BOOST ----- ```bash sudo apt-get install libboost-all-dev ``` BDB --- For Ubun...
Java
$(function () { var $container = $('#container'); var certificatesInfo = $container.data('certinfo'); var runDate = $container.data('rundate'); $('#created_date').html(runDate); var sorted_certificates = Object.keys(certificatesInfo) .sort(function( a, b ) { return certificatesInfo[a].info.days_le...
Java
--- title: "Configuring the Terminal on a New Macbook" date: 2016-06-01 21:12:00 category: post tags: [efficiency, osx, shell, sublime] --- I bought a new Macbook Pro Retina today for personal use, and spent most of the day re-configuring the terminal and development environment to match my old machine. This post i...
Java
from PIL import Image import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np img1 = Image.open('multipage.tif') # The following approach seems to be having issue with the # current TIFF format data print('The size of each frame is:') print(img1.size) # Plots first frame print('Frame 1'...
Java
FROM nginx MAINTAINER Konstantin Volodin, volodin.konstantin@gmail.com COPY nginx.conf /etc/nginx EXPOSE 80 EXPOSE 5500 ENTRYPOINT nginx -g "daemon off;"
Java
FROM golang:alpine as build WORKDIR /go/src COPY main.go . RUN go build -o /go/bin/memhogger . FROM alpine LABEL maintainer="Michael Gasch <embano1@live.com>" COPY --from=build /go/bin/memhogger /bin/memhogger ENTRYPOINT ["memhogger"]
Java
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 11, 2014 at 07:52 AM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
Java
package com.InfinityRaider.AgriCraft.utility; import com.InfinityRaider.AgriCraft.items.ItemAgricraft; import com.InfinityRaider.AgriCraft.items.ItemNugget; import com.InfinityRaider.AgriCraft.reference.Data; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import ...
Java
'use strict'; //Setting up route angular.module('socketio-area').config(['$stateProvider', function($stateProvider) { // Socketio area state routing $stateProvider. state('socketio-area', { url: '/socketio', templateUrl: 'modules/socketio-area/views/socketio-area.client.view.html' }); } ]);
Java
#include "utlua.h" #ifdef __linux__ #include <limits.h> #include <linux/netfilter_ipv4.h> #endif #include <net/if.h> #define LUA_TCPD_CONNECTION_TYPE "<tcpd.connect>" #define LUA_TCPD_SERVER_TYPE "<tcpd.bind %s %d>" #define LUA_TCPD_ACCEPT_TYPE "<tcpd.accept %s %d>" #if FAN_HAS_OPENSSL typedef struct { SSL_CTX *s...
Java
/** * configuration for grunt tasks * @module Gruntfile */ module.exports = function(grunt) { /** load tasks */ require('load-grunt-tasks')(grunt); /** config for build paths */ var config = { dist: { dir: 'dist/', StoreFactory: 'dist/StoreFactory.js', ngStoreFactory: 'dist/ngStore.js...
Java
#requires -Modules InvokeBuild [CmdletBinding()] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingWriteHost', '')] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingEmptyCatchBlock', '')] param( [String[]]$Tag, [String[]]$ExcludeTag = @("Integration"), [String]$PSGalleryAPIKey, ...
Java
/** * Module dependencies. */ var express = require('express'); var path = require('path'); var api = require('./lib/api'); var seo = require('./lib/seo'); var app = module.exports = express(); app.set('port', process.env.PORT || 3000); app.set('views', __dirname + '/views'); app.use(expre...
Java
# KnockGame This sketch is responsible for the **Handshake** and **Knock** interfaces. # External Libraries ## SerialCommand https://github.com/kroimon/Arduino-SerialCommand
Java
#include <iostream> #include <string> #include <forward_list> using namespace std; void insert(forward_list<string>& fst, const string& to_find, const string& to_add); int main() { forward_list<string> fst{ "pen", "pineapple", "apple", "pen" }; insert(fst, "pen", "and"); for (auto& i : fst) cout << ...
Java
/* * MIT License * * Copyright (c) 2017 Alessandro Arcangeli <alessandroarcangeli.rm@gmail.com> * * 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...
Java
using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading; using System.Threading.Tasks; namespace LinqToDB.Data { using Linq; using Common; using ...
Java
# Swagger JSON This is a swagger JSON built by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsrc%2FSDKs%2FPostgreSQL%2FManagement.PostgreSQL%2FREADME.png)
Java
/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
Java
class R: def __init__(self, c): self.c = c self.is_star = False def match(self, c): return self.c == '.' or self.c == c class Solution(object): def isMatch(self, s, p): """ :type s: str :type p: str :rtype: bool """ rs = [] "...
Java
# escape=` FROM mcr.microsoft.com/windows/servercore as msi SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] ENV MONGO_VERSION 3.4.5 ENV MONGO_DOWNLOAD_URL https://downloads.mongodb.com/win32/mongodb-win32-x86_64-enterprise-windows-64-${MONGO_VERSION}-sign...
Java
namespace GameBoySharp.Domain.Contracts { public interface IContiguousMemory : IReadableMemory, IWriteableMemory { } }
Java
public class App { public static void main(String[] args) { System.out.println("Old man, look at my life..."); } }
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_102) on Thu Jan 05 15:34:48 PST 2017 --> <title>Uses of Class main.CurrentDateAndTime</title> <meta name="date" content="2017-01-05"> <link rel...
Java
version https://git-lfs.github.com/spec/v1 oid sha256:83b131c4d8b0acf16d0579e177572a462b114180f95c7444ebae08cb7370e68f size 3656
Java
var score = 0; var scoreText; var map_x = 14; var map_y = 10; var game = new Phaser.Game(map_x * 16, map_y * 16, Phaser.AUTO, '', { preload: preload, create: create, update: update }); function preload() { // game.scale.maxWidth = 600; // game.scale.maxHeight = 600; game.scale.scaleMode = Phaser.ScaleMan...
Java
package com.thebluealliance.androidclient.gcm.notifications; import android.app.Notification; import android.content.Context; import android.content.Intent; import android.content.res.Resources; import android.support.v4.app.NotificationCompat; import android.util.Log; import android.view.LayoutInflater; import androi...
Java
import { expect } from 'chai'; import { Curry } from './curry'; describe('curry', () => { it('should curry the method with default arity', () => { class MyClass { @Curry() add(a: any, b?: any) { return a + b; } } const myClass = new MyClass(); const add5 = myClass.add(5); ...
Java
module Fog module XenServer class Compute module Models class CrashDumps < Collection model Fog::XenServer::Compute::Models::CrashDump end end end end end
Java
using UnityEngine; using UnityEngine.UI; using System.Collections; public class DebugWindow : MonoBehaviour { public Text textWindow; string freshInput; // Use this for initialization void Start () { if (textWindow == null) throw new UnityException ("Debug Window has no text box to output to."); } // Up...
Java
// Copyright (c) Pomelo Foundation. All rights reserved. // Licensed under the MIT. See LICENSE in the project root for license information. using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Storage; using Pomelo.EntityFrameworkCore.MySql.Query.ExpressionT...
Java
export { default } from 'ember-flexberry-gis/services/map-store';
Java
from flask import Flask, render_template, flash from flask_material_lite import Material_Lite from flask_appconfig import AppConfig from flask_wtf import Form, RecaptchaField from flask_wtf.file import FileField from wtforms import TextField, HiddenField, ValidationError, RadioField,\ BooleanField, SubmitField, Int...
Java
#!/usr/bin/env python3 from __future__ import print_function, division import numpy as np from sht.grids import standard_grid, get_cartesian_grid def test_grids(): L = 10 thetas, phis = standard_grid(L) # Can't really test much here assert thetas.size == L assert phis.size == L**2 grid = ge...
Java
This is an older post
Java
var Keyboard_Space = new function(){ this.initKeyboard = function(testing){ testmode = testing; return new Keyboard(); } var Keyboard = function(){ for(var i = 0; i < numChains; i++) currentSounds.push([]); var this_obj = this; Zip_Space...
Java
angular.module('booksAR') .directive('userNavbar', function(){ return{ restrict: 'E', templateUrl: './app/components/directives/user/user-navbar.html' }; }) .directive('userBooksTable', function(){ return{ restrict: 'E', templateUrl: './app/components/directives/user/user-books...
Java
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <div th:fragment="common-header"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>WickedThymeleafDemo</title> <link th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet" me...
Java
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base helper :all helper_method :current_user_session, :current_user filter_parameter_logging :password, :password...
Java
<?php namespace App\AAS_Bundle\Entity; use Doctrine\ORM\Mapping as ORM; use App\AAS_Bundle\Utils\AAS as AAS; /** * Person */ class Person { /** * @var integer */ private $id; /** * @var string */ private $surname; /** * @var string */ ...
Java
package me.streib.janis.nanhotline.web; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.net.InetSocketAddress; import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.SessionManager; import org.eclipse.jetty.server.h...
Java
const test = require('tap').test const GF = require('core/galois-field') test('Galois Field', function (t) { t.throw(function () { GF.log(0) }, 'Should throw for log(n) with n < 1') for (let i = 1; i < 255; i++) { t.equal(GF.log(GF.exp(i)), i, 'log and exp should be one the inverse of the other') t.equal(...
Java
import chalk = require("chalk"); import { take, select } from "redux-saga/effects"; import path = require("path"); import moment = require("moment"); import { titleize } from "inflection"; import { parallel } from "mesh"; import { weakMemo } from "../memo"; import AnsiUp from "ansi_up"; import { reader } from "../mona...
Java
<?php namespace Payname\Security; use Payname\Exception\ApiCryptoException; /** * Class Crypto * Extract from https://github.com/illuminate/encryption */ class Crypto { /** * The algorithm used for encryption. * * @var string */ private static $cipher = 'AES-128-CBC'; /** * En...
Java
# Wildcard string matcher ## Requirements - PHP 5.4 or greater (recommended). ## Installation 1. [Download all libraries](https://github.com/pedzed/libs/archive/master.zip) or [specifically download this one](https://raw.githubusercontent.com/pedzed/libs/master/src/pedzed/libs/WildcardStringMatcher.php). 2. Move ...
Java
--- layout: page title: Island Networks Seminar date: 2016-05-24 author: Sharon Gamble tags: weekly links, java status: published summary: Duis posuere erat eu orci faucibus, ac. banner: images/banner/leisure-05.jpg booking: startDate: 05/27/2017 endDate: 05/29/2017 ctyhocn: OKCBTHX groupCode: INS published: tr...
Java
'use strict'; // Test dependencies are required and exposed in common/bootstrap.js require('../../common/bootstrap'); process.on('uncaughtException', function(err) { console.error(err.stack); }); var codeContents = 'console.log("testing deploy");'; var reference = new Buffer(codeContents); var lists = deployment.j...
Java
""" Visualize possible stitches with the outcome of the validator. """ import math import random import matplotlib.pyplot as plt import networkx as nx import numpy as np from mpl_toolkits.mplot3d import Axes3D import stitcher SPACE = 25 TYPE_FORMAT = {'a': '^', 'b': 's', 'c': 'v'} def show(graphs, request, title...
Java
package de.verygame.surface.screen.base; import com.badlogic.gdx.InputMultiplexer; import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch; import com.badlogic.gdx.utils.viewport.Viewport; import java.util.Map; /** * @author Rico Schrage * * Context which can contain several subscreens. */ public class SubScreen...
Java
package x7c1.linen.scene.updater import android.app.Service import x7c1.linen.database.control.DatabaseHelper import x7c1.linen.glue.service.ServiceControl import x7c1.linen.repository.date.Date import x7c1.linen.repository.dummy.DummyFactory import x7c1.linen.repository.preset.PresetFactory import x7c1.wheat.macros.l...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_65) on Wed Dec 03 20:33:24 CET 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>net.sourceforge.pmd...
Java
import test from 'ava'; import escapeStringRegexp from './index.js'; test('main', t => { t.is( escapeStringRegexp('\\ ^ $ * + ? . ( ) | { } [ ]'), '\\\\ \\^ \\$ \\* \\+ \\? \\. \\( \\) \\| \\{ \\} \\[ \\]' ); }); test('escapes `-` in a way compatible with PCRE', t => { t.is( escapeStringRegexp('foo - bar'), ...
Java
--- layout: post title: 《青铜时代》 date: 2015-04-03 categories: - 一书 tags: [book] status: publish type: post published: true author_copyright: true author_footer: false --- >他要是发现自己对着时空作思想工作,一定以为是对牛弹琴,除了时空,还有诗意──妈的,他怎么会懂得什么叫做诗意。除了诗意,还有恶意。这个他一定能懂。这是他唯一懂得的东西。 >不过我倒因此知道了文明是什么。照我看,文明就是人们告别了原始的游猎生活,搬到一起来住。从此抬头不见低头见,大家都产生了一些共同的...
Java
<!DOCTYPE html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Place favicon.ico a...
Java
require File.dirname(__FILE__) + '/../lib/ruby_js' require 'test/unit' require 'active_support/test_case' RubyJS::Translator.load_paths << File.join(File.dirname(__FILE__), "mock") RubyJS::Translator.load
Java
--- layout: post title: 課業|蒙文通的經史觀 date: 2018-10-29 categories: blog tags: 功課 description: 蒙文通的經史觀 --- 20160627。大一下朞專必《歷史學理論與方法》作業。主題是「我心目中的歷史學」。當時班主任過來給我說「老師們覺㝵你那篇作業寫㝵不錯,我來轉達一下。」後來成績確實挺髙,不過我覺㝵也沒多好啊。㝡中二的是最後一節,當時剛接觸經學,就有這些中二想法,實際上多是別人的想法。䋣簡自動轉換,改了一些,可能還有錯。 ------ > `摘要` 本札記旨在槩述蒙文通對經學與史學關係的認識,這也是他治經的主要成就之一。蒙文通之治經,繞過西漢...
Java
const { InventoryError, NotFoundError } = require('../../errors') const checkExists = (data) => { return (entity) => { if (!entity) throw new NotFoundError(`${data} not found`) return entity } } module.exports = (sequelize, DataTypes) => { const Pokemon = sequelize.define('Pokemon', { name: DataTy...
Java
// File auto generated by STUHashTool using static STULib.Types.Generic.Common; namespace STULib.Types.Dump { [STU(0x6250465B)] public class STU_6250465B : STUInstance { [STUField(0x6674CA34)] public string m_6674CA34; [STUField(0xDC05EA3B)] public ulong m_DC05EA3B; [S...
Java
import hbs from 'htmlbars-inline-precompile'; import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('advanced-form/integer', { integration: true }); test('Render component with attributes', function(assert) { this.render( hbs`{{advanced-form/integer min=10 max=20 value=5}}` ); var $c...
Java
class DeluxePublisher::Settings < ActiveRecord::Base set_table_name 'deluxe_publisher_settings' end
Java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.core.http.policy; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.logging.LogLevel; import reactor.core.publisher.Mono; /** * Manages logging HTTP requests in {@link HttpLogg...
Java
import React from 'react' import { Hero } from '../../components' const HeroContainer = () => ( <Hero /> ) export default HeroContainer
Java