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
namespace Mapbender\ActivityIndicatorBundle\Element;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
/**
*
*/
class ActivityIndicatorAdminType extends AbstractType
{
/**
* @inheritdoc
*/
... | mapbender/mapbender-activityindicator | src/Mapbender/ActivityIndicatorBundle/Element/ActivityIndicatorAdminType.php | PHP | mit | 1,022 |
/**
* The Furnace namespace
*
* @module furnace
* @class Furnace
* @static
*/
import Validation from 'furnace/packages/furnace-validation';
import I18n from 'furnace/packages/furnace-i18n';
import Forms from 'furnace/packages/furnace-forms';
export default {
/**
*
* @property Forms
* @type Furnace.Forms... | ember-furnace/ember-cli-furnace | addon/index.js | JavaScript | mit | 503 |
import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import { customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib'
/**
* A placeholder can contain an image.
*/
function PlaceholderImage(props) {
const { className, square, rectangular } = props
const cla... | Semantic-Org/Semantic-UI-React | src/elements/Placeholder/PlaceholderImage.js | JavaScript | mit | 1,162 |
(function (angular) {
"use strict";
var appFooter = angular.module('myApp.footer', []);
appFooter.controller("footerCtrl", ['$scope', function ($scope) {
}]);
myApp.directive("siteFooter",function(){
return {
restrict: 'A',
templateUrl:'app/componen... | kevinczhang/kevinczhang.github.io | src/app/components/footer/footer.js | JavaScript | mit | 376 |
<?php
namespace App\Http\Controllers\API\V2;
use App\Beacon;
use App\Http\Requests\BeaconRequest;
use Illuminate\Http\Request;
class BeaconController extends Controller
{
/**
* Return a list of items.
*
* @param Request $request
*
* @return json
*/
public function index(Request ... | nosuchagency/beacon-bacon | app/Http/Controllers/API/V2/BeaconController.php | PHP | mit | 1,627 |
import {IDetailsService} from '../services/details.service';
class DetailsController implements ng.IComponentController {
private detailsService: IDetailsService;
private detailsData: any;
private previousState: any;
constructor($stateParams: any, detailsService: IDetailsService) {
console.log... | andyyusydney/open-movie | src/details/details.controller.ts | TypeScript | mit | 788 |
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"strings"
"sync"
)
func checkError(err error, prefix string) {
if err != nil {
panic(fmt.Sprintf("%s %s", prefix, err.Error()))
}
}
func cleanFeedbackLine(s string) (out string) {
out = s
out = strings.TrimSpace(out)
out = strings.Replace(out, "\r", "",... | golang-devops/yaml-script-runner | main.go | GO | mit | 3,494 |
<html>
<head>
<title>Progmia | Game | Level Selection</title>
<link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/levels.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>asse... | timpquerubin/Progmia | application/views/templates/menu_levels_header.php | PHP | mit | 2,910 |
import base64
try:
from functools import wraps
except ImportError:
from django.utils.functional import wraps # Python 2.3, 2.4 fallback.
from django import http, template
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login
from djang... | isaac-philip/loolu | common/django/contrib/admin/views/decorators.py | Python | mit | 3,535 |
<?php
/**
* wCMF - wemove Content Management Framework
* Copyright (C) 2005-2020 wemove digital solutions GmbH
*
* Licensed under the terms of the MIT License.
*
* See the LICENSE file distributed with this work for
* additional information.
*/
namespace wcmf\lib\core;
/**
* A session that requires clients to... | iherwig/wcmf | src/wcmf/lib/core/TokenBasedSession.php | PHP | mit | 673 |
export default function formatList(xs, { ifEmpty = 'нет', joint = ', ' } = {}) {
return (!xs || xs.length === 0) ? ifEmpty : xs.join(joint)
}
| whitescape/react-admin-components | src/ui/format/list.js | JavaScript | mit | 147 |
// $Author: benine $
// $Date$
// $Log$
// Contains the mismatch class for afin
#ifndef MISMATCH_H
#define MISMATCH_H
//////////////////////////////////////////////\
// Mismatch Class: ////////////////////////////>
//////////////////////////////////////////////
//
// Mismatch object, contains all classes, methods, da... | mrmckain/Fast-Plast | afin/mismatch.hpp | C++ | mit | 1,405 |
<?php
/*
* 注意:此文件由itpl_engine编译型模板引擎编译生成。
* 如果您的模板要进行修改,请修改 templates/default/shop/map.html
* 如果您的模型要进行修改,请修改 models/shop/map.php
*
* 修改完成之后需要您进入后台重新编译,才会重新生成。
* 如果您开启了debug模式运行,那么您可以省去上面这一步,但是debug模式每次都会判断程序是否更新,debug模式只适合开发调试。
* 如果您正式运行此程序时,请切换到service模式运行!
*
* 如您有问题请到官方论坛()提问,谢谢您的支持。
*/
?><?php... | hisuley/gds | trunk/shop/map.php | PHP | mit | 7,143 |
package com.example;
import java.util.Set;
import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springfra... | backpaper0/sandbox | springmvc-study-no-xml/src/main/java/com/example/ServletContainerInitializerImpl.java | Java | mit | 923 |
import React from 'react';
const EditHero = props => {
if (props.selectedHero) {
return (
<div>
<div className="editfields">
<div>
<label>id: </label>
{props.addingHero
? <input
type="number"
name="id"
... | Ryan-ZL-Lin/react-cosmosdb | src/components/EditHero.js | JavaScript | mit | 1,289 |
#guimporter.py
import sys
from PySide import QtGui, QtCore, QtWebKit
Signal = QtCore.Signal | lazunin/stclient | guimporter.py | Python | mit | 92 |
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("Sea... | davidvaleff/ProgrammingFundamentals-Sept2017 | 06.Lists/Exercises/SearchForANumber/Properties/AssemblyInfo.cs | C# | mit | 1,403 |
'use strict';
var redis = require('redis')
, xtend = require('xtend')
, hyperquest = require('hyperquest')
;
module.exports = FetchAndCache;
/**
* Creates a fetchncache instance.
*
* #### redis opts
*
* - **opts.redis.host** *{number=}* host at which redis is listening, defaults to `127.0.0.1`... | thlorenz/fetchncache | index.js | JavaScript | mit | 4,638 |
package org.blendee.jdbc;
/**
* プレースホルダを持つ SQL 文と、プレースホルダにセットする値を持つものを表すインターフェイスです。
* @author 千葉 哲嗣
*/
public interface ComposedSQL extends ChainPreparedStatementComplementer {
/**
* このインスタンスが持つ SQL 文を返します。
* @return SQL 文
*/
String sql();
/**
* {@link PreparedStatementComplementer} を入れ替えた新しい {@link Co... | blendee/blendee | src/main/java/org/blendee/jdbc/ComposedSQL.java | Java | mit | 1,611 |
<TS language="es_419" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Haga clic para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... | DigitalPandacoin/pandacoin | src/qt/locale/bitcoin_es_419.ts | TypeScript | mit | 4,495 |
package com.github.sixro.minihabits.core.infrastructure.domain;
import java.util.*;
import com.badlogic.gdx.Preferences;
import com.github.sixro.minihabits.core.domain.*;
public class PreferencesBasedRepository implements Repository {
private final Preferences prefs;
public PreferencesBasedRepository... | sixro/minihabits | core/src/main/java/com/github/sixro/minihabits/core/infrastructure/domain/PreferencesBasedRepository.java | Java | mit | 2,241 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let _ = require('lodash');
let async = require('async');
const pip_services3_commons_node_1 = require("pip-services3-commons-node");
const pip_services3_facade_node_1 = require("pip-services3-facade-node");
class RolesOperationsV1 extends pip_... | pip-services-users/pip-facade-users-node | obj/src/operations/version1/RolesOperationsV1.js | JavaScript | mit | 1,730 |
require_relative 'rules_factory_common'
FactoryBot.define do
factory :priority_bills, parent: :answers do
factory :S6_H1_missed_payment_low, traits: [:country, :S6_H1_missed_payment_low_answers]
factory :S6_H2_council_tax_severe, traits: [:country, :S6_H2_tax_severe_answers]
factory :S6_H2_domestic_rat... | moneyadviceservice/frontend | features/factories/money_navigator/priority_bills_rules.rb | Ruby | mit | 33,882 |
var config = require('../lib/config')();
var Changeset = require('./Changeset');
var queries = require('./queries');
var helpers = require('../helpers');
require('../validators');
var validate = require('validate.js');
var errors = require('../errors');
var pgPromise = helpers.pgPromise;
var promisifyQuery = helpers.pr... | mapbox/osm-comments-api | changesets/index.js | JavaScript | mit | 3,841 |
//---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Windows.Automation.Peers;
using System.Windows.Media;
using System.W... | mind0n/hive | Cache/Libs/net46/wpf/src/Framework/System/Windows/Controls/Primitives/StatusBar.cs | C# | mit | 7,812 |
// John Meyer
// CSE 271 F
// Dr. Angel Bravo
import java.util.Scanner;
import java.io.*;
/**
* Copies a file with line numbers prefixed to every line
*/
public class Lab2InputOutput {
public static void main(String[] args) throws Exception {
// Define variables
Scanner keyboardReader = new Scan... | 0x326/academic-code-portfolio | 2016-2021 Miami University/CSE 271 Introduction to Object-Oriented Programming/Lab02/src/main/java/Lab2InputOutput.java | Java | mit | 1,334 |
module ClassifyCluster
VERSION = "0.4.17"
end
| socialcast/classify_cluster | lib/classify_cluster/version.rb | Ruby | mit | 48 |
// Copyright 2013 The Changkong Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dmt
const VersionNo = "20131207"
/* 图片分类 */
type PictureCategory struct {
Created string `json:"created"`
Modified str... | yaofangou/open_taobao | api/dmt/dmt_structs.go | GO | mit | 3,394 |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "azure_sql_failoverdatabases"); | DataFire/Integrations | integrations/generated/azure_sql_failoverdatabases/index.js | JavaScript | mit | 181 |
package generated.zcsclient.mail;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for messagePartHitInfo complex type.
*
* <p>The following schema fragme... | nico01f/z-pec | ZimbraSoap/src/wsdl-test/generated/zcsclient/mail/testMessagePartHitInfo.java | Java | mit | 7,074 |
/*
* Copyright (c) 2013 Adobe Systems Incorporated. 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 ri... | L0g1k/quickfire-old | src/extensibility/node/spec/Installation.spec.js | JavaScript | mit | 10,734 |
#include "stdafx.h"
#include "Renderer.h"
#include "RenderMethod_PhongPoint_CG.h"
RenderMethod_PhongPoint_CG::RenderMethod_PhongPoint_CG(class Renderer *r) {
ASSERT(r, "Null pointer: r");
renderer = r;
useCG = true;
}
bool RenderMethod_PhongPoint_CG::isSupported() const {
return areShadersAvailable();
... | foxostro/CheeseTesseract | src/RenderMethod_PhongPoint_CG.cpp | C++ | mit | 3,567 |
class AddOriginalMd5ChecksumToVideos < ActiveRecord::Migration
def change
add_column :videos, :original_md5_checksum, :string, :limit => 40
end
end
| pr0d1r2/myvod | db/migrate/20130824090308_add_original_md5_checksum_to_videos.rb | Ruby | mit | 156 |
import ReactIdSwiper from './ReactIdSwiper';
// Types
export {
ReactIdSwiperProps,
ReactIdSwiperRenderProps,
SelectableElement,
SwiperInstance,
WrappedElementType,
ReactIdSwiperChildren,
SwiperModuleName,
SwiperRefNode
} from './types';
// React-id-swiper
export default ReactIdSwiper;
| kidjp85/react-id-swiper | src/index.ts | TypeScript | mit | 304 |
# -*- coding: utf-8 -*-
# @Author: karthik
# @Date: 2016-12-10 21:40:07
# @Last Modified by: chandan
# @Last Modified time: 2016-12-11 12:55:27
from models.portfolio import Portfolio
from models.company import Company
from models.position import Position
import tenjin
from tenjin.helpers import *
import wikipedia... | coders-creed/botathon | src/info/fetch_info.py | Python | mit | 2,889 |
using System;
using System.Collections.Generic;
using System.Html;
namespace wwtlib
{
public class PlotTile : Tile
{
bool topDown = true;
protected PositionTexture[] bounds;
protected bool backslash = false;
List<PositionTexture> vertexList = null;
List<Triangle>[] chi... | juoni/wwt-web-client | HTML5SDK/wwtlib/PlotTile.cs | C# | mit | 11,749 |
<?php
/**
* This file is part of the browscap-json-cache package.
*
* (c) Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace Browscap\Cache;
use BrowscapPHP\Cache... | mimmi20/browscap-json-cache | src/JsonCache.php | PHP | mit | 5,684 |
(function () {
"use strict";
require('futures/forEachAsync');
var fs = require('fs'),
crypto = require('crypto'),
path = require('path'),
exec = require('child_process').exec,
mime = require('mime'),
FileStat = require('filestat'),
dbaccess = require('../dbaccess'),
utils = require('../utils'),
has... | beatgammit/node-filesync | server/lib/routes/upload.js | JavaScript | mit | 3,981 |
#!/usr/bin/python
from typing import List, Optional
"""
16. 3Sum Closest
https://leetcode.com/problems/3sum-closest/
"""
def bsearch(nums, left, right, res, i, j, target):
while left <= right:
middle = (left + right) // 2
candidate = nums[i] + nums[j] + nums[middle]
if res is None or ab... | pisskidney/leetcode | medium/16.py | Python | mit | 1,070 |
package bits;
/**
* Created by krzysztofkaczor on 3/10/15.
*/
public class ExclusiveOrOperator implements BinaryOperator
{
@Override
public BitArray combine(BitArray operand1, BitArray operand2) {
if(operand1.size() != operand2.size()) {
throw new IllegalArgumentException("ExclusiveOrOper... | krzkaczor/IDEA | src/main/java/bits/ExclusiveOrOperator.java | Java | mit | 651 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
// Database
var mongo = require('mongodb');
var monk = require('monk');
var db = monk('localhost:270... | imRishabhGupta/smart-kart | app.js | JavaScript | mit | 1,740 |
# Smallest Integer
# I worked on this challenge [by myself, with: ].
# smallest_integer is a method that takes an array of integers as its input
# and returns the smallest integer in the array
#
# +list_of_nums+ is an array of integers
# smallest_integer(list_of_nums) should return the smallest integer in +list_of_nu... | NoahHeinrich/phase-0 | week-4/smallest-integer/my_solution.rb | Ruby | mit | 548 |
FactoryGirl.define do
factory :user do
provider 'trello'
uid 'trello-special-uid'
full_name 'Dennis Martinez'
nickname 'dennmart'
oauth_token 'trello-token'
trait :admin do
admin true
end
end
end
| dennmart/echo_for_trello | spec/factories/users.rb | Ruby | mit | 235 |
from multiprocessing import Pool
import os, time, random
def long_time_task(name):
print 'Run task %s (%s)...' % (name, os.getpid())
start = time.time()
time.sleep(random.random() * 3)
end = time.time()
print 'Task %s runs %0.2f seconds.' % (name, (end - start))
if __name__ == '__main__':
p... | Jayin/practice_on_py | Process&Thread/PoolTest.py | Python | mit | 1,094 |
package net.comfreeze.lib;
import android.app.AlarmManager;
import android.app.Application;
import android.app.NotificationManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageMan... | comfreeze/android-tools | CFZLib/src/main/java/net/comfreeze/lib/CFZApplication.java | Java | mit | 8,991 |
/**
* @author yomboprime https://github.com/yomboprime
*
* GPUComputationRenderer, based on SimulationRenderer by zz85
*
* The GPUComputationRenderer uses the concept of variables. These variables are RGBA float textures that hold 4 floats
* for each compute element (texel)
*
* Each variable has a fragment shad... | ChenJiaH/chenjiah.github.io | js/GPUComputationRenderer.js | JavaScript | mit | 10,733 |
package com.example.mesh;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
@Path("/")
@Cons... | Aldaviva/relay-mesh-example-java | src/main/java/com/example/mesh/EndpointControlResource.java | Java | mit | 4,452 |
<?php
namespace Screeenly\Screenshot;
/**
* Interface description.
*
* @author Stefan Zweifel
*/
interface ClientInterface
{
/**
* Method description.
*
* @author Stefan Zweifel
*
* @param type $parameter
*
* @return type
*/
public function build();
public fu... | imdanshraaj/screeenly | app/Screenshot/ClientInterface.php | PHP | mit | 362 |
// cpu/test/unique-strings.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// Copyright (C) 2015 Dietmar Kuehl http://www.dietmar-kuehl.de
//
// Permissi... | dietmarkuehl/cputube | cpu/test/unique-strings.cpp | C++ | mit | 10,438 |
/*
* Encog(tm) Core v3.1 - Java Version
* http://www.heatonresearch.com/encog/
* http://code.google.com/p/encog-java/
* Copyright 2008-2012 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | larhoy/SentimentProjectV2 | SentimentAnalysisV2/encog-core-3.1.0/src/main/java/org/encog/plugin/system/SystemTrainingPlugin.java | Java | mit | 7,358 |
/**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import './index.scss'
import React, { Component } from 'react'
// import { Grid, Col, Row } from 'react-bootstrap';
export default class IndexPage extends Component {
... | odoruinu/odoruinu.net-pug | pages/index.js | JavaScript | mit | 908 |
# coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | Azure/azure-sdk-for-python | sdk/storage/azure-storage-blob/tests/test_large_block_blob.py | Python | mit | 16,306 |
package controllers;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Date;
import models.Usuario;
import play.Play;
import play.mvc.*;
import play.data.validation.*;
import play.libs.*;
import play.utils.*;
public class Secure extends Controller {
@Before(unless={"log... | marti1125/Project_Store | app/controllers/Secure.java | Java | mit | 7,739 |
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from paste.models import Paste, Language
@csrf_exempt
def add(request):
print "jojo"
if request.method == 'POST':
language = request.POST['language']
content = r... | spezifanta/Paste-It | api/v01/views.py | Python | mit | 749 |
module Ahoy
module Stores
class ActiveRecordStore < BaseStore
def track_visit(options, &block)
visit =
visit_model.new do |v|
v.id = ahoy.visit_id
v.visitor_id = ahoy.visitor_id
v.user = user if v.respond_to?(:user=)
end
set_visit_pro... | littlebitselectronics/ahoy | lib/ahoy/stores/active_record_store.rb | Ruby | mit | 1,335 |
import {extend} from 'lodash';
export default class User {
/**
* The User class
* @class
* @param {Object} user
* @return {Object} A User
*/
constructor(user) {
extend(this, user);
console.log(this);
}
}
| mpaarating/sports-thing-web | client/app/users/models/user.js | JavaScript | mit | 236 |
using UnityEngine;
using System.Collections;
public class Intro : MonoBehaviour {
public GameObject martin;
public GameObject mrsStrump;
public GameObject strumpFire;
public Sprite sadMartin, slinkton, police, candles, houses, strumps;
public Camera cam;
// Use this for initialization
void Start () {
strum... | Bonfanti/Platformer | S Run Ronald Strump/Assets/scripts/Intro.cs | C# | mit | 2,199 |
module Parsers
module Edi
class IncomingTransaction
attr_reader :errors
def self.from_etf(etf, i_cache)
incoming_transaction = new(etf)
subscriber_policy_loop = etf.subscriber_loop.policy_loops.first
find_policy = FindPolicy.new(incoming_transaction)
policy = find_po... | dchbx/gluedb | app/models/parsers/edi/incoming_transaction.rb | Ruby | mit | 7,194 |
exports._buildExclamationKeyObject = function (tuples) {
var valueMap = {};
tuples.forEach(function (tuple) {
valueMap['!' + tuple.value0] = tuple.value1;
});
return valueMap;
};
var templatePattern = /\$\{([^}]+)\}/g;
exports._getTemplateVars = function (str) {
return (str.match(templatePattern) || []... | LiamGoodacre/purescript-template-strings | src/Data/TemplateString/TemplateString.js | JavaScript | mit | 397 |
/**
* @overview
* API handler action creator
* Takes a key-value -pair representing the event to handle as key and its respective
* handler function as the value.
*
* Event-to-URL mapping is done in {@link ApiEventPaths}.
*
* @since 0.2.0
* @version 0.3.0
*/
import { Seq, Map } from 'immutable';
import { ... | rensouhou/dockyard-app | app/actions/api-actions.js | JavaScript | mit | 1,532 |
// xParentN 2, Copyright 2005-2007 Olivier Spinelli
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xParentN(e, n)
{
while (e && n--) e = e.parentNode;
return e;
}
| sambaker/awe-core | test/x/lib/xparentn.js | JavaScript | mit | 230 |
<?php
/**
* @file include/zot.php
* @brief Hubzilla implementation of zot protocol.
*
* https://github.com/friendica/red/wiki/zot
* https://github.com/friendica/red/wiki/Zot---A-High-Level-Overview
*
*/
require_once('include/crypto.php');
require_once('include/items.php');
require_once('include/hubloc.php');
re... | HaakonME/hubzilla | include/zot.php | PHP | mit | 147,068 |
/**
*
*/
package org.edtoktay.dynamic.compiler;
/**
* @author deniz.toktay
*
*/
public interface ExampleInterface {
void addObject(String arg1, String arg2);
Object getObject(String arg1);
}
| edtoktay/DynamicCompiler | Example/src/main/java/org/edtoktay/dynamic/compiler/ExampleInterface.java | Java | mit | 200 |
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Navigator,
ScrollView,
ListView,
} from 'react-native'
import NavigationBar from 'react-native-navbar';
var REQUEST_URL = 'https://calm-garden-29993.herokuapp.com/index/groupsinfo/?';
class GroupDetails extends Component {
con... | adnanhemani/RideApp | App/GroupDetails.js | JavaScript | mit | 3,798 |
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
# Setup accessi... | stanislaw/cantango_editor | spec/dummy/app/models/user.rb | Ruby | mit | 460 |
process.stderr.write('Test'); | patrick-steele-idem/child-process-promise | test/fixtures/stderr.js | JavaScript | mit | 29 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wellspring.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| ushatil/wellness-tracker | ws/manage.py | Python | mit | 253 |
package org.squirrel;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.Timer;
import org.squirrel.managers.PrisonerControllor;
import org.squirrel.managers.input... | DemSquirrel/Prison-Survival | src/org/squirrel/Game.java | Java | mit | 1,974 |
(function () {
'use strict';
angular
.module('app')
.service('UploadUserLogoService', UploadUserLogoService);
function UploadUserLogoService($http, $log, TokenService, UserService, $rootScope) {
this.uploadImage = uploadImage;
////
/**
* Upload Image
... | royalrangers-ck/rr-web-app | app/utils/upload.user.logo/upload.user.logo.service.js | JavaScript | mit | 2,187 |
<?php
include 'vendor/autoload.php';
ini_set('error_reporting', E_ALL);
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
| mkosolofski/houseseats-monitor | phpunit_bootstrap.php | PHP | mit | 145 |
class Sprite(object):
def __init__(self, xPos, yPos):
self.x = xPos
self.y = yPos
self.th = 32
self.tw = 32
def checkCollision(self, otherSprite):
if (self.x < otherSprite.x + otherSprite.tw and otherSprite.x < self.x + self.tw
and self.y < otherSpri... | kantel/processingpy | sketches/Apple_Invaders/sprites.py | Python | mit | 2,805 |
<?php
/**
* This file is part of the Carrot framework.
*
* Copyright (c) 2011 Ricky Christie <seven.rchristie@gmail.com>.
*
* Licensed under the MIT License.
*
*/
/**
* Docs storage.
*
* Represents a documents storage and provides ways to access
* the documents inside the storage. This class reads folder... | rickchristie/carrot-old | library/Carrot/Docs/Storage.php | PHP | mit | 13,874 |
class CreateTeams < ActiveRecord::Migration
def self.up
create_table :teams do |t|
t.string :name
t.string :abbreviation
t.string :hometown
t.timestamps
end
end
def self.down
drop_table :teams
end
end
| wndxlori/wndx-multiselect | spec/rails2/app_root/db/migrate.notnow/001_create_teams.rb | Ruby | mit | 246 |
angular.module('tips.tips').controller('TipsController', ['$scope', '$routeParams', '$location', 'Global', 'Tips', function ($scope, $routeParams, $location, Global, Tips) {
$scope.global = Global;
$scope.createTip = function () {
var tips = new Tips({
text: this.text,
likes: th... | Arsey/tips-of-the-day | public/js/controllers/tips.js | JavaScript | mit | 2,505 |
package com.xeiam.xchange.cryptotrade.dto;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.data... | Achterhoeker/XChange | xchange-cryptotrade/src/main/java/com/xeiam/xchange/cryptotrade/dto/CryptoTradeOrderType.java | Java | mit | 1,150 |
module Mailplug
class Plugin::Example < Mailplug::Middleware
# Message Envelope Methods
def return_path
end
def recipients
end
def message # returns Mail::Message
end
# Hash of state and inter-stack data memo[classname][key]=value
def memo
end
# SMTP State Changes
... | afair/mailplug | lib/mailplug/plugin/example.rb | Ruby | mit | 969 |
import apiConfig from './MovieDBConfig';
import TmdbApi from 'moviedb-api';
var api = new TmdbApi({
consume: false,
apiKey: apiConfig.apiKey
});
const makeAndList = (list) => {
return list.map(item => item.value).join();
};
export const getGenres = (input='', callback) => {
api.request('/genre/movie/list', ... | arddor/MovieAdvisor | app/utils/api.js | JavaScript | mit | 2,618 |
const excludedTables = ["blacklist", "musicCache", "timedEvents"];
const statPoster = require("../../modules/statPoster.js");
module.exports = async guild => {
let tables = await r.tableList().run();
for(let table of tables) {
let indexes = await r.table(table).indexList().run();
if(~indexes.indexOf("guildID")) r... | minemidnight/oxyl | src/bot/listeners/on/guildDelete.js | JavaScript | mit | 1,331 |
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using IDI.Core.Common.Extensions;
namespace IDI.Core.Localization
{
public abstract class Package
{
public List<PackageItem> Items { get; private set; } = new List<PackageItem>();
public Package(string assemblyName, s... | idi-studio/com.idi.central.api | src/IDI.Core/Localization/Package.cs | C# | mit | 905 |
import { computed, get } from '@ember/object';
import { getOwner } from '@ember/application';
import { deprecate } from '@ember/debug';
export function ability(abilityName, resourceName) {
deprecate(
'Using ability() computed property is deprecated. Use getters and Can service directly.',
false,
{
... | minutebase/ember-can | addon/computed.js | JavaScript | mit | 721 |
/* global requirejs, require */
/*jslint node: true */
'use strict';
import Ember from 'ember';
import _keys from 'lodash/object/keys';
/*
This function looks through all files that have been loaded by Ember CLI and
finds the ones under /mirage/[factories, fixtures, scenarios, models]/, and exports
a hash cont... | ballPointPenguin/ember-cli-mirage | addon/utils/read-modules.js | JavaScript | mit | 1,627 |
<?php
/**
* @author tshirtecommerce - www.tshirtecommerce.com
* @date: 2015-01-10
*
* @copyright Copyright (C) 2015 tshirtecommerce.com. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*
*/
if ( ! defined('BASEPATH')) exit('No direct script access allowed'... | Nnamso/tbox | application/modules/m_product/views/admin/setting.php | PHP | mit | 11,129 |
package com.github.aureliano.evtbridge.output.file;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.Set;
import org.junit.Test;
import com.github.aureliano.evtbridge.annota... | aureliano/da-mihi-logs | evt-bridge-output/file-output/src/test/java/com/github/aureliano/evtbridge/output/file/FileOutputConfigTest.java | Java | mit | 2,450 |
// THIS CODE IS MACHINE-GENERATED, DO NOT EDIT!
package fallk.jfunktion;
/**
* Represents a predicate (boolean-valued function) of a {@code float}-valued and a generic argument.
* This is the primitive type specialization of
* {@link java.util.function.BiPredicate} for {@code float}/{@code char}.
*
* @see java.u... | fallk/JFunktion | src/main/java/fallk/jfunktion/FloatObjectPredicate.java | Java | mit | 715 |
console.log("VS: loading content_script.js..." + new Date());
// Check if the communication between page and background.js has broken.
var last_message_time = new Date().getTime();
new Promise((resolve) => setTimeout(resolve, 1000000)).then(() => {
var now = new Date().getTime();
if (now - last_message_time >... | redisliu/chrome-extensions | vivintsolar-monitor/content_script.js | JavaScript | mit | 5,501 |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Books extends Model
{
protected $table = 'books';
protected $fillable = [
'guid',
'author',
'title',
'description',
'abstract',
'edition',
'publish_date',
'status'];
}
| krsrk/laravel-5.3-web-app | app/Models/Books.php | PHP | mit | 319 |
namespace gView.Plugins.DbTools.Relates
{
partial class TableRelationsDialog
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
... | jugstalt/gViewGisOS | gView.Plugins.DbTools/Plugins/DbTools/Relates/TableRelationsDialog.Designer.cs | C# | mit | 5,681 |
<?php
/*
* This file is part of the Schemer package.
*
* Copyright © 2013 Erin Millard
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eloquent\Schemer\Constraint;
interface SchemaInterface extends ConstraintInterface
... | eloquent/schemer | src/Eloquent/Schemer/Constraint/SchemaInterface.php | PHP | mit | 325 |
namespace QuanLySinhVien_GUI
{
partial class frmtimkiemdiemsinhvientheomasv
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
//... | F4Team-DHCN1A/QLSV | QuanLySinhVien_MaNguonMo/QuanLySinhVien_GUI/frmtimkiemdiemsinhvientheomasv.Designer.cs | C# | mit | 6,855 |
## Your Names
# 1) Michael Yao
# 2) Benjamin Heidebrink
# We spent [1.25] hours on this challenge.
# Bakery Serving Size portion calculator.
def serving_size_calc(item_to_make, num_of_ingredients)
library = {"cookie" => 1, "cake" => 5, "pie" => 7}
raise ArgumentError.new("#{item_to_make} is not a valid inpu... | MichaelYao88/phase-0 | week-6/gps.rb | Ruby | mit | 1,806 |
module PalmTasksHelper
end
| wizardbeard/agency-iq | app/helpers/palm_tasks_helper.rb | Ruby | mit | 27 |
import 'css.escape'
import { createFootnote, FootnoteElements } from './footnote'
import { bindScrollHandler } from './scroll'
import { Adapter } from '../core'
import { addClass, removeClass, unmount } from './element'
export const CLASS_CONTENT = 'littlefoot__content'
export const CLASS_WRAPPER = 'littlefoot__wrappe... | goblindegook/littlefoot | src/dom/document.ts | TypeScript | mit | 7,139 |
require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__)))
describe 'response.cache_control' do
it 'sets the Cache-Control header' do
app(:caching) do |r|
response.cache_control :public=>true, :no_cache=>true, :max_age => 60
end
header('Cache-Control').split(', ').sort.should == ... | janko-m/roda | spec/plugin/caching_spec.rb | Ruby | mit | 10,994 |
class RemoveOdTokenFromUsers < ActiveRecord::Migration
def change
remove_column :users, :od_token
end
end
| jphager2/john-hager-info | db/migrate/20160627182212_remove_od_token_from_users.rb | Ruby | mit | 114 |
(function() {
angular.module('starter.controllers').controller('DetailController', DetailController);
DetailController.$inject = ['CarService', '$stateParams'];
function DetailController (CarService, $stateParams) {
var vm = this;
CarService.getCar($stateParams.id).$promise.then(function(data) {
... | jyen/corporate-challenge | mobile/www/app/car/detail/detail.controller.js | JavaScript | mit | 401 |
<?php declare(strict_types=1);
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Depende... | composer/composer | src/Composer/DependencyResolver/RuleSetGenerator.php | PHP | mit | 13,501 |
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.DepthPassPlugin = function () {
this.enabled = false;
this.renderTarget = null;
var _gl,
_renderer,
_lights, _webglObjects, _webglObjectsImmediate,
_depthMaterial, _depthMaterialMorph, _depthMaterialSkin, _depthMaterialMorphSkin,
_frustum = new TH... | BenediktS/three.js | examples/js/renderers/plugins/DepthPassPlugin.js | JavaScript | mit | 5,549 |
import path from 'path'
let { context, file, mocha, options } = module.parent.context
let { it } = context
context.it = function (name, callback) {
if (callback) {
return it(...arguments);
} else {
callback = name
name = path.basename(file, '.js')
}
}
| Capt-Slow/wdio-mocha-framework | test/fixtures/tests.options.compilers.js | JavaScript | mit | 264 |
/**
* @copyright Copyright (C) DocuSign, Inc. All rights reserved.
*
* This source code is intended only as a supplement to DocuSign SDK
* and/or on-line documentation.
*
* This sample is designed to demonstrate DocuSign features and is not intended
* for production use. Code and policy for a production applic... | docusign/docusign-soap-sdk | Java/DocuSignSample/src/net/docusign/sample/GetStatusAndDocs.java | Java | mit | 8,102 |
#
# MIT License
#
# Copyright (c) 2016 Paul Taylor
#
# 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... | ptaylor/ppool | lib/basic_process_controller.rb | Ruby | mit | 2,168 |