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 Libreame\BackendBundle\Helpers; use Libreame\BackendBundle\Controller\AccesoController; use Libreame\BackendBundle\Repository\ManejoDataRepository; use Libreame\BackendBundle\Entity\LbIdiomas; use Libreame\BackendBundle\Entity\LbUsuarios; use Libreame\BackendBundle\Entity\LbEjemplares; use Libreame...
BaisicaSAS/LibreameBE
src/Libreame/BackendBundle/Helpers/GestionEjemplares.php
PHP
mit
38,081
/** * marked - a markdown parser * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked */ ;(function() { /** * Block-Level Grammar */ var block = { newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: noop, hr: /^( *[-*_]){3,} *(?:\n+|$)/, heading: /^ *(#{1,6}...
jhelbig/postman-linux-app
app/resources/app/node_modules/8fold-marked/lib/marked.js
JavaScript
mit
29,680
import React from "react"; import { Message } from "semantic-ui-react"; import Bracket from "./Bracket"; import "./index.scss"; import parseStats from './parseStats'; export default class Brackets extends React.PureComponent { constructor(props) { super(props); this.state = { data: this.updateStats(p...
socialgorithm/ultimate-ttt-web
src/components/Lobby/Tournament/types/Brackets/index.js
JavaScript
mit
1,151
define([ 'backbone', 'metro', 'util' ], function(Backbone, Metro, Util) { var MotivationBtnView = Backbone.View.extend({ className: 'motivation-btn-view menu-btn', events: { 'click': 'toggle', 'mouseover': 'over', 'mouseout': 'out', }, initialize: function(){ //ensure correct scope _....
AjaxJackjia/TGA
WebContent/module/view/tools/MotivationBtnView.js
JavaScript
mit
4,112
<?php /** * Switch shortcode * * @category TacticalWP-Theme * @package TacticalWP * @author Tyler Kemme <dev@tylerkemme.com> * @license MIT https://opensource.org/licenses/MIT * @version 1.0.4 * @link https://github.com/tpkemme/tacticalwp-theme * @since 1.0.0 */ /** * Outputs an switch when the [twp-switc...
tpkemme/tacticalwp-theme
library/shortcode/switch.php
PHP
mit
1,075
import pandas as pd import os import time from datetime import datetime import re from time import mktime import matplotlib import matplotlib.pyplot as plt from matplotlib import style style.use("dark_background") # path = "X:/Backups/intraQuarter" # for Windows with X files :) # if git clone'ed then use relative path...
PythonProgramming/Support-Vector-Machines---Basics-and-Fundamental-Investing-Project
p10.py
Python
mit
4,949
/* * App Actions * * Actions change things in your application * Since this boilerplate uses a uni-directional data flow, specifically redux, * we have these actions which are the only way your application interacts with * your application state. This guarantees that your state is up to date and nobody * messes ...
madHEYsia/Muzk
app/containers/App/actions.js
JavaScript
mit
1,581
package cmd import ( "errors" "github.com/cretz/go-safeclient/client" "github.com/spf13/cobra" "log" "os" ) var lsShared bool var lsCmd = &cobra.Command{ Use: "ls [dir]", Short: "Fetch directory information", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return errors.New("...
cretz/go-safeclient
cmd/ls.go
GO
mit
804
const simple_sort = (key, a, b) => { if (a[key] < b[key]) return -1 if (a[key] > b[key]) return 1 return 0 } const name_sort = (a, b) => simple_sort('name', a, b) const skill_sort = (a, b) => simple_sort('skill', a, b) const speed_sort = (a, b) => simple_sort('speed', a, b) export { simple_sort, name_sort, ...
stevegood/tython
util/sorting.js
JavaScript
mit
348
export { default } from './EditData';
caspg/datamaps.co
src/pages/Editor/pages/MapEditor/pages/EditData/index.js
JavaScript
mit
38
<?php /* Section: signup Language: Hungarian Translator: uno20001 <regisztralo111@gmail.com> */ $translations = array( 'h1' => 'Regisztráció', 'mysql-db-name' => 'MySQL adatbázis név', 'mysql-user-name' => 'MySQL felhasználónév', 'mysql-user-password' => 'MySQL jelszó', 'mysql-user-password-ver...
mpopp75/db4free-net-l10n
hu/signup.php
PHP
mit
3,111
// ========================================================================== // DG.ScatterPlotModel // // Author: William Finzer // // Copyright (c) 2014 by The Concord Consortium, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may no...
concord-consortium/codap
apps/dg/components/graph/plots/scatter_plot_model.js
JavaScript
mit
31,775
const Koa = require('koa') const screenshot = require('./screenshot') const app = new Koa() app.use(async ctx => { var url = ctx.query.url console.log('goto:', url) if (!/^https?:\/\/.+/.test(url)) { ctx.body = 'url 不合法' } else { if (!isNaN(ctx.query.wait)) { ctx.query.wait = ~~ctx.query.wait ...
lwdgit/chrome-automator
examples/screenshot/index.js
JavaScript
mit
710
require "administrate/field/base" class EnumField < Administrate::Field::Base def to_s data end end
MontrealNewTech/website
app/fields/enum_field.rb
Ruby
mit
109
require('./loader.jsx');
arjunmehta/react-frontend-template
src/index.js
JavaScript
mit
25
from __future__ import absolute_import from .base import WhiteNoise __version__ = '2.0.3' __all__ = ['WhiteNoise']
KnockSoftware/whitenoise
whitenoise/__init__.py
Python
mit
118
game.PlayerEntity = me.Entity.extend ({ //builds the player class init: function(x, y, settings){ this.setSuper(x, y); this.setPlayerTimer(); this.setAttributes(); this.type="PlayerEntity"; this.setFlags(); me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH); //locks camera on the character thi...
romulus1/FinalAwesomauts
js/entities/entities.js
JavaScript
mit
8,421
package uk.gov.dvsa.ui.pages.vehicleinformation; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import uk.gov.dvsa.domain.model.vehicle.Make; import uk.gov.dvsa.domain.navigation.PageNavigator; import uk.gov.dvsa.framework.config.webdriver.MotAppDrive...
dvsa/mot
mot-selenium/src/main/java/uk/gov/dvsa/ui/pages/vehicleinformation/VehicleMakePage.java
Java
mit
1,635
<?php namespace Tecnokey\ShopBundle\Controller\Frontend\User; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Tecnokey\S...
mqmtech/Tecnokey
src/Tecnokey/ShopBundle/Controller/Frontend/User/OrderController.php
PHP
mit
6,501
import {Component, ViewChild} from '@angular/core'; import { Platform, MenuController, NavController} from 'ionic-angular'; import { StatusBar } from '@ionic-native/status-bar'; import { SplashScreen } from '@ionic-native/splash-screen'; import { HomeComponent } from './pages/home-page/home.component'; import {CityLis...
zhuzhiqiang/tianyingqing
src/app/app.component.ts
TypeScript
mit
1,412
import { Log } from './log'; //import Url = require('./url'); import { Url } from './url'; import { HashString } from './lib'; /** * Делаем HTTP (Ajax) запрос. * * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(...
96467840/AspNetCore
src/AspNetCore/PublishOutput/wwwroot/lib/unobtrusive-typescript/dist/utils/ajax.ts
TypeScript
mit
1,767
<div class="all_levels_area_of_interest @if($from == "account") account_listing_skills @endif"> @if(count($firstBox_areaOfInterest) > 0) <div class="hierarchy_parent"> <select name="title" id="area_of_interest_firstbox" class="first_level hierarchy" size="5" data-number="1"> @for...
javulorg/javul
resources/views/admin/partials/area_of_interest_browse.blade.php
PHP
mit
1,334
# frozen_string_literal: true describe ContactController, type: :controller do include AuthHelper let!(:ada) { create(:published_profile, email: "ada@mail.org", main_topic_en: 'math') } describe 'create action' do it 'when profile active' do get :create, params: { id: ada.id, message: { name: "Maxi"}...
rubymonsters/speakerinnen_liste
spec/controllers/contact_controller_spec.rb
Ruby
mit
1,042
package tsmt import ( "encoding/xml" "github.com/fgrid/iso20022" ) type Document01800105 struct { XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:tsmt.018.001.05 Document"` Message *FullPushThroughReportV05 `xml:"FullPushThrghRpt"` } func (d *Document01800105) AddMessage() *FullPushThroug...
fgrid/iso20022
tsmt/FullPushThroughReportV05.go
GO
mit
5,855
namespace Kondor.Data.Migrations { using System; using System.Data.Entity.Migrations; public partial class ExampleChangedEntityChanged : DbMigration { public override void Up() { AddColumn("dbo.Cards", "RowStatus", c => c.Int(nullable: false)); AddColumn("dbo...
odises/kondor
src/Kondor.Data/Migrations/201610060535379_ExampleChangedEntityChanged.cs
C#
mit
1,810
# frozen_string_literal: true class Dummy::Ui::CardListCell < ApplicationCell def show render if model.present? end end
sinfin/folio
test/dummy/app/cells/dummy/ui/card_list_cell.rb
Ruby
mit
129
# frozen_string_literal: true # :nocov: class UniqueJobWithoutUniqueArgsParameter include Sidekiq::Worker sidekiq_options backtrace: true, lock: :until_executed, queue: :customqueue, retry: true, lock_args_method: :unique_args def perform(...
mhenrixon/sidekiq-unique-jobs
spec/support/workers/unique_job_without_unique_args_parameter.rb
Ruby
mit
450
import struct ''' Refer to docs for all the exact formats. There are many so check them out before converting things yourself ''' ''' If there's a specific offset you want to do things from, use pack_into and unack_into from the docs ''' #Integer to string i1= 1234 print "Int to string as 8 byte little endian", repr(...
arvinddoraiswamy/LearnPython
17.py
Python
mit
867
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module MobileCenterApi module Models # # Model object. # # class Event # @return [String] attr_accessor :id ...
ewgenius/fastlane-plugin-mobile_center
lib/generated/mobile_center_api/models/event.rb
Ruby
mit
2,868
import Helper from '@ember/component/helper'; import { inject as service } from '@ember/service'; import { get } from '@ember/object'; export default class MediaHelper extends Helper { @service() media; constructor() { super(...arguments); this.media.on('mediaChanged', () => { this.recompute(); ...
freshbooks/ember-responsive
addon/helpers/media.js
JavaScript
mit
395
Enum = { BarDrawDirect: { Horizontal: "Horizontal", Vertical: "Vertical" }, PowerType: { MP: 0, Angery: 1 }, EffectType: { StateChange: "StateChange", HpChange: "HpChange", Timing: "Timing", Control: "Control" }, EffectControlT...
mt830813/code
Project/HTML5Test/Test1/Scripts/Customer/Setting/Enum.js
JavaScript
mit
1,263
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2013 The PPCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "checkpoints.h" #include...
Magicking/neucoin
src/main.cpp
C++
mit
146,265
'use strict'; console.log('TESTTTT'); var mean = require('meanio'); exports.render = function (req, res) { function isAdmin() { return req.user && req.user.roles.indexOf('admin') !== -1; } // Send some basic starting info to the view res.render('index', { user: req.user ? { ...
mottihoresh/nodarium-web
packages/custom/nodarium/server/controllers/index.js
JavaScript
mit
627
/* concatenated from client/src/app/js/globals.js */ (function () { if (!window.console) { window.console = {}; } var m = [ "log", "info", "warn", "error", "debug", "trace", "dir", "group", "groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd", "dirxml", "assert", "count", "mar...
nbarrett/ekwg
dist/app/js/ekwg.js
JavaScript
mit
405,222
angular.module('MEANcraftApp', ['ngRoute', 'MEANcraftApp.login', 'MEANcraftApp.overview', 'btford.socket-io'/*,'socket-io', 'flow'*/]) .config(function ($httpProvider, $routeProvider) { $httpProvider.interceptors.push('TokenInterceptor'); $routeProvider .when('/login', { templateUrl: '...
frotunato/MEANcraft
client/app/app.js
JavaScript
mit
1,953
var GridLayout = require("ui/layouts/grid-layout").GridLayout; var ListView = require("ui/list-view").ListView; var StackLayout = require("ui/layouts/stack-layout").StackLayout; var Image = require("ui/image").Image; var Label = require("ui/label").Label; var ScrapbookList = (function (_super) { global.__e...
mikebranstein/NativeScriptInAction
AppendixB/PetScrapbook/app/views/shared/scrapbook-list/scrapbook-list.js
JavaScript
mit
3,048
<?php /** * @package toolkit */ /** * The Datasource class provides functionality to mainly process any parameters * that the fields will use in filters find the relevant Entries and return these Entries * data as XML so that XSLT can be applied on it to create your website. In Symphony, * there are four Datasou...
jdsimcoe/symphony-boilerplate
symphony/lib/toolkit/class.datasource.php
PHP
mit
19,238
#include <cstdio> #include <cstring> #include <cmath> #include <algorithm> using namespace std; const double EPS = 1e-9; inline char DBLCMP(double d) { if (fabs(d) < EPS) return 0; return d>0 ? 1 : -1; } struct spoint { double x, y, z; spoint() {} spoint(double xx, double yy, double zz): x(xx), y(yy), z(zz) {} ...
jffifa/algo-solution
ural/1093.cpp
C++
mit
2,211
<?php /** * Examples of ShareCouners usage * @author Dominik Bułaj <dominik@bulaj.com> */ include '../src/SharesCounter.php'; include '../src/Networks.php'; include '../src/Exception.php'; $url = 'http://www.huffingtonpost.com'; // 1. return shares from Facebook and Twitter $shares = new \SharesCounter\SharesCount...
dominikbulaj/shares-counter-php
examples/index.php
PHP
mit
1,282
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCharactersLangTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Create the characters_lang table Schema::create('characters_lang', function($table) ...
Truemedia/regeneration-character
src/database/migrations/2015_05_16_174527_create_characters_lang_table.php
PHP
mit
981
import React, {Component} from 'react'; import {Typeahead} from 'react-bootstrap-typeahead'; import {inject, observer} from 'mobx-react'; import {action, toJS, autorunAsync} from 'mobx'; import myClient from '../agents/client' require('react-bootstrap-typeahead/css/ClearButton.css'); require('react-bootstrap-typeahead...
haniotak/oscars-frontend
src/main/js/components/eroTypeahead.js
JavaScript
mit
3,673
'use strict'; var convert = require('./convert'), func = convert('lt', require('../lt')); func.placeholder = require('./placeholder'); module.exports = func; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL2x0LmpzIl0sIm5hbWVzIjpbXSwibW...
justin-lai/hackd.in
compiled/client/lib/lodash/fp/lt.js
JavaScript
mit
778
<?php /** * UserAccount * * This class has been auto-generated by the Doctrine ORM Framework * * @package blueprint * @subpackage model * @author Your name here * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ class UserAccount extends BaseUserAccount { }
zenkovnick/pfr
lib/model/doctrine/UserAccount.class.php
PHP
mit
299
<?php use PDFfiller\OAuth2\Client\Provider\Token; $provider = require_once __DIR__ . '/../bootstrap/initWithFabric.php'; $e = Token::one($provider, 3329); dd($e);
pdffiller/pdffiller-php-api-client
examples/token/3_get_token.php
PHP
mit
164
package sql.fredy.sqltools; /** XLSExport exports the result of a query into a XLS-file. To do this it is using HSSF from the Apache POI Project: http://jakarta.apache.org/poi Version 1.0 Date 7. aug. 2003 Author Fredy Fischer XLSExport is part of the Admin-Suite Once instantiated there are the ...
hulmen/SQLAdmin
src/fredy/sqltools/XLSExport.java
Java
mit
23,048
# -*- coding: utf-8 -*- # Copyright (c) 2016 Jérémie DECOCK (http://www.jdhp.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 right...
jeremiedecock/tictactoe-py
jdhp/tictactoe/player/greedy.py
Python
mit
1,951
/* * Copyright (c) 2015. Vin @ vinexs.com (MIT License) * * 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, co...
vinexs/extend-enhance-base
eeb-core/src/main/java/com/vinexs/view/ScalableLinearLayout.java
Java
mit
3,281
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("Do...
alphaCoder/DollarTracker
DollarTracker.Net/DollarTracker.Core/Properties/AssemblyInfo.cs
C#
mit
1,412
__author__ = 'besta' class BestaPlayer: def __init__(self, fichier, player): self.fichier = fichier self.grille = self.getFirstGrid() self.best_hit = 0 self.players = player def getFirstGrid(self): """ Implements function to get the first grid. :retur...
KeserOner/puissance4
bestaplayer.py
Python
mit
9,518
# Game Over screen. class GameOver def initialize(game) end def udpate end def draw end end
PhilCK/mermaid-game
game_over.rb
Ruby
mit
102
PP.lib.shader.shaders.color = { info: { name: 'color adjustement', author: 'Evan Wallace', link: 'https://github.com/evanw/glfx.js' }, uniforms: { textureIn: { type: "...
rdad/PP.js
src/lib/Shader.color.js
JavaScript
mit
20,938
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'save', 'de-ch', { toolbar: 'Speichern' } );
waxe/waxe.xml
waxe/xml/static/ckeditor/plugins/save/lang/de-ch.js
JavaScript
mit
225
// // The MIT License(MIT) // // Copyright(c) 2014 Demonsaw LLC // // 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, c...
demonsaw/Code
ds3/3_core/command/socket_command.cpp
C++
mit
2,225
// Specifically test buffer module regression. import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer, transcode, TranscodeEncoding, constants, kMaxLength, kStringMaxLength, Blob, } from 'buffer'; const utf8Buffer = new Buffer('test'); const base64Buffer = new Buffer('', 'b...
georgemarshall/DefinitelyTyped
types/node/test/buffer.ts
TypeScript
mit
8,030
/* * Copyright (c) 2016-2017 Mozilla Foundation * * 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, me...
tripu/validator
src/nu/validator/xml/UseCountingXMLReaderWrapper.java
Java
mit
22,613
"use strict"; var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Ob...
FreeAllMedia/dovima
es5/spec/model/toString.spec.js
JavaScript
mit
4,683
namespace FTJFundChoice.OrionClient.Models.Enums { public enum HowIsAdvRegistered { Unknown = 0, SECRegistered = 1, StateRegistered = 2, Unregistered = 3, Other = 4 } }
FTJFundChoice/OrionClient
FTJFundChoice.OrionClient/Models/Enums/HowIsAdvRegistered.cs
C#
mit
220
<?php //Announce.php namespace litepubl\post; use litepubl\view\Lang; use litepubl\view\Schema; use litepubl\view\Vars; /** * Post announces * * @property-write callable $before * @property-write callable $after * @property-write callable $onHead * @method array before(array $params) * @method ...
litepubl/cms
lib/post/kernel.php
PHP
mit
69,969
#ifndef GLMESH_H #define GLMESH_H #include <GLplus.hpp> namespace tinyobj { struct shape_t; } // end namespace tinyobj namespace GLmesh { class StaticMesh { std::shared_ptr<GLplus::Buffer> mpPositions; std::shared_ptr<GLplus::Buffer> mpTexcoords; std::shared_ptr<GLplus::Buffer> mpNormals; std::s...
nguillemot/LD48-Beneath-The-Surface
GLmesh/include/GLmesh.hpp
C++
mit
605
<?php namespace spec\Welp\MailchimpBundle\Event; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class WebhookEventSpec extends ObjectBehavior { function let($data = ['test' => 0, 'data' => 154158]) { $this->beConstructedWith($data); } function it_is_initializable() { $this->s...
welpdev/mailchimp-bundle
spec/Event/WebhookEventSpec.php
PHP
mit
552
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. require 'rubygems' require 'rails/commands/server' =begin module Rails class Server alias :default_options_bk :default_options def default_options default_options_bk.merge!(Ho...
xiaominghe2014/AccountsSys
config/boot.rb
Ruby
mit
365
<!DOCTYPE html> <html lang="en"> <head> <?php include "htmlheader.php" ?> <title>The War of 1812</title> </head> <body> <?php include "pageheader.php"; ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <header class="intro-header" style="background-i...
roll11tide/europeanwar
1812.html.php
PHP
mit
3,908
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
frogocomics/SpongeAPI
src/main/java/org/spongepowered/api/data/types/InstrumentType.java
Java
mit
1,532
import React, { PropTypes } from 'react'; class Link extends React.Component { render() { return <article key={this.props.item.id} className="List-Item"> <header className="List-Item-Header"> <cite className="List-Item-Title"><a href={this.props.item.href}>{this.props.item.title}</a></cite> <...
Shroder/essential-javascript-links
src/modules/List/components/Link/index.js
JavaScript
mit
484
load File.expand_path("../target.rb", __FILE__) module ActiveRecord::Magic class Param::Server < Param::Target def default_options { online:nil, wildcard:false, autocomplete:true, current_server:false, current_channel:false, users:false, channels:false, servers:true, amb...
gizmore/ricer4
lib/ricer4/core/params/server.rb
Ruby
mit
358
import Vue from 'vue'; import merge from 'element-ui/src/utils/merge'; import PopupManager from 'element-ui/src/utils/popup/popup-manager'; import getScrollBarWidth from '../scrollbar-width'; let idSeed = 1; const transitions = []; const hookTransition = (transition) => { if (transitions.indexOf(transition) !== -1)...
JavascriptTips/element
src/utils/popup/index.js
JavaScript
mit
6,321
package edu.gatech.oad.antlab.pkg1; import edu.cs2335.antlab.pkg3.*; import edu.gatech.oad.antlab.person.*; import edu.gatech.oad.antlab.pkg2.*; /** * CS2335 Ant Lab * * Prints out a simple message gathered from all of the other classes * in the package structure */ public class AntLabMain { ...
PranovD/CS2340
M2/src/main/java/edu/gatech/oad/antlab/pkg1/AntLabMain.java
Java
mit
2,551
package net.alloyggp.tournament.internal.admin; import net.alloyggp.escaperope.Delimiters; import net.alloyggp.escaperope.RopeDelimiter; import net.alloyggp.escaperope.rope.Rope; import net.alloyggp.escaperope.rope.ropify.SubclassWeaver; import net.alloyggp.escaperope.rope.ropify.Weaver; import net.alloyggp.tournament...
AlexLandau/ggp-tournament
src/main/java/net/alloyggp/tournament/internal/admin/InternalAdminActions.java
Java
mit
1,179
<div id="content-alerts"> <table id="conten-2" border="1px"> <tbody> <?php echo $sidemenu ?> <tr> <td style="vertical-align: top;"> <div style="padding: 5px 5px 5px 5px"> <table border="1" cellspacing="1px"> <tr style="b...
thaingochieu/atmphp
fuel/app/views/hoatdong/summary/atmerror.php
PHP
mit
1,690
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About TelcoCoin</source> <translation>O TelcoCoin-u</translation> </me...
telcocoin-project/telcocoin
src/qt/locale/bitcoin_hr.ts
TypeScript
mit
107,245
<?php namespace BungieNetPlatform\Exceptions\Platform; use BungieNetPlatform\Exceptions\PlatformException; /** * DestinyStatsParameterMembershipIdParseError */ class DestinyStatsParameterMembershipIdParseErrorException extends PlatformException { public function __construct($message, $code = 1608, \Ex...
dazarobbo/BungieNetPlatform
src/Exceptions/Platform/DestinyStatsParameterMembershipIdParseErrorException.php
PHP
mit
410
$LOAD_PATH.unshift File.expand_path('../lib') require 'rspec' RSpec.configure do |conf| conf.color = true conf.formatter = 'documentation' conf.order = 'random' end
timuruski/press_any_key
spec/spec_helper.rb
Ruby
mit
173
var eejs = require('ep_etherpad-lite/node/eejs') /* * Handle incoming delete requests from clients */ exports.handleMessage = function(hook_name, context, callback){ var Pad = require('ep_etherpad-lite/node/db/Pad.js').Pad // Firstly ignore any request that aren't about chat var isDeleteRequest = false; if(co...
marcelklehr/ep_push2delete
index.js
JavaScript
mit
1,374
using Microsoft.Xna.Framework; using System; namespace Gem.Gui.Animations { public static class Time { public static Animation<double> Elapsed { get { return Animation.Create(context => context.TotalMilliseconds); } } public static Animation<TTime> Constant<TTime>(...
gmich/Gem
Gem.Gui/Animations/Time.cs
C#
mit
610
version https://git-lfs.github.com/spec/v1 oid sha256:355954a2b585f8b34c53b8bea9346fabde06b161ec86b87e9b829bea4acb87e9 size 108190
yogeshsaroya/new-cdnjs
ajax/libs/materialize/0.95.0/js/materialize.min.js
JavaScript
mit
131
using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Components { [RegisterComponent] public sealed class TriggerOnSignalReceivedComponent : Component { } }
space-wizards/space-station-14
Content.Server/MachineLinking/Components/TriggerOnSignalReceivedComponent.cs
C#
mit
197
module Softlayer module Container module Dns autoload :Domain, 'softlayer/container/dns/domain' end end end
zertico/softlayer
lib/softlayer/container/dns.rb
Ruby
mit
126
<aside class="main-sidebar"> <section class="sidebar"> <div class="user-panel"> <div class="pull-left image"> <img src="<?php echo base_url() ?>assets/img/user2-160x160.jpg" class="img-circle" alt="User Image"> </div> <div class="pull-left info"> ...
codenous/intranet_planEvalWeb
application/views/template/sidebar.php
PHP
mit
5,929
package com.agileEAP.workflow.definition; /** 活动类型 */ public enum ActivityType { /** 开始活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("开始活动")] StartActivity(1), /** 人工活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not co...
AgileEAP/aglieEAP
agileEAP-workflow/src/main/java/com/agileEAP/workflow/definition/ActivityType.java
Java
mit
1,812
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0"> <defaumlcodec>UTF-8</defaumlcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Menlocoin</source> <translation>Про Menlocoin</translation> </me...
iLoftis/Menlo-Coin
src/qt/locale/bitcoin_uk.ts
TypeScript
mit
123,486
package com.asayama.rps.simulator; public enum Hand { ROCK, PAPER, SCISSORS; }
kyoken74/rock-paper-scissors
src/main/java/com/asayama/rps/simulator/Hand.java
Java
mit
83
package foodtruck.linxup; import java.util.List; import com.google.common.base.MoreObjects; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import org.joda.time.DateTime; import foodtruck.model.Location; /** * @author aviolette * @since 11/1/16 */ public class Trip { pr...
aviolette/foodtrucklocator
main/src/main/java/foodtruck/linxup/Trip.java
Java
mit
3,020
/** * Copyright (c) 2015, Alexander Orzechowski. * * 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, ...
Need4Speed402/tessellator
src/textures/TextureDummy.js
JavaScript
mit
1,646
#include "Extensions.hpp" #include "Extensions.inl" #include <Math/Rect.hpp> #include <Math/Vector.hpp> #include <Script/ScriptExtensions.hpp> #include <SFML/Graphics/CircleShape.hpp> #include <angelscript.h> #include <cassert> namespace { void create_CircleShape(void* memory) { new(memory)sf::Circl...
ace13/LD31
Source/Script/SFML/CircleShape.cpp
C++
mit
1,833
'use strict'; module.exports = function(sequelize, DataTypes) { var Student = sequelize.define('Student', { name: DataTypes.STRING, timeReq: DataTypes.INTEGER, }, { classMethods: { associate: function() { } } }); return Student; };
troops2devs/minutes
models/student.js
JavaScript
mit
268
module Culqi VERSION = '1.2.8' end
augustosamame/culqiruby
lib/culqi/version.rb
Ruby
mit
37
#include <CImageLibI.h> #include <CImageColorDefP.h> #include <cstring> bool CImageColorDef:: getRGB(const std::string &name, double *r, double *g, double *b) { int ri, gi, bi; if (! getRGBI(name, &ri, &gi, &bi)) return false; double rgb_scale = 1.0/255.0; *r = ri*rgb_scale; *g = gi*rgb_scale; *b =...
colinw7/CImageLib
src/CImageColorDef.cpp
C++
mit
801
const {xObjectForm} = require('./xObjectForm'); exports._getPathOptions = function _getPathOptions(options = {}, originX, originY) { this.current = this.current || {}; const colorspace = options.colorspace || this.options.colorspace; const colorName = options.colorName; const pathOptions = { o...
chunyenHuang/hummusRecipe
lib/vector.helper.js
JavaScript
mit
7,549
<?php namespace WebEd\Base\ThemesManagement\Actions; use WebEd\Base\Actions\AbstractAction; class EnableThemeAction extends AbstractAction { /** * @param $alias * @return array */ public function run($alias) { do_action(WEBED_THEME_BEFORE_ENABLE, $alias); $theme = get_theme...
sgsoft-studio/themes-management
src/Actions/EnableThemeAction.php
PHP
mit
971
// Copyright 2014 The Gogs 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 models import ( "bufio" "bytes" "fmt" "html" "html/template" "io" "io/ioutil" "os" "os/exec" "strings" "github.com/Unknwon/com" "github....
svcavallar/gogs
models/git_diff.go
GO
mit
10,244
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Admin::PreferencesController do dataset :users it "should allow you to view your preferences" do user = login_as(:non_admin) get :edit response.should be_success assigned_user = assigns(:user) assigned_user.shou...
dosire/dosire
spec/controllers/admin/preferences_controller_spec.rb
Ruby
mit
1,463
using System; using Pulse.FS; namespace Pulse.UI { public sealed class UiWpdLeafsAccessor : IUiLeafsAccessor { private readonly WpdArchiveListing _listing; private readonly WpdEntry[] _leafs; private readonly bool? _conversion; public UiNodeType Type { get ...
kidaa/Pulse
Pulse.UI/Windows/Main/Dockables/GameFileCommander/UiTree/Accessors/UiWpdLeafsAccessor.cs
C#
mit
1,061
import * as React from 'react'; import { DocumentCard } from './DocumentCard'; import { DocumentCardTitle } from './DocumentCardTitle'; import { DocumentCardPreview } from './DocumentCardPreview'; import { DocumentCardLocation } from './DocumentCardLocation'; import { DocumentCardActivity } from './DocumentCardActivity...
SpatialMap/SpatialMapDev
node_modules/office-ui-fabric-react/src/components/DocumentCard/DocumentCard.Props.ts
TypeScript
mit
5,213
// // Created by paysonl on 16-10-20. // #include <vector> using std::vector; #include <iostream> #include <cassert> int min3(int a, int b, int c); int minSubSum(const vector<int>& a); int minSubRec(const vector<int>& a, int left, int right); int main() { vector<int> v{-2, -1, -2, 3, -4}; assert(minSubSum(...
frostRed/Exercises
DS_a_Algo_in_CPP/ch2/2-17-a.cpp
C++
mit
1,349
<?php /** * Created by PhpStorm. * User: Jan * Date: 17.03.2015 * Time: 17:03 */ namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; class ThreadRepository extends EntityRepository { public function findAllOrderedByLastModifiedDate($category_id) { $repository = $this->getEntityMana...
mueller-jan/symfony-forum
src/AppBundle/Repository/ThreadRepository.php
PHP
mit
978
# User info wrapper object import logging class User(object): """ Wrapper object around an entry in users.json. Behaves like a read-only dictionary if asked, but adds some useful logic to decouple the front end from the JSON structure. """ _NAME_KEYS = ["display_name", "real_name"] _DEFAULT_IM...
hfaran/slack-export-viewer
slackviewer/user.py
Python
mit
2,188
<?php declare(strict_types = 1); /** * /src/DTO/RestDtoInterface.php * * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com> */ namespace App\DTO; use App\Entity\Interfaces\EntityInterface; use Throwable; /** * Interface RestDtoInterface * * @package App\DTO * @author TLe, Tarmo Leppänen <tarmo.leppanen@p...
tarlepp/symfony-flex-backend
src/DTO/RestDtoInterface.php
PHP
mit
1,141
package net.lightstone.net.codec; import java.io.IOException; import net.lightstone.msg.Message; import org.jboss.netty.buffer.ChannelBuffer; public abstract class MessageCodec<T extends Message> { private final Class<T> clazz; private final int opcode; public MessageCodec(Class<T> clazz, int opcode) { this....
grahamedgecombe/lightstone
src/net/lightstone/net/codec/MessageCodec.java
Java
mit
613
using Caliburn.Micro; using FollowMe.Messages; using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace FollowMe.WebService { /// <summary> /// RemoteControl to control the Ar.Drone indirectly. /// You can star...
HeinrichChristian/FlyingRobotToWarnVisuallyImpaired
FollowMe/WebService/RemoteControl.cs
C#
mit
2,774
#include <iostream> #include <seqan/graph_types.h> #include <seqan/graph_algorithms.h> #include <seqan/find_motif.h> using namespace seqan; int main () { typedef unsigned int TCargo; typedef Graph<Undirected<TCargo> > TGraph; typedef VertexDescriptor<TGraph>::Type TVertexDescriptor; TGraph g; ...
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/fjt74l9mlcqisdus/2013-04-12T11-39-06.554+0200/sandbox/my_sandbox/apps/tutorial_20/tutorial_20.cpp
C++
mit
989