repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
dev018/testrepo | spec/Genesis/API/Constants/Transaction/StatesSpec.php | 276 | <?php
namespace spec\Genesis\API\Constants\Transaction;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class StatesSpec extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('Genesis\API\Constants\Transaction\States');
}
}
| mit |
inesita-rb/documentation | source/includes/_injections.md | 997 | # Injections
Injections are simply other classes that are included in our component tree.
In our example we have `Store` and `Router` injections.
Take a look at our `Store`.
```ruby
class Store
include Inesita::Injection
attr_accessor :counter
def init
@counter = 0
end
def increase
@counter += 1... | mit |
beechit/MisterMaks-EHRM | Packages/Beech/Beech.Party/Resources/Private/Partials/Views/List/ElectronicAddress.html | 1005 | <div class="row-fluid">{namespace ehrm=Beech\Ehrm\ViewHelpers}
<div class="span1">
<f:render partial="Forms/Buttons/Icon" arguments="{_all}"/>
</div>
<div class="span3"><strong><f:translate id="electronicAddress.electronicAddressType.{electronicAddress.electronicAddressType}">{electronicAddress.electronicAddressTy... | mit |
Screenmedia/Plugin.Vanilla | samples/VanillaSample/VanillaSample.Core/ViewModels/ViewModel.cs | 759 | // -----------------------------------------------------------------------
// <copyright file="ViewModel.cs" company="Screenmedia">
// Copyright (c) Screenmedia 2018. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace VanillaSample.Core.View... | mit |
piterlin/piterlin.github.io | doc/jdk6_cn/org/w3c/dom/bootstrap/package-use.html | 7973 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0-beta2) on Mon Mar 19 19:33:09 CST 2007 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
软件包 org.w3c.dom.bootstrap 的使用 ... | mit |
robolectric/robolectric.github.io | javadoc/4.4/org/robolectric/annotation/internal/DoNotInstrument.html | 8222 | <!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 -->
<title>DoNotInstrument</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="..... | mit |
reidmain/FDObjectTransformer | Framework Project/FDObjectTransformer Tests/Classes/FDURLComponentsTransformerAdapter.h | 154 | @import Foundation;
#import "FDObjectTransformerAdapter.h"
@interface FDURLComponentsTransformerAdapter : NSObject
<
FDObjectTransformerAdapter
>
@end
| mit |
francirp/goaltender | lib/goaltender.rb | 172 | module Goaltender
end
require "goaltender/version"
require "goaltender/base_module"
require 'goaltender/value_parser'
require 'goaltender/input'
require 'goaltender/base' | mit |
VishnuPrabhu/EHS | app/src/main/java/com/sms4blood/emergencyhealthservices/util/AppUtil.java | 5042 | package com.sms4blood.emergencyhealthservices.util;
import android.content.Intent;
import android.location.Location;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.Toast;
import com.sms4blood.emergencyhealthservices.Sms;
import com.sms4blood.emergencyhealthservi... | mit |
castamir/MPR-projekt | app/modules/Front/presenters/ErrorPresenter.php | 129 | <?php
namespace App\FrontModule;
use App\AppModule\ErrorPresenter as Presenter;
class ErrorPresenter extends Presenter
{
}
| mit |
vikash-india/PhotographyNotes2Myself | photography/concepts/001-PhotographyReferences.md | 138 | # Description: Photography References
### Online References
* [None](#): None
### Write Here
- None
### Notes
- None
### TODOs
- None
| mit |
leehankyeol/leehankyeol.github.io | 2018/09/25/abc-3-sinuwa/index.html | 7782 | <html>
<head>
<title>
ABC 트레킹 3 : 시누와 :: 이한결 블로그
</title>
<style>
/* https://github.com/markdowncss/modest/blob/master/css/modest.css */
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
... | mit |
cotag/perus | lib/perus/pinger/commands/upload.rb | 417 | module Perus::Pinger
class Upload < Command
description 'Uploads a file from the client to the server. Valid values
for "path" are contained in the pinger config file.'
option :path, restricted: true
def run
@file = File.new(options.path)
end
... | mit |
tomoya0x00/FrugalityCalc | app/src/main/java/miwax/java_conf/gr/jp/frugalitycalc/view/MainActivity.java | 2423 | package miwax.java_conf.gr.jp.frugalitycalc.view;
import android.app.AlertDialog;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import miwax.java_conf.gr.jp.frugalitycalc.R;
import miwax.java_conf.gr.jp.frugalitycalc.databinding.ActivityMainBind... | mit |
manialib/maniacode | src/Manialib/Maniacode/Elements/ViewReplay.php | 127 | <?php
namespace Manialib\Maniacode\Elements;
class ViewReplay extends UrlDownload
{
protected $nodeName = 'view_replay';
} | mit |
plotly/plotly.py | packages/python/plotly/plotly/validators/choropleth/colorbar/_minexponent.py | 477 | import _plotly_utils.basevalidators
class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs
):
super(MinexponentValidator, self).__init__(
plotly_name=plotly_name,
... | mit |
xianjunzhengbackup/code | data science/machine_learning_for_the_web/chapter_4/movie/24925.html | 6641 | <HTML><HEAD>
<TITLE>Review for Timecode (2000)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0220100">Timecode (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Frankie+Paiva">Franki... | mit |
yangshengchaoios/YSCKit | YSCMacros.h | 14284 | //
// YSCMacros.h
// YSCKit
//
// Created by Builder on 16/6/29.
// Copyright © 2016年 Builder. All rights reserved.
//
#import <sys/time.h>
//==============================================================================
//
// @Description:
// 该文件定义了基础库YSCKit中常用的宏定义
//
//====================================... | mit |
uofo/reverse-archaeology | webpack.config.babel.js | 1297 | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import path from 'path';
import webpack from 'webpack';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
export default {
context: __dirname,
entry: './index.jsx',
output:... | mit |
dzhenko/VoiceWall | src/Web/VoiceWall.Web/ViewModels/Search/SearchViewModel.cs | 324 | namespace VoiceWall.Web.ViewModels.Search
{
using System.ComponentModel.DataAnnotations;
public class SearchViewModel
{
[Required]
[MinLength(2, ErrorMessage="Search text must be at least 2 characters")]
[DataType(DataType.Text)]
public string SearchText { get; set; }
}... | mit |
galek/brofiler | Brofiler/DirectX/TextManager.cs | 9431 | using SharpDX;
using SharpDX.Direct3D11;
using System;
using System.Runtime.InteropServices;
using System.Windows;
using System.Xml;
using System.IO;
using System.Reflection;
namespace Profiler.DirectX
{
public class TextManager : IDisposable
{
[StructLayout(LayoutKind.Sequential)]
... | mit |
drkztan/javaTimeTracker | doc/core/class-use/Task.html | 12762 | <!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_101) on Fri Oct 21 14:35:23 CEST 2016 -->
<title>Uses of Class core.Task</title>
<meta name="date" content="2016-10-21">
<link rel="stylesheet"... | mit |
DVRodri8/Competitive-programs | OnlineJudgeUVa/C++/100-9999/621 - Secret Research/main.cpp | 626 | #include <iostream>
#include <string>
using namespace std;
int main(){
int n;
string experiment;
for(cin>>n; n>0; n--){
cin >> experiment;
if (experiment.size() < 3) cout << '+' << endl;
else{
string s = experiment.substr(experiment.size()-2, 2);
string saux;
if(s == "35") cout << '... | mit |
arbakker/yt-daemon | search_yt.py | 380 | import urllib
import urllib2
from bs4 import BeautifulSoup
textToSearch = 'gorillaz'
query = urllib.quote(textToSearch)
url = "https://www.youtube.com/results?search_query=" + query
response = urllib2.urlopen(url)
html = response.read()
soup = BeautifulSoup(html)
for vid in soup.findAll(attrs={'class':'yt-uix-tile-lin... | mit |
jsguy/slides | resource/mithril.js-rewrite/api/tests/test-router.js | 26809 | "use strict"
var o = require("../../ospec/ospec")
var callAsync = require("../../test-utils/callAsync")
var browserMock = require("../../test-utils/browserMock")
var m = require("../../render/hyperscript")
var callAsync = require("../../test-utils/callAsync")
var coreRenderer = require("../../render/render")
var apiR... | mit |
PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Math/sqrt/S15.8.2.17_A6.js | 4964 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
Math.sqrt, recommended that implementations use the approximation
algorithms for IEEE 754 arithmetic contained in fdlibm
es5id: 15.8.2.17_A6
description: >
Check... | mit |
net-industry/llblgen-training | AdventureWorks.Dal/DatabaseGeneric/RelationClasses/WorkOrderRoutingRelations.cs | 4089 | ///////////////////////////////////////////////////////////////
// This is generated code.
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 4.2
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates... | mit |
jlawton/ObjectiveAvro | Avro-C/src/resolved-reader.c | 107543 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may ... | mit |
Harrix/HarrixMathLibraryForTestFunctions | source_library/Для тестовых функций/HML_PrecisionOfCalculationsOfTestFunction_Real.tex | 1051 | \textbf{Входные параметры:}
Отсутствуют.
В переопределяемой функции также есть параметр:
Type --- обозначение тестовой функции, которую вызываем.
Смотреть виды в переменных перечисляемого типа в начале HarrixMathLibrary.h файла: TestFunction\_Ackley, TestFunction\_ParaboloidOfRevolution, TestFunction\_Rastrigin и ... | mit |
marksmall/mapuse | src/app/components/print/print.resource.ts | 424 | 'use strict';
export interface IPrint extends ng.resource.IResource<IPrint> {
printOptions: any;
}
export interface IPrintResource extends ng.resource.IResourceClass<IPrint> {}
export class PrintResource {
/* @ngInject */
public static Print($resource: ng.resource.IResourceService): IPrintResource {
var ... | mit |
KlishGroup/prose-pogs | pogs/P/PHXSRHX/TDCD/index.md | 2529 | ---
layout: page
title: Tough Dark Company Dinner
date: 2016-05-24
author: Charles Terrell
tags: weekly links, java
status: published
summary: Aliquam non vehicula metus. Curabitur at est.
banner: images/banner/leisure-01.jpg
booking:
startDate: 04/03/2017
endDate: 04/08/2017
ctyhocn: PHXSRHX
groupCode: TDCD
pu... | mit |
KlishGroup/prose-pogs | pogs/M/MQBILHX/DFES/index.md | 1143 | ---
layout: page
title: Diamond Forest Entertainment Show
date: 2016-05-24
author: Nicholas Palmer
tags: weekly links, java
status: published
summary: Pellentesque a dolor dictum, congue arcu.
banner: images/banner/meeting-01.jpg
booking:
startDate: 09/27/2018
endDate: 09/30/2018
ctyhocn: MQBILHX
groupCode: DFE... | mit |
DevKhater/YallaWebSite | app/cache/dev/assetic/config/a/ae1b290dcfca1cdecd87a85bbe4b1164.php | 1120 | <?php
// :default:index.html.twig
return array (
'fe7793f' =>
array (
0 =>
array (
0 => '@bootstrap_css',
1 => '@fontawesome_css_be',
2 => '@YallaWebsiteBackendBundle/Resources/public/css/jquery-ui.css',
3 => '@YallaWebsiteBackendBundle/Resources/public/css/select2.min.css',
... | mit |
Cat-Ion/marcov | run-lines.c | 745 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "search.h"
#include "marcov.h"
#define ORDER 2
int main(int argc, char **argv) {
int limit = 128;
if(argc > 1) {
limit = atoi(argv[1]);
}
void *strings = NULL;
struct timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
srand... | mit |
MrGenga/BouncyBall | src/main/java/io/github/jython234/jraklibplus/protocol/raknet/NACKPacket.java | 1189 | /**
* JRakLibPlus is not affiliated with Jenkins Software LLC or RakNet.
* This software is an enhanced port of RakLib https://github.com/PocketMine/RakLib.
* This file is part of JRakLibPlus.
*
* JRakLibPlus is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General P... | mit |
skyguy94/Simple.LocalDb | README.md | 2475 | # Simple.LocalDb
Simple.LocalDb is a simple managed wrapper around the LocalDB API.
This framework has no features. It does not have error checking. It does not do anything smart. It doesn't try to help you in any way. There are no unit tests. There are no integration tests. There are no interfaces, inheritance, coup... | mit |
firefishes/ShipDockU3D | Framework/Editer/AssetBundle/CreateAssetbundle.cs | 3193 | #if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
using System.IO;
public class CreateAssetbundle : MonoBehaviour {
[MenuItem("Fineness/Build AssetBundle From Select Resource")]
static void SelectResourceAndBuildAB()
{
UnityEngine.Object[] selecteds = Selection.GetFiltered(typeof(UnityEngin... | mit |
Hackstr/my-express-boilerplate | src/index.js | 1034 | import http from "http";
import express from "express";
import cors from "cors";
import morgan from "morgan";
import bodyParser from "body-parser";
import initializeDb from "./db";
import middleware from "./middleware";
import api from "./api";
import config from "config"; //we load the db location from the JSON files... | mit |
afram/reveal.js | md/slide-29-generators.md | 597 | ##Generators
<div class="code-extra es6">
```js
// Define generators with '*'
function *foo() { }
// halt and output at 'yield'
function *fibonacci() {
let pre = 0, cur = 1;
while(true) {
[ pre, cur ] = [ cur, pre + cur ];
yield cur;
}
}
let fibGen = fibonacci();
fibGen.next(); // { value: 1, done: false }
fi... | mit |
mbrookes/material-ui | docs/src/pages/styles/advanced/advanced-zh.md | 15295 | # Advanced 进阶
<p class="description">本节包含了 @material-ui/core/styles 的一些更多的进阶用法。</p>
## Theming 主题
若您想将主题传递到 React 组件树,请将添加 `ThemeProvider` 包装到应用程序的顶层。 然后,您可以在样式函数中访问主题对象。
> 此示例为自定义组件创建了一个主题对象(theme object)。 If you intend to use some of the Material-UI's components you need to provide a richer theme structure using ... | mit |
cloud00/fast-front | gulpfile.js | 9271 | 'use strict';
var gulp = require('gulp');
var autoprefixer = require('jstransformer')(require('jstransformer-stylus'));
var autoprefixer = require('autoprefixer-stylus');
var browserSync = require('browser-sync').create();
var changed = require('gulp-changed');
var concat = require('gulp-concat');
var cssbeautify = re... | mit |
nirnanaaa/ofwn | libs/Lib/Router/Exception/NotFoundException.php | 85 | <?php
namespace Lib\Router\Exception;
class NotFoundException extends \Exception{}
| mit |
BitcoinUnlimited/BitcoinUnlimited | src/policy/policy.h | 4801 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2015-2020 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_POLICY_POL... | mit |
jongalloway/aspnetcore-workshop | Labs/Code/Lab2A/src/Lab2A/Models/AccountViewModels/LoginViewModel.cs | 509 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Lab2A.Models.AccountViewModels
{
public class LoginViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
[R... | mit |
xuru/pyvisdk | pyvisdk/enums/datastore_summary_maintenance_mode_state.py | 272 |
########################################
# Automatically generated, do not edit.
########################################
from pyvisdk.thirdparty import Enum
DatastoreSummaryMaintenanceModeState = Enum(
'enteringMaintenance',
'inMaintenance',
'normal',
)
| mit |
aymerick/kowa-client | app/views/paginated-scroll-box.js | 208 | import Ember from 'ember';
import PaginatedScrollViewMixin from 'kowa/mixins/paginated-scroll-view';
var PaginatedScrollBox = Ember.View.extend(PaginatedScrollViewMixin);
export default PaginatedScrollBox;
| mit |
billba/botchat | packages/core/src/index.js | 2160 | import clearSuggestedActions from './actions/clearSuggestedActions';
import connect from './actions/connect';
import createStore, { withDevTools as createStoreWithDevTools } from './createStore';
import disconnect from './actions/disconnect';
import dismissNotification from './actions/dismissNotification';
import emitT... | mit |
megawac/ramda | test/any.js | 2480 | var assert = require('assert');
var listXf = require('./helpers/listXf');
var R = require('..');
describe('any', function() {
var odd = function(n) {return n % 2 === 1;};
var T = function() {return true;};
var intoArray = R.into([]);
it('returns true if any element satisfies the predicate', function... | mit |
epikcraw/ggool | public/Windows 10 x64 (18362.329)/_SEGMENT_HEAP.html | 1661 | <html><body>
<h4>Windows 10 x64 (18362.329)</h4><br>
<h2>_SEGMENT_HEAP</h2>
<font face="arial"> +0x000 EnvHandle : <a href="./RTL_HP_ENV_HANDLE.html">RTL_HP_ENV_HANDLE</a><br>
+0x010 Signature : Uint4B<br>
+0x014 GlobalFlags : Uint4B<br>
+0x018 Interceptor : Uint4B<br>
+0x01... | mit |
talha08/sust-society | resources/views/event.blade.php | 4484 | @extends('frontend.layouts.default')
@section('content')
<div class="breadcrumb-wrapper">
<div class="pattern-overlay">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<h2 class="title">Rece... | mit |
Quit/Hamahatschi | README.md | 1583 | Hamahatschi
===========
Hamahatschi is a simple program to turn Hamachi and its service as well as network adapter on and off.
Usage
------
Simply compile the project or start the executable. It will try to find the adapter and the service and disable/enable Hamachi, depending on what its current state is. If it can... | mit |
SuperheroicCoding/notifications | src/app/components/navbar/navbar.html | 223 | <div layout="row" layout-align="space-between center">
<md-button href="#">Code Challenge for T-Systems</md-button>
<md-button class="acme-navbar-text">Application was created {{ vm.relativeDate }}.</md-button>
</div>
| mit |
thebenwaters/openclickio | qa/templates/question_answer_response.html | 3065 | {% extends 'layouts/base.html' %}
{% block title %}
{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Question Details</h3>
</div>
... | mit |
AshvinPainiaye/simplon-kids | src/Controller/WorkshopController.php | 8315 | <?php
namespace Kids\Controller;
use Silex\Application;
use Silex\ControllerProviderInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Kids\Entity\Workshop;
use Kids\Entity\Establishment;
use Kids\Entity\PublicAge;
use Kids\Entity\WorkshopCategory;
use Kids\Ent... | mit |
AuthorizeNet/sample-code-csharp | TransactionReporting/GetAccountUpdaterJobSummary.cs | 2682 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Controllers.Bases;
namespace net.authorize.sample
{
public class GetAccountUpdaterJobSummary
{
... | mit |
boggroZZdev/SoftUniHomeWork | TechModule/SoftwareTechnologies/Java-Blog/mysql/share/maria_add_gis_sp_bootstrap.sql | 1610 | -- Copyright (C) 2014 MariaDB Ab.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; version 2 of the License.
--
-- This program is distributed in the hope that it will be useful,
-- ... | mit |
hosaka893/junit-tutorial | src/test/java/junit/tutorial/calculator/CalculatorTest.java | 1401 | // Copyright(c) 2013 GROWTH XPARTNERS, Incorporated.
//
//
package junit.tutorial.calculator;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class CalculatorTest {
... | mit |
01alchemist/ParallelPathTracerJS | src/parallelpath/util/math/Mat4f.ts | 11955 | import {Vec3f} from "./Vec3f";
import {Quaternion} from "./Quaternion";
import {MathUtils} from "./MathUtils";
import {Vec4f} from "./Vec4f";
/**
* Created by r3f on 7/1/2016.
*/
export class Mat4f{
// Matrix row & column values as in i,j
m:Float32Array;
/*
* Constructor Mat4f()
* @info: Rows ... | mit |
danderson00/tribe.storage | tests/integration.js | 10388 | module.exports = function (options, suite, test, expect, teardown) {
require('./integration.expressions')(options, suite, test, expect, teardown);
suite('tribe.storage.integration.' + options.type, function () {
var storage = require('tribe.storage'),
db;
test("basic store and ret... | mit |
matslindh/codingchallenges | adventofcode2021/day10.py | 2156 | from math import floor
def score_syntax_errors(program_lines):
points = {')': 3, ']': 57, '}': 1197, '>': 25137}
s = 0
scores_auto = []
for line in program_lines:
corrupted, stack = corrupted_character(line)
if corrupted:
s += points[corrupted]
else:
s... | mit |
Digiman/AzureBillingViewer | App.Core/Elements/Declaration.cs | 5760 | using System;
using App.Common.Extensions;
namespace App.Core.Elements
{
/// <summary>
/// Класс для описания списка заявлений по оплате по типам служб.
/// </summary>
public class Declaration
{
/// <summary>
/// Расчетный период.
/// </summary>
public string Settle... | mit |
MjAbuz/influent | influent-server/src/main/java/influent/server/sql/SQLFrom.java | 2160 | /*
* Copyright (C) 2013-2015 Uncharted Software Inc.
*
* Property of Uncharted(TM), formerly Oculus Info Inc.
* http://uncharted.software/
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (... | mit |
tannerj/jekyll-theme-jtannerjones_com | README.md | 1973 | # jekyll-theme-jtannerjones_com
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundl... | mit |
DordovskyDmitry/tiny_mvc | lib/tiny_mvc/mvc/model/base_model.rb | 1309 | module TinyMVC
class BaseModel
attr_reader :id
def initialize(options = {})
parameters = self.class.stored_parameters + [:id]
parameters.each do |attr|
instance_variable_set(:"@#{attr}", options[attr.to_s] || options[attr.to_sym])
end
end
def self.stored_parameters(*args)
... | mit |
ReturnCoin/ReturnCoin | src/qt/locale/bitcoin_pt_PT.ts | 119402 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ReturnCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location ... | mit |
ChilliWorks/ChilliSource | Source/CSBackend/Platform/Android/Main/JNI/Core/Java/JavaInterfaceManager.h | 8142 | //
// JavaInterfaceManager.h
// ChilliSource
// Created by Ian Copland on 08/08/2012.
//
// The MIT License (MIT)
//
// Copyright (c) 2012 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), ... | mit |
dmsr45/github_sf_media | src/Entity/Oeuvre.php | 11190 | <?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* Oeuvre.
*
* @ORM\Table(name="oeuvre")
* @ORM\Entity(repositoryClass="App\Repository\OeuvreRepository")
*/
class Oeuvre
{
/**
* @var int
*
... | mit |
Citlaa/LAY | application/views/denuncias/exito.php | 2261 | <section>
<body>
<!-- Quick setting box starts -->
<div class="quick-slide hidden-xs"></div>
<div class="out-container">
<div class="outer">
<!-- Sidebar starts -->
<!-- Sidebar ends -->
<!-- Mainbar starts -->
<div class="mainbar">
... | mit |
g-andrade/nlocks | doc/overview-summary.html | 4286 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>nlocks</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a>... | mit |
desparoz/desparoz.github.io | _posts/2009-11-17-t5805027465.md | 280 | ---
layout: post
microblog: true
date: 2009-11-17 03:00 +0300
guid: http://desparoz.micro.blog/2009/11/17/t5805027465.html
---
For PADI Instructors in the US this is a BIG deal. RT @DiverWire: Boy Scouts announce new Scuba Diving Merit Badge [bit.ly/15pcnA](http://bit.ly/15pcnA)
| mit |
juaristi/appbase-cctv | daemon-main.c | 5533 | /*
* main.c
*
* Created on: 31 May 2016
* Author: ajuaristi <a@juaristi.eus>
*/
#include <stdio.h>
#include <signal.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <linux/videodev2.h>
#include <sys/stat.h>
#include "utils.h"
#include "appbase.h"
#include "uvc.h"
#... | mit |
JohannesFischer/generator-sourcejs-specs | generators/app/templates/_index.src.html | 225 | <h1><%= title %></h1>
<div class="source_info">
<p><%= title %> description.</p>
</div>
<section class="source_section">
<h2><%= title %> section</h2>
<div class="source_example">
example code
</div>
</section> | mit |
mpbunch/Alarm | README.md | 26 | # Alarm
Cordova + Polymer
| mit |
araddon/qlbridge | expr/builtins/url_email.go | 23042 | package builtins
import (
"fmt"
"net/mail"
"net/url"
"regexp"
"strings"
u "github.com/araddon/gou"
"github.com/mssola/user_agent"
"github.com/araddon/qlbridge/expr"
"github.com/araddon/qlbridge/value"
"github.com/araddon/qlbridge/vm"
)
var _ = u.EMPTY
// email a string, parses email and makes sure it is ... | mit |
yannakisg/othello | helpdialog.cpp | 489 | #include <QWebView>
#include "helpdialog.h"
/**
* Constructor of Help Dialog
*/
HelpDialog::HelpDialog(QWidget *parent) : QWebPage(parent) {
view = new QWebView();
}
/**
* Shows the help dialog
*/
void HelpDialog::showHelpDialog() {
createWindow(QWebPage::WebModalDialog);
view->setPage(this);
... | mit |
nhusher/js-channels | dist/node/utils.js | 4823 | "use strict";
var _slicedToArray = function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { var _arr = []; for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { _arr.push(_step.value); if (i && _arr.length === i) break; } return _arr; } e... | mit |
tiagopossato/telemetria | Arduino/telemetriaSerialSIMPLIFICADA/telemetria.h | 1144 | //estrutura com os dados lidos
struct {
float tensao;
float corrente;
float temperaturaBaterias;
float temperaturaCockpit;
float velocidade; //velocidade calculada do carro
double hodometro; //armazena a quantidade de metros percorridos
} dados;
//estrutura com as configuracoes do controlador
struct {
lo... | mit |
sylvainlg/wallabag-v2-symfony | src/Wallabag/Bundle/CoreBundle/Entity/Entry.php | 5803 | <?php
namespace Wallabag\Bundle\CoreBundle\Entity;
use Doctrine\Bundle\MongoDBBundle\Validator\Constraints\Unique;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use JMS\Serializer\Annotation\Expose;
use JMS\Serialize... | mit |
HansHuang/MusicFM | CommonHelperLibrary/WEB/HttpWebDealer.cs | 9283 | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
... | mit |
Jimmyee/Endless-Online-Bot | util.hpp | 318 | // Endless Online Bot v0.0.1
#ifndef UTIL_HPP_INCLUDED
#define UTIL_HPP_INCLUDED
#include <math.h>
#include <vector>
#include <string>
int path_length(int x1, int y1, int x2, int y2);
std::vector<std::string> Args(std::string str);
std::string Lowercase(std::string str);
#endif // UTIL_HPP_INCLUDED
| mit |
NSFA/ysfplatform | src/store/mutations.js | 313 | const mutations = {
SET_ACTIVE_TAB(state, tab){
state.activeTab = tab;
},
SET_DATA_ACTIVE_TAB(state, tab){
state.hubActiveTab = tab;
},
SET_PROXY_STATE(state, proxy){
state.proxy_switch = proxy;
},
SET_INIT_INFO(state, info){
_.extend(state, info);
}
};
export default mutations;
| mit |
taskqueue/taskqueue-net | Src/TestApp/Properties/AssemblyInfo.cs | 1390 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Te... | mit |
akihiro-minamino/YNU_Neutrino_HP | menu.html | 3447 | <!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="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=Shift_JIS" />
<meta name="keywords" content="L... | mit |
IECS/MansOS | tools/lib/tests/configtest.py | 1154 | #!/usr/bin/python
#
# Config file test app (together with test.cfg file)
#
import os, sys
sys.path.append("..")
import configfile
cfg = configfile.ConfigFile("test.cfg")
cfg.setCfgValue("name1", "value1")
cfg.setCfgValue("name2", "value2")
cfg.selectSection("user")
cfg.setCfgValue("username", "janis")
cfg.setCfgV... | mit |
elektronaut/dis | lib/dis/jobs.rb | 113 | # frozen_string_literal: true
require "dis/jobs/delete"
require "dis/jobs/store"
require "dis/jobs/change_type"
| mit |
lahiiru/Quota | src/AppBundle/Security/Core/User/FOSUBUserProvider.php | 2811 | <?php
namespace AppBundle\Security\Core\User;
use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface;
use HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass;
use Symfony\Component\Security\Core\User\UserInterface;
class FOSUBUserProvider extends BaseClass
{
/**
* {@inheritDoc}
... | mit |
dnl-jst/ownsocial | library/Db/User/GetUnconfirmedUsers.php | 606 | <?php
namespace Db\User;
use Core\Query;
class GetUnconfirmedUsers extends Query
{
protected $id;
protected function build()
{
$query = '
SELECT
u.id,
u.type,
u.email,
u.email_confirmed,
u.email_confirmation_hash,
u.account_confirmed,
u.password,
u.language,
u.first_name... | mit |
jasonrhodes/wphackerguide | public/content/plugins/hikerquotes/tests/bootstrap.php | 292 | <?php
echo __DIR__;
require dirname(__DIR__) . "/HikerCommand.php";
function _manually_load_plugin() {
require dirname( __FILE__ ) . '/../hikerquotes.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
require getenv( 'WP_TESTS_DIR' ) . '/includes/bootstrap.php';
| mit |
Thomas-Elder/bo-xy | server/controllers/indexController.js | 102 | // home page
exports.index = function(req, res){
res.render('index', { title: 'B O X L A N D' });
}; | mit |
tmcelreath/meanCity | server/config/express.js | 5758 | 'use strict';
/**
* Module dependencies.
*/
var express = require('express'),
mean = require('meanio'),
consolidate = require('consolidate'),
mongoStore = require('connect-mongo')(express),
flash = require('connect-flash'),
helpers = require('view-helpers'),
config = require('./config'),
... | mit |
arman000/marty | app/services/marty/promises/ruby.rb | 65 | module Marty
module Promises
module Ruby
end
end
end
| mit |
marianob85/telegraf | plugins/serializers/prometheusremotewrite/prometheusremotewrite_test.go | 15051 | package prometheusremotewrite
import (
"bytes"
"fmt"
"github.com/gogo/protobuf/proto"
"github.com/golang/snappy"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/prompb"
"strings"
"testing"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/testutil"
"github.com/... | mit |
NewEconomyMovement/nem.core | src/main/java/org/nem/core/model/MultisigSignatureTransactionComparator.java | 854 | package org.nem.core.model;
import org.nem.core.utils.ArrayUtils;
import java.util.Comparator;
/**
* A custom comparator for comparing MultisigSignatureTransaction objects.
* <br>
* This comparator only looks at the transaction signer and other hash.
*/
public class MultisigSignatureTransactionComparator impleme... | mit |
vek/Graffitis | client/main.css | 12637 | body {
padding-top: 65px;
}
#footer {
padding: 10px;
color: #333;
}
#titulo {
color: #fff;
}
#textoSobreNosotros {
color: #333;
}
#login-buttons a, .accounts-dialog a {
color: rgb(0, 0, 0);
text-decoration: none;
text-align: center;
vertical-align: middle;
line-height: 50px;
padding: 20px;
}
... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.0-2.0.5/released/8.8.2/cfgv/8.7.0.html | 7151 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cfgv: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | mit |
PandoCloud/pando-embedded-framework | framework/pando_framework.h | 440 | /*******************************************************
* File name: pando_subdevice.h
* Author: razr
* Versions: 1.0
* Description: pando iot embeded framework.
* History:
* 1.Date: Sep 11, 2015
* Author: razr
* Modification: initial code
*********************************************************/
#... | mit |
jisonami/Notes | index.html | 6688 | ---
layout: default
---
<div class="page clearfix" index>
<div class="left">
<h1>Welcome to jisonami's Notes!</h1>
<small>这里记录我在程序开发过程中的学习笔记</small>
<hr>
<ul>
{% for post in paginator.posts %}
<li>
<h2>
<a class="post-link"... | mit |
lmihaylov2512/logistic-app | controllers/FreightController.php | 2382 | <?php
namespace app\controllers;
use Yii;
use app\models\{Freight, FreightSearch};
use yii\web\{Controller, NotFoundHttpException};
/**
* FreightController implements the CRUD actions for Freight model.
*/
class FreightController extends Controller
{
/**
* Lists all Freight models.
* @return mixed
... | mit |
lorenwest/monitor-min | lib/probes/ReplProbe.js | 7982 | // ReplProbe.js (c) 2010-2013 Loren West and other contributors
// May be freely distributed under the MIT license.
// For further details and documentation:
// http://lorenwest.github.com/monitor-min
(function(root){
// Module loading - this runs server-side only
var Monitor = root.Monitor || require('../Monitor'... | mit |
4lexBaum/projekt-5s-dhbw | Backend/src/main/java/model/dataModels/ManufacturingData.java | 1974 | package model.dataModels;
/**
* Class ManufacturingData.
* @author Daniel
*
*/
public class ManufacturingData {
private String customerNumber;
private String materialNumber;
private String orderNumber;
private String timeStamp;
private MachineData[] machineData;
private SpectralAnalysisData analysisData;
... | mit |