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 |
|---|---|---|---|---|---|
<?php
/**
* Mirasvit
*
* This source file is subject to the Mirasvit Software License, which is available at http://mirasvit.com/license/.
* Do not edit or add to this file if you wish to upgrade the to newer versions in the future.
* If you wish to customize this module for your needs
* Please refer to http://ww... | mikrotikAhmet/mbe-cpdev | app/code/local/Mirasvit/SearchIndex/Model/Index/External/Joomla/Zoo/Item.php | PHP | mit | 1,474 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace WebApp.Controllers
{
public class DevelopersController : Controller
{
//
// GET: /Developer/
public ActionResult Index()
{
return View();
}
... | jdnichollsc/Javascript-Games | WebApp/Controllers/DevelopersController.cs | C# | mit | 325 |
package org.sdmlib.openbank.util;
import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.openbank.FeeValue;
import org.sdmlib.openbank.TransactionTypeEnum;
import org.sdmlib.models.pattern.AttributeConstraint;
import org.sdmlib.models.pattern.Pattern;
import java.math.BigInteger;
import org.sdmlib.openbank.... | SWE443-TeamRed/open-bank | open-bank/src/main/java/org/sdmlib/openbank/util/FeeValuePO.java | Java | mit | 4,269 |
var WALKING_SPEED_RATIO = 30; // how many times faster than walking speed are you?
var FIRST_PERSON = false;
var RESET_CAMERA_POSITION = function() {camera.position.set(-168, 25, -17);}
var PATH_ANIMATION_RUNNING = false;
function endPathAnimation() {
PATH_ANIMATION_RUNNING = false;
}
function nextCameraTween(pat... | oliverodaa/cs184-final-proj | dwinelle/web/js/camera_helpers.js | JavaScript | mit | 1,100 |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GeneralLevel : Level
{
public float completeLevelWaitTimeInSecs = 2;
private bool completeLevelTriggered;
private IEnumerator CompleteLevel()
{
yield return new WaitF... | p4dd9/ngj17_spirit | Assets/Scripts/GeneralLevel.cs | C# | mit | 1,012 |
<?php
/* AcmeDemoBundle:Secured:helloadmin.html.twig */
class __TwigTemplate_3423e47098ba90b7664f14d13a3832e1 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->blocks = array(
'title' => array($this, 'block_title'),
... | pepesan/Ejemplo-Symfony2 | app/cache/dev/twig/34/23/e47098ba90b7664f14d13a3832e1.php | PHP | mit | 1,472 |
//! moment.js locale configuration
//! locale : Galician [gl]
//! author : Juan G. Hurtado : https://github.com/juanghurtado
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define =... | OdimTech/Sisacon | Sisacon/Sisacon.UI/node_modules/fullcalendar/node_modules/moment/locale/gl.js | JavaScript | mit | 2,901 |
<?php
/* SensioDistributionBundle::Configurator/final.html.twig */
class __TwigTemplate_1d6d06e92ecd114d845ffc58222524b8 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("SensioDistributionBundle::C... | evgeny-s/symfony | app/cache/dev/twig/1d/6d/06e92ecd114d845ffc58222524b8.php | PHP | mit | 3,462 |
/*=========================================================================================
File Name: symbols.js
Description: Flot symbols chart
----------------------------------------------------------------------------------------
Item Name: Stack - Responsive Admin Theme
Version: 1.1
Author... | areleogitdev/areleofinish | areleo/app-assets/js/scripts/charts/flot/line/symbols.js | JavaScript | mit | 1,770 |
#include <mimosa/options/options.hh>
#include "options.hh"
namespace hefur
{
const uint32_t & MAX_PEERS = *mo::addOption<uint32_t>(
"", "max-peers", "the maximum number of peers per torrent",
30000);
const uint32_t & MAX_TORRENT_SIZE = *mo::addOption<uint32_t>(
"", "max-torrent-size", "the maximum to... | UIKit0/hefur | hefur/options.cc | C++ | mit | 3,505 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.OpenIdConnect;
using Microsoft.Owin.Security;
namespace SQLDashboard.Controllers
{
public class AccountController : Controller
{
... | MindFlavor/SQLDashboard | SQLDashboard/Controllers/AccountController.cs | C# | mit | 1,430 |
// T4 code generation is enabled for model 'C:\Users\maor gigi\documents\visual studio 2013\Projects\MVc_Assignment2\MVc_Assignment2\dataStore.edmx'.
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// property to 'Legacy ObjectContext'. This property is available in th... | gigimaor/shoping-cart.net | dataStore.Designer.cs | C# | mit | 810 |
class User < ActiveRecord::Base
tango_user
simple_roles
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
:token_authenticatable, :confirmable, :lockable,
:timeoutable
# Setup accessible (or protected) attributes for your model
... | Portalcake/gaming-base-core | app/models/user.rb | Ruby | mit | 1,076 |
# http://www.codewars.com/kata/54ff3102c1bad923760001f3
# --- iteration 1 ---
def getCount(str)
str.tr("^aeiou", "").size
end
| etdev/algorithms | 0_code_wars/vowel_count.rb | Ruby | mit | 129 |
using System;
using System.IO;
using System.Collections.Generic;
using UnityEngine;
namespace KspCraftOrganizer
{
public class SettingsService
{
private static readonly float PLUGIN_READ_TIME_THRESHOLD = 30;
private float lastPluginSettingsReadingTime;
private IKspAl ksp = IKspAlProvider.instance;
private F... | grzegrzk/ksp-craft-organizer | KspCraftOrganizerPlugin/services/SettingsService.cs | C# | mit | 2,374 |
/**
* Heldesks' code (Zendesk, etc..)
*/
App.helpdesk = {
init: function () {
// fetch template content from the extension
if (window.location.hostname.indexOf('zendesk.com') !== -1) {
App.helpdesk.zendesk.init();
}
},
zendesk: {
init: function () {
... | haveal/gorgias-chrome | src/content/js/helpdesk.js | JavaScript | mit | 6,435 |
/**
* @file tiledb_list.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2016 MIT and Intel Corporation
*
* 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... | Intel-HLS/TileDB | examples/src/tiledb_ls.cc | C++ | mit | 2,958 |
/**
* Author: thegoldenmule
* Date: 3/17/13
*/
(function (global) {
"use strict";
var colorShaderVS = {
name: "color-shader-vs",
type: "x-shader/x-vertex",
body:
"precision highp float;" +
"uniform mat4 uProjectionMatrix;" +
"uniform mat4 uModelV... | thegoldenmule/boX | js/boX/DefaultShaders.js | JavaScript | mit | 6,653 |
// https://discuss.leetcode.com/topic/71438/c-dp-solution-with-comments
// https://discuss.leetcode.com/topic/76103/0-1-knapsack-detailed-explanation
class Solution {
public int findMaxForm(String[] strs, int m, int n) {
int[][] dp = new int[m+1][n+1];
for(String s : strs) {
int zeros =... | l33tnobody/l33t_sol | src/474OnesAndZeros.java | Java | mit | 867 |
module VirtualBox
module COM
module Interface
module Version_4_1_X
class ExecuteProcessStatus < AbstractEnum
map :undefined => 0,
:started => 1,
:terminated_normally => 2,
:terminated_signal => 3,
:terminated_abnormally => 4,
... | mitchellh/virtualbox | lib/virtualbox/com/interface/4.1.x/ExecuteProcessStatus.rb | Ruby | mit | 486 |
namespace StackFaceSystem.Data.Common.Models
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
public abstract class BaseModel<TKey> : IAuditInfo, IDeletableEntity
{
[Key]
public TKey Id { get; set; }
public Da... | EmilMitev/ASP.NET-MVC-Course-Project | Source/StackFaceSystem/Data/StackFaceSystem.Data.Common/Models/BaseModel{TKey}.cs | C# | mit | 522 |
/**
* Copyright MaDgIK Group 2010 - 2015.
*/
package madgik.exareme.master.queryProcessor.decomposer.query.visitors;
import com.foundationdb.sql.StandardException;
import com.foundationdb.sql.parser.FromSubquery;
import com.foundationdb.sql.parser.SelectNode;
import com.foundationdb.sql.parser.Visitable;
import madg... | madgik/exareme | Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/queryProcessor/decomposer/query/visitors/SelectVisitor.java | Java | mit | 1,601 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... | mhevery/angular | packages/common/locales/global/nl-SR.js | JavaScript | mit | 2,475 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_malloc_22a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-22a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management ... | maurer/tiamat | samples/Juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s04/CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_malloc_22a.cpp | C++ | mit | 3,767 |
using System;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Security.Cryptography;
using System.Text;
using System.IO;
using System.Xml.Serialization;
namespace SVX
{
public static class Utils
{
public static string ToUrlSafeBase64String(byte[] data)
{
... | cs0317/SVAuth | SVX/Utils.cs | C# | mit | 3,415 |
package com.knr.recyclr;
import org.json.*;
public class UpcItem {
public String number;
public String itemName;
public String description;
public UpcItem(String json) {
try {
JSONObject jsonObj = new JSONObject(json);
this.number = jsonObj.getString("number");
this.itemName = jsonObj.getString("item... | kj2wong/Recyclr | Recyclr/src/com/knr/recyclr/UpcItem.java | Java | mit | 521 |
package com.real.estate.parser;
import org.jsoup.nodes.Element;
import java.util.List;
/**
* Created by Snayki on 22.03.2016.
*/
public interface Parser<T> {
List<Element> parse();
T createFromElement(Element element);
}
| Snayki/real-estate | src/main/java/com/real/estate/parser/Parser.java | Java | mit | 236 |
/*****************************************************************************
The following code is derived, directly or indirectly, from the SystemC
source code Copyright (c) 1996-2010 by all Contributors.
All Rights reserved.
The contents of this file are subject to the restrictions and limitations
... | pombredanne/metamorphosys-desktop | metamorphosys/tonka/models/SystemC/systemc-2.3.0/examples/sysc/2.3/sc_rvd/main.cpp | C++ | mit | 4,256 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Windows.Media.Imaging;
using GitHub.Extensions;
using GitHub.Helpers;
using ReactiveUI;
namespace GitHub.Models
{
public class AutoCompleteSuggestion
{
readonly string prefix;
readonly s... | github/VisualStudio | src/GitHub.Exports.Reactive/Models/AutoCompleteSuggestion.cs | C# | mit | 3,667 |
import NumeralFieldComponent from './Numeral'
const numeral = global.numeral
if (!numeral) {
throw new Error('Numeral is required in global variable')
}
export default class MoneyComponent extends NumeralFieldComponent {
unformatValue(label) {
return label === '' ? undefined : numeral._.stringToNumber(label)
... | orionsoft/parts | src/components/fields/numeral/Money.js | JavaScript | mit | 437 |
var gulp = require("gulp");
var util = require("gulp-util");
var config = require("../config")
gulp.task("watch", () => {
gulp.watch(`${config.src.ts}`, ["compile:ts"]).on("change", reportChange).on("error", swallowError);
gulp.watch(`${config.test.files}`, ["compile:test"]).on("change", reportChange).on("error"... | stephenlautier/ssv-angular-core | tools/build/tasks/dev.js | JavaScript | mit | 560 |
using System;
using System.Diagnostics;
#pragma warning disable 1591
// ReSharper disable UnusedMember.Global
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable IntroduceOptionalParameters.Global
// ReSharper disable MemberCanBeProtected.Global
/... | ekblom/noterium | src/Noterium.Core/Properties/Annotations.cs | C# | mit | 38,618 |
package com.microsoft.bingads.v12.customermanagement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ano... | bing-ads-sdk/BingAds-Java-SDK | proxies/com/microsoft/bingads/v12/customermanagement/SearchClientLinksRequest.java | Java | mit | 3,065 |
import { formatDistance, formatToLocaleString, defaultEnvironment, Environment } from './formatDate'
import { subDays } from 'date-fns'
import { ja, enUS } from 'date-fns/locale'
// memo(otofune): This requires that process.env.TZ equals to 'UTC'. (;;)
const jaEnvironment: Environment = { getLocale: () => ja }
const ... | crowi/crowi | client/util/formatDate.test.ts | TypeScript | mit | 2,827 |
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
browserify = require('gulp-browserify'),
concat = require('gulp-concat'),
gulpif = require('gulp-if'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
sequence = require(... | Daniel1984/60fps | gulpfile.js | JavaScript | mit | 2,819 |
<?php
namespace Chronos\ChronoAdminBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class RoadStateType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('name')
;
}
public ... | Guimove/Chronos | src/Chronos/ChronoAdminBundle/Form/RoadStateType.php | PHP | mit | 411 |
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var useref = require('gulp-useref');
var uglify = require('gulp-uglify');
var gulpIf = require('gulp-if');
var cssnano = require('gulp-cssnano');
var imagemin = require('gulp-imagemin');
var cache = require('gulp-cac... | martinrajdl/faunafilm | gulpfile.js | JavaScript | mit | 2,512 |
(function () {
var Demo = {
init: function () {
this.syntaxHighlight();
this.sticky();
},
syntaxHighlight: function () {
hljs.initHighlighting();
},
sticky: function () {
var $sticky = $('[data-sticky]');
$sticky.... | SwiftCMS/Pluit | documentation/doc.js | JavaScript | mit | 417 |
if defined?(::Rails::Railtie)
class EnumColumnRailtie < Rails::Railtie
# initializer 'enum_column.initialize', :after => 'active_record.initialize_database' do |app|
ActiveSupport.on_load :active_record do
require 'enum/mysql_adapter'
require 'enum/enum_adapter'
require 'enum/schema_... | quarkstudio/enum_column | lib/enum_column.rb | Ruby | mit | 568 |
import 'reflect-metadata';
import { SchemaObject, XParameterObject } from '@ts-stack/openapi-spec';
import { Parameters } from './parameters';
import { Column } from '../decorators/column';
describe('Parameters', () => {
describe('without data model', () => {
it('required path with someName', () => {
cons... | restify-ts/core | packages/openapi/src/utils/parameters.spec.ts | TypeScript | mit | 4,225 |
var Tile = function (type, x, y) {
this.type = type;
this.tint = 0;
this.hover = false;
this.isAllowed = undefined;
this.isAllowedForBeat = undefined;
this.x = x;
this.y = y;
this.graphic = new fabric.Rect({
left: Tile.size * x,
top: Tile.size * y,
fill: type === Tile.TileType.NONPLAYABLE ?... | misko321/draughts | public/js/tile.js | JavaScript | mit | 3,185 |
/*
* Books.cpp
* Author: suyashd95
*/
#include "Books.h"
#include <iostream>
#include <cstring>
using namespace std;
Books::Books() {
stock = new int[size];
price = new float[size];
author = new const char*[size];
publisher = new const char*[size];
title = new const char*[size];
populateData();
}
void B... | SuyashD95/cplusplus-prog-exercises | Programming Exercises/Chapter 6 - Constructors and Destructors/Question 3/src/Books.cpp | C++ | mit | 2,512 |
using Castle.Core.Logging;
using Bivi.Infrastructure.Constant;
using Bivi.Infrastructure.Services.Depots;
using Bivi.Infrastructure.Services.Encryption;
using Bivi.BackOffice.Web.Controllers.ActionResults;
using Bivi.BackOffice.Web.Controllers.Filters;
using Bivi.BackOffice.Web.Controllers.Helpers;
using Bivi.B... | apo-j/Projects_Working | Bivi/src/Bivi.BackOffice/Bivi.BackOffice.Web.Controllers/Controllers/Administration/LienExterneController.cs | C# | mit | 4,921 |
/*
* 2007-2016 [PagSeguro Internet Ltda.]
*
* NOTICE OF LICENSE
*
* 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 requir... | girinoboy/lojacasamento | pagseguro-api/src/main/java/br/com/uol/pagseguro/api/preapproval/search/PreApprovalSummaryXML.java | Java | mit | 3,550 |
/**
* Michael' (The non-Asian one's) librarys.<br>
* Thank you for the help!
* @author Michael [???]
*
*/
package com.shadow53.libs; | Vectis99/sshs-2016-willamette | src/com/shadow53/libs/package-info.java | Java | mit | 137 |
using System;
using Amazon.DynamoDBv2.DataModel;
using AspNetCore.Identity.DynamoDB.Converters;
namespace AspNetCore.Identity.DynamoDB.Models
{
public abstract class DynamoUserContactRecord : IEquatable<DynamoUserEmail>
{
protected DynamoUserContactRecord() {}
protected DynamoUserContactRecord(string value) : ... | miltador/AspNetCore.Identity.DynamoDB | src/AspNetCore.Identity.DynamoDB/Models/DynamoUserContactRecord.cs | C# | mit | 1,099 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_execlp_82_bad.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-82_bad.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Re... | maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__wchar_t_connect_socket_execlp_82_bad.cpp | C++ | mit | 1,346 |
define( 'type.Integer', {
// class configuration
alias : 'int integer',
extend : __lib__.type.Number,
// public properties
precision : 0,
// public methods
valid : function( v ) {
return this.parent( v, true ) && Math.floor( v ) === v;
},
// internal methods
init : function() {
var... | agreco/expurg8 | src/type/Integer.js | JavaScript | mit | 765 |
package ua.com.fielden.platform.entity_centre.review;
import java.util.Date;
import ua.com.fielden.platform.domaintree.testing.EntityWithStringKeyType;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.entity.DynamicEntityKey;
import ua.com.fielden.platform.entity.annotation.Composi... | fieldenms/tg | platform-pojo-bl/src/test/java/ua/com/fielden/platform/entity_centre/review/EvenSlaverDomainEntity.java | Java | mit | 2,107 |
#!/usr/bin/env python
__author__ = 'Radoslaw Matusiak'
__copyright__ = 'Copyright (c) 2016 Radoslaw Matusiak'
__license__ = 'MIT'
__version__ = '0.5'
import cmd
import functools
import os
import sys
from polar import Device
from polar.pb import device_pb2 as pb_device
__INTRO = """
_| ... | rsc-dev/loophole | loophole/__main__.py | Python | mit | 9,572 |
using EnhancedChannelManager.Entities.Enterprises;
using EnhancedChannelManager.Library;
namespace EnhancedChannelManager.Entities.Accounts
{
public class Customer : Account, IOwnedEntity<Enterprise>
{
public Enterprise Owner { get; set; }
}
}
| onashackem/EnhancedChannelManager | src/EnhancedChannelManager/Entities/Accounts/Customer.cs | C# | mit | 268 |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- disable iPhone inital scale -->
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<?php
// Spit out meta tags
foreach($data->getMeta() as $name => $content)
echo '<meta name="'.$name.'" content="'.$content... | ArroyoLabs/meetups | d3demo_php/public/themes/erdiko/templates/default.php | PHP | mit | 1,660 |
<!doctype html>
<html class="no-js" lang="">
<head>
<title>Zabuun - Learn Egyptian Arabic for English speakers</title>
<meta name="description" content="">
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?>
<?php inc... | javanigus/zabuun | essay/2165-little-hope-for-hemp.php | PHP | mit | 1,174 |
<?php use_helper('I18N', 'Date', 'JavascriptBase') ?>
<?php include_partial('sfJqueryTreeDoctrineManager/assets') ?>
<div id="sf_admin_container">
<h1><?php echo sfInflector::humanize(sfInflector::underscore($model)); ?> Nested Set Manager</h1>
<?php include_partial('sfJqueryTreeDoctrineManager/flashes') ?>
<... | Symfony-Plugins/sfJqueryTreeDoctrineManagerPlugin | modules/sfJqueryTreeDoctrineManager/templates/_manager.php | PHP | mit | 775 |
/**
* KeyParser.ts
*
* Simple parsing logic to take vim key bindings / chords,
* and return a normalized object.
*/
export interface IKey {
character: string
shift: boolean
alt: boolean
control: boolean
meta: boolean
}
export interface IKeyChord {
chord: IKey[]
}
export const parseKeysFr... | extr0py/oni | browser/src/Input/KeyParser.ts | TypeScript | mit | 2,737 |
import * as React from 'react';
import { connect } from 'react-redux';
import * as Actions from './Actions';
import { ITrackHistoryState } from './ITypes';
let Dropzone = require('react-dropzone');
interface IProps extends ITrackHistoryState {
dispatch: Function;
};
function selectState(state: ITrackHistoryState) {... | inakianduaga/redux-state-history | src/Component.tsx | TypeScript | mit | 7,208 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Task03EnglishNameOfLastDigit
{
static void Main(string[] args)
{
long number = long.Parse(Console.ReadLine());
string numberInLetters = FindTheLastDigitI... | samuilll/BeginnerExams | PrgrammingFundametnalsFast/04_MethodsAndDebbuging/Task03EnglishNameOfLastDigit/Task03EnglishNameOfLastDigit.cs | C# | mit | 1,860 |
import json
import sublime
import sublime_plugin
from .edit import Edit
class PawnBuildPathCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel(
"Working directory that contains pawncc.exe",
"C:\\Pawno\\",
self.onPawnPathDone,
... | Southclaw/pawn-sublime-language | PawnBuildPath.py | Python | mit | 1,010 |
var postData = querystring.stringify({
'value' : '55',
'room_id' : '1'
});
var options = {
hostname: 'localhost',
port: 80,
path: '/temperatures',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': postData.length
}
};
var req = http.request(optio... | MirkoC/SmartHouseRaspberryPiServer | post_to_rails.js | JavaScript | mit | 701 |
<?php
use Assert\Assertion;
use expect\FailedMessage;
use expect\matcher\ToMatch;
describe(ToMatch::class, function () {
describe('#match', function () {
beforeEach(function () {
$this->matcher = new ToMatch('/foo/');
});
context('when match', function () {
it('ret... | expectation-php/expect | spec/matcher/ToMatch.spec.php | PHP | mit | 1,724 |
class node:
def __init__(self):
self.outputs=[]
def set(self):
for out in self.outputs:
out.set()
def clear(self):
for out in self.outputs:
out.clear()
class switch:
def __init__(self):
self.outputs=[]
self.state=False
self.input=False
def set(self):
self.input=True
if(self.state):
... | mikadam/LadderiLogical | tests/node.py | Python | mit | 1,030 |
namespace MyServer.Web.Data
{
using Microsoft.AspNetCore.Identity;
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
}
} | atanas-georgiev/MyServer | src/Web/MyServer.Web/Data/ApplicationUser.cs | C# | mit | 229 |
package com.nepfix.sim.elements;
import com.nepfix.sim.core.Processor;
import java.util.Map;
public class UnitProcessor implements Processor {
private String id;
@Override public void init(String id, Map<String, String> args) {
this.id = id;
}
@Override public String process(String input) ... | pabloogc/Nepfix | sim/src/main/java/com/nepfix/sim/elements/UnitProcessor.java | Java | mit | 416 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TwitchIntegrator
{
internal class CitizenManagerMod : CitizenManager
{
public string GetCitizenName(uint citizenID)
{
return TwitchNames.GetName((int) citizenID);
}
... | kiwiploetze/TwitchIntegrator | CitizenManagerMod.cs | C# | mit | 329 |
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 TechReborn
*
* 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, inc... | TechReborn/TechReborn | src/main/java/techreborn/blocks/storage/item/StorageUnitBlock.java | Java | mit | 4,798 |
<?php
namespace App\Command\Import;
use App\Command\BaseCommand;
use App\Entity\Framework\LsDoc;
class MarkImportLogsAsReadCommand extends BaseCommand
{
/**
* @var LsDoc
*/
private $doc;
public function __construct(LsDoc $doc)
{
$this->doc = $doc;
}
public function getDoc... | opensalt/opensalt | core/src/Command/Import/MarkImportLogsAsReadCommand.php | PHP | mit | 371 |
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\BaseHttpException;
use Symfony\Component\HttpKernel\NotFoundHttpException;
use Silex\Provider\FormServiceProvider;
use Silex\Provider\TwigS... | Josiastech/silexApp | web/index.php | PHP | mit | 2,418 |
<?php
namespace Nature;
class UserToken {
private $timePassed = 1418464671;
private $codeMaps = "~!@#$%^&*()_+=-{}[]|\;,.<>?/abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
private $key;
private $uid;
private $expire=604800;
function __construct($key=null){
... | shiny/Nature | App/Nature/UserToken.class.php | PHP | mit | 2,810 |
// Copyright © 2017 Viro Media. 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 to use, copy, m... | viromedia/viro | android/viro_bridge/src/main/java/com/viromedia/bridge/component/node/VRTSceneManagerImpl.java | Java | mit | 1,801 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace HTLib2.Bioinfo
{
public partial class Pdb
{
[Serializable]
public class Model : Element, IComparable<Model>, IBinarySerializable
{
/// http://www.wwpd... | htna/HCsbLib | HCsbLib/HCsbLib/HTLib2.Bioinfo/Pdb/Pdb.Element/CoordinateSection/Pdb.Model.cs | C# | mit | 5,446 |
class CreateDiners < ActiveRecord::Migration
def change
create_table :diners do |t|
t.integer :signup_id
t.string :diner_name
t.timestamps null: false
end
end
end
| heath3conk/katz-golf-tournament | db/migrate/20160522202905_create_diners.rb | Ruby | mit | 194 |
package za.co.cporm.model.loader.support;
import android.content.Context;
import android.database.Cursor;
import android.support.v4.content.CursorLoader;
import za.co.cporm.model.generate.TableDetails;
import za.co.cporm.model.query.Select;
import za.co.cporm.model.util.CPOrmCursor;
import za.co.cporm.model.util.Conte... | Wackymax/CPOrm | CPOrm/src/main/java/za/co/cporm/model/loader/support/CPOrmLoader.java | Java | mit | 2,810 |
import React from 'react';
import PostImage from '../components/story/PostImage';
import TwoPostImages from '../components/story/TwoPostImages';
import StoryPage from '../components/story/StoryPage';
import StoryTextBlock from '../components/story/StoryTextBlock';
import StoryImages from '../components/story/StoryImage... | danpersa/remindmetolive-react | src/stories/2016-11-20-irina-and-lucian-maternity-photo-session.js | JavaScript | mit | 6,016 |
/// <reference types="node" />
declare module 'sqlite3' {
// Type definitions for sqlite3 3.1
// Project: http://github.com/mapbox/node-sqlite3
// Definitions by: Nick Malaguti <https://github.com/nmalaguti>
// Sumant Manne <https://github.com/dpyro>
// Behind The Math <https:... | kriasoft/node-sqlite | src/vendor-typings/sqlite3/index.d.ts | TypeScript | mit | 5,194 |
<?php
declare(strict_types = 1);
namespace Rx\Testing;
use Rx\TestCase;
class RecordedTest extends TestCase
{
public function testRecordedWillUseStrictCompareIfNoEqualsMethod()
{
$recorded1 = new Recorded(1, 5);
$recorded2 = new Recorded(1, "5");
$recorded3 = new Recorded(1, 5);
... | ReactiveX/RxPHP | test/Rx/Testing/RecordedTest.php | PHP | mit | 602 |
/*The MIT License (MIT)
Copyright (c) 2014 PMU Staff
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, merge, pub... | Sprinkoringo/PMU-Client | Client/Editors/RDungeons/EditableRDungeonTrap.cs | C# | mit | 1,465 |
module Locomotive
module LiquidExtras
module Filters
module Math
def round(input, digits = 0)
input.to_f.round(digits)
end
end
::Liquid::Template.register_filter(Math)
end
end
end
| warp/liquid_extras | lib/locomotive/liquid_extras/filters/math.rb | Ruby | mit | 239 |
/*
* The MIT License
*
* Copyright 2015 Ryan Gilera.
*
* 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, mod... | Daytron/Twaattin | src/main/java/com/github/daytron/twaattin/presenter/LogoutBehaviour.java | Java | mit | 2,099 |
package org.railwaystations.api.resources;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.StringUtils;
import org.railwaystations.api.PhotoImporter;
import org.railwaystations.api.StationsRepository;
import org.railwaystations.api.model.Station;
import javax.ws.rs.*;
import java... | pstorch/bahnhoefe.gpx | src/main/java/org/railwaystations/api/resources/SlackCommandResource.java | Java | mit | 5,251 |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule } from '@angular/router';
import { HttpModule } from '@angular/http';... | jupiter101/platform | example-app/app/app.module.ts | TypeScript | mit | 3,067 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2010-2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | mewf/minirs-core | src/main/java/co/mewf/minirs/rs/GET.java | Java | mit | 2,502 |
<?php
namespace anli\user\models;
use anli\user\models\TenantUser;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
/**
* TenantUserSearch represents the model behind the search form about `app\models\TenantUser`.
*/
class TenantUserSearch extends TenantUser
{
/**
* @inheritdoc
*/
pu... | anli/yii2-user | models/TenantUserSearch.php | PHP | mit | 1,696 |
/* ====================================================================
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 Y... | tobyclemson/msci-project | vendor/poi-3.6/src/ooxml/java/org/apache/poi/openxml4j/exceptions/OpenXML4JRuntimeException.java | Java | mit | 1,364 |
search_result['3225']=["topic_00000000000007B9.html","ApplicantDetailRequestDto.Notes Property",""]; | asiboro/asiboro.github.io | vsdoc/search--/s_3225.js | JavaScript | mit | 100 |
<?php
/**
* Debug Addon
* @author sven[ät]koalashome[punkt]de Sven Eichler
* @package redaxo4
*/
$REX['ADDON']['install']['ko_debug'] = 0;
| olien/RexBase15 | redaxo/include/addons/ko_debug/uninstall.inc.php | PHP | mit | 147 |
<script language="javascript">
$(document).ready(function(){
$(function() {
$("#pagination a").each(function() {
var g = window.location.href.slice(window.location.href.indexOf('?'));
var href = $(this).attr('href');
$(this).attr('href', href+g);
});
});
});
... | vuonghuynhthanhtu/administrator.lacasa.com | application/views/pages/order_cancel.php | PHP | mit | 7,186 |
require 'spec_helper'
describe Booker::BusinessClient do
let(:base_url) { 'https://apicurrent-app.booker.ninja/webservice4/json/BusinessService.svc' }
let(:temp_access_token) { 'token' }
let(:temp_access_token_expires_at) { Time.now + 1.minute }
let(:client_id) { 'client_id' }
let(:client_secret) { 'client_s... | AbeCole/booker_ruby | spec/lib/booker/business_client_spec.rb | Ruby | mit | 4,902 |
import * as Jungle from '../../../jungle'
const {Construct, Composite, Domain, Cell, j, J} = Jungle;
import * as Debug from '../../../util/debug'
describe("A Cell", function () {
Debug.Crumb.defaultOptions.log = console;
Debug.Crumb.defaultOptions.debug = true;
let cell;
beforeEach(function(){
... | Space-Ed/junglejs | ts_src/test/specs/tertiary/cellSpec.ts | TypeScript | mit | 1,305 |
# frozen_string_literal: true
module RuboCop
module Cop
module Rails
# This cop is used to identify usages of http methods
# like `get`, `post`, `put`, `path` without the usage of keyword arguments
# in your tests and change them to use keyword arguments.
#
# @example
# # ba... | melch/rubocop | lib/rubocop/cop/rails/http_positional_arguments.rb | Ruby | mit | 3,883 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Portal = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descripto... | meyve/react-portalizer | build/index.js | JavaScript | mit | 7,276 |
package construtores;
public class ConstrutorTesteDrive {
public static void main(String[] args) {
// Construtor c1 = new Construtor();
// System.out.println("--c1\n" + c1.getNomeERg() + "\n\n");
Construtor c2 = new Construtor("Odair");
System.out.println("--c2\n" + c2.getNomeERg() + "\n\n");
... | wesleyegberto/study-ocjp | src/construtores/ConstrutorTesteDrive.java | Java | mit | 449 |
package com.veaer.glass.viewpager;
import android.support.v4.view.ViewPager;
import com.veaer.glass.trigger.Trigger;
/**
* Created by Veaer on 15/11/18.
*/
public class PagerTrigger extends Trigger implements ViewPager.OnPageChangeListener {
private ColorProvider colorProvider;
private int startPosition, e... | Veaer/Glass | glass/src/main/java/com/veaer/glass/viewpager/PagerTrigger.java | Java | mit | 1,762 |
#include "catch.hpp"
#include "SearchExpression.hpp"
using namespace quip;
TEST_CASE("Search expressions can be constructed from an empty expression.", "[SearchExpressionTests]") {
SearchExpression expression("");
REQUIRE_FALSE(expression.valid());
}
TEST_CASE("Search expressions can be constructed from a s... | jpetrie/quip | Projects/Core.Tests/SearchExpressionTests.cpp | C++ | mit | 894 |
/* global HTMLImageElement */
/* global HTMLCanvasElement */
/* global SVGElement */
import getOptionsFromElement from "./getOptionsFromElement.js";
import renderers from "../renderers";
import {InvalidElementException} from "../exceptions/exceptions.js";
// Takes an element and returns an object with information ab... | lindell/JsBarcode | src/help/getRenderProperties.js | JavaScript | mit | 2,868 |
using System;
class MalkoKote
{
static void Main()
{
int size = int.Parse(Console.ReadLine());
char character = char.Parse(Console.ReadLine());
//int height = size;
int width = size / 2 + 4;
int catBodyWidth = width / 2 + 1;
// part 1
Console.WriteLine... | petyakostova/Telerik-Academy | C#/C# 1 Contests/4/Malko-Kote/04. Malko-Kote/MalkoKote.cs | C# | mit | 2,124 |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Order */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="col-xs-12">
<div class="row... | kirillantv/yii2-swap | views/management/orders/view.php | PHP | mit | 1,263 |
/*
* MIT License
*
* Copyright (c) 2020 Choko (choko@curioswitch.org)
*
* 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
* ... | curioswitch/curiostack | cluster/pulumi/root/bootstrap/index.ts | TypeScript | mit | 1,198 |
using System;
using Aop.Api.Domain;
using System.Collections.Generic;
using Aop.Api.Response;
namespace Aop.Api.Request
{
/// <summary>
/// AOP API: alipay.marketing.campaign.drawcamp.trigger
/// </summary>
public class AlipayMarketingCampaignDrawcampTriggerRequest : IAopRequest<AlipayMarketingCampaign... | erikzhouxin/CSharpSolution | OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/Request/AlipayMarketingCampaignDrawcampTriggerRequest.cs | C# | mit | 2,422 |
package main
import (
"errors"
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
"os"
"path/filepath"
"strings"
"text/template"
)
const (
usageText = `SCANEO
Generate Go code to convert database rows into arbitrary structs.
USAGE
scaneo [options] paths...
OPTIONS
-o, -output
Set the... | variadico/scaneo | scaneo.go | GO | mit | 8,566 |
#include <core/stdafx.h>
#include <core/smartview/NickNameCache.h>
namespace smartview
{
void SRowStruct::parse()
{
cValues = blockT<DWORD>::parse(parser);
if (*cValues)
{
if (*cValues < _MaxEntriesSmall)
{
lpProps = std::make_shared<PropertiesStruct>(*cValues, true, false);
lpProps->block::pars... | stephenegriffin/mfcmapi | core/smartview/NickNameCache.cpp | C++ | mit | 1,725 |