code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
Pony.options = { via: :smtp, from: 'HUD Notifier <no-reply@hud-notifier.herokuapp.com>', via_options: { address: 'smtp.sendgrid.net', port: '587', domain: 'heroku.com', user_name: ENV['SENDGRID_USERNAME'], password: ENV['SENDGRID_PASSWORD'], authentication: :plain, enable_starttls_auto...
ancorcruz/hud_notifier
lib/hud_notifier/mailer_config.rb
Ruby
mit
333
/* * The MIT License (MIT) * * Copyright (c) 2016-2020, Hamdi Douss * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to...
HDouss/jeometry
aljebra/src/test/java/com/aljebra/scalar/mock/SpyScalar.java
Java
mit
2,523
package jeliot.mcode; /** * Currently this class is not used in Jeliot 3. * * @author Niko Myller */ public class Command { // DOC: document! /** * */ private int expressionReference = 0; /** * */ private int type = 0; /** * */ protected Command() { } ...
moegyver/mJeliot
Jeliot/src/jeliot/mcode/Command.java
Java
mit
899
/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
yakovenkodenis/Discounty
src/main/java/com/google/zxing/common/reedsolomon/ReedSolomonDecoder.java
Java
mit
7,749
<?php $passEnc = '$2y$06$wRkrmRT6gm8g0CqcKnrWYOrLke6waZva11sqfv4RkjuCXCjG0qI56'; $user = 'admin'; ?>
jplsek/Basic-CMS-Project
cms/key.php
PHP
mit
103
package us.corenetwork.tradecraft; import net.minecraft.server.v1_10_R1.Item; import net.minecraft.server.v1_10_R1.ItemStack; import net.minecraft.server.v1_10_R1.MerchantRecipe; import net.minecraft.server.v1_10_R1.NBTTagCompound; /** * Created by Matej on 5.3.2014. */ public class CustomRecipe extends MerchantRec...
Kongolan/TradeCraft
src/us/corenetwork/tradecraft/CustomRecipe.java
Java
mit
2,230
package com.tom.util; import java.util.List; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraftforge.fluids.FluidStack; import com.tom.api.research.Research; import com.tom.recipes.handler.AdvancedCr...
tom5454/Toms-Mod
src/main/java/com/tom/util/RecipeData.java
Java
mit
4,212
//This file makes it easier to import everything from the common folder export * from './Button'; export * from './Card'; export * from './CardSection'; export * from './Header'; export * from './Input'; export * from './Spinner'; export * from './Confirm';
srserx/react-native-ui-common
index.js
JavaScript
mit
259
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Filename : video.py # Author : Kim K # Created : Fri, 29 Jan 2016 # Last Modified : Sun, 31 Jan 2016 from sys import exit as Die try: import sys import cv2 from colordetection import ColorDetector except ImportError as err: Die(err) ...
muts/qbr
src/video.py
Python
mit
4,872
import React from 'react'; import Example from './Example'; import Icon from '../../src/Icon'; import Button from '../../src/Button'; import IconButton from '../../src/IconButton'; import FABButton from '../../src/FABButton'; export default ( props ) => ( <section { ...props }> <h3>Buttons</h3> <...
joshq00/react-mdl
demo/sections/Buttons.js
JavaScript
mit
1,885
using System.Collections; namespace System.ComponentModel.DataAnnotations { public class EnsureMinimumElementsAttribute : ValidationAttribute { private readonly int _minElements; public EnsureMinimumElementsAttribute(int minElements) { _minElements = minElements; }...
orbital7/orbital7.extensions
src/Orbital7.Extensions.Attributes/EnsureMinimumElementsAttribute.cs
C#
mit
583
// // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights /...
baxtea/Anvil
src/misc/io.cpp
C++
mit
8,936
var async = require('async'); function _hasher() { return "_"; } function accessor(idx) { return (this.memo._ || [])[idx]; }; module.exports = function mymoize(fn) { var memoized = async.memoize(fn, _hasher); memoized.getErr = accessor.bind(memoized, 0); memoized.getRes = accessor.bind(memoized, 1); retu...
adrienjoly/npm-mymoize
index.js
JavaScript
mit
335
module Sinkhole module Commands class Help < Command def do_process Responses::HelpMessage.new(":(... y u no smtp?") end end end end
andrewstucki/sinkhole
lib/sinkhole/commands/help.rb
Ruby
mit
164
using System; namespace _03.Mankind { public abstract class Human { private string firstName; private string lastName; protected Human(string firstName, string lastName) { this.FirstName = firstName; this.LastName = lastName; } public s...
George221b/SoftUni-Tasks
C#OOP-Basics/03.Inheritance-Exercise/03.Mankind/Human.cs
C#
mit
1,540
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // La información general sobre un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos atributos para modificar la información // asociada con un ensamblado. [assembly: AssemblyTitle(...
nikeyes/SlackClient
Slack.ServiceLibrary/Properties/AssemblyInfo.cs
C#
mit
1,558
var Promise = require('ia-promise'); var XHRPromise = require('./XHRPromise'); var CommandPromise = require('./CommandPromise'); var ProfilePromise = require('./ProfilePromise'); var ViewPromise = require('./ViewPromise'); var FutureViewPromise = require('./FutureViewPromise'); var RoomPromise = require('./RoomPromise'...
nfroidure/Liar
src/RoomsPromise.js
JavaScript
mit
2,568
/** * ionNavBar * * ionNavBar and _ionNavBar are created to overcome Meteor's templating limitations. By utilizing Template.dynamic * in blaze, we can force ionNavBar to destroy _ionNavBar, enabling css transitions and none of that javascript * animation. */ let _ionNavBar_Destroyed = new ReactiveVar(false); Te...
JoeyAndres/meteor-ionic
components/ionNavBar/ionNavBar.js
JavaScript
mit
4,669
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("mk...
mk-prg-net/mk-prg-net.lib
mko.Testdata/Properties/AssemblyInfo.cs
C#
mit
1,447
using System; using System.Collections.Generic; using System.Reflection; using WSDL.Models; using WSDL.Models.Schema; namespace WSDL.TypeManagement { /// <summary> /// This provides a stateful context for managing the types required to define /// a web service. It includes all the types, both static and i...
carlos-vicente/Nancy.Soap
src/WSDL/TypeManagement/ITypeContext.cs
C#
mit
1,193
/* * jobshopConstants.java * * Created on February 3, 2001, 12:48 PM */ package hugs.apps.jobshop; import java.lang.*; import java.util.*; /** * This class holds all the constants used in the jobshop project * * @author Guy T. Schafer * @version 1.0 */ public class jobshopConstants { // ...
guwek/HuGS
hugs/apps/jobshop/jobshopConstants.java
Java
mit
9,091
/* eslint no-unused-expressions: "off" */ import { expect } from 'chai'; import { Session } from '../utils'; import * as ModelUtils from '../../../src/utils/model-utils'; const session = new Session(); const Vehicle = session.model('Vehicle', {}); const Car = session.model('Car', {}, { 'extends': Vehicle }); cons...
one-orm/core
test/unit/utils/model-utils-test.js
JavaScript
mit
5,551
#!/usr/bin/python """ Author: Mohamed K. Eid (mohamedkeid@gmail.com) Description: stylizes an image using a generative model trained on a particular style Args: --input: path to the input image you'd like to apply a style to --style: name of style (found in 'lib/generators') to apply to th...
mohamedkeid/Feed-Forward-Style-Transfer
src/test.py
Python
mit
3,177
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res) { res.render('index', { title: 'Express',reqCsrf:req.csrfToken()}); }); router.post('/regist',function(req,res){ res.send('OK') }); router.post('/registXhr',function(req,res){ if(req....
CM-Kajiwara/csurfSample
routes/index.js
JavaScript
mit
439
using Diabhelp.Core.Api; using Diabhelp.Core.Api.ResponseModels; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls...
DiabHelp/DiabHelp-App-WP
Diabhelp/Core/InscriptionScreen.xaml.cs
C#
mit
3,398
var React = require('react'); var AWSMixin = require('../mixins/aws.mixin'); var AWSActions = require('../actions/AWSActions'); var EC2Item = React.createClass({ render: function() { return ( <a href="#" onClick={this._onSSHClick} className="col one-fourth ec2-instance">{this.props.instance.Name}</a> ...
sunils34/visualize-aws
www/js/components/EC2.react.js
JavaScript
mit
865
describe('jQuery Plugin', function () { it('jQuery.fn.plugin should exist', function () { expect(jQuery.fn.plugin).toBeDefined(); }); });
angryobject/jquery-plugin-starter
app/jquery.plugin.spec.js
JavaScript
mit
149
using HtmlAgilityPack; using MagicNewCardsBot.Helpers; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace MagicNewCardsBot { public class MTGPicsTasker : Tasker { ...
vinimk/MagicNewCardsBotForTelegram
TaskersAndControllers/MTGPicsTasker.cs
C#
mit
15,297
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Pickin.Models { public class PickinUser : IComparable { [Key] public int PickinUserId { get; set; } [Required] public virtual Application...
jbrooks036/Pickin
Pickin/Models/PickinUser.cs
C#
mit
1,050
/* -------------------------------------------------------------------------- * * File MainScene.cpp * Description * Ported By Young-Hwan Mun * Contact xmsoft77@gmail.com * * -------------------------------------------------------------------------- * * ...
mcodegeeks/OpenKODE-Framework
04_Sample/BattleCity/Source/Views/MainScene.cpp
C++
mit
5,528
<?php /** * Класс User - предназначен для работы с учетными записями пользователей системы. * Доступен из любой точки программы. * Реализован в виде синглтона, что исключает его дублирование. * * @author Авдеев Марк <mark-avdeev@mail.ru> * @package moguta.cms * @subpackage Libraries */ class User { ...
hlogeon/autoryad
mg-core/lib/user.php
PHP
mit
11,648
/** * @license * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. * * TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED * *AS IS* AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS * OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT,IMPLI...
denverpierce/denverpierce.github.io
Cesium/Source/Shaders/PostProcessFilters/FXAA.js
JavaScript
mit
6,619
// // Created by Amrik Sadhra on 25/10/2017. // #include "Model.h" #include <utility> Model::Model(std::string name, std::vector<glm::vec3> verts, std::vector<glm::vec2> uvs, std::vector<glm::vec3> norms, std::vector<unsigned int> indices, bool removeVertexIndexing, glm::vec3 center_position) { m_name = std::mov...
AmrikSadhra/FCE-to-OBJ
src/Scene/Model.cpp
C++
mit
877
package com.farwolf.reader; import android.util.Log; import org.androidannotations.annotations.Bean; import org.androidannotations.annotations.EBean; import com.farwolf.base.ServiceBase; import com.farwolf.json.JsonListener; import com.farwolf.json.JsonReader; import com.farwolf.view.progress.DialogProgress; import ...
evildoerX/weex-ouikit
platforms/android/farwolf.business/src/main/java/com/farwolf/reader/HttpServiceBase.java
Java
mit
1,255
<?php echo form_open('','class="form-sign"'); ?> <div class=" my-reg-2 w3-animate-opacity"> <div class="container"> <div class="row size_4"> <div class="col-lg-2"></div> <div class="col-lg-8 reg-box"> <h2 class="name">Step 4: Personal Information</h2> <div class="space...
11Receli/ISEE
application/modules/page/views/personalinfo.php
PHP
mit
5,099
<?php class SomethingDigital_EnterpriseIndexPerf_Model_Observer_Pagecache { /** * Clean cache for affected products * * @param Varien_Event_Observer $observer Event data */ public function cleanProductsCacheAfterPartialReindex(Varien_Event_Observer $observer) { // Only if the Pa...
sdinteractive/SomethingDigital_EnterpriseIndexPerf
app/code/community/SomethingDigital/EnterpriseIndexPerf/Model/Observer/Pagecache.php
PHP
mit
1,456
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2015 Francois Beaune, The appleseedhq Organization // ...
Vertexwahn/appleseed
src/appleseed/foundation/meta/tests/test_string.cpp
C++
mit
30,223
package main import ( "crypto/tls" "crypto/x509" "fmt" "io/ioutil" "net/http" "os" "math/rand" "time" scalarmWorker "github.com/scalarm/scalarm_simulation_manager_go/scalarmWorker" ) // VERSION current version of the app const VERSION string = "17.04" // Fatal utility function to log a fatal error func Fa...
Scalarm/scalarm_simulation_manager_go
scalarmSimulationManager.go
GO
mit
1,451
<?php /****************************************************************************** Project: Fram3w0rk PHP 0.5 [Alpha] Website: http://LawtonSoft.com/projects/fram3w0rk Author: Jonathan Lawton (wanathan101@gmail.com) Contributers: none, yet :-( (Come join in!) Copyright (c) 2012+, LawtonSoft. All rights re...
LawtonSoft/Fram3w0rk-PHP
index.php
PHP
mit
9,806
class Hamming VERSION = 1.freeze def self.compute strand_1, strand_2 distance = 0 if not (strand_1 || strand_2) raise ArgumentError elsif strand_1.length != strand_2.length raise ArgumentError else strand_1.split("").each_with_index do |strand, index| if strand_2[index] !=...
alexggordon/exercism
ruby/hamming/hamming.rb
Ruby
mit
405
/** * MIT License * * Copyright (c) 2016 Derek Goslin < http://corememorydump.blogspot.ie/ > * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitati...
DerekGn/DDPAIDash
DDPAIDash.Core/Types/DeviceInfo.cs
C#
mit
3,314
import React from 'react'; import Example from './Example'; import Tooltip from '../../src/Tooltip'; import Icon from '../../src/Icon'; export default ( props ) => ( <section { ...props }> <h3>Tooltips</h3> <Example> <Tooltip label="Follow"> <Icon name="add" /> ...
joshq00/react-mdl
demo/sections/Tooltips.js
JavaScript
mit
1,004
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\Question */ $this->title = 'Update: ' . $model->question; $this->params['breadcrumbs'][] = ['label' => 'Questions', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->question, 'url' => ['view', 'id' => $model-...
umbalaconmeogia/brse-interview
src/app/views/question/update.php
PHP
mit
586
import { Component, OnInit, OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { firestore } from 'firebase/app'; import { AppService } from '../../app.service'; import { environment } from '../../../environments/environment'; @Component({ selector: 'ap...
felipecota/realtimeapp
src/app/app-list/list-access/list-access.component.ts
TypeScript
mit
3,523
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Model_cadospres extends CI_Model { public $table = 'dospres_calon_dosen_berprestasi'; public $id = 'id_calon_dospres'; public function data() { $query = $this->db->get('dospres_calon_dosen_berprestasi'); return $query->result...
Lective/newdospres
application/modules/lv_webmin/models/Model_cadospres.php
PHP
mit
1,092
<?php return [ 'welcome' => 'Bienvenido a apiato', ];
Drummer01/ForestChat
app/Containers/Localization/Resources/Languages/es/messages.php
PHP
mit
61
package net.creeperhost.chtweaks; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.monster.EntityMob; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.world.Worl...
CreeperHost/CH-Tweaks
src/main/java/net/creeperhost/chtweaks/ModEvents.java
Java
mit
1,503
module Compass::Magick module Plugins # Applies rounded corners around the {Canvas}. # # @param [Sass::Script::Number] radius The corner radius. # @param [Sass::Script::Bool] top_left Controls the top-left corner # radius effect (default <tt>true</tt>) # @param [Sass::Script::Bool] top_right...
StanAngeloff/compass-magick
lib/plugins/corners.rb
Ruby
mit
1,284
<?php require "help-head.php"; ?> <style> a.r:hover{color:#009900} a.r{color:#ff3333} </style> <div align="center"> <img src="../imgb/title-8.jpg" hspace="10" vspace="10" border="1"> </div> <div class="c4"> System of astromet...
NordWest/puldbru
help9.php
PHP
mit
3,134
import { VNode } from "@cycle/dom"; let counter = 0; export function getScope(): string { return `cs-ui${++counter}`; } export function capitalize(string: string): string { return string ? string.charAt(0).toUpperCase() + string.slice(1) : string; } export function patchClassList(target: VNode, classes: string[],...
Steelfish/cycle-semantic-ui
src/utils/index.ts
TypeScript
mit
2,665
package gruppe087.coursetracker; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.preference.PreferenceManager; import android...
henrikbossart/courseTracker
CourseTracker/app/src/main/java/gruppe087/coursetracker/MissedFragment.java
Java
mit
11,686
#include "SpriteSheetRenderer.h" #include "Utils.h" namespace Cog { SpriteSheetRenderer::SpriteSheetRenderer() { buffers = map<string, SpriteLayer*>(); actualBuffer = nullptr; } SpriteSheetRenderer::~SpriteSheetRenderer() { for (auto& buf : buffers) { delete buf.second; } } void SpriteSheetRenderer...
dormantor/ofxCogEngine
COGengine/src/Graphics/SpriteSheetRenderer.cpp
C++
mit
10,430
<?PHP /** * supplemental selection view. * * through ajax will reorder supplemental selections */ d($this->_ci_cached_vars); //$this->output->enable_profiler(TRUE); ?> <script type="text/javascript" src="<? echo base_url(); ?>assets/js/jquery-ui.min.js"></script> <script src="<? echo base_url(...
rshanecole/TheFFFL
views/admin/set_gow.php
PHP
mit
2,923
// Generated by CoffeeScript 1.6.3 (function() { this.Position = (function() { function Position(id, top, left) { this.id = id; this.top = top; this.left = left; } return Position; })(); this.Postit = (function() { function Postit() { this.id = new Date().getTime(); ...
icoxfog417/whitewall
public/javascripts/postit.js
JavaScript
mit
2,232
/* Install the specified SalsaFlow release. Description This command can be used to download and install the specified SalsaFlow release. The pre-built packages are fetched from GitHub. They are expected to be appended as release assets to the GitHub release specified by the given version. The repository that the as...
salsaflow/salsaflow
commands/pkg/install/doc.go
GO
mit
1,098
using System.Threading.Tasks; using System.Web; using System.Web.Http; using System.Web.Http.Description; using DungeonMart.Data.DAL; using DungeonMart.Data.Repositories; using DungeonMart.Models; using DungeonMart.Services; using DungeonMart.Services.Interfaces; namespace DungeonMart.ApiControllers.v3_5 { /// <s...
qanwi1970/dungeon-mart
DungeonMart/ApiControllers/v3_5/PowerController.cs
C#
mit
3,297
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("TV...
jruncik/Tiskarna
TV.TiskarnaVosahlo/Properties/AssemblyInfo.cs
C#
mit
1,372
package pongimme.logic; import java.util.*; import java.util.concurrent.*; import javax.swing.*; import org.jbox2d.collision.*; import org.jbox2d.collision.shapes.*; import org.jbox2d.common.*; import org.jbox2d.dynamics.*; import pongimme.CustomCanvas; import pongimme.entities.*; public class Game { private Lis...
mattikan/pongimme
pongimme/src/main/java/pongimme/logic/Game.java
Java
mit
1,667
package io.njlr.lockstep.sample; import io.njlr.bytes.Bytes; import io.njlr.lockstep.state.SimulationAction; /** * Action that flips the counter direction. * */ public final class FlipAction implements SimulationAction<StrangeSimulation> { public static final byte leadingByte = (byte)102; publi...
nlr/Lockstep
LockstepSample/src/io/njlr/lockstep/sample/FlipAction.java
Java
mit
901
<?php namespace Smartkill\APIBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and mana...
minchal/smartkill-server
src/Smartkill/APIBundle/DependencyInjection/SmartkillAPIExtension.php
PHP
mit
883
import {AfterViewInit, ChangeDetectorRef, Component, ElementRef, OnInit, TemplateRef, ViewChild} from '@angular/core'; import { PopupInfo, PopupOptions, PopupPoint, PopupPositionOffset, PopupPositionType, PopupService } from "jigsaw/public_api"; @Component({ templateUrl: './demo.component.html', styleU...
rdkmaster/jigsaw
src/app/demo/pc/dialog/popup-option/demo.component.ts
TypeScript
mit
3,381
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.securityinsights.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; i...
Azure/azure-sdk-for-java
sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/PollingFrequency.java
Java
mit
1,386
var utils = require('./utils'); exports.setItemDetails = function(item, description) { return { "author": { "name": "Santiago", "lastname": "Alurralde" }, "item": { "id": item.id, "title": item.title, "price": { "currency": item.currency_id, "amount": utils.getPriceAmount(item), "deci...
santalurr/mercadolibre
api/item.js
JavaScript
mit
611
/* -*-C-*- ******************************************************************************** * * File: metrics.c (Formerly metrics.c) * Description: * Author: Mark Seaman, OCR Technology * Created: Fri Oct 16 14:37:00 1987 * Modified: Tue Jul 30 17:02:07 1991 (Mark Seaman) marks@hpgrlt * L...
danauclair/CardScan
tesseract-ocr/wordrec/metrics.cpp
C++
mit
11,659
'use strict'; var isString = require('lodash/isString'); var each = require('lodash/each'); var last = require('lodash/last'); var uuid = require('../util/uuid'); var EditingBehavior = require('../model/EditingBehavior'); var insertText = require('../model/transform/insertText'); var copySelection = require('../model/...
TypesetIO/substance
ui/ContainerEditor.js
JavaScript
mit
9,737
"use strict" const path = require('path') class Helpers { static getPageIdFromFilenameOrLink(filename) { var base = path.basename(filename) if (base.substr(-3) === '.md') { base = base.substr(0, base.length - 3) } return base.replace(/([^a-z0-9\-_~]+)/gi, '') } } module.exports = Helpers
limedocs/limedocs-wiki-converter
src/helpers.js
JavaScript
mit
320
import { vec3, mat4, quat } from 'gl-matrix'; import Vector3 from './vector3'; let uuid = 0; let axisAngle = 0; const quaternionAxisAngle = vec3.create(); class Object3 { constructor() { this.uid = uuid++; this.position = new Vector3(); this.rotation = new Vector3(); this.scale =...
andrevenancio/engine
src/core/object3.js
JavaScript
mit
2,458
package com.github.dcoric.demonico.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Transient; @Entity...
dcoric/Maven
demonico/src/main/java/com/github/dcoric/demonico/model/User.java
Java
mit
2,012
<?php namespace App\Common\Models\Company\Mysql; use App\Common\Models\Base\Mysql\Base; class TeamUser extends Base { /** * 公司-团队用户管理 * This model is mapped to the table icompany_team_user */ public function getSource() { return 'icompany_team_user'; } public function reor...
handsomegyr/models
lib/App/Common/Models/Company/Mysql/TeamUser.php
PHP
mit
520
<h2>Dar de alta un nuevo <span class='muted'>banco</span> en el sistema</h2> <br/> <?php echo render('banco/_form'); ?> <p><?php echo Html::anchor('banco', 'Volver al listado',array('class'=>'btn btn-danger')); ?></p>
fjcarreterox/gestion-entregas-AC
fuel/app/views/banco/create.php
PHP
mit
218
module MagentoApiWrapper::Requests class InvoiceInfo attr_accessor :data def initialize(data = {}) @data = data end def body #TODO: Check this out merge_filters(invoice_info_hash) unless self.order_id.nil? end def invoice_info_hash { session_id: self.session...
rebyn/magento_api_wrapper
lib/magento_api_wrapper/requests/invoice_info.rb
Ruby
mit
892
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace posh.visu { public partial class CProperties : UserControl { public CProperties() { Init...
suegy/ReActIDE
visu/gui/properties/CProperties.cs
C#
mit
636
package com.drumonii.loltrollbuild.routing; import com.drumonii.loltrollbuild.model.Build; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapp...
drumonii/LeagueTrollBuild
backend/src/main/java/com/drumonii/loltrollbuild/routing/BuildsController.java
Java
mit
703
import { CodeExtractionInstructions } from '@webpack-ext/tdm-code-sample'; module.exports = [ { file: './render-state-event.component.ts', autoRender: true, title: 'Component' }, { file: './render-state-event.component.html', autoRender: true, title: 'Template', section: 'TDM-DEMO' ...
shlomiassaf/tdm
apps/demo/src/modules/@forms/tutorials/events/render-state-event/__tdm-code__.ts
TypeScript
mit
608
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="<?=$conf['description']?>"> <meta name="keywords" content="<?=$conf['keywords']?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?=$conf['title']?></title> <link rel...
ziggi/deHasher
tpl/default/index.php
PHP
mit
3,621
import React from 'react'; import PropTypes from 'prop-types'; import Logo from './Logo'; import SearchBar from './SearchBar'; import { CSSTransitionGroup } from 'react-transition-group'; class Header extends React.Component { render() { let header = window.scrollY > 170 && window.innerWidth > 800 ? <d...
pixel-glyph/better-reads
src/components/Header.js
JavaScript
mit
1,137
<?php namespace Ekyna\Component\Commerce\Customer\Model; use Ekyna\Component\Commerce\Common\Model\NotificationTypes; /** * Trait NotificationsTrait * @package Ekyna\Component\Commerce\Customer\Model * @author Etienne Dauvergne <contact@ekyna.com> */ trait NotificationsTrait { /** * @var string[] ...
ekyna/Commerce
Customer/Model/NotificationsTrait.php
PHP
mit
1,074
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php session_start(); // Start/resume THIS session // PAGE SECURITY if (!isset($_SESSION['isAdmin'])) { echo '<script type="text/javascript">hist...
cassa/megalansystem
management/eventRegistration.php
PHP
mit
11,349
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("Bl...
dibley1973/Blogs.UsingEFAndSprocFToAcheiveCQRS
Code/03.QueryStack/Blogs.EfAndSprocfForCqrs.ReadModel/Properties/AssemblyInfo.cs
C#
mit
1,444
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 futurecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #inclu...
wire306/futurecoin
src/rpcrawtransaction.cpp
C++
mit
17,383
<?php /** * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. * * @author Martin Štekl <martin.stekl@gmail.com> * @since 2011.06.26 * @license MIT * @copyright Copyright (c) 2011, 2012 Martin Štekl <martin.stekl@gmail.com> */ namespac...
stekycz/gallery-nette-plugin
Model/Group.php
PHP
mit
4,695
<?php namespace aplicacion\EmisionesBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class RevisionType extends AbstractType { /** * @param FormBuilderInterface $builder * @param ar...
angelquin1986/kobra
src/aplicacion/EmisionesBundle/Form/RevisionType.php
PHP
mit
3,637
using System; using System.Threading; using DeployService.Common.Options; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace DeploymentJobs.DataAccess { public interface IDeploymentJobsCleaner { void Start(); void Stop(); } public class DeploymentJobsCle...
MargaretKrutikova/deploy-script-runner-web-api
DeployService/DeploymentJobs.DataAccess/DeploymentJobsCleaner.cs
C#
mit
1,936
// TInjector: TInjector // ScopeType.cs // Created: 2015-10-17 5:54 PM namespace TInjector { /// <summary> /// Represents the supported scope types. /// </summary> public enum Scope { /// <summary> /// A new instance is created each time the service is requested. //...
bungeemonkee/TInjector
TInjector/Scope.cs
C#
mit
783
#pragma once #include "variant.hh" namespace drift { namespace schemy { namespace lib { variant_ptr print(const list&); variant_ptr println(const list&); variant_ptr readln(const list&); variant_ptr foreach(const list&); } } }
Racinettee/drift-scheme
lib.hh
C++
mit
247
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { Routes,RouterModule } from '@angular/router'; import {MaterialModule} from '@angular/material'; import 'hammerjs'; import { Mainfr...
sayanuIT/teds2
src/client/app/mainframe/mainframe.module.ts
TypeScript
mit
2,120
/** * Grunt Project * https://github.com/sixertoy/generator-grunt-project * * Copyright (c) 2014 Matthieu Lassalvy * Licensed under the MIT license. * * Generate folder and files for a grunt project * with grunt basic tasks, jasmine unit testing, istanbul coverage and travis deployement * * @insatll npm insta...
sixertoy/generator-ezhtml
generators/app/index.js
JavaScript
mit
4,305
<?php namespace Anax\MVC; /** * Model for Users. * */ class CDatabaseModel implements \Anax\DI\IInjectionAware { use \Anax\DI\TInjectable; /** * Find and return all. * * @return array */ public function findAll($tableName = null) { $source = $this->getSource(); ...
phphille/aab
src/MVC/CDatabaseModel.php
PHP
mit
9,267
const debug = require('ghost-ignition').debug('importer:posts'), _ = require('lodash'), uuid = require('uuid'), BaseImporter = require('./base'), converters = require('../../../../lib/mobiledoc/converters'), validation = require('../../../validation'); class PostsImporter extends BaseImporter { ...
tannermares/ghost
core/server/data/importer/importers/data/posts.js
JavaScript
mit
8,682
mod rewrite <?php echo in_array('mod_rewrite', apache_get_modules()); ?>
DanielHirunrusme/so-il
test.php
PHP
mit
76
require 'awesome_nested_set' module DatabaseI18n class Key < ::ActiveRecord::Base self.table_name = 'translation_keys' acts_as_nested_set dependent: :destroy, counter_cache: :children_count has_one :value, class_name: 'DatabaseI18n::Value', dependent: :destroy def path self_and_ancestors.plu...
kogulko/database-i18n
lib/database_i18n/models/key.rb
Ruby
mit
358
namespace ZeroLog { internal unsafe class UnpooledLogEvent : LogEvent { public UnpooledLogEvent(BufferSegment bufferSegment, int argCapacity) : base(bufferSegment, argCapacity) { } public override bool IsPooled => false; public override string ToString() ...
Abc-Arbitrage/ZeroLog
src/ZeroLog/UnpooledLogEvent.cs
C#
mit
512
/* The MIT License (MIT) Copyright (c) 2014 Robert C. Robinson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
RobCRobinson/MyHealthRecords
src/src/com/ravenmistmedia/MyHealthRecords/DBAdminActivity.java
Java
mit
12,471
<?php namespace Papyrillio\BeehiveBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class PapyrillioBeehiveBundle extends Bundle { }
Edelweiss/beehive
src/Papyrillio/BeehiveBundle/PapyrillioBeehiveBundle.php
PHP
mit
142
var path = require('path'); var expect = require('expect.js'); var _s = require('underscore.string'); var apellaJson = require('../lib/json'); var request = require('request'); describe('.find', function () { it('should find the apella.json file', function (done) { apellaJson.find(__dirname + '/pkg-apella-...
apellajs/apella
packages/bower-json/test/test.js
JavaScript
mit
16,224
"""Implementations of locale abstract base class objects.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' and include no...
mitsei/dlkit
dlkit/abstract_osid/locale/objects.py
Python
mit
32,414
require 'spec_helper' EM.describe EmModbus::ModbusProtocol do it 'should fail fast when the server is not running' it 'should accept the slave address option' end
tallakt/em-modbus
spec/device_spec.rb
Ruby
mit
166
<body> <!-- Main Navigation ================================================== --> <nav id="tf-menu" class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> ...
AnnaDrive/StudentActivitySystem
application/views/index.php
PHP
mit
70,565
from django.contrib import admin from feedhoos.worker.models.entry import EntryModel from feedhoos.finder.models.feed import FeedModel from feedhoos.reader.models.bookmark import BookmarkModel from feedhoos.folder.models.folder import FolderModel class EntryModelAdmin(admin.ModelAdmin): list_display = ('id', "fee...
38elements/feedhoos
feedhoos/worker/admin.py
Python
mit
894
'use strict'; angular.module('myApp.contact', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/contact', { templateUrl: 'contact/contact.html', controller: 'ContactCtrl', animation: 'page-fadein' }); }]) .controller('ContactCtrl', ['$scope', 'myService', functi...
ctong1124/portfolio2016
app/contact/contact.js
JavaScript
mit
968