code
stringlengths
4
1.01M
import {Component, ViewEncapsulation, ViewChild, ElementRef} from '@angular/core'; import {InteractivityChecker} from './interactivity-checker'; /** * Directive for trapping focus within a region. * * NOTE: This directive currently uses a very simple (naive) approach to focus trapping. * It assumes that the tab o...
declare interface KernelOpts { // } declare interface StonehengeOpts { // } declare namespace NodeJS { interface Global { kernel: StonehengeKernel opts: StonehengeOpts hardReset: () => void } } // Extended Screeps globals interface Memory { pidCounter: number kernel: KernelMemory stats: an...
#!/usr/bin/env sh set -e silent=true run() { if [[ $silent == false ]] ; then eval "$1 " else eval "$1 &> /dev/null" fi } bold=$(tput bold) reset=$(tput sgr0) function print_important_message { if [[ $silent == false ]]; then echo "" printf "${bold}$1${reset}. " echo "" fi } srcdir=`dirname $0...
// // CLCAppDelegate.h // CLCBannerNotifications // // Created by CocoaPods on 06/02/2015. // Copyright (c) 2014 Calvin Cestari. All rights reserved. // @import UIKit; @interface CLCAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Cart do before :each do cart_item = Cart.new :product_id => 18, :unit_price => 6.50, :quantity => 7, :session_id => 999 cart_item2 = Cart.new :product_id => 29, :unit_price => 12.50, :quantity => 10, :session_id => 999 cart_ite...
require 'metricity-server/version' require 'metricity-server/log' require 'metricity-server/config' require 'metricity-server/daemon' require 'metricity-server/metric' require 'metricity-server/receiver' require 'metricity-server/dashboard' module Metricity # Server module Server end end
#include <algorithm> #include <utility> #include "ini_doc.hpp" namespace Utility { namespace { std::string& trim(std::string& str) { auto pos = str.find_first_not_of(" \t"); str.erase(0, pos); pos = str.find_last_not_of(" \t"); if (pos != str.npos) { str.erase(pos + 1); } ...
// // AppDelegate.h // JRTLeftSliderController // // Created by Juan Garcia on 1/7/16. // Copyright © 2016 jerti. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
require "active_model" class Document include ActiveModel::Model attr_accessor( :title, :description, :base_path, :public_updated_at, :end_date, :change_note, :format, :content_store_document_type, :organisations, :image_url, ) end
# Turtle Just a Rack Middleware to SlowDown too many requests client. :D
require 'rubygems' require 'test-unit'
* { margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; } body { background-image:url('../images/bg.png'); font-family: Trebuchet MS; max-width: 1400px; } #container { margin: 0 auto; width: 70%; background-color: #ffffff; } #header { background-color: #ff5628; padding: 3px 3px 3px 7px; color: #ffffff; borde...
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import uiBoostrap from 'angular-ui-bootstrap'; import angularJwt from 'angular-jwt'; let librariesModules = angular.module('app.libraries', [ uiRouter, uiBoostrap, angularJwt ]); export default librariesModules;
/** * Copyright (C) 2013-2015 * * @author coding.tom@gmail.com * @date 2013-7-9 * * @file tiny_malloc.h * * @remark * set tabstop=4 * set shiftwidth=4 * set expandtab * */ #ifndef __TINY_MALLOC_H__ #define __TINY_MALLOC_H__ #if defined(__ANDROID__) #include "linux/tiny_malloc.h" #...
--- layout: post title: The Streak date: 2005-06-27 17:39 author: admin comments: true categories: [Life] --- The streak keeps on keeping on. My first couch arrived this weekend and, well, it wouldn&apos;t fit in the elevator. It was 3 inches too long! What are the odds? To top it off about an hour after the delive...
require 'mock/bot/server_mock' require 'mock/bot/role_mock' require 'mock/bot/channel_mock' require 'mock/bot/command_mock' require 'mock/bot/command_event_mock' require 'mock/bot/log_events_mock' module Mock class CommandBot def initialize @commands = {} end def command(name, *attributes, &block)...
package cn.newcapec.jwxt.jcxxgl.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * JwxtPkxtBjkb entity. @author MyEclipse Persiste...
#!/usr/bin/env python3 import sys import os import urllib.request import path_utils # credit: https://stackoverflow.com/questions/22676/how-to-download-a-file-over-http def download_url(source_url, target_path): if os.path.exists(target_path): return False, "Target path [%s] already exists" % target_pa...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Core\User; use Symfony\Component\Security\Co...
ar_menu=new Array('downloaded','featured','popular','new','free','random'); str=1; id_component=0; ctype_component=""; flag_auto=true; res=""; function zcomponent(id,ctype,page) { if(id!=id_component) { document.getElementById('home_boxes').innerHTML = ""; } str=page; var req = new JsHttpRequest(); ...
// <copyright file="Delegates.cs" company="Autonomic Systems, Quamotion"> // Copyright (c) Autonomic Systems. All rights reserved. // Copyright (c) Quamotion. All rights reserved. // </copyright> using System; using System.Runtime.InteropServices; namespace TurboJpegWrapper { /// <summary> /// A callback fun...
import Ember from 'ember'; import config from './config/environment'; import googlePageview from './mixins/google-pageview'; const Router = Ember.Router.extend(googlePageview, { location: config.locationType }); Router.map(function() { this.route('routes', function(){ this.route('route', { path: "/:route-id"...
--- layout: default --- <div class="post"> <h1>{{ page.title }}</h1> <span class="post-date">{{ page.date | date_to_string }}</span> {{ content }} </div> <div class="related"> <h2>Related Posts</h2> <ul class="related-posts"> {% for post in site.related_posts limit:3 %} <li> <h3> ...
# Plot histogram import os import numpy as np from plantcv.plantcv.threshold import binary as binary_threshold from plantcv.plantcv import params from plantcv.plantcv import fatal_error from plantcv.plantcv._debug import _debug import pandas as pd from plotnine import ggplot, aes, geom_line, labels, scale_color_manual...
import { Data } from 'fake-types-lib-2/data'; export declare type MyData = Data | string; export {};
// // SPTestRailReporter.h // DocsAtWork // // Created by Siddartha Polisetty on 3/22/16. // Copyright (c) 2016 Siddartha Polisetty // // 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 Softwar...
package com.jayway.rps.game; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; import java.util.UUID; import com.jayway.es.api.Event; public class EventStringUtil { public static String toString(Event event) { String simpleName = event.getClass().getSimpleName(); Map<String, Object...
<?php /** * Recursively iterates files starting from a base path, replacing strings in any files matching a valid Mime type * @param $aBasePaths - Array of base paths which will each be iterated recursively to find files for string replacement * @param $aStringReplacements - Associative array of str...
require 'fathom_authorization_system' # Methods added to this helper will be available to all templates in the application. module ApplicationHelper include FathomAuthorizationSystem def stylesheet_files if APPLICATION_DOMAIN == 'shanti.virginia.edu' #['fathom', 'jquery-ui','jquery.autocomplete', '...
nav{height:64px;line-height:64px;border-bottom:1px solid gray}nav::after{content:'';display:block;clear:both}#nav-head{float:left;height:20px;line-height:20px}#nav-p{float:right;height:20px;line-height:20px}footer{position:fixed;bottom:0;left:0;right:0;text-align:center}
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, RouterStateSnapshot, Router, Route, CanActivate, CanActivateChild, CanLoad } from '@angular/router'; import { AuthService } from './auth.service'; @Injectable() export  class AuthGuard implements CanActivate, CanActivateChild, CanLo...
<?php /* * Sendanor SimpleREST PHP Framework * Copyright 2017-2020 Jaakko Heusala <jheusala@iki.fi> */ namespace SimpleREST\Legacy; /* Security check */ if(!defined('REST_PHP')) { die("Direct access not permitted\n"); } /** Collection of elements */ abstract class Collection extends Resource implements iCollec...
import assert from 'assert' import { planetposition, julian, sexagesimal as sexa } from '../src/index.js' import data from '../data/index.js' describe('#planetposition', function () { describe('position2000', function () { it('Mars at 2415020.0', function () { // Mars 1899 spherical data from vsop87.chk. ...
//Pathway model var FormModel = function () { var self = this; self.id = undefined; self.name = undefined; self.dataElements = [] ko.track(self); self.previewForm = function(){ console.log('need to add form preview here') ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('basicviz', '0002_auto_20160717_1939'), ] operations = [ migrations.AlterField( model_name='document', ...
version https://git-lfs.github.com/spec/v1 oid sha256:3e0c436bb4be5a94bea0b2ce84121c3a8c6fbe226e7559f80cd0db5b4b93fdb0 size 17334
<% if(data.date) { %> <p class="chat-message-date"><%= data.date %></p> <% } %> <li class="chat-message <%= (data.mine ? 'chat-message-mine' : '') %>" data-message-id="<%= data.cid %>" > <h3 class="chat-message-user" ><%= data.user %></h3> <p class="chat-message-text"><%= data.body %></p> </li>
# Development ## How to build a project To build the project you need to install [.NET Core 5.0 SDK](https://www.microsoft.com/net/download). ```bash git clone https://github.com/thinking-home/migrator.git cd migrator dotnet restore dotnet build ``` ## How to run tests The basic logic of the migrator and the l...
<?php // .pomm_cli_bootstrap.php $loader = require_once __DIR__.'/app/bootstrap.php.cache'; require_once __DIR__.'/app/AppKernel.php'; $kernel = new AppKernel('dev', true); $kernel->loadClassCache(); $kernel->boot(); return $kernel->getContainer()->get('pomm');
// Demonstrate using qpilotsync for carrier recovery. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <getopt.h> #include <assert.h> #include "liquid.h" void usage() { printf("%s [options]\n", __FILE__); printf(" h : print usage\n"); printf(" n...
using System; namespace C5 { /// <summary> /// An exception thrown when an operation attempts to create a duplicate in a collection with set semantics /// (<see cref="P:C5.IExtensible`1.AllowsDuplicates"/> is false) or attempts to create a duplicate key in a dictionary. /// <para>With collections this...
@extends('app') @section('content') <div class="container-fluid"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Register</div> <div class="panel-body"> ...
# PHP ISVU REST API Client (Pirac) Pirac can be used to easily communicate with the [ISVU REST API v2](https://www.isvu.hr/api/dokumentacija/v2-hal/index.html). ## Installation Add these lines to your composer.json file: ```javascript "require": { "cicnavi/pirac": "dev-master" } ``` Next, run _composer update_...
# redispool hack redis-py, add overlimit for connection pool
<?php /* * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. */ namespace AppBundle\Test; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; /** * Tests for dead links. */ class URLTest extends WebTestCase { /** * @Test * ...
--- layout: post title: Vim 基础命令 date: 2016-11-30 21:00:00 author:     hweining header-img: "img/post-bg-unix-linux.jpg" --- ## Vim 以前玩 Python 及之前用 Git 因为不熟悉 Vim 遇到了很多坑,进而导致屡次学习各项语言的放弃...惨痛教训就源于这莫名其妙的 Vim... 整理一下思路,重新出发。 Vi/Vim 常用的有三种模式: 1. 普通 模式 默认进入界面时的模式,此时只支持 Vi/Vim 的指令 2. Insert 模式 此模式下才能插入文本 3....
/*! \file update.h \brief Update definition \author Ivan Shynkarenka \date 09.08.2017 \copyright MIT License */ #ifndef CPPTRADER_MATCHING_UPDATE_H #define CPPTRADER_MATCHING_UPDATE_H #include "utility/iostream.h" #include <cstdint> namespace CppTrader { namespace Matching { //! Update type enu...
--- title: Thoughts about recruitment date: 2019-05-28 11:18:00 Z categories: - recruitment tags: - recruitment - hr --- In may I faced some non typical situation. My new customer canceled our contract before it started. I was left without any project. Initially I was disappointed and angry about this situation, but i...
package com.smash.player.Models; import com.orm.*; public class Artista extends SugarRecord { public String name; public Artista() {} public Artista(Long id,String name){ setId(id);setName(name);save(); } public void setName(String name) { this.name = name; } public String getName() { return name; ...
import { Recipe, RecipeContainer } from '../class/recipe'; import { Items as i } from '../constants/items'; import { Equipment as e } from '../class/equipment'; import { Categories as c } from '../constants/categories'; import { Units as u } from '../constants/units'; import { Text as text } from '../class/text'; impor...
using System; using System.Collections.Generic; using System.Linq; using System.Drawing; using Foundation; using UIKit; using Alliance.Carousel; namespace Sample { public class ZeroItemLinearViewController : UIViewController { public List<nint> items; CarouselView carousel; public Zero...
set artifacts=%~dp0artifacts if exist %artifacts% rd /q /s %artifacts% call dotnet restore src/Es.Extensions.Logging.NLog call dotnet pack src/Es.Extensions.Logging.NLog -c release -o %artifacts% pause
declare namespace Xrm { interface EntityDefinition { EntitySetName: string; } namespace Attributes { interface LookupAttribute { getLookupTypes(): LookupValue[]; } } namespace Controls { interface Control { getAttribute(): Xrm.Attributes.Attribute; } } namespace Page { ...
export interface DetectedFeatures { draggable:boolean; dragEvents:boolean; userAgentSupportingNativeDnD:boolean; } export function detectFeatures():DetectedFeatures { let features:DetectedFeatures = { dragEvents: ("ondragstart" in document.documentElement), draggable: ("draggable" in d...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>quickchick: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
(function () { window.onload = function () { var stage, layer, layerBG, ball, constants, onJump, isOver; stage = new Kinetic.Stage({ container: 'kinetic-container', width: document.body.clientWidth, ...
package com.github.twitch4j.helix.domain; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.PropertyNamingStrategy; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.AccessLevel; import lomb...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * MIT License * * Copyright (c) 2017 ITGorillaz * * 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, mo...
<?php /** * Class CreateTableLogger */ class CreateTableLogger extends SQLLoggerAbstract { /** * */ function prepare() { } /** * */ function setHint() { $this->hint = "Добавлена таблица"; } }
using System; using NetOffice; using NetOffice.Attributes; namespace NetOffice.MSHTMLApi.Enums { /// <summary> /// SupportByVersion MSHTML 4 /// </summary> [SupportByVersion("MSHTML", 4)] [EntityType(EntityType.IsEnum)] public enum _styleWordWrap { /// <summary> /// SupportByVersion MSHTML 4 /// </s...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); $this->load->view('layout/header'); $fname = isset($cust[0])? $cust[0]->name : ''; $ntn = isset($cust[0])? $cust[0]->ntn : ''; $adress= isset($cust[0])? $cust[0]->adress : ''; $email = isset($cust[0])? $cust[0]->email : ''; $phone = isset($cust[0])...
<?php namespace Bedrijven\FicheBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->...
dining-at-cu ============ Ever wanted 2 look at the menu? If u are developing: After you edit any javascript or whatever, just run "make" before u try to load it. You also need browserify installed lol.
package com.wavesplatform.state.diffs import cats.instances.map._ import cats.syntax.semigroup._ import com.wavesplatform.account.Address import com.wavesplatform.features.BlockchainFeatures import com.wavesplatform.lang.ValidationError import com.wavesplatform.state._ import com.wavesplatform.transaction.Asset.{Issue...
(function($){ DashboardModel = Backbone.Model.extend({ url: "/sync" }); SyncStatusModel = Backbone.Model.extend({ url: "/sync/status" }); DeleteModel = Backbone.Model.extend(); DashboardView = Backbone.View.extend({ el: $("#form_block"), events: { "click .sync-now": "syncNow",...
// Copyright 2008 Gautam Sewani // Copyright 2013 Paul A. Bristow // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) #ifdef _MSC_VER # pragma warning (disable : 4127) /...
<header> <a id="go-back-home" href="{{ site.url }}"><img src="http://i.imgur.com/1I4y8Rr.jpg" alt="scribble" width="53" height="59"></a> <p>{{ site.title }}</p> </header>
const Homeassistant = require('./../index') // Connect to home-assistant let ha = new Homeassistant({ host: '192.168.1.166' }) ha.connect() .then(() => { // subscribe to state changes ha.on('state:media_player.spotify', data => { console.log(data) }) // access current state console.log(...
# -*- coding: utf-8 -*- # pylint: disable=not-context-manager,useless-object-inheritance # NOTE: The pylint not-content-manager warning is disabled pending the fix of # a bug in pylint https://github.com/PyCQA/pylint/issues/782 # NOTE: useless-object-inheritance needed for Python 2.x compatability """This module con...
<table class="wiki-content-table"> <tr> <td>foo<br /> #<br /> # foo</td> <td>foo<br /> <br /> foo</td> </tr> </table>
import { SkyColorpickerOutput } from './colorpicker-output'; /** * Indicates the color that users apply when they select Apply in the colorpicker. */ export interface SkyColorpickerResult { /** * Describes the color that users select in the colorpicker. */ color: SkyColorpickerOutput; }
package org.multiverse.stms.gamma.transactionalobjects.txnlong; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.multiverse.api.LockMode; import org.multiverse.api.TxnFactory; import org.multiverse.api.exceptions.*; import org.multivers...
/** * Created by whobird on 17/4/10. */ var winResizeDuration=null; $(document).ready(function(){ if(!IsPC()){ window.location="./index.html"; return; } //project init //start $("img.lazy").lazyload({ event : "sporty", effect : "fadeIn" }); setPage(); ...
import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'app-punch', templateUrl: './punch.component.html', styleUrls: ['./punch.component.css'] }) export class PunchComponent implements OnInit { @Input() value: string; step: number = 0.1; min: number = 0.0; max: number = 23.9...
/* Title: NWERC 2015 Description: TUM goes to Sweden to participate in the Northwestern Europe Regional Contest of the ICPC. Date: 2015/11/26 Template: news */ As every year in late November, the Northwestern European Regional Contest is upon us. For nine students from TUM, this is the moment they have been training f...
import config from './config'; describe('config', function(){ it('should exist', function(){ expect(config).to.be.an('object'); }); it('should contain the required keys', function(){ expect(config.ngxDirective).to.be.an('object'); expect(config.ngxDirective.name).to.be.a('string'); }); });
/** * Created by tushar.mathur on 26/01/16. */ 'use strict' import test from 'ava' import splitRange from '../src/splitRange' test((t) => { t.same(splitRange(100, 2), [[0, 49], [50, 100]]) t.same(splitRange(100, 3), [[0, 32], [33, 65], [66, 100]]) })
The MIT License (MIT) Copyright (c) 2015 Hassan Althaf - Website: HassanAlthaf.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 limitation the rights to ...
express-expeditious =================== ![https://travis-ci.org/evanshortiss/express-expeditious](https://travis-ci.org/evanshortiss/express-expeditious.svg) [![npm version](https://badge.fury.io/js/express-expeditious.svg)](https://badge.fury.io/js/express-expeditious) [![https://coveralls.io/repos/github/evanshortiss...
from logika import IGRALEC_R, IGRALEC_Y, PRAZNO, NEODLOCENO, NI_KONEC, MAKSIMALNO_STEVILO_POTEZ, nasprotnik from five_logika import Five_logika from powerup_logika import Powerup_logika, POWER_STOLPEC, POWER_ZETON, POWER_2X_NW, POWER_2X_W from pop10_logika import Pop10_logika from pop_logika import Pop_logika import ra...
"use strict"; var Q = require("q"); var winston = require("winston"); var check = require('validator').check; var Rule = function() {}; Rule.prototype.initializeFromJson = function(json) { var self = this; return Q.fcall(function() { if(!json) throw new Error("JSON was not provided."); if(!j...
using System.Collections.Generic; using System.Linq; using System.Web.Hosting; using RestSharp; using Swagolicious.Models; namespace Swagolicious.Service { public class Meetup { public List<Result> LoadFromMeetup() { return new InMemoryCache().Get("Meetup.Attendees", () => ...
<!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> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>JsDoc Reference - Index</title...
<?php namespace Hvanoch\Component\DateIntervalParser; class DateIntervalParser { /** @var array */ protected $aliases = array( 'y' => 'y,yr,yrs,year,years', 'm' => 'm,mo,mon,mos,mons,month,months', 'w' => 'w,we,wk,week,weeks', 'd' => 'd,dy,dys,day,days', 'h' => 'h,hr,hr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Tevent_1 = require("../../../events/Tevent"); class TagentEvent extends Tevent_1.Tevent { constructor(type, eventData = null, cancelable = true) { super(type, eventData, cancelable); } } TagentEvent.FAILURE = "FAI...
package com.accela.ObjectStreams; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; import com.accela.ObjectStreams.support.ObjectOutputStreamSupport; /** * * Ò»¡¢HP¶ÔÏóÊä³öÁ÷(ÎÒÆðµÄÃû×Ö)¡£Õâ¸ö¶ÔÏóÊä³öÁ÷ÓÉ·´Éäд³É¡£ * ¿ÉÒÔ¶ÁÈ¡»òÊä³ö£º * 1¡¢¶ÁȡӵÓпÉÒÔͨ¹ý·´Éä...
<!DOCTYPE html> <html> {% include header.html %} {% include google_analytics.html %} <body> {{ content }} </body> </html>
PHP-DBChecker ============= A simple Database consistency check tool fully customizable written in PHP. Out of the plethora of automated database consistency checker I've made my own one. With Blackjack and Hookers.
// Copyright 2019 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package gzip import ( "bufio" "errors" "fmt" "io" "net" "net/http" "regexp" "strconv" "strings" "sync" "gitea.com/macaron/macaron" "github.com/...
using System; using System.IO; using AM.IO; using AM.Json; using AM.Runtime; using AM.Text; using AM.Xml; using JetBrains.Annotations; using ManagedIrbis; using ManagedIrbis.Client; using ManagedIrbis.Ibf; using ManagedIrbis.Ibf.Infrastructure; using ManagedIrbis.Ibf.Infrastructure.Ast; using Microsoft.VisualStudi...
body { padding: 30px; font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; } a { color: #00B7FF; } div.main { border: 1px solid #e1e4e8; } input[type="button"] { color: #FFF; background-color: #5cb85c; cursor: pointer; border: none; margin: 1em, 0.25em, 0, 0; padding: 6px; font-weight: 700...
var http = require("http"); var server = http.createServer(function(request, response) { response.writeHead(200, { "Grip-Hold": "response", "Grip-Channel": "mychannel", "Grip-Timeout": "60"}); response.write('<b>Hello {{name}}</b>!'); response.end(); }); ...
<!doctype html public "embarassment"> <title>Markdown Example</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> <style type="text/css"> .markdown-group { overflow: hidden; border: 1px solid #CCC; border-radius: 4px; } .markdown-field { border: none; border...
/* * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * ...
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization //...
/* * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
## 描述 实现 Flatten Arrays 的功能:将数组(可以包含数字,或数组,数组的数组。。。)展开为一层 ## 例子 Input: var input = [2, 1, [3, [4, 5], 6], 7, [8]]; Output: [2, 1, 3, 4, 5, 6, 7, 8] ## 代码 ```go package main import ( "reflect" "fmt" ) func listFlatten(inputList []interface{}, intList *[]int) { for _, value := range inputList { if reflect.TypeOf...
<?php /** * This file is part of the GraphAware Neo4j Client package. * * (c) GraphAware Limited <http://graphaware.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace GraphAware\Neo4j\Client\HttpDriver; use GraphAwar...
require 'php_ruby/io/functions' Object.send :include, PhpRuby::Io::Functions