repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
voidJeff/empty-app
tutorial1.py
591
from ggame import App, Color, LineStyle, Sprite from ggame import RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset red = Color(0xff0000, 1.0) redT = Color(0xff0000, 0.5) green = Color(0x00ff00, 1.0) greenT = Color(0x00ff00, 0.4) blue = Color(0x0000ff, 1.0) blueT = Color(0x0000ff, 0.3) black = Color(0x000000, 1....
mit
bnorton/inbook
app/assets/javascripts/inbook/views/charts/line_view.js
2800
inbook.views.LineChartView = (function() { return Backbone.View.extend({ initialize: function(options) { _.bindAll(this, "render"); options.interval || (this.options.interval = "week"); options.color || (this.options.color = "whiteSmoke"); inbook.bus.on("data:series:" + options.type +...
mit
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/chatroom/ChatRoomMemberList.java
1638
package cn.jmessage.api.chatroom; import cn.jiguang.common.resp.BaseResult; import cn.jiguang.common.resp.ResponseWrapper; import com.google.gson.annotations.Expose; public class ChatRoomMemberList extends BaseResult { @Expose private ChatRoomMember[] users; @Expose private Integer total; @Expose privat...
mit
upptalk/uppsell
uppsell/migrations/0035_auto__add_field_product_validity_unit__add_field_product_validity.py
23217
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Product.validity_unit' db.add_column('products', 'validit...
mit
Akagi201/learning-openresty
lua-resty-logger-socket/src/main.lua
528
local logger = require "resty.logger.socket" if not logger.initted() then local ok, err = logger.init { host = 'xxx', port = 1234, flush_limit = 1234, drop_limit = 5678, } if not ok then ngx.log(ngx.ERR, "failed to initialize the logger: ", err) ...
mit
zikalino/TypeScript-IoT
services/services.js
352725
/// <reference path="..\compiler\program.ts"/> var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; /// <reference ...
mit
cuckata23/wurfl-data
data/nokia_c5_00_ver1_subuadot2u.php
168
<?php return array ( 'id' => 'nokia_c5_00_ver1_subuadot2u', 'fallback' => 'nokia_c5_00_ver1', 'capabilities' => array ( 'model_name' => 'C5-00.2', ), );
mit
jermeyjungbeker/VP11B2
src/main/java/edu/avans/hartigehap/aop/MyExecutionTimeAspect.java
1157
package edu.avans.hartigehap.aop; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereotype.Component; @Component @Aspect public class MyExecutionTimeAspect { @P...
mit
ilievv/Telerik
Homework/JavaScript/JavaScript Fundamentals/05. Conditional Statements/07. Biggest-Of-Five.js
207
function solve(args) { var a = +args[0], b = +args[1], c = +args[2], d = +args[3], e = +args[4]; console.log(Math.max(Math.max(Math.max(a, b), Math.max(c, d)), e)); }
mit
korczis/zlown
lib/zlown/daemon/daemon.rb
403
# encoding: UTF-8 # # Copyright (c) 2016 Tomas Korcak <korczis@gmail.com>. All rights reserved. # This source code is licensed under the MIT-style license found in the # LICENSE file in the root directory of this source tree. module Zlown class Daemon def run(args = [], opts = {}) puts 'Running Zlown loop'...
mit
stoplightio/gitlabhq
lib/gitlab/kubernetes/helm/api.rb
3863
# frozen_string_literal: true module Gitlab module Kubernetes module Helm class Api def initialize(kubeclient) @kubeclient = kubeclient @namespace = Gitlab::Kubernetes::Namespace.new(Gitlab::Kubernetes::Helm::NAMESPACE, kubeclient) end def install(command) ...
mit
wen96/pl-man2
masterclient/src/CEntity.cpp
3426
#include "CEntity.h" #include "IComponent.h" #include <boost/foreach.hpp> namespace masterclient { /** Constructor por defecto * Se le pasan los parámetros necesarios para poder dibujarlo * ANYADE EL ELEMENTO AL ARBOL, CUIDADO: Esto cambiara cuando termine con los componentes * @param p posicion en el tablero * @...
mit
IbraDev/Dashboard_Commercial
src/Suivi/SuiviBundle/Form/CategorieType.php
937
<?php namespace Suivi\SuiviBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class CategorieType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options...
mit
SevenSpikes/api-plugin-for-nopcommerce
Nop.Plugin.Api.Tests/ServicesTests/Categories/GetCategoriesCount/CategoryApiServiceTests_GetCategoriesCount_CreatedParameters.cs
4156
using System; using System.Collections.Generic; using System.Linq; using Nop.Core.Data; using Nop.Core.Domain.Catalog; using Nop.Plugin.Api.Services; using NUnit.Framework; using Rhino.Mocks; namespace Nop.Plugin.Api.Tests.ServicesTests.Categories.GetCategoriesCount { using Nop.Services.Stores; [TestFixture]...
mit
js94766524/HttpLib.Net
HttpLib/Properties/AssemblyInfo.cs
1267
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("HttpLib")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduc...
mit
Meee32/net2
src/qt/sendcoinsentry.cpp
4297
#include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "guiutil.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "walletmodel.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include <QApplication> #include <QClipboard> SendCoinsEntry::SendCoinsEntry(QWidget *parent) : Q...
mit
Zchule/Preventa2
src/pages/presale/order/order-presale/order-presale.ts
2295
import { Component } from '@angular/core'; import { IonicPage, ViewController, NavParams, LoadingController, App, AlertController } from 'ionic-angular'; import { FirebaseListObservable } from 'angularfire2/database'; import { OrderService } from '../../../../providers/order.service'; @IonicPage() @Component({ sel...
mit
gdgeek/GDGeek
Assets/GDGeek/Plugins/Voxel/Mesh/File/MagicaVoxelFormater.cs
9140
using UnityEngine; //using UnityEditor; using GDGeek; using System.IO; using System.Collections.Generic; using System.Security.Cryptography; using System; namespace GDGeek{ public class MagicaVoxelFormater { public static ushort[] palette_ = new ushort[] { 32767, 25599, 19455, 13311, 7167, 1023, 32543, 25375, 192...
mit
s-ueno/uENLab
uEN/Core/ILogService.cs
13510
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace uEN.Core { /// <summary> /// ログ機能を定義します。 /// </summary> public interf...
mit
chriskearney/stickypunch
stickypunch-service/src/main/java/com/comandante/stickypunch/Main.java
3673
package com.comandante.stickypunch; import com.notnoop.apns.APNS; import com.notnoop.apns.ApnsService; import com.comandante.pushpackage.PackageZipBuilder; import com.comandante.pushpackage.PackageZipConfiguration; import com.comandante.pushpackage.PackageZipPool; import com.comandante.pushpackage.PackageZipPoolPopula...
mit
googlestadia/pal
src/core/layers/interfaceLogger/interfaceLoggerDevice.cpp
116374
/* *********************************************************************************************************************** * * Copyright (c) 2016-2021 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
mit
cahyaong/cop.theia
Source/Theia.Module.Sdk/ButtonViewModel.cs
2771
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ButtonViewModel.cs" company="nGratis"> // The MIT License (MIT) // // Copyright (c) 2014 - 2015 Cahya Ong // // Permission is hereby granted, free of charge, to any person obta...
mit
morkt/GARbro
ArcFormats/Lambda/ArcCLS.cs
3471
//! \file ArcCLS.cs //! \date 2017 Dec 21 //! \brief Lambda engine resource archive. // // Copyright (C) 2017 by morkt // // 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 w...
mit
codeprep/boilerplate
app/config/passport.js
10379
'use strict'; var LocalStrategy = require('passport-local').Strategy; var GitHubStrategy = require('passport-github').Strategy; var FacebookStrategy = require('passport-facebook').Strategy; var TwitterStrategy = require('passport-twitter').Strategy; var User = require('../models/users'); var configAuth = require('....
mit
NotaTrueRoute/blogsource
_plugins/anchor_tag.rb
338
module Jekyll class AnchoredHeaderTag < Liquid::Tag def initialize(tag_name, text, tokens) super @text = text.strip end def render(context) "<h4 id='#{@text}'><a name='#{@text}' class='noLink'>#{@text}</a></h4>" end end end Liquid::Template.register_tag('anchoredHeader', Jekyll::...
mit
Papipo/congo
lib/congo/scoper.rb
2349
module Congo module Scoper #:nodoc: def self.included(base) base.extend(ClassMethods) end module ClassMethods def acts_as_congo_scoper if !self.included_modules.include?(MongoMapper::Document) class_eval <<-EOV include Congo::Scoper::InstanceMethods ...
mit
HopefulLlama/eTutor-Intranet
eTutorSystem/Views/admin_ViewDashes.aspx.cs
2824
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using eTutorSystem.Controller_Model; using eTutorSystem.Model; namespace eTutorSystem.Views { public partial class admin_ViewDashes : Sys...
mit
fusion-jena/unit-ontology-review
analysis/util/checkPresence.js
977
"use strict"; // includes var buildLookup = require( './buildLookup' ); /** * check, that for each entry of src there is a corresponding entry in target * * @param src * @param target * @param srcKey * @param targetKey */ function checkPresence( src, target, srcKey, targetKey ) { // list of missing var ...
mit
ArtOfCode-/BlankPost
www/res/js/tables.js
80897
/*! DataTables 1.10.9 ©2008-2015 SpryMedia Ltd - datatables.net/license */ (function(Fa,T,k){var S=function(h){function X(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),d[c]=e,"o"===b[1]&&X(a[e])})...
mit
vitalie/unicorn-soft-timeout
lib/unicorn/soft_timeout.rb
857
require 'unicorn/soft_timeout/version' module Unicorn module SoftTimeout def self.new(app, soft_timeout = 12) ObjectSpace.each_object(Unicorn::HttpServer) do |s| s.extend(self) s.instance_variable_set(:@_soft_timeout, soft_timeout) end app # pretend to be Rack middleware since i...
mit
deepakmega/Documents
public/modules/document/controllers/docNodeCreate.client.controller.js
3340
/*global $:false */ 'use strict'; // Uploads controller angular.module('document').controller('docNodeCreateController', ['$scope', '$stateParams', '$location', 'Authentication', 'documentService', 'ngDialog', function($scope, $stateParams, $location, Authentication, documentService, ngDialog) { $scope.si...
mit
nublet/WoWCache
WTF/Account/Poesboi/SavedVariables/DataStore_Garrisons.lua
252435
DataStore_GarrisonsDB = { ["profileKeys"] = { ["Talambelen - Neptulon"] = "Poesboi", ["Grimsheepér - Neptulon"] = "Poesboi", ["Bonniè - Darksorrow"] = "Poesboi", ["Hanibull - Neptulon"] = "Poesboi", ["Bonrambo - Darksorrow"] = "Poesboi", ["Sickem - Darksorrow"] = "Poesboi", ["Shreduction - Neptulon"] = ...
mit
nerdkunde/website
templates/plugins/podlove/podlove/podlove-web-player.js
108881
/* * =========================================== * Podlove Web Player v2.0.13 * Licensed under The BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * =========================================== */ /*jslint browser: true, plusplus: true, unparam: true, vars: true, white: true */ /*global window...
mit
dticln/CaCln
app/views/pages/deny.php
670
<?php namespace App\Views\Pages; use Pure\Utils\Res; ?> <div class="container"> <?php if($error_message):?> <div class="col-md-4 col-md-offset-4"> <div class="alert alert-danger"> <strong> <?= Res::str('ops') ?> </strong><?= $error_message; ?> </div> </div> <?php endif; ?> <div class="col-md-8 col-m...
mit
Dissolving-in-Eternity/GigHub
GigHub/Persistence/Migrations/201704241438301_AddMoreGenres.Designer.cs
817
// <auto-generated /> namespace GigHub.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class AddMor...
mit
KHs000/lpii_INF3_g4
src/main/webapp/WEB-INF/classes/br/cefetmg/inf/model/service/IManterDepartamento.java
534
package br.cefetmg.inf.model.service; import br.cefetmg.inf.model.domain.Departamento; import br.cefetmg.inf.util.db.exception.NegocioException; import br.cefetmg.inf.util.db.exception.PersistenciaException; import java.util.List; /** * * @author Felipe Rabelo */ public interface IManterDepartamento...
mit
py-in-the-sky/redux-webpack
webpack.production.config.js
658
var path = require('path'); module.exports = { devtool: 'source-map', // normal source mapping context: path.join(__dirname, 'app'), entry: { javascript: './app.js', html: './index.html' }, output: { filename: 'app.js', path: path.join(__dirname, 'dist'), }, module: { ...
mit
makotoarakaki/d-denwa
fuel/app/logs/2016/01/07.php
20002
<?php defined('COREPATH') or exit('No direct script access allowed'); ?> INFO - 2016-01-07 09:29:07 --> Fuel\Core\Request::__construct - Creating a new main Request with URI = "admin" INFO - 2016-01-07 09:29:07 --> Fuel\Core\Request::execute - Called INFO - 2016-01-07 09:29:07 --> Fuel\Core\Request::execute - Setting ...
mit
tsgao/project_557_2015_tg
Homework_4/p1/main_multi_texture.cpp
6623
// // main_spotlight.cpp // HCI 557 Spotlight example // // Created by Rafael Radkowski on 5/28/15. // Copyright (c) 2015 -. All rights reserved. // // stl include #include <iostream> #include <string> // GLEW include #include <GL/glew.h> // GLM include files #define GLM_FORCE_INLINE #include <glm/glm.hpp> #incl...
mit
danche354/Sequence-Labeling
tools/hashing.py
2089
''' letter-3-gram hashing convert word or sentence to letter-3-gram representation matrix ''' import numpy as np from scipy.sparse import csc_matrix import conf chunk_feature_length = conf.chunk_feature_length chunk_l3g_dict = conf.chunk_l3g_dict chunk_feature_length_2 = conf.chunk_feature_length_2 chunk_l2g_dict =...
mit
aed86/webmodern
src/Bundle/MainBundle/Controller/Api/DocumentTypeController.php
2258
<?php namespace Bundle\MainBundle\Controller\Api; use Bundle\MainBundle\Entity\DocumentType; use Bundle\MainBundle\Repository\DocumentTypeRepository; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; u...
mit
AMPATH/ng2-amrs
src/app/openmrs-api/patient-relationship-type-resource.service.ts
965
import { map } from 'rxjs/operators'; import { Injectable } from '@angular/core'; import { AppSettingsService } from '../app-settings/app-settings.service'; import { Response } from '@angular/http'; import { Observable } from 'rxjs'; import { HttpClient, HttpParams } from '@angular/common/http'; @Injectable() export c...
mit
jeroendesloovere/fork-cms-module-agenda
backend/modules/agenda/actions/edit.php
11094
<?php use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Exception\IOException; /** * This is the edit-action, it will display a form with the item data to edit * * @author Tim van Wolfswinkel <tim@webleads.nl> */ class BackendAgendaEdit extends BackendBaseActionEdit { /** * The re...
mit
hmltnbrn/brian-hamilton
src/components/NotFound/NotFound.tsx
920
import React from 'react'; import styles from './NotFound.module.scss'; import classNames from 'classnames/bind'; import { withRouter, RouteComponentProps } from 'react-router-dom'; const cx = classNames.bind(styles); const NotFound = ({ history }: RouteComponentProps): JSX.Element => { const goBack = (): void =>...
mit
nemundo/framework
src/App/Script/Reset/ScriptReset.php
556
<?php namespace Nemundo\App\Script\Reset; use Nemundo\App\Script\Data\Script\ScriptDelete; use Nemundo\App\Script\Data\Script\ScriptUpdate; use Nemundo\Project\Reset\AbstractReset; class ScriptReset extends AbstractReset { public function reset() { $update = new ScriptUpdate(); $update->s...
mit
tarasfrompir/majordomo
lib/messages.class.php
6075
<?php function sayReplySafe($ph, $level = 0, $replyto = '') { $data = array( 'sayReply' => 1, 'ph' => $ph, 'level' => $level, 'replyto' => $replyto, ); if (session_id()) { $data[session_name()] = session_id(); } $url = BASE_URL . '/objects/?' . h...
mit
DavidLievrouw/MSBuildTasks
src/MSBuildTasks/Handlers/ValidationAwareQueryHandler.cs
864
using System; using System.Threading.Tasks; using DavidLievrouw.Utils; using FluentValidation; namespace DavidLievrouw.MSBuildTasks.Handlers { public class ValidationAwareQueryHandler<TArg, TResult> : IQueryHandler<TArg, TResult> { readonly IValidator<TArg> _validator; readonly IQueryHandler<TArg, TResult> _...
mit
UCSB-CS56-W15/W15-lab04
src/edu/ucsb/cs56/w15/drawings/ecarnohan/advanced/CoffeeCup.java
3184
package edu.ucsb.cs56.w15.drawings.ecarnohan.advanced; import java.awt.geom.GeneralPath; // combinations of lines and curves import java.awt.geom.AffineTransform; // translation, rotation, scale import java.awt.Shape; // general class for shapes // all imports below this line needed if you are implementing Shape impor...
mit
keke78ui9/UNITTEST_Example
ClassLibrary1/Properties/AssemblyInfo.cs
1420
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("Cl...
mit
UVInventario/Relace
module/Seguridad/src/Seguridad/Entities/Rol.php
1924
<?php /* * 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. */ namespace Seguridad\Entities; /** * Description of Rol * * @author MIGUEL */ class Rol { /** *...
mit
PierreSylvain/nao
src/AppBundle/Repository/ObservationRepository.php
7558
<?php namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; use AppBundle\Entity\Observation; use Doctrine\ORM\Tools\Pagination\Paginator; /** * Class NotificationRepository * * @package AppBundle\Repository */ class ObservationRepository extends EntityRepository { public function deleteByUser($...
mit
arturoleon/curso-titanium
JoseLuis/Intents/email.js
726
/* * Android */ Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("*/*"); intent.putExtra(Intent.EXTRA_EMAIL, addresses); intent.putExtra(Intent.EXTRA_SUBJECT, subject); intent.putExtra(Intent.EXTRA_STREAM, attachment); if (intent.resolveActivity(getPackageManager()) != null) { startActivity(intent); ...
mit
thoward/parrano
Parrano.Api/Color.cs
123
namespace Parrano.Api { public abstract class Color { public abstract float[] ToFloatArray(); } }
mit
deric/treeviz
src/main/java/ch/randelshofer/tree/sunray/MultilineIcerayDraw.java
11634
/* * @(#)MultilineIcerayDraw.java 1.0 2011-08-20 * * Copyright (c) 2011 Werner Randelshofer, Goldau, Switzerland. * All rights reserved. * * You may not use, copy or modify this file, except in compliance with the * license agreement you entered into with Werner Randelshofer. * For details see accompanying li...
mit
ignazioc/MoneyManager
lib/moneymanager/reviewer.rb
457
class Reviewer def review(entries) archiver = Moneymanager::Archiver.new entries.each do |entry| Layout.print_single(entry) prompt = TTY::Prompt.new action = prompt.select('Do you recognize?', %i[yes no skip abort], per_page: 30) case action when :yes entry.approved = tr...
mit
ElementsProject/elements
test/functional/p2p_eviction.py
5754
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test node eviction logic When the number of peers has reached the limit of maximum connections, the next ...
mit
facebook/jest
scripts/remove-examples.js
578
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const {writeFileSync} = require('fs'); const {resolve} = require('path'); const rimraf = requi...
mit
haefele/Mileage
src/04 Shared/Mileage.Localization/Properties/AssemblyInfo.cs
922
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("Mi...
mit
elementary/mvp
_scripts/pages/store/cart.js
4536
/** * scripts/pages/store/cart.js * Does update logic for cart quantities and some basic address validation */ /* global plausible */ import jQuery from '~/lib/jquery' Promise.all([jQuery]).then(([$]) => { plausible('Store: Cart Visit') $(document).ready(function () { var baseUrl = $('base').attr...
mit
mahasayz/expenses
src/Expense/SiteBundle/Controller/LoginController.php
3554
<?php namespace Expense\SiteBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Security\Core\SecurityContext; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Se...
mit
plotly/plotly.py
packages/python/plotly/plotly/validators/isosurface/_legendgroup.py
412
import _plotly_utils.basevalidators class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="legendgroup", parent_name="isosurface", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_n...
mit
LabLayers/CIS-1068
04 Loops/LoopWhile.java
1984
/** * Meal Plan Calculator using while loops * @author Victor Lourng * @version 2016 */ import java.util.Scanner; public class LoopWhile { /** * Ask user for information about their meal plan, then runs methods below. */ public static void main(String[] args) { Scanner keyboard = new Scanner(System....
mit
pequalsnp/eve-isk-tracker
app/modules/MetricModule.scala
311
package modules import com.codahale.metrics.MetricRegistry import com.google.inject.AbstractModule import net.codingwell.scalaguice.ScalaModule class MetricModule extends AbstractModule with ScalaModule { override def configure(): Unit = { bind[MetricRegistry].toInstance(new MetricRegistry) } }
mit
ShivamMukherjee/TL4_TestingGrounds
TL4_TestingGrounds/Source/TL4_TestingGrounds/TL4_TestingGroundsGameMode.cpp
727
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "TL4_TestingGrounds.h" #include "TL4_TestingGroundsGameMode.h" #include "TL4_TestingGroundsHUD.h" #include "Player/FirstPersonCharacter.h" #include "UObject/ConstructorHelpers.h" #include "Misc/Paths.h" ATL4_TestingGroundsGameMode::ATL4_TestingGrou...
mit
paulsapps/7-Gears
inc/kernel/stream.hpp
719
#pragma once #include <vector> #include <iostream> #include <memory> #include <SDL_types.h> class Stream { public: explicit Stream(const std::string& fileName); explicit Stream(std::vector<Uint8>&& data); void ReadUInt8(Uint8& output); void ReadUInt32(Uint32& output); void ReadUInt16(Uint16& outpu...
mit
plotly/python-api
packages/python/plotly/plotly/graph_objs/layout/_modebar.py
13508
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Modebar(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout" _path_str = "layout.modebar" _valid_props = {"activecolor", "bgcolor", "color", ...
mit
MadMikeyB/kwnme.framework.2.0
app/views/Spam/SpamIP.php
278
<div class="alert alert-danger" role="alert"> <i class="fa fa-exclamation-triangle"></i> The IP address which you made your request with has been banned from our service. Please <a href="http://kwn.me/contact">email us</a> if you think that this is an error. Thank you. </div>
mit
swipesapp/valjs
tools/build.js
1240
const fs = require('fs') const execSync = require('child_process').execSync const prettyBytes = require('pretty-bytes') const gzipSize = require('gzip-size') const exec = (command, extraEnv) => execSync(command, { stdio: 'inherit', env: Object.assign({}, process.env, extraEnv) }) const isTest = process.en...
mit
TeaLang/tea
tests/syntax/dist/operations.php
1246
<?php namespace tea\tests\syntax; require_once dirname(__DIR__, 1) . '/__public.php'; #internal const PI = 3.1415926; // --------- $some = 'abc' . (1 + fmod((2 & 2) * 2 ** 3 / 5, 6)); $uint_num = 123; $int_num = 123; $uint_from_string = uint_ensure((int)'123'); $str_from_uint = (string)123; $str_from_float = (str...
mit
DLukeNelson/Arduino-Battleship
Arduino-Battleship/Place_Ships.cpp
7962
/* Function for a player to place his ships at the start of the game. */ #include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_ST7735.h> // Hardware-specific library #include <SPI.h> #include <SD.h> #include "Place_Ships.h" #include "Draw_Screen.h" #include "lcd_image.h" #include "Images.h" #inclu...
mit
n4ch03/zendhub
src/middlewares/index.js
968
'use strict'; /* * Middlewares: define all global middlewares for your api */ import express from 'express'; import bodyParser from 'body-parser'; export default () => { let middlewares = express.Router(); middlewares.use(bodyParser.json()); // for parsing application/json middlewares.use((req, res, ...
mit
xygdev/XYG_QBORD
src/com/xinyiglass/xygdev/controller/FuncController.java
3571
package com.xinyiglass.xygdev.controller; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation....
mit
ivan-uskov/dnaclub
dnaclub/src/AppBundle/Form/ProductForm.php
1523
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use AppBundle\Entity\Product; class ProductForm extends AbstractType { public function getName() { return 'prod...
mit
d0niek/ftp-update
src/Update/Update.php
2922
<?php /** * User: d0niek * Date: 11/11/15 * Time: 2:23 PM */ namespace Update; use Exception; class Update { /** * Gets modified files array since last update * * @param string $source * @param int $lastUpdate * @param array $ignoredFiles * * @return array * @throws \...
mit
ciscohdz/learning-python-basic
google-exercises/basic/string1.py
3644
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Basic string exercises # Fill in the code for the functions below. main() is already se...
mit
lhzhou/share_web
app/Http/Controllers/Helper/Http.php
2269
<?php namespace App\Http\Controllers\Helper; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use GuzzleHttp\Client; class Http extends Controller { /** * @param $url * @array $params * @return object */ public static function post($url , array $p...
mit
adamfluke/ScoutCleaner
spec/spec_helper.rb
30
require_relative '../cleaner'
mit
leader22/simple-pokedex-v2
_scraping/fetch/519.js
4266
module.exports = { "key": "pidove", "moves": [ { "learn_type": "tutor", "name": "heat-wave" }, { "learn_type": "tutor", "name": "sleep-talk" }, { "learn_type": "tutor", "name": "snore" }, ...
mit
wesley-kiyohara/react.net-sample
react.net-sample/Areas/HelpPage/SampleGeneration/InvalidSample.cs
978
using System; namespace react.net_sample.Areas.HelpPage { /// <summary> /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. /// </summary> public class InvalidSample { public InvalidSample(string errorMessage) ...
mit
amite/js-links
config/webpack.config.js
1846
/* global __dirname */ import webpack from 'webpack'; import postcss, { getCSSLoaderConfig } from './postcss.config'; import path from 'path'; import packageJson from '../package.json'; import HtmlPlugin from 'html-webpack-plugin'; const basePath = path.join(__dirname, '..', 'app'); const env = process.env.NODE_ENV ||...
mit
mmkassem/gitlabhq
db/migrate/20200527152657_add_foreign_key_to_project_id_on_build_report_results.rb
505
# frozen_string_literal: true class AddForeignKeyToProjectIdOnBuildReportResults < ActiveRecord::Migration[6.0] include Gitlab::Database::MigrationHelpers DOWNTIME = false def up with_lock_retries do add_foreign_key :ci_build_report_results, :projects, column: :project_id, on_delete: :cascade # ruboc...
mit
ayeletshpigelman/azure-sdk-for-net
sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.cs
3286
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using Azure.Core; namespace Azure.Containers.ContainerRegistry { /// <summary> Manifest details. </summary> internal partial ...
mit
ahyiru/react-ui-demo
project/p1/configs/tools.ts
3490
export const hasClass=(target,cname)=>{ return target.className.match(new RegExp('(\\s|^)'+cname+'(\\s|$)')); }; export const addClass=(target,cname)=>{ var nameArr=cname.split(' '); nameArr.map((v,k)=>{ if(!!v&&!hasClass(target,v)){ target.className+=' '+v; } }); }; export const removeClass=(ta...
mit
PhilVargas/js_game_of_afterlife
test/pathfinderTest.js
1456
import { default as chai } from 'chai'; const expect = chai.expect; import { default as Pathfinder } from 'pathfinder'; describe('Pathfinder', function(){ describe('#distanceTo', function(){ let coord1, coord2; beforeEach(function(){ coord1 = { x: 0, y: 0 }; coord2 = { x: 1, y: 1 }; }); ...
mit
AsrOneSdk/azure-sdk-for-net
sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeLinkedEntitiesActionResult.cs
1772
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics { /// <summary> /// The result of the execution of a <see cref="RecognizeLinkedEntitiesAction"/> on the input documents. /// ...
mit
Julien-Mialon/Cake.Storm
fluent/src/Cake.Storm.Fluent/Interfaces/IFluentContext.cs
324
using Cake.Core; namespace Cake.Storm.Fluent.Interfaces { public interface IFluentContext { ICakeContext CakeContext { get; } TaskDelegate Task { get; } SetupDelegate Setup { get; } TeardownDelegate Teardown { get; } TaskSetupDelegate TaskSetup { get; } TaskTeardownDelegate TaskTeardown { get; } }...
mit
wenhulove333/ScutServer
Sample/Koudai/Server/src/ZyGames.Tianjiexing.BLL.Combat/PlotTeamCombat.cs
30502
/**************************************************************************** Copyright (c) 2013-2015 scutgame.com http://www.scutgame.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 ...
mit
viktorrr/SurveySystem
Data/SurveySystem.Data.Models/QuestionType.cs
138
namespace SurveySystem.Data.Models { public enum QuestionType { FreeText, Checkbox, RadioButton } }
mit
mshRoR/blog_api
frontend/components/pagination/pagination.component.js
1155
angular.module('blogApp') .component('pagination', { bindings: { pageInfo: '<' }, // require: { // homeCtrl: '^^home' // }, controller: PaginationController, templateUrl: 'components/pagination/pagination.template.html' }); function PaginationController($http, PostService){ ...
mit
ademakov/Evenk
tests/thread_pool-test.cc
572
#include <evenk/synch_queue.h> #include <evenk/thread_pool.h> template <typename T> using queue = evenk::synch_queue<T>; int main() { static constexpr std::uint32_t expected = 100 * 1000; std::atomic<std::uint32_t> counter = ATOMIC_VAR_INIT(0); evenk::thread_pool<queue> pool(8); for (std::uint32_t i = 0; i < exp...
mit
anandpdoshi/frappe
frappe/website/website_generator.py
2271
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import quoted from frappe.model.document import Document from frappe.model.naming import append_number_if_name_exists from frappe.website.utils imp...
mit
tsileo/broxy
vendor/github.com/gdamore/tcell/terminfo/term_rxvt.go
2983
// Generated automatically. DO NOT HAND-EDIT. package terminfo func init() { // rxvt terminal emulator (X Window System) AddTerminfo(&Terminfo{ Name: "rxvt", Columns: 80, Lines: 24, Colors: 8, Bell: "\a", Clear: "\x1b[H\x1b[2J", EnterCA: "\x1b7\x1b[?47h",...
mit
arcthur/react-book-examples
06/src/components/Home/Modal.js
949
import React, { Component, PropTypes } from 'react'; import { Modal } from 'antd'; import { createForm } from 'redux-form-utils'; import formConfig from './Modal.config'; @createForm(formConfig) export default class ArticleModal extends Component { render() { const { title, desc, date } = this.props.fields; ...
mit
robocon/platwo-eventsniff-api
tests/api/PutUserProfilePictureCept.php
566
<?php // Get test image and convert into base64 $image = base64_encode(file_get_contents(dirname(dirname(__FILE__)).'/test.png')); $user_id = '54ba29c210f0edb8048b457a'; $I = new ApiTester($scenario); $I->wantTo('Update User Profile Picture'); $I->haveHttpHeader('Content-Type', 'application/x-www-form-urlencoded'); $...
mit
NECDisplaySolutions/necpdsdk
nec_pd_sdk/constants.py
18713
"""constants.py - Various constants used for communicating with NEC large-screen displays. Revision: 180220 """ # # # Copyright (C) 2016-18 NEC Display Solutions, Ltd # written by Will Hollingworth <whollingworth at necdisplay.com> # See LICENSE.rst for details. # # timeout in seconds for establishing a TCP connection...
mit
WaywardGame/mod-reference
definitions/tile/ITileEventManager.d.ts
1235
/*! * Copyright Unlok, Vaughn Royko 2011-2019 * http://www.unlok.ca * * Credits & Thanks: * http://www.unlok.ca/credits-thanks/ * * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the moddin...
mit
kylaris18/tempbiomes
pages/pasu_redirect.php
6625
<?php #starting session session_start(); include 'database/database.php'; $pdo = Database::connect(); $sql = "SELECT * FROM tbl_pasu_status WHERE pasu_uname = '".$_SESSION['uname']."' AND ps_status = 0;"; //var_dump($sql); $ongoing = 0; foreach ($pdo->query($sql) as $row) { if ($row) { ...
mit
neotonyxx/personal
app/Providers/AppServiceProvider.php
645
<?php namespace App\Providers; use Illuminate\Support\Facades\Validator; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // Add some custom validat...
mit
pointcache/URSA
Assets/URSA/Utility/TransformUtilities.cs
5214
namespace URSA.Utility { using UnityEngine; using System; using System.Collections.Generic; public static class TransformUtilities { public static Vector3 GetAxis(this Axis axis) { switch (axis) { case Axis.x: return Vector3.right; ...
mit
TAV2017GERM/assignment
src/Models/ActuatorsInterface.java
618
package Models; /** * @author Group 4 on 2/13/17. */ public interface ActuatorsInterface { /** * Description: Increase the position of the car * <p> * Pre-condition: position < 500 * <p> * Post-condition: position <= 500 * <p> * Test-cases: testMoveForward, testRunFwd */...
mit