repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
zhilianxinke/attendance | src/com/sincsmart/attendance/util/DensityUtils.java | 1335 | package com.sincsmart.attendance.util;
import com.activeandroid.util.Log;
import android.content.Context;
import android.util.TypedValue;
//常用单位转换的辅助类
public class DensityUtils {
private DensityUtils() {
/* cannot be instantiated */
throw new UnsupportedOperationException("cannot be instantiated");
}
/**
... | mit |
PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js | 975 | // 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... | mit |
nunof07/chrome-mumble | src/pages/action.html | 727 | <!DOCTYPE html>
<html ng-app="app" ng-strict-di ng-csp>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mumble Channel Viewer Background page</title>
<link rel="stylesheet" href="../css/vendor.min.css">... | mit |
v8-dox/v8-dox.github.io | 3f3a71e/html/classv8_1_1_heap_graph_edge.html | 9845 | <!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" content="IE=9"/>
<meta name="generator" con... | mit |
sindresorhus/refined-github | source/features/clean-rich-text-editor.tsx | 650 | import './clean-rich-text-editor.css';
import select from 'select-dom';
import onetime from 'onetime';
import * as pageDetect from 'github-url-detection';
import features from '.';
function hideButtons(): void {
document.body.classList.add('rgh-clean-rich-text-editor');
}
function hideTextareaTooltip(): void {
for... | mit |
dcripplinger/rotj | data/images/portraits/copy_portraits.py | 341 | import subprocess
with open('names.txt') as f:
names = f.read().splitlines()
with open('portraits.txt') as f:
portraits = f.read().splitlines()
for i, name in enumerate(names):
portrait = portraits[i]
if portrait.endswith('.png'):
subprocess.call(['cp', 'minor/{}'.format(portrait), '{}.png'.fo... | mit |
hrabbit/newzearch | fuel/app/views/admin/group/create.php | 128 | <h2>New Group</h2>
<br>
<?php echo render('admin/group/_form'); ?>
<p><?php echo Html::anchor('admin/group', 'Back'); ?></p>
| mit |
ScienceCommons/www | README.md | 1500 | # CurateScience Client
This repository is the frontend/client for the [CurateScience](https://www.curatescience.org/) application. It's a single-page Javascript app written in the [Mithril Framework](https://lhorie.github.io/mithril/). It uses [Grunt](http://gruntjs.com/) for task running and [webpack](http://webpack.... | mit |
safex/safex_wallet | src/components/partials/TransactionSentModal.js | 4367 | import React from "react";
export default class TransactionSentModal extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div className={this.props.transactionSent ? "transaction-sent-wrap active" : "transaction-... | mit |
matthewsot/CocoaSharp | Headers/PrivateFrameworks/iWorkImport/TSTPasteMap.h | 1599 | /*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
// Not exported
@interface TSTPasteMap : NSObject
{
set_d5b49e31 mRowTgtToPbMaps;
set_d5b49e31 mColumnTgtToPbMaps;
}
- (id).cxx_construct;
- (void)... | mit |
connormanning/arbiter | arbiter/drivers/http.hpp | 5624 | #pragma once
#include <vector>
#include <memory>
#ifndef ARBITER_IS_AMALGAMATION
#include <arbiter/driver.hpp>
#include <arbiter/util/http.hpp>
#endif
#ifdef ARBITER_CUSTOM_NAMESPACE
namespace ARBITER_CUSTOM_NAMESPACE
{
#endif
namespace arbiter
{
namespace drivers
{
/** @brief HTTP driver. Intended as both a stan... | mit |
verdonarthur/Teaching-HEIGVD-RES-2016-Labo-HTTPInfra | docker-images/node-image/src/jsonPayloadGen.js | 1797 | Chance = require('chance');
chance = new Chance();
function generateStudent() {
var numberOfStudent = chance.integer({
min: 0,
max: 10
})
console.log(numberOfStudent);
var students = [];
for (var i = 0; i < numberOfStudent; i++) {
var birthYear = chance.year({
... | mit |
xu6148152/Binea_Python_Project | PythonCookbook/interaction_c/setup.py | 474 | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
from distutils.core import setup, Extension
setup(name='sample',
ext_modules=[
Extension('sample',
['pysample.c'],
include_dirs=['/some/dir'],
define_macros=[('FOO', '1')],
... | mit |
jpush/jchat-web | src/app/components/create-group/create-group.component.html | 3916 | <div class="modal-shadow" (click)="stopPropagation($event)">
<div class="modal-content create-group-container">
<h2 class="modal-title">
<span *ngIf="!createGroup.info.action">发起群聊</span>
<span *ngIf="createGroup.info.action === 'add'">添加群成员</span>
<span *ngIf="createGrou... | mit |
debflav/scrum | src/Override/ScrumBundle/Controller/UserController.php | 7518 | <?php
namespace Override\ScrumBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Confi... | mit |
aguadev/aguadev | html/plugins/core/Agua/File.js | 19766 | dojo.provide("plugins.core.Agua.File");
/* SUMMARY: THIS CLASS IS INHERITED BY Agua.js AND CONTAINS FILE CACHE
AND FILE MANIPULATION METHODS
*/
dojo.declare( "plugins.core.Agua.File", [ ], {
/////}}}
// FILECACHE METHODS
getFoldersUrl : function () {
return Agua.cgiUrl + "agua.cgi?";
},
setFileCaches : fun... | mit |
RogelioGit/prestadores | app/temporal.html | 13859 | <!DOCTYPE html>
<!--
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.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" cont... | mit |
litepubl/cms | lib/admin/widget/Widget.php | 1705 | <?php
/**
* LitePubl CMS
*
* @copyright 2010 - 2017 Vladimir Yushko http://litepublisher.com/ http://litepublisher.ru/
* @license https://github.com/litepubl/cms/blob/master/LICENSE.txt MIT
* @link https://github.com/litepubl\cms
* @version 7.08
*/
namespace litepubl\admin\widget;
use litepubl\admin\... | mit |
frankfoerster/cakephp-migrations | Model/Exception/IndexAlreadyExistsException.php | 537 | <?php
/**
* Copyright (c) Frank Förster (http://frankfoerster.com)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Frank Förster (http://frankfoerster.co... | mit |
AppStudioSamples/Menu | scr/ClientApp/AppStudio.Data/DataSchemas/MainSchema.cs | 2679 | using System;
using System.Collections;
namespace AppStudio.Data
{
/// <summary>
/// Implementation of the MainSchema class.
/// </summary>
public class MainSchema : BindableSchemaBase, IEquatable<MainSchema>
{
private string _title;
private string _subtitle;
private string ... | mit |
mcodegeeks/OpenKODE-Framework | 04_Sample/BattleCity/Source/Views/MainScene.h | 2201 | /* --------------------------------------------------------------------------
*
* File MainScene.h
* Description
* Ported By Young-Hwan Mun
* Contact xmsoft77@gmail.com
*
* --------------------------------------------------------------------------
*
* ... | mit |
chinafzy/java-practise | src/main/java/org/onceatime/concurrent/RwSample.java | 1437 | package org.onceatime.concurrent;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class RwSample {
public static void main(String[] args) {
class CachedData {
Object data;
volatile boolean cacheValid;
final ReentrantReadWriteLock rwl = new ReentrantReadWriteLock();
... | mit |
zant95/otpauth | src/utils/is-node.js | 215 | import { globalThis } from './global-this';
/**
* Detect if running in Node.js.
* @type {boolean}
*/
const isNode = Object.prototype.toString.call(globalThis.process) === '[object process]';
export { isNode };
| mit |
shovemedia/GigaJS | js/src/lib/History.js | 71024 | /**
* History.js Core
* History.js HTML4 Support
* @author Benjamin Arthur Lupton <contact@balupton.com>
* @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
define(function(require){
"use strict";
// ==================... | mit |
iluminar/goodwork | resources/lang/bn/pagination.php | 575 | <?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagi... | mit |
calvinfarias/IC2015-2 | BOOST/boost_1_61_0/libs/mpi/doc/html/boost/mpi/any_tag.html | 4028 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Global any_tag</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="../../index.html" title="Chap... | mit |
chovy/tabbed-navigation | releases/jquery.tabbed-1.0.1/jquery.tabbed.css | 1025 | /*!
* jQuery.tabbed() v1.0.1
* https://github.com/chovy/tabbed-navigation
*
* Copyright 2012, Anthony Ettinger
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Date: Tue Feb 14 19:48:04 PST 2012
*/
.tabbed .tabs:after, .clfx:after { content: '.'; display: block; visibility: hidden; overflow: hidden... | mit |
kuhlenh/port-to-core | Reports/ra/rabbitbus.serialization.json.2.1.0/RabbitBus.Serialization.Json-net40.html | 13357 |
<!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>
... | mit |
lufengfan/SamLu.RegularExpression | src/SamLu.RegularExpression/Extend/RegexMultiBranchBranchCollection.cs | 9630 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SamLu.RegularExpression.Extend
{
/// <summary>
/// 包含所有正则复数分支的分支的集合。
/// </summary>
/// <typeparam name="T">正则接受... | mit |
IDepla/polibox | src/main/java/it/polito/ai/polibox/web/controllers/authentication/CustomSecurityAuthenticationInterceptor.java | 3118 | /*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015 Igor Deplano
*
* 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 So... | mit |
RNCan/WeatherBasedSimulationFramework | wbs/src/ModelBase/GridHelp.cpp | 6502 | //****************************************************************************
// Fichier: GridHelp.cpp
// Classe: CGridHelp
// Usage:
//
// To use CGridHelp. There are 3 steps:
// 1) initialization of the DLL with the method : Initialize
// 2) Open a grid and used it :
// Open
// GetValue
// ... | mit |
cosven/feeluown-core | fuocore/netease/models.py | 6421 | import logging
import time
import os
from fuocore.models import (
BaseModel,
SongModel,
LyricModel,
PlaylistModel,
AlbumModel,
ArtistModel,
SearchModel,
UserModel,
)
from .provider import provider
logger = logging.getLogger(__name__)
MUSIC_LIBRARY_PATH = os.path.expanduser('~') + '/M... | mit |
sejalkhatri/WikiEduDashboard | test/reducers/article_details.spec.js | 981 | import deepFreeze from 'deep-freeze';
import article_details from '../../app/assets/javascripts/reducers/article_details';
import { RECEIVE_ARTICLE_DETAILS } from '../../app/assets/javascripts/constants/article_details';
import '../testHelper';
describe('article_details reducer', () => {
it('Should return initial st... | mit |
jlaunonen/kirppu | manage.py | 257 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kirppu_project.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| mit |
NedkoNedevv/Fundamentals | Arrays - More Exercises/2.Array Elements Egual To Their Index/arrElementEgualIndex.cs | 613 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _2.Array_Elements_Egual_To_Their_Index
{
class arrElementEgualIndex
{
static void Main(string[] args)
{
int[] array = Console.ReadLine().Split(' ')
... | mit |
ukuhnhardt/codekit-scanner | README.md | 935 | # codekit-scanner
```
$ npm install codekit-scanner
```
Scans Codekit dependencies of a core JS file like
```
// @codekit-prepend 'js/framework.utilities.js'
// @codekit-prepend 'js/framework.file.js'
// @codekit-prepend 'core.config.js'
(function(){
console.log("Hello World, I am core.js");
})()
// @codekit-appen... | mit |
cliffano/swaggy-jenkins | clients/scala-gatling/generated/src/gatling/scala/org/openapitools/client/model/FreeStyleProject.scala | 2755 |
package org.openapitools.client.model
case class FreeStyleProject (
_class: Option[String],
_name: Option[String],
_url: Option[String],
_color: Option[String],
_actions: Option[List[FreeStyleProjectactions]],
_description: Option[String],
_displayName: Option[String],
_displayNameOrN... | mit |
ymc-maha/grease-harvest | README.md | 209 | # Greasemonkey Script for Harvest
Greasemonkey is a Firefox extension that allows you to customize the way webpages look and function.
http://www.greasespot.net/
This Script adds some custom Buttons Harvest
| mit |
drupalhunter-team/TrackMonitor | ExternalComponents/Tolua/src/tests/tconstant.cpp | 278 | extern "C"
{
#include "lualib.h"
#include "lauxlib.h"
}
#include "tconstant.h"
int main (void)
{
int tolua_tconstant_open (lua_State*);
lua_State* L = lua_open();
luaL_openlibs(L);
tolua_tconstant_open(L);
luaL_dofile(L,"tconstant.lua");
lua_close(L);
return 0;
}
| mit |
garyhsieh/mturk-survey | test/unit/resubmit_test.rb | 122 | require 'test_helper'
class ResubmitTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| mit |
garethj-msft/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsMultiNomialRequestBuilder.cs | 1006 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | mit |
mrq-cz/ourcity | OurCity/OurCity/OurCity/PhysicObjects/CarObject.cs | 3827 | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using JigLibX.Vehicles;
using JigLibX.Collision;
namespace OurCity.PhysicObjects
{
class CarObject : PhysicObject
{
private Car car;
private Model wheel;
... | mit |
goodwinxp/Yorozuya | library/ATF/_AVATOR_DATARegister.hpp | 679 | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_AVATOR_DATADetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Register
{
class _AVATOR_DATARegister : public IRegister
... | mit |
user-tony/photon-rails | lib/assets/images/photon/plugins/elrte/js/bootstrap/css/css_compiled/css/css_compiled/js/plugins/elrte.en.js.html | 14373 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/images/photo... | mit |
yoonslee/project2-game | controllers/itemController.js | 522 | var db = require('../models');
exports.checkItemsList = function (req, res, next) {
var data = {
items: []
};
db.Item.findAll().then(function (results) {
for (var i = 0; i < results.length; i++) {
data.items.push(results[i].dataValues);
}
// console.log(data.items);
console.log('item... | mit |
LasLabs/python-helpscout | helpscout/domain/__init__.py | 7131 | # -*- coding: utf-8 -*-
# Copyright 2017-TODAY LasLabs Inc.
# License MIT (https://opensource.org/licenses/MIT).
import properties
from datetime import datetime, date
from ..base_model import BaseModel
class Domain(properties.HasProperties):
"""This represents a full search query."""
OR = 'OR'
AND = '... | mit |
previewict/cakephp-form-builder | app/Config/core.php | 13709 | <?php
/**
* This is core configuration file.
*
* Use it to configure core behavior of Cake.
*
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 0.2.9
*/
/**
* CakePHP Debug Level:
*
* Production Mode:
* 0: No error messages, errors, or war... | mit |
mateuszzwierzycki/Owl | Owl.GH/Components/Owl.Learning/Reinforcement/2/ChooseAction.vb | 1543 | Public Class ChooseAction
Inherits GH_Component
Sub New()
MyBase.New("Choose Action", "Action", "Choose agent next action", "Owl.Learning", "Reinforcement")
End Sub
Public Overrides ReadOnly Property ComponentGuid As Guid
Get
Return New Guid("{7B38BC76-BD51-48F2-B122-84FB91079021}")
End Get
End P... | mit |
woodedlawn/woodcoin | src/qt/bitcoingui.cpp | 29694 | /*
* Qt4 bitcoin GUI.
*
* W.J. van der Laan 2011-2012
* The Bitcoin Developers 2011-2012
*/
#include <QApplication>
#include "bitcoingui.h"
#include "transactiontablemodel.h"
#include "optionsdialog.h"
#include "aboutdialog.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "walletframe.h"
#include "... | mit |
mafulong/mafulong.github.io | _posts/Algorithms/leetcode/2021-05-22-1862. 向下取整数对和.md | 1663 | ---
layout: post
category: leetcode
title: 1862. 向下取整数对和
tags: leetcode
---
## title
[problem link](https://leetcode-cn.com/problems/sum-of-floored-pairs/)
给你一个整数数组 `nums` ,请你返回所有下标对 `0 <= i, j < nums.length` 的 `floor(nums[i] / nums[j])` 结果之和。由于答案可能会很大,请你返回答案对`109 + 7` **取余** 的结果。
函数 `floor()` 返回输入数字的整数部分。
**示例 1... | mit |
mardix/pylot | pylot/app_templates/manage.py | 1343 | """
Pylot command line tool
manage.py
Command line tool to manage your application
"""
import argparse
from application import get_config
import application.model as model
from pylot import utils
config = get_config()
NAME = "Pylot Manager"
__version__ = config.APP_VERSION
def setup():
# Create all db
mo... | mit |
kuhlenh/port-to-core | Reports/ja/jackieutils.1.3.0.6/JackieUtils-net40.html | 102170 |
<!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>
... | mit |
RainKolwa/goon_cowala_feb | src/components/Loadbox/Index.js | 1235 | import $ from 'jquery'
import template from './Loadbox.html'
import Mustache from 'mustache'
import img1 from '../../images/load-circle.png'
import img2 from '../../images/load-bg.png'
import img3 from '../../images/logo.png'
import img4 from '../../images/slogan.png'
import img5 from '../../images/panel-bg.jpg'
impor... | mit |
gridonic/postcss-replace | test/index.test.js | 3694 | const postcss = require('postcss');
const fs = require('fs');
const plugin = require('../index');
const pkg = require('../package.json');
/**
* Runs the plugins process function. Tests whether the given input is equal
* to the expected output with the given options.
*
* @param {string} input Input fixture file nam... | mit |
cuckata23/wurfl-data | data/htc_desire_500_ver1.php | 489 | <?php
return array (
'id' => 'htc_desire_500_ver1',
'fallback' => 'generic_android_ver4_1',
'capabilities' =>
array (
'uaprof' => 'http://www.htcmms.com.tw/Android/Vodafone/0P3Z11/ua-profile.xml',
'model_name' => 'Desire 500',
'brand_name' => 'HTC',
'release_date' => '2013_august',
'physica... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.12.1-2.0.8/released/8.13.1/printf/1.0.1.html | 6839 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>printf: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | mit |
ShixinPeng/lineAnimotion | lineAnimotion/lineAnimotion/ViewController.h | 223 | //
// ViewController.h
// lineAnimotion
//
// Created by pengshixin on 16/6/23.
// Copyright © 2016年 pengshixin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| mit |
alexdovzhanyn/zephyre | lib/zephyre/controller.rb | 1246 | require 'pry'
module Zephyre
class Controller
attr_reader :request
def initialize(env)
@request ||= Rack::Request.new(env)
end
def params
request.params
end
def response(body, status=200, header={})
@response = Rack::Response.new(body, status, header)
end
def get_response
@response
en... | mit |
attrs/ui-aliens | src/tags/x-tabs.html | 11116 | <link rel="import" href="libs.html">
<link rel="import" href="x-tab.html">
<template id="tabs">
<style>
:host {
display: block;
}
:host([border]) {
border: 1px solid rgba(127,127,127,0.1);
padding-top: 5px;
background-color: rgba(127,127,127,0.1);
}
.tabs-inner {
... | mit |
Kangmo/bitcoin | qa/rpc-tests/bip9-softforks.py | 8775 | #!/usr/bin/env python2
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.test_framework import ComparisonTestFramework
from test_framework.util import *
from... | mit |
code4naropa/ournaropa-forum | spec/views/ournaropa_forum/user_infos/index.html.erb_spec.rb | 860 | require 'rails_helper'
RSpec.describe "user_infos/index", type: :view do
before(:each) do
assign(:user_infos, [
UserInfo.create!(
:hometown => "Hometown",
:major => "Major",
:age => "Age",
:description => "MyText",
:show_email => false
),
UserInfo.create!... | mit |
Quinten/doodles | woven.html | 3034 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<meta name="HandheldFriendly" content="True" />
<title>Woven</title>
</head>
<body>
<canvas id="c">Sorry, your... | mit |
solarce/worker | backend/start_attributes_test.go | 1823 | package backend
import (
"testing"
"github.com/stretchr/testify/assert"
)
var (
testStartAttributesTestCases = []struct {
A []*StartAttributes
O []*StartAttributes
}{
{
A: []*StartAttributes{
{Language: ""},
{Language: "ruby"},
{Language: "python", Dist: "trusty"},
{Language: "python", D... | mit |
sandy-8925/codechef | test.py | 112 | while True:
input_number = int(raw_input())
if input_number == 42:
break
print input_number,
exit() | mit |
CSCfi/antero | db_archive/sql_archive/1937__alter_table_sa_suorat_amk1_henkilokunta.sql | 182 | USE ANTERO
ALTER TABLE sa.sa_suorat_amk1_henkilokunta ADD [sopimus_alkupvm] varchar(50) NULL;
ALTER TABLE sa.sa_suorat_amk1_henkilokunta ADD [sopimus_loppupvm] varchar(50) NULL;
| mit |
bigdatalyn/bigdatalyn.github.io | _posts/2016-05-20-DB2-lockname-detail.md | 11743 | ---
layout: post
title: "[原创]db2pd中lockname对应的详细信息"
date: 2016-05-20 13:35:00
category: DB2
tags: DB2 Lockname db2pd
---
* content
{:toc}
调查锁的过程中,需要确认锁的对象表和锁的范围信息,可以用什么方法简单去查看锁的过程中锁的对象和那些记录被锁了?
### 问题
调查锁的过程中,需要确认锁的对象表和锁的范围信息,可以用什么方法简单去查看锁的过程中锁的对象和那些记录被锁了?
刚好同事问起在调查锁的过程中,怎么查看锁中锁的对象表和具体的行信息呢?下面通过简单例子去确认。
... | mit |
croziere/zzAgenda | lib/ZZFramework/Event/EventSubscriberInterface.php | 374 | <?php
/*
* This file is part of the zzAgenda package.
*
* (c) OV Corporation SAS <contact@ov-corporation.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ZZFramework\Event;
interface EventSubscriberInt... | mit |
junyper/react-meetup | presentation/index.js | 29727 | // Import React
import React from "react";
// Import Spectacle Core tags
import {
BlockQuote,
Cite,
CodePane,
Deck,
Heading,
Image,
Link,
Quote,
Slide,
Spectacle,
Text,
Code,
Markdown,
List,
ListItem
} from "spectacle";
import CodeSlide from "spectacle-code-slide";
// Import image prelo... | mit |
willyd/conda-recipes | gflags/README.md | 4188 | About gflags
============
Home: https://github.com/gflags/gflags
Package license: BSD
Feedstock license: BSD 3-Clause
Summary: A C++ library that implements commandline flags processing.
Installing gflags
=================
Installing gflags from the conda-forge channel can be achieved by adding conda-forge to y... | mit |
Open511/open511-server | open511_server/templatetags/open511.py | 220 | import json
from django import template
from django.utils.safestring import mark_safe
register = template.Library()
def jsonfilter(value):
return mark_safe(json.dumps(value))
register.filter('json', jsonfilter)
| mit |
eddo81/WGTOTW | webroot/css/owl_style.css | 4027 | /**
* General elements
*/
@import url(figure.css);
@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300);
@import url(http://fonts.googleapis.com/css?family=Roboto);
@import url(comments.css);
@import url(form.css);
@import url(table.css);
body {
background-color: #F3F1EA;
color: #555;
f... | mit |
istresearch/PulseTheme | kibana/ui_framework/doc_site/src/views/micro_button/micro_button.html | 95 | <button class="kuiMicroButton" title="Edit">
<span class="kuiIcon fa-gear"></span>
</button>
| mit |
variousweddingdress/variousweddingdress.github.io | _posts/2015-12-16-Weddington-Way-Alfred-Sung-D665-Sleeveless-FloorLength-AlinePrincess.md | 1252 | ---
layout: post
date: '2015-12-16'
title: "Weddington Way Alfred Sung D665 Sleeveless Floor-Length Aline/Princess"
category: Weddington Way
tags: [Weddington Way,Aline/Princess ,V-neck,Floor-Length,Sleeveless]
---
### Weddington Way Alfred Sung D665
Just **$129.99**
### Sleeveless Floor-Length Aline/Princess
<tabl... | mit |
anroots/pgca | tests/Anroots/Pgca/Test/TestCase.php | 305 | <?php
namespace Anroots\Pgca\Test;
use Faker\Factory;
use Faker\Generator;
abstract class TestCase extends \PHPUnit_Framework_TestCase
{
/**
* @return Generator
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function getFaker()
{
return Factory::create();
}
}
| mit |
xbehave/xbehave.net-visual-studio | src/Paster.Specs/BadSourceData.cs | 1963 | using System;
using System.Linq;
using FluentAssertions;
using Paster.Specs.Fakes;
using Xbehave;
using xBehave.Paster.Gherkin;
using xBehave.Paster.System;
using Xunit;
namespace Paster.Specs
{
[Trait("Invalid gherkin","")]
public class BadSourceData
{
[Scenario(DisplayName = "Pasting an Empty st... | mit |
salim101/MathQuiz | frontend/node_modules/ng2-popup/dist/ng2-popup.module.d.ts | 229 | import { Ng2PopupComponent } from "./ng2-popup.component";
import { Ng2MessagePopupComponent } from "./ng2-message-popup.component";
export { Ng2PopupComponent, Ng2MessagePopupComponent };
export declare class Ng2PopupModule {
}
| mit |
huahu/zenturio-editor | views/tree-inner.html | 364 | {% if not error and list.length %}
{% for model in list %}
{% if model.type == 'dir' %}
{% include "_dir.html" %}
{% else %}
{% include "_file.html" %}
{% endif %}
{% endfor %}
{% elseif error %}
<p class="error-text"><i>Error occurred while getting directory entries.</i></p>
{% else %}
... | mit |
amidoimidazol/bio_info | Beginning Perl for Bioinformatics/html/lib/HTML/Parse.html | 5379 | <?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../t... | mit |
City-of-Helsinki/palvelutietovaranto | Source/ServiceRegister.Tests.Infrastructure/CurrentScenarioContext.cs | 570 | using System;
using TechTalk.SpecFlow;
namespace ServiceRegister.Tests.Infrastructure
{
public static class CurrentScenarioContext
{
public static Guid OrganizationId
{
get { return ScenarioContext.Current.Get<Guid>("OrganizationId"); }
set { ScenarioContext.Current.Set... | mit |
thesashi7/SimpleChess | src/Movement/ChessUnitMovement.java | 674 |
package Movement;
/**
* This is an abstract class ChessUnitMovement.
* It is built to handle chess units movement.
* This class must be implemented to support a units movement.
* @author thapaliya
*/
public abstract class ChessUnitMovement
{
/**
*
* @param currentRow of the unit
* @param c... | mit |
gigaai/docs | standalone/shortcodes.md | 590 | # Shortcodes
---
When you open `/public/seeder.php`, you'll see we use `Hi [first_name]!` message, this will print out *Hi Andrew!* if your name is *Andrew*. This feature called *Shortcode*
You can use shortcode for your bot content. Of course, just add that shortcode to what string which you want. Currently, we... | mit |
George5814/George5814.github.io | _posts/技术/DB/tair/2019-03-19-1-tair-setup.md | 129 | ---
layout: post
title: tair 1:tair学习
category: 技术
tags: Tair
keywords:
description: 单机安装笔记
---
{:toc}
| mit |
rkl-/kika-downloader | src/kika-downloader/config/xpath.go | 1236 | package config
const (
// XPathEpisodesOverviewPagePageItems to retrieve pages where videos are schon
XPathEpisodesOverviewPagePageItems = "//a[@class='pageItem']/@href"
// XPathEpisodesItems to retrieve video urls from a page
XPathEpisodesItems = "//div[@class='modCon']/div[@class='mod modD modMini']/div[@class... | mit |
suffolklibraries/sljekyll | new-suggestions/reviews/_posts/2018-03-13-the-marriage-of-opposites-by-alice-hoffman.md | 2772 | ---
layout: sidebar-right
title: "The Marriage of Opposites by Alice Hoffman"
date: 2018-03-13
author: the-borrowers
category: staff-picks
excerpt: '<cite>The Marriage of Opposites</cite> has a beautiful and interesting setting, strong characters and well-defined relationships.'
featured-image: /images/featured/feature... | mit |
coq-bench/coq-bench.github.io-old | clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.4pl4/contrib:area-method/8.4.dev/index.html | 5350 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... | mit |
petrs/ECTester | src/cz/crcs/ectester/standalone/libs/MatrixsslLib.java | 385 | package cz.crcs.ectester.standalone.libs;
import java.security.Provider;
import java.util.Set;
/**
* @author Jan Jancar johny@neuromancer.sk
*/
public class MatrixsslLib extends NativeECLibrary {
public MatrixsslLib() {
super("matrixssl_provider");
}
@Override
native Provider createProvide... | mit |
geophf/1HaskellADay | exercises/HAD/Control/DList.hs | 4555 | module Control.DList where
{--
Your basic difference list, from Haskell to Idris, and back
This answers the Haskell exercise posed at http://lpaste.net/107593
--}
import Control.Arrow (app)
import Control.Monad
import Control.Monad.Trans.Writer
import Data.Monoid
infixr 5 |>
infixl 5 <|
data DList a = DL { unDL :: ... | mit |
keeper013/CrossCutterN | CrossCutterN.Weaver/Switch/SwitchableSection.cs | 2421 | // <copyright file="SwitchableSection.cs" company="Cui Ziqiang">
// Copyright (c) 2017 Cui Ziqiang
// </copyright>
namespace CrossCutterN.Weaver.Switch
{
using System;
using System.Collections.Generic;
using Mono.Cecil.Cil;
/// <summary>
/// Switchable section implementation.
/// </summary>
... | mit |
TimothyGu/timothygu.github.io | _includes/footer.html | 1279 | <footer class="footer">
<div class="p2 wrap">
<div class="measure mt1 center">
<small>
All contents on this website by
<a xmlns:cc="http://creativecommons.org/ns#" href="https://timothygu.github.io/" property="cc:attributionName" rel="cc:attributionURL">
Tiancheng "Timothy" Gu
... | mit |
zupper77/juseyo | src/main/java/com/juseyo/certification/exception/SessionNotFoundException.java | 778 | /**
* @file AccessDeniedException.java
* @brief 로그인을 하지 않았거나 세션이 끊긴 경우 발생하는 Exception
* @author 개발3/파트3
* @author 최경진
* @date 생성 : 2014. 4. 17.
* @date 최종수정: 2014. 4. 17.
*/
package com.juseyo.certification.exception;
/**
* @brief AccessDeniedException
* @author 개발3팀/파트3/최경진
* @version 1.0
* @d... | mit |
mikerudolph/kloutedmentions | README.md | 94 | kloutedmentions
===============
Twitter web client sorting mentions by senders Klout scores.
| mit |
thmohd/demo | app/cache/dev/twig/05/a0/6802ecd3434c77ee29212d49ed457ae32c039667ade3058cbb9e3ff2db70.php | 1699 | <?php
/* TwigBundle:Exception:traces.xml.twig */
class __TwigTemplate_05a06802ecd3434c77ee29212d49ed457ae32c039667ade3058cbb9e3ff2db70 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | mit |
Christianjuth/Portfolio | db/migrate/20161104123431_create_api_verifications.rb | 273 | class CreateApiVerifications < ActiveRecord::Migration
def up
create_table :api_verifications do |t|
t.string :name
t.string :key
t.string :secret
t.timestamps null: false
end
end
def down
drop_table :api_verifications
end
end | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.2/equations/1.2.3+8.13.html | 7375 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>equations: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | mit |
kepler155c/opus-apps | recipeBook/recipeBook.lua | 4294 | local Ansi = require('opus.ansi')
local UI = require('opus.ui')
local Util = require('opus.util')
local colors = _G.colors
local fs = _G.fs
local textutils = _G.textutils
local RECIPES_DIR = 'usr/etc/recipes'
local NAMES_DIR = 'usr/etc/names'
local RECIPE_BOOKS = 'packages/recipeBook/etc/recipeBook.db... | mit |
kodayv/kodayv.github.io | essays/UIinterface.md | 3098 | ---
layout: essay
type: essay
title: My Journey in Web Development
date: 2017-02-23
labels:
- HTML
- CSS
- UI Framework
---
<img class="ui medium circular right floated image" src="../images/html.jpg">
## The world of HTML and CSS
When I first started learning how to develop a website, I went to the basics. T... | mit |
hach-que/Pivot.Update | Pivot.Update.Server/HttpErrorDataProducer.cs | 325 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kayak;
namespace Pivot.Update.Server
{
class HttpErrorDataProducer : BufferedProducer
{
public HttpErrorDataProducer()
: base("The server did not understand your request.")
{
}
}... | mit |
octaflop/pastryio | apps/profiles/models.py | 496 | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.text import slugify
from django.contrib.auth.models import (
User
)
from pastryio.models.mixins import ArchiveMixin
class BaseProfile(ArchiveMixin):
user = models.OneToOneField(User)
avatar = models.Im... | mit |
Codingpedia/bookmarks | tagged/open-graph-protocol.md | 487 | ## Bookmarks tagged [[open-graph-protocol]](https://www.codever.land/search?q=[open-graph-protocol])
_<sup><sup>[www.codever.land/bookmarks/t/open-graph-protocol](https://www.codever.land/bookmarks/t/open-graph-protocol)</sup></sup>_
---
#### [The Open Graph protocol home page](https://ogp.me/)
_<sup>https://ogp.me/</... | mit |
billba/botchat | packages/testharness/pre/external/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents.js | 514 | import {
AudioSourceErrorEvent,
AudioSourceInitializingEvent,
AudioSourceOffEvent,
AudioSourceReadyEvent,
AudioStreamNodeAttachedEvent,
AudioStreamNodeAttachingEvent,
AudioStreamNodeDetachedEvent
} from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents';
export {
AudioSou... | mit |