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 |
|---|---|---|---|---|---|
;(function() {
'use strict';
const nodemailer = require('nodemailer');
const htmlToText = require('nodemailer-html-to-text').htmlToText;
module.exports = Extension => class Mailer extends Extension {
_constructor() {
this.send.context = Extension.ROUTER;
}
send(ctx) {
let subject = ct... | xabinapal/verlag | extensions/mailer.js | JavaScript | mit | 1,288 |
<?php
include('dbconnect.php');
include('_admin_session.php');
if(isset($_POST['form1'])){
$acc_date = $_POST['acc_date'];
$acc_desc = $_POST['acc_desc'];
$acc_amo = $_POST['acc_amo'];
$acc_dr_cr = $_POST['acc_dr_cr'];
$acc_total = $_POST['acc_total'];
$result = mysql_query("insert into accounts (acc_date, ac... | saidurwd/muradschool | backend/_accounts_view.php | PHP | mit | 3,202 |
require 'spec_helper'
require_relative '../../lib/concerns/linkable'
describe Linkable do
context 'link' do
class Example
include Linkable
def initialize(response)
@response = response
end
end
it 'removes all \ from strings' do
e = Example.new("\"https:\\/\\/ead.local.co... | fortesinformatica/iesde | spec/concerns/linkable_spec.rb | Ruby | mit | 514 |
from django import forms
class SearchForm(forms.Form):
criteria = forms.CharField(label='Criteria', max_length=100, required=True) | chaocodes/playlist-manager-django | manager/search/forms.py | Python | mit | 135 |
# frozen_string_literal: true
module DropletKit
class DomainMapping
include Kartograph::DSL
kartograph do
mapping Domain
root_key plural: 'domains', singular: 'domain', scopes: [:read]
property :name, scopes: [:read, :create]
property :ttl, scopes: [:read]
property :zone_file,... | digitalocean/droplet_kit | lib/droplet_kit/mappings/domain_mapping.rb | Ruby | mit | 400 |
package com.example.author.boundary;
import com.example.author.entity.Author;
import com.example.author.repository.AuthorRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.... | andifalk/spring-rest-docs-demo | src/main/java/com/example/author/boundary/AuthorServiceImpl.java | Java | mit | 1,838 |
using System.Collections.Generic;
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
{
/// <summary>
/// CPCHawk: Core Class
/// * Controllers *
/// </summary>
public partial class AmstradCPC
{
/// <summary>
/// The one CPCHawk ControllerDefi... | ircluzar/RTC3 | Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.Controllers.cs | C# | mit | 4,843 |
#include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <math.h>
#include<cstdio>
#include<string.h>
using namespace std;
int main(){
int in=0,x,o=0,n;
cin>>n;
for (int i = 0; i < n; i++) {
cin>>x;
if(x>=10&&x<=20)
in++;
else
o++;
}
printf("%d ... | ahmedengu/URI-solutions | Beginner/1072 - Interval 2.cpp | C++ | mit | 354 |
namespace p03_WildFarm.Models.Foods
{
public class Vegetable : Food
{
public Vegetable(int quantity) : base(quantity)
{
}
}
} | DimitarIvanov8/software-university | C#_OOP_Basics/Polymorphism/p03_WildFarm/Models/Foods/Vegetable.cs | C# | mit | 164 |
<?php
/**
* PHPExcel
*
* Copyright (c) 2006 - 2013 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ve... | cigiko/brdnc.cafe24.com | os/PHPExcel/Classes/PHPExcel/Reader/SYLK.php | PHP | mit | 14,181 |
package com.polydes.common.comp.utils;
import java.awt.AWTEvent;
import java.awt.Component;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.MouseEvent;
public class HierarchyLeaveListener extends TemporaryAWTListener implements FocusListener
{
private boolean inHierarchy;... | justin-espedal/polydes | Common/src/com/polydes/common/comp/utils/HierarchyLeaveListener.java | Java | mit | 1,420 |
import {bindable} from 'aurelia-framework';
export class SideBarLeft {
@bindable router;
@bindable layoutCnf = {};
}
| hoalongntc/aurelia-material | src/components/layout/sidebar-left.js | JavaScript | mit | 122 |
/* globals document, ajaxurl, tinymce, window */
define([
'jquery',
'modal',
'jquery-ui.sortable'
], function ($, modal) {
return function(areas, callback) {
var $areas = $(areas).filter(':not(.initialized)');
$areas.addClass('initialized');
var updateData = function() {
... | Neochic/Woodlets | js/content-area-manager.js | JavaScript | mit | 7,553 |
Factory.define :content_element_text do |p|
p.content_element { |c| c.association(:content_element, :element_type => "ContentElementText") }
end | dkd/palani | spec/factories/content_element_text_factory.rb | Ruby | mit | 146 |
<?php
include('head.php');
global $TPL;
?>
<div class="page-header">
<h1>Dateiliste</h1>
</div>
<?php
if($_SESSION['login_msg']) {
$_SESSION['login_msg']=false;
?>
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>Erfolgreich eingeloggt.</h4>
Willkommen
... | jnugh/php-miniupload | tpl/default/list.php | PHP | mit | 603 |
(function() {
'use strict';
angular
.module('material')
.controller('MainController', MainController);
/** @ngInject */
function MainController($timeout, webDevTec, toastr) {
var vm = this;
vm.awesomeThings = [];
vm.classAnimation = '';
vm.creationDate = 1437577753474;
vm.showToas... | LuukMoret/gulp-angular-examples | es5/material/src/app/main/main.controller.js | JavaScript | mit | 906 |
package io.github.intrainos.samsungltool;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
public class Main extends Activity {
@Override
protected void onCre... | Intrainos/SamsungLTool | src/main/java/io/github/intrainos/samsungltool/Main.java | Java | mit | 5,768 |
import { makeStyles } from '@material-ui/core/styles';
const drawerWidth = 240;
export const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
height: '100vh',
},
appBar: {
width: `calc(100% - ${drawerWidth}px)`,
marginLeft: drawerWidth,
},
drawer: {
width: drawerWidth,
f... | diegodoumecq/joymap | examples/Main/styles.ts | TypeScript | mit | 872 |
import getValue from './getValue.js';
import getNumberValue from './getNumberValue.js';
export default function getOverlayPlaneModule(metaData) {
const overlays = [];
for (let overlayGroup = 0x00; overlayGroup <= 0x1e; overlayGroup += 0x02) {
let groupStr = `x60${overlayGroup.toString(16)}`;
if (groupStr... | chafey/cornerstoneWADOImageLoader | src/imageLoader/wadors/metaData/getOverlayPlaneModule.js | JavaScript | mit | 1,430 |
class Solution:
def combine(self, n, k):
return [list(elem) for elem in itertools.combinations(xrange(1, n + 1), k)]
| rahul-ramadas/leetcode | combinations/Solution.6808610.py | Python | mit | 132 |
'use strict';
/**********************************************************************
* Angular Application (client side)
**********************************************************************/
angular.module('SwagApp', ['ngRoute', 'appRoutes', 'ui.bootstrap', 'ui.bootstrap.tpls' , 'MainCtrl', 'LoginCtrl', 'MySwag... | e2themillions/swaggatar | public/js/app.js | JavaScript | mit | 1,462 |
import os
import unittest
from erettsegit import argparse, yearify, monthify, levelify
from erettsegit import MessageType, message_for
class TestErettsegit(unittest.TestCase):
def test_yearify_raises_out_of_bounds_years(self):
with self.assertRaises(argparse.ArgumentTypeError):
yearify(2003)
... | z2s8/erettsegit | test_erettsegit.py | Python | mit | 1,186 |
module Boxy
class HomesickHandler
def install(url, options)
url = URI.parse(url)
name = File.basename(url.path)
unless castle_cloned?(name)
system "homesick clone #{url.to_s}"
system "homesick symlink #{name}"
else
puts "skipping #{name}, already installed"
en... | fooheads/boxy | lib/boxy/homesick.rb | Ruby | mit | 505 |
from django.core.exceptions import PermissionDenied, ObjectDoesNotExist
from django.core.paginator import InvalidPage, Paginator
from django.db import models
from django.http import HttpResponseRedirect
from django.template.response import SimpleTemplateResponse, TemplateResponse
from django.utils.datastructures import... | A425/django-nadmin | nadmin/views/list.py | Python | mit | 25,811 |
<?php
namespace Dragoon\MoviesBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DragoonMoviesBundle extends Bundle
{
}
| lboulay/sonata | src/Dragoon/MoviesBundle/DragoonMoviesBundle.php | PHP | mit | 134 |
import { bindable, customAttribute, inject } from 'aurelia-framework';
import { AttributeManager } from '../common/attributeManager';
@customAttribute('b-button')
@inject(Element)
export class BButton {
@bindable bStyle = 'default';
@bindable bSize = null;
@bindable bBlock = null;
@bindable bDisabled ... | aurelia-ui-toolkits/aurelia-bootstrap-bridge | src/button/button.js | JavaScript | mit | 1,041 |
<?php
namespace ZPB\AdminBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* AnimationProgramRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class AnimationProgramRepository extends EntityRepository
{
public function animationsInMonth($mont... | Grosloup/multisite3 | src/ZPB/AdminBundle/Entity/AnimationProgramRepository.php | PHP | mit | 1,680 |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | SuperWangKai/DirectX-Graphics-Samples | Samples/Desktop/D3D12MeshShaders/src/MeshletCull/CullDataVisualizer.cpp | C++ | mit | 7,493 |
package org.javacs.rewrite;
/** JavaType represents a potentially parameterized named type. */
public class JavaType {
final String name;
final JavaType[] parameters;
public JavaType(String name, JavaType[] parameters) {
this.name = name;
this.parameters = parameters;
}
}
| georgewfraser/vscode-javac | src/main/java/org/javacs/rewrite/JavaType.java | Java | mit | 307 |
/*
* Copyright (c) 2018 Rain Agency <contact@rain.agency>
* Author: Rain Agency <contact@rain.agency>
*
* 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 wi... | armonge/voxa | src/ssml.ts | TypeScript | mit | 1,552 |
$(document).ready(function(){
var nav = navigator.userAgent.toLowerCase(); //La variable nav almacenará la información del navegador del usuario
if(nav.indexOf("firefox") != -1){ //En caso de que el usuario este usando el navegador MozillaFirefox
$("#fecha_inicio").mask("9999-99-99",{placehold... | JoseSoto33/proyecto-sismed | assets/js/funciones-formulario-evento.js | JavaScript | mit | 1,944 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["shared-components"]... | mrlew/react-number-picker | dist/react-number-picker.js | JavaScript | mit | 10,328 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | DeRossi/Training_CI | application/config/config.php | PHP | mit | 18,210 |
import json
import re
from pygeocoder import Geocoder
from pygeolib import GeocoderError
import requests
# from picasso.index.models import Tag
from picasso.index.models import Address, Listing, Tag
__author__ = 'tmehta'
url = 'http://www.yellowpages.ca/ajax/search/music+teachers/Toronto%2C+ON?sType=si&sort=rel&pg=1&... | TejasM/picasso | picasso/yellow_pages.py | Python | mit | 3,125 |
require 'timeout'
require 'spec_helper'
shared_examples 'using a mysql database' do
before :all do
within 'form#jira-setup-database' do
# select using external database
choose 'jira-setup-database-field-database-external'
# allow some time for the DOM to change
sleep 1
# fill in database configuratio... | wpxgit/docker-atlassian-jira | spec/support/shared_examples/using_a_mysql_database_shared_example.rb | Ruby | mit | 678 |
package com.sincsmart.attendance.util;
import com.activeandroid.util.Log;
import android.content.Context;
import android.util.TypedValue;
//常用单位转换的辅助类
public class DensityUtils {
private DensityUtils() {
/* cannot be instantiated */
throw new UnsupportedOperationException("cannot be instantiated");
}
/**
... | zhilianxinke/attendance | src/com/sincsmart/attendance/util/DensityUtils.java | Java | mit | 1,335 |
import './clean-rich-text-editor.css';
import select from 'select-dom';
import onetime from 'onetime';
import * as pageDetect from 'github-url-detection';
import features from '.';
function hideButtons(): void {
document.body.classList.add('rgh-clean-rich-text-editor');
}
function hideTextareaTooltip(): void {
for... | sindresorhus/refined-github | source/features/clean-rich-text-editor.tsx | TypeScript | mit | 650 |
import subprocess
with open('names.txt') as f:
names = f.read().splitlines()
with open('portraits.txt') as f:
portraits = f.read().splitlines()
for i, name in enumerate(names):
portrait = portraits[i]
if portrait.endswith('.png'):
subprocess.call(['cp', 'minor/{}'.format(portrait), '{}.png'.fo... | dcripplinger/rotj | data/images/portraits/copy_portraits.py | Python | mit | 341 |
<h2>New Group</h2>
<br>
<?php echo render('admin/group/_form'); ?>
<p><?php echo Html::anchor('admin/group', 'Back'); ?></p>
| hrabbit/newzearch | fuel/app/views/admin/group/create.php | PHP | mit | 128 |
import React from "react";
export default class TransactionSentModal extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div className={this.props.transactionSent ? "transaction-sent-wrap active" : "transaction-... | safex/safex_wallet | src/components/partials/TransactionSentModal.js | JavaScript | mit | 4,367 |
#pragma once
#include <vector>
#include <memory>
#ifndef ARBITER_IS_AMALGAMATION
#include <arbiter/driver.hpp>
#include <arbiter/util/http.hpp>
#endif
#ifdef ARBITER_CUSTOM_NAMESPACE
namespace ARBITER_CUSTOM_NAMESPACE
{
#endif
namespace arbiter
{
namespace drivers
{
/** @brief HTTP driver. Intended as both a stan... | connormanning/arbiter | arbiter/drivers/http.hpp | C++ | mit | 5,624 |
Chance = require('chance');
chance = new Chance();
function generateStudent() {
var numberOfStudent = chance.integer({
min: 0,
max: 10
})
console.log(numberOfStudent);
var students = [];
for (var i = 0; i < numberOfStudent; i++) {
var birthYear = chance.year({
... | verdonarthur/Teaching-HEIGVD-RES-2016-Labo-HTTPInfra | docker-images/node-image/src/jsonPayloadGen.js | JavaScript | mit | 1,797 |
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
from distutils.core import setup, Extension
setup(name='sample',
ext_modules=[
Extension('sample',
['pysample.c'],
include_dirs=['/some/dir'],
define_macros=[('FOO', '1')],
... | xu6148152/Binea_Python_Project | PythonCookbook/interaction_c/setup.py | Python | mit | 474 |
<?php
namespace Override\ScrumBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Confi... | debflav/scrum | src/Override/ScrumBundle/Controller/UserController.php | PHP | mit | 7,518 |
dojo.provide("plugins.core.Agua.File");
/* SUMMARY: THIS CLASS IS INHERITED BY Agua.js AND CONTAINS FILE CACHE
AND FILE MANIPULATION METHODS
*/
dojo.declare( "plugins.core.Agua.File", [ ], {
/////}}}
// FILECACHE METHODS
getFoldersUrl : function () {
return Agua.cgiUrl + "agua.cgi?";
},
setFileCaches : fun... | aguadev/aguadev | html/plugins/core/Agua/File.js | JavaScript | mit | 19,766 |
<?php
/**
* LitePubl CMS
*
* @copyright 2010 - 2017 Vladimir Yushko http://litepublisher.com/ http://litepublisher.ru/
* @license https://github.com/litepubl/cms/blob/master/LICENSE.txt MIT
* @link https://github.com/litepubl\cms
* @version 7.08
*/
namespace litepubl\admin\widget;
use litepubl\admin\... | litepubl/cms | lib/admin/widget/Widget.php | PHP | mit | 1,705 |
<?php
/**
* Copyright (c) Frank Förster (http://frankfoerster.com)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Frank Förster (http://frankfoerster.co... | frankfoerster/cakephp-migrations | Model/Exception/IndexAlreadyExistsException.php | PHP | mit | 537 |
using System;
using System.Collections;
namespace AppStudio.Data
{
/// <summary>
/// Implementation of the MainSchema class.
/// </summary>
public class MainSchema : BindableSchemaBase, IEquatable<MainSchema>
{
private string _title;
private string _subtitle;
private string ... | AppStudioSamples/Menu | scr/ClientApp/AppStudio.Data/DataSchemas/MainSchema.cs | C# | mit | 2,679 |
package org.onceatime.concurrent;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class RwSample {
public static void main(String[] args) {
class CachedData {
Object data;
volatile boolean cacheValid;
final ReentrantReadWriteLock rwl = new ReentrantReadWriteLock();
... | chinafzy/java-practise | src/main/java/org/onceatime/concurrent/RwSample.java | Java | mit | 1,437 |
import { globalThis } from './global-this';
/**
* Detect if running in Node.js.
* @type {boolean}
*/
const isNode = Object.prototype.toString.call(globalThis.process) === '[object process]';
export { isNode };
| zant95/otpauth | src/utils/is-node.js | JavaScript | mit | 215 |
/**
* History.js Core
* History.js HTML4 Support
* @author Benjamin Arthur Lupton <contact@balupton.com>
* @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
define(function(require){
"use strict";
// ==================... | shovemedia/GigaJS | js/src/lib/History.js | JavaScript | mit | 71,024 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagi... | iluminar/goodwork | resources/lang/bn/pagination.php | PHP | mit | 575 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SamLu.RegularExpression.Extend
{
/// <summary>
/// 包含所有正则复数分支的分支的集合。
/// </summary>
/// <typeparam name="T">正则接受... | lufengfan/SamLu.RegularExpression | src/SamLu.RegularExpression/Extend/RegexMultiBranchBranchCollection.cs | C# | mit | 9,630 |
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015 Igor Deplano
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the So... | IDepla/polibox | src/main/java/it/polito/ai/polibox/web/controllers/authentication/CustomSecurityAuthenticationInterceptor.java | Java | mit | 3,118 |
//****************************************************************************
// Fichier: GridHelp.cpp
// Classe: CGridHelp
// Usage:
//
// To use CGridHelp. There are 3 steps:
// 1) initialization of the DLL with the method : Initialize
// 2) Open a grid and used it :
// Open
// GetValue
// ... | RNCan/WeatherBasedSimulationFramework | wbs/src/ModelBase/GridHelp.cpp | C++ | mit | 6,502 |
import logging
import time
import os
from fuocore.models import (
BaseModel,
SongModel,
LyricModel,
PlaylistModel,
AlbumModel,
ArtistModel,
SearchModel,
UserModel,
)
from .provider import provider
logger = logging.getLogger(__name__)
MUSIC_LIBRARY_PATH = os.path.expanduser('~') + '/M... | cosven/feeluown-core | fuocore/netease/models.py | Python | mit | 6,421 |
import deepFreeze from 'deep-freeze';
import article_details from '../../app/assets/javascripts/reducers/article_details';
import { RECEIVE_ARTICLE_DETAILS } from '../../app/assets/javascripts/constants/article_details';
import '../testHelper';
describe('article_details reducer', () => {
it('Should return initial st... | sejalkhatri/WikiEduDashboard | test/reducers/article_details.spec.js | JavaScript | mit | 981 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kirppu_project.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| jlaunonen/kirppu | manage.py | Python | mit | 257 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _2.Array_Elements_Egual_To_Their_Index
{
class arrElementEgualIndex
{
static void Main(string[] args)
{
int[] array = Console.ReadLine().Split(' ')
... | NedkoNedevv/Fundamentals | Arrays - More Exercises/2.Array Elements Egual To Their Index/arrElementEgualIndex.cs | C# | mit | 613 |
extern "C"
{
#include "lualib.h"
#include "lauxlib.h"
}
#include "tconstant.h"
int main (void)
{
int tolua_tconstant_open (lua_State*);
lua_State* L = lua_open();
luaL_openlibs(L);
tolua_tconstant_open(L);
luaL_dofile(L,"tconstant.lua");
lua_close(L);
return 0;
}
| drupalhunter-team/TrackMonitor | ExternalComponents/Tolua/src/tests/tconstant.cpp | C++ | mit | 278 |
require 'test_helper'
class ResubmitTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| garyhsieh/mturk-survey | test/unit/resubmit_test.rb | Ruby | mit | 122 |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | garethj-msft/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsMultiNomialRequestBuilder.cs | C# | mit | 1,006 |
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using JigLibX.Vehicles;
using JigLibX.Collision;
namespace OurCity.PhysicObjects
{
class CarObject : PhysicObject
{
private Car car;
private Model wheel;
... | mrq-cz/ourcity | OurCity/OurCity/OurCity/PhysicObjects/CarObject.cs | C# | mit | 3,827 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_AVATOR_DATADetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Register
{
class _AVATOR_DATARegister : public IRegister
... | goodwinxp/Yorozuya | library/ATF/_AVATOR_DATARegister.hpp | C++ | mit | 679 |
var db = require('../models');
exports.checkItemsList = function (req, res, next) {
var data = {
items: []
};
db.Item.findAll().then(function (results) {
for (var i = 0; i < results.length; i++) {
data.items.push(results[i].dataValues);
}
// console.log(data.items);
console.log('item... | yoonslee/project2-game | controllers/itemController.js | JavaScript | mit | 522 |
# -*- coding: utf-8 -*-
# Copyright 2017-TODAY LasLabs Inc.
# License MIT (https://opensource.org/licenses/MIT).
import properties
from datetime import datetime, date
from ..base_model import BaseModel
class Domain(properties.HasProperties):
"""This represents a full search query."""
OR = 'OR'
AND = '... | LasLabs/python-helpscout | helpscout/domain/__init__.py | Python | mit | 7,131 |
/*
* Qt4 bitcoin GUI.
*
* W.J. van der Laan 2011-2012
* The Bitcoin Developers 2011-2012
*/
#include <QApplication>
#include "bitcoingui.h"
#include "transactiontablemodel.h"
#include "optionsdialog.h"
#include "aboutdialog.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "walletframe.h"
#include "... | woodedlawn/woodcoin | src/qt/bitcoingui.cpp | C++ | mit | 29,694 |
import $ from 'jquery'
import template from './Loadbox.html'
import Mustache from 'mustache'
import img1 from '../../images/load-circle.png'
import img2 from '../../images/load-bg.png'
import img3 from '../../images/logo.png'
import img4 from '../../images/slogan.png'
import img5 from '../../images/panel-bg.jpg'
impor... | RainKolwa/goon_cowala_feb | src/components/Loadbox/Index.js | JavaScript | mit | 1,235 |
const postcss = require('postcss');
const fs = require('fs');
const plugin = require('../index');
const pkg = require('../package.json');
/**
* Runs the plugins process function. Tests whether the given input is equal
* to the expected output with the given options.
*
* @param {string} input Input fixture file nam... | gridonic/postcss-replace | test/index.test.js | JavaScript | mit | 3,694 |
<?php
return array (
'id' => 'htc_desire_500_ver1',
'fallback' => 'generic_android_ver4_1',
'capabilities' =>
array (
'uaprof' => 'http://www.htcmms.com.tw/Android/Vodafone/0P3Z11/ua-profile.xml',
'model_name' => 'Desire 500',
'brand_name' => 'HTC',
'release_date' => '2013_august',
'physica... | cuckata23/wurfl-data | data/htc_desire_500_ver1.php | PHP | mit | 489 |
require 'pry'
module Zephyre
class Controller
attr_reader :request
def initialize(env)
@request ||= Rack::Request.new(env)
end
def params
request.params
end
def response(body, status=200, header={})
@response = Rack::Response.new(body, status, header)
end
def get_response
@response
en... | alexdovzhanyn/zephyre | lib/zephyre/controller.rb | Ruby | mit | 1,246 |
require 'rails_helper'
RSpec.describe "user_infos/index", type: :view do
before(:each) do
assign(:user_infos, [
UserInfo.create!(
:hometown => "Hometown",
:major => "Major",
:age => "Age",
:description => "MyText",
:show_email => false
),
UserInfo.create!... | code4naropa/ournaropa-forum | spec/views/ournaropa_forum/user_infos/index.html.erb_spec.rb | Ruby | mit | 860 |
package backend
import (
"testing"
"github.com/stretchr/testify/assert"
)
var (
testStartAttributesTestCases = []struct {
A []*StartAttributes
O []*StartAttributes
}{
{
A: []*StartAttributes{
{Language: ""},
{Language: "ruby"},
{Language: "python", Dist: "trusty"},
{Language: "python", D... | solarce/worker | backend/start_attributes_test.go | GO | mit | 1,823 |
while True:
input_number = int(raw_input())
if input_number == 42:
break
print input_number,
exit() | sandy-8925/codechef | test.py | Python | mit | 112 |
<?php
/*
* This file is part of the zzAgenda package.
*
* (c) OV Corporation SAS <contact@ov-corporation.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ZZFramework\Event;
interface EventSubscriberInt... | croziere/zzAgenda | lib/ZZFramework/Event/EventSubscriberInterface.php | PHP | mit | 374 |
// Import React
import React from "react";
// Import Spectacle Core tags
import {
BlockQuote,
Cite,
CodePane,
Deck,
Heading,
Image,
Link,
Quote,
Slide,
Spectacle,
Text,
Code,
Markdown,
List,
ListItem
} from "spectacle";
import CodeSlide from "spectacle-code-slide";
// Import image prelo... | junyper/react-meetup | presentation/index.js | JavaScript | mit | 29,727 |
import json
from django import template
from django.utils.safestring import mark_safe
register = template.Library()
def jsonfilter(value):
return mark_safe(json.dumps(value))
register.filter('json', jsonfilter)
| Open511/open511-server | open511_server/templatetags/open511.py | Python | mit | 220 |
<?php
namespace Anroots\Pgca\Test;
use Faker\Factory;
use Faker\Generator;
abstract class TestCase extends \PHPUnit_Framework_TestCase
{
/**
* @return Generator
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function getFaker()
{
return Factory::create();
}
}
| anroots/pgca | tests/Anroots/Pgca/Test/TestCase.php | PHP | mit | 305 |
using System;
using System.Linq;
using FluentAssertions;
using Paster.Specs.Fakes;
using Xbehave;
using xBehave.Paster.Gherkin;
using xBehave.Paster.System;
using Xunit;
namespace Paster.Specs
{
[Trait("Invalid gherkin","")]
public class BadSourceData
{
[Scenario(DisplayName = "Pasting an Empty st... | xbehave/xbehave.net-visual-studio | src/Paster.Specs/BadSourceData.cs | C# | mit | 1,963 |
import { Ng2PopupComponent } from "./ng2-popup.component";
import { Ng2MessagePopupComponent } from "./ng2-message-popup.component";
export { Ng2PopupComponent, Ng2MessagePopupComponent };
export declare class Ng2PopupModule {
}
| salim101/MathQuiz | frontend/node_modules/ng2-popup/dist/ng2-popup.module.d.ts | TypeScript | mit | 229 |
package Movement;
/**
* This is an abstract class ChessUnitMovement.
* It is built to handle chess units movement.
* This class must be implemented to support a units movement.
* @author thapaliya
*/
public abstract class ChessUnitMovement
{
/**
*
* @param currentRow of the unit
* @param c... | thesashi7/SimpleChess | src/Movement/ChessUnitMovement.java | Java | mit | 674 |
package config
const (
// XPathEpisodesOverviewPagePageItems to retrieve pages where videos are schon
XPathEpisodesOverviewPagePageItems = "//a[@class='pageItem']/@href"
// XPathEpisodesItems to retrieve video urls from a page
XPathEpisodesItems = "//div[@class='modCon']/div[@class='mod modD modMini']/div[@class... | rkl-/kika-downloader | src/kika-downloader/config/xpath.go | GO | mit | 1,236 |
package cz.crcs.ectester.standalone.libs;
import java.security.Provider;
import java.util.Set;
/**
* @author Jan Jancar johny@neuromancer.sk
*/
public class MatrixsslLib extends NativeECLibrary {
public MatrixsslLib() {
super("matrixssl_provider");
}
@Override
native Provider createProvide... | petrs/ECTester | src/cz/crcs/ectester/standalone/libs/MatrixsslLib.java | Java | mit | 385 |
// <copyright file="SwitchableSection.cs" company="Cui Ziqiang">
// Copyright (c) 2017 Cui Ziqiang
// </copyright>
namespace CrossCutterN.Weaver.Switch
{
using System;
using System.Collections.Generic;
using Mono.Cecil.Cil;
/// <summary>
/// Switchable section implementation.
/// </summary>
... | keeper013/CrossCutterN | CrossCutterN.Weaver/Switch/SwitchableSection.cs | C# | mit | 2,421 |
/**
* @file AccessDeniedException.java
* @brief 로그인을 하지 않았거나 세션이 끊긴 경우 발생하는 Exception
* @author 개발3/파트3
* @author 최경진
* @date 생성 : 2014. 4. 17.
* @date 최종수정: 2014. 4. 17.
*/
package com.juseyo.certification.exception;
/**
* @brief AccessDeniedException
* @author 개발3팀/파트3/최경진
* @version 1.0
* @d... | zupper77/juseyo | src/main/java/com/juseyo/certification/exception/SessionNotFoundException.java | Java | mit | 778 |
<?php
/* TwigBundle:Exception:traces.xml.twig */
class __TwigTemplate_05a06802ecd3434c77ee29212d49ed457ae32c039667ade3058cbb9e3ff2db70 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | thmohd/demo | app/cache/dev/twig/05/a0/6802ecd3434c77ee29212d49ed457ae32c039667ade3058cbb9e3ff2db70.php | PHP | mit | 1,699 |
class CreateApiVerifications < ActiveRecord::Migration
def up
create_table :api_verifications do |t|
t.string :name
t.string :key
t.string :secret
t.timestamps null: false
end
end
def down
drop_table :api_verifications
end
end | Christianjuth/Portfolio | db/migrate/20161104123431_create_api_verifications.rb | Ruby | mit | 273 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kayak;
namespace Pivot.Update.Server
{
class HttpErrorDataProducer : BufferedProducer
{
public HttpErrorDataProducer()
: base("The server did not understand your request.")
{
}
}... | hach-que/Pivot.Update | Pivot.Update.Server/HttpErrorDataProducer.cs | C# | mit | 325 |
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.text import slugify
from django.contrib.auth.models import (
User
)
from pastryio.models.mixins import ArchiveMixin
class BaseProfile(ArchiveMixin):
user = models.OneToOneField(User)
avatar = models.Im... | octaflop/pastryio | apps/profiles/models.py | Python | mit | 496 |
import {
AudioSourceErrorEvent,
AudioSourceInitializingEvent,
AudioSourceOffEvent,
AudioSourceReadyEvent,
AudioStreamNodeAttachedEvent,
AudioStreamNodeAttachingEvent,
AudioStreamNodeDetachedEvent
} from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents';
export {
AudioSou... | billba/botchat | packages/testharness/pre/external/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents.js | JavaScript | mit | 514 |
/*
(c)2014|US-UltimateShip.
Univali - Universidade do Vale do Itajaí.
GeraçãoTec - Projeto Filnal Batalha Final em JAVA.
Criadores:
Alexandre <alexandreess@gmail.com>
Carlos Eduardo Passos de Sousa <carloseduardosousa@gmail.com>
Henrique Wilhelm <henrique.wilhelm@gmail.com>
Jaison dos santos <jaison1906@gma... | carlosedusousa/curso-java-fonts | layouts-em-Java/src/br/com/intagrator/cap8/TrabFlowLayout.java | Java | mit | 653 |
package ch11.product_serial;
public class Product
{
private String name;
private double price;
private int quantity;
/**
Constructs a product with empty name and 0 price and
quantity.
*/
public Product()
{
name = "";
price = 0;
quantity = 0;
}
/**... | raeffu/prog2 | src/ch11/product_serial/Product.java | Java | mit | 1,562 |
var expect = chai.expect;
var assert = chai.assert;
var Utils = {
elementContainer: undefined,
_init: function(){
this.elementContainer = document.createElement('div');
this.elementContainer.setAttribute('data-element-container', '');
this.elementContainer.style.display = 'none';
... | hkvalvik/element-observer | test/utils.js | JavaScript | mit | 1,413 |
from django.db import models
from django.core.exceptions import ImproperlyConfigured
from django import forms
from django.conf import settings
import warnings
try:
from keyczar import keyczar
except ImportError:
raise ImportError('Using an encrypted field requires the Keyczar module. '
'Y... | orbitvu/django-extensions | django_extensions/db/fields/encrypted.py | Python | mit | 4,102 |
package de.yellow_ray.bluetoothtest;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import java.io.IOException;
import java.io.InputS... | m0r13/technoqualle-android | app/src/main/java/de/yellow_ray/bluetoothtest/BluetoothService.java | Java | mit | 6,754 |
/* eslint-disable no-console */
const path = require('path');
const { promisify } = require('util');
const render = require('koa-ejs');
const helmet = require('helmet');
const { Provider } = require('../lib'); // require('oidc-provider');
const Account = require('./support/account');
const configuration = require('... | panva/node-oidc-provider | example/standalone.js | JavaScript | mit | 2,219 |
package com.instructure.canvasapi.api;
import com.instructure.canvasapi.model.CanvasContext;
import com.instructure.canvasapi.model.NotificationPreferenceResponse;
import com.instructure.canvasapi.utilities.APIHelpers;
import com.instructure.canvasapi.utilities.CanvasCallback;
import com.instructure.canvasapi.utilitie... | nbutton23/CanvasAPI | src/main/java/com/instructure/canvasapi/api/NotificationPreferencesAPI.java | Java | mit | 7,235 |
// All symbols in the Vertical Forms block as per Unicode v8.0.0:
[
'\uFE10',
'\uFE11',
'\uFE12',
'\uFE13',
'\uFE14',
'\uFE15',
'\uFE16',
'\uFE17',
'\uFE18',
'\uFE19',
'\uFE1A',
'\uFE1B',
'\uFE1C',
'\uFE1D',
'\uFE1E',
'\uFE1F'
]; | mathiasbynens/unicode-data | 8.0.0/blocks/Vertical-Forms-symbols.js | JavaScript | mit | 245 |
require 'erb'
require 'tilt'
require 'rack/mime'
class MailView
autoload :Mapper, 'mail_view/mapper'
class << self
def default_email_template_path
File.expand_path('../mail_view/email.html.erb', __FILE__)
end
def default_index_template_path
File.expand_path('../mail_view/index.html.erb',... | WindStill/mail_view | lib/mail_view.rb | Ruby | mit | 1,999 |
const LOAD = 'lance-web/serviceTypes/LOAD';
const LOAD_SUCCESS = 'lance-web/serviceTypes/LOAD_SUCCESS';
const LOAD_FAIL = 'lance-web/serviceTypes/LOAD_FAIL';
const EDIT_START = 'lance-web/serviceTypes/EDIT_START';
const EDIT_STOP = 'lance-web/serviceTypes/EDIT_STOP';
const SAVE = 'lance-web/serviceTypes/SAVE';
const SA... | jairoandre/lance-web-hot | src/redux/modules/serviceTypes.js | JavaScript | mit | 3,767 |