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
/** * @license * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. * * TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED * *AS IS* AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS * OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT,IMPLI...
denverpierce/denverpierce.github.io
Cesium/Source/Shaders/PostProcessFilters/FXAA.js
JavaScript
mit
6,619
// // Created by Amrik Sadhra on 25/10/2017. // #include "Model.h" #include <utility> Model::Model(std::string name, std::vector<glm::vec3> verts, std::vector<glm::vec2> uvs, std::vector<glm::vec3> norms, std::vector<unsigned int> indices, bool removeVertexIndexing, glm::vec3 center_position) { m_name = std::mov...
AmrikSadhra/FCE-to-OBJ
src/Scene/Model.cpp
C++
mit
877
package com.farwolf.reader; import android.util.Log; import org.androidannotations.annotations.Bean; import org.androidannotations.annotations.EBean; import com.farwolf.base.ServiceBase; import com.farwolf.json.JsonListener; import com.farwolf.json.JsonReader; import com.farwolf.view.progress.DialogProgress; import ...
evildoerX/weex-ouikit
platforms/android/farwolf.business/src/main/java/com/farwolf/reader/HttpServiceBase.java
Java
mit
1,255
<?php echo form_open('','class="form-sign"'); ?> <div class=" my-reg-2 w3-animate-opacity"> <div class="container"> <div class="row size_4"> <div class="col-lg-2"></div> <div class="col-lg-8 reg-box"> <h2 class="name">Step 4: Personal Information</h2> <div class="space...
11Receli/ISEE
application/modules/page/views/personalinfo.php
PHP
mit
5,099
<?php class SomethingDigital_EnterpriseIndexPerf_Model_Observer_Pagecache { /** * Clean cache for affected products * * @param Varien_Event_Observer $observer Event data */ public function cleanProductsCacheAfterPartialReindex(Varien_Event_Observer $observer) { // Only if the Pa...
sdinteractive/SomethingDigital_EnterpriseIndexPerf
app/code/community/SomethingDigital/EnterpriseIndexPerf/Model/Observer/Pagecache.php
PHP
mit
1,456
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2015 Francois Beaune, The appleseedhq Organization // ...
Vertexwahn/appleseed
src/appleseed/foundation/meta/tests/test_string.cpp
C++
mit
30,223
package main import ( "crypto/tls" "crypto/x509" "fmt" "io/ioutil" "net/http" "os" "math/rand" "time" scalarmWorker "github.com/scalarm/scalarm_simulation_manager_go/scalarmWorker" ) // VERSION current version of the app const VERSION string = "17.04" // Fatal utility function to log a fatal error func Fa...
Scalarm/scalarm_simulation_manager_go
scalarmSimulationManager.go
GO
mit
1,451
<?php /****************************************************************************** Project: Fram3w0rk PHP 0.5 [Alpha] Website: http://LawtonSoft.com/projects/fram3w0rk Author: Jonathan Lawton (wanathan101@gmail.com) Contributers: none, yet :-( (Come join in!) Copyright (c) 2012+, LawtonSoft. All rights re...
LawtonSoft/Fram3w0rk-PHP
index.php
PHP
mit
9,806
class Hamming VERSION = 1.freeze def self.compute strand_1, strand_2 distance = 0 if not (strand_1 || strand_2) raise ArgumentError elsif strand_1.length != strand_2.length raise ArgumentError else strand_1.split("").each_with_index do |strand, index| if strand_2[index] !=...
alexggordon/exercism
ruby/hamming/hamming.rb
Ruby
mit
405
/** * MIT License * * Copyright (c) 2016 Derek Goslin < http://corememorydump.blogspot.ie/ > * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitati...
DerekGn/DDPAIDash
DDPAIDash.Core/Types/DeviceInfo.cs
C#
mit
3,314
import React from 'react'; import Example from './Example'; import Tooltip from '../../src/Tooltip'; import Icon from '../../src/Icon'; export default ( props ) => ( <section { ...props }> <h3>Tooltips</h3> <Example> <Tooltip label="Follow"> <Icon name="add" /> ...
joshq00/react-mdl
demo/sections/Tooltips.js
JavaScript
mit
1,004
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\Question */ $this->title = 'Update: ' . $model->question; $this->params['breadcrumbs'][] = ['label' => 'Questions', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->question, 'url' => ['view', 'id' => $model-...
umbalaconmeogia/brse-interview
src/app/views/question/update.php
PHP
mit
586
import { Component, OnInit, OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { firestore } from 'firebase/app'; import { AppService } from '../../app.service'; import { environment } from '../../../environments/environment'; @Component({ selector: 'ap...
felipecota/realtimeapp
src/app/app-list/list-access/list-access.component.ts
TypeScript
mit
3,523
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Model_cadospres extends CI_Model { public $table = 'dospres_calon_dosen_berprestasi'; public $id = 'id_calon_dospres'; public function data() { $query = $this->db->get('dospres_calon_dosen_berprestasi'); return $query->result...
Lective/newdospres
application/modules/lv_webmin/models/Model_cadospres.php
PHP
mit
1,092
<?php return [ 'welcome' => 'Bienvenido a apiato', ];
Drummer01/ForestChat
app/Containers/Localization/Resources/Languages/es/messages.php
PHP
mit
61
package net.creeperhost.chtweaks; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.monster.EntityMob; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.world.Worl...
CreeperHost/CH-Tweaks
src/main/java/net/creeperhost/chtweaks/ModEvents.java
Java
mit
1,503
module Compass::Magick module Plugins # Applies rounded corners around the {Canvas}. # # @param [Sass::Script::Number] radius The corner radius. # @param [Sass::Script::Bool] top_left Controls the top-left corner # radius effect (default <tt>true</tt>) # @param [Sass::Script::Bool] top_right...
StanAngeloff/compass-magick
lib/plugins/corners.rb
Ruby
mit
1,284
<?php require "help-head.php"; ?> <style> a.r:hover{color:#009900} a.r{color:#ff3333} </style> <div align="center"> <img src="../imgb/title-8.jpg" hspace="10" vspace="10" border="1"> </div> <div class="c4"> System of astromet...
NordWest/puldbru
help9.php
PHP
mit
3,134
import { VNode } from "@cycle/dom"; let counter = 0; export function getScope(): string { return `cs-ui${++counter}`; } export function capitalize(string: string): string { return string ? string.charAt(0).toUpperCase() + string.slice(1) : string; } export function patchClassList(target: VNode, classes: string[],...
Steelfish/cycle-semantic-ui
src/utils/index.ts
TypeScript
mit
2,665
package gruppe087.coursetracker; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.preference.PreferenceManager; import android...
henrikbossart/courseTracker
CourseTracker/app/src/main/java/gruppe087/coursetracker/MissedFragment.java
Java
mit
11,686
#include "SpriteSheetRenderer.h" #include "Utils.h" namespace Cog { SpriteSheetRenderer::SpriteSheetRenderer() { buffers = map<string, SpriteLayer*>(); actualBuffer = nullptr; } SpriteSheetRenderer::~SpriteSheetRenderer() { for (auto& buf : buffers) { delete buf.second; } } void SpriteSheetRenderer...
dormantor/ofxCogEngine
COGengine/src/Graphics/SpriteSheetRenderer.cpp
C++
mit
10,430
<?PHP /** * supplemental selection view. * * through ajax will reorder supplemental selections */ d($this->_ci_cached_vars); //$this->output->enable_profiler(TRUE); ?> <script type="text/javascript" src="<? echo base_url(); ?>assets/js/jquery-ui.min.js"></script> <script src="<? echo base_url(...
rshanecole/TheFFFL
views/admin/set_gow.php
PHP
mit
2,923
// Generated by CoffeeScript 1.6.3 (function() { this.Position = (function() { function Position(id, top, left) { this.id = id; this.top = top; this.left = left; } return Position; })(); this.Postit = (function() { function Postit() { this.id = new Date().getTime(); ...
icoxfog417/whitewall
public/javascripts/postit.js
JavaScript
mit
2,232
/* Install the specified SalsaFlow release. Description This command can be used to download and install the specified SalsaFlow release. The pre-built packages are fetched from GitHub. They are expected to be appended as release assets to the GitHub release specified by the given version. The repository that the as...
salsaflow/salsaflow
commands/pkg/install/doc.go
GO
mit
1,098
using System.Threading.Tasks; using System.Web; using System.Web.Http; using System.Web.Http.Description; using DungeonMart.Data.DAL; using DungeonMart.Data.Repositories; using DungeonMart.Models; using DungeonMart.Services; using DungeonMart.Services.Interfaces; namespace DungeonMart.ApiControllers.v3_5 { /// <s...
qanwi1970/dungeon-mart
DungeonMart/ApiControllers/v3_5/PowerController.cs
C#
mit
3,297
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("TV...
jruncik/Tiskarna
TV.TiskarnaVosahlo/Properties/AssemblyInfo.cs
C#
mit
1,372
package pongimme.logic; import java.util.*; import java.util.concurrent.*; import javax.swing.*; import org.jbox2d.collision.*; import org.jbox2d.collision.shapes.*; import org.jbox2d.common.*; import org.jbox2d.dynamics.*; import pongimme.CustomCanvas; import pongimme.entities.*; public class Game { private Lis...
mattikan/pongimme
pongimme/src/main/java/pongimme/logic/Game.java
Java
mit
1,667
package io.njlr.lockstep.sample; import io.njlr.bytes.Bytes; import io.njlr.lockstep.state.SimulationAction; /** * Action that flips the counter direction. * */ public final class FlipAction implements SimulationAction<StrangeSimulation> { public static final byte leadingByte = (byte)102; publi...
nlr/Lockstep
LockstepSample/src/io/njlr/lockstep/sample/FlipAction.java
Java
mit
901
<?php namespace Smartkill\APIBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and mana...
minchal/smartkill-server
src/Smartkill/APIBundle/DependencyInjection/SmartkillAPIExtension.php
PHP
mit
883
import {AfterViewInit, ChangeDetectorRef, Component, ElementRef, OnInit, TemplateRef, ViewChild} from '@angular/core'; import { PopupInfo, PopupOptions, PopupPoint, PopupPositionOffset, PopupPositionType, PopupService } from "jigsaw/public_api"; @Component({ templateUrl: './demo.component.html', styleU...
rdkmaster/jigsaw
src/app/demo/pc/dialog/popup-option/demo.component.ts
TypeScript
mit
3,381
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.securityinsights.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; i...
Azure/azure-sdk-for-java
sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/PollingFrequency.java
Java
mit
1,386
var utils = require('./utils'); exports.setItemDetails = function(item, description) { return { "author": { "name": "Santiago", "lastname": "Alurralde" }, "item": { "id": item.id, "title": item.title, "price": { "currency": item.currency_id, "amount": utils.getPriceAmount(item), "deci...
santalurr/mercadolibre
api/item.js
JavaScript
mit
611
/* -*-C-*- ******************************************************************************** * * File: metrics.c (Formerly metrics.c) * Description: * Author: Mark Seaman, OCR Technology * Created: Fri Oct 16 14:37:00 1987 * Modified: Tue Jul 30 17:02:07 1991 (Mark Seaman) marks@hpgrlt * L...
danauclair/CardScan
tesseract-ocr/wordrec/metrics.cpp
C++
mit
11,659
'use strict'; var isString = require('lodash/isString'); var each = require('lodash/each'); var last = require('lodash/last'); var uuid = require('../util/uuid'); var EditingBehavior = require('../model/EditingBehavior'); var insertText = require('../model/transform/insertText'); var copySelection = require('../model/...
TypesetIO/substance
ui/ContainerEditor.js
JavaScript
mit
9,737
"use strict" const path = require('path') class Helpers { static getPageIdFromFilenameOrLink(filename) { var base = path.basename(filename) if (base.substr(-3) === '.md') { base = base.substr(0, base.length - 3) } return base.replace(/([^a-z0-9\-_~]+)/gi, '') } } module.exports = Helpers
limedocs/limedocs-wiki-converter
src/helpers.js
JavaScript
mit
320
import { vec3, mat4, quat } from 'gl-matrix'; import Vector3 from './vector3'; let uuid = 0; let axisAngle = 0; const quaternionAxisAngle = vec3.create(); class Object3 { constructor() { this.uid = uuid++; this.position = new Vector3(); this.rotation = new Vector3(); this.scale =...
andrevenancio/engine
src/core/object3.js
JavaScript
mit
2,458
package com.github.dcoric.demonico.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Transient; @Entity...
dcoric/Maven
demonico/src/main/java/com/github/dcoric/demonico/model/User.java
Java
mit
2,012
<?php namespace App\Common\Models\Company\Mysql; use App\Common\Models\Base\Mysql\Base; class TeamUser extends Base { /** * 公司-团队用户管理 * This model is mapped to the table icompany_team_user */ public function getSource() { return 'icompany_team_user'; } public function reor...
handsomegyr/models
lib/App/Common/Models/Company/Mysql/TeamUser.php
PHP
mit
520
<h2>Dar de alta un nuevo <span class='muted'>banco</span> en el sistema</h2> <br/> <?php echo render('banco/_form'); ?> <p><?php echo Html::anchor('banco', 'Volver al listado',array('class'=>'btn btn-danger')); ?></p>
fjcarreterox/gestion-entregas-AC
fuel/app/views/banco/create.php
PHP
mit
218
module MagentoApiWrapper::Requests class InvoiceInfo attr_accessor :data def initialize(data = {}) @data = data end def body #TODO: Check this out merge_filters(invoice_info_hash) unless self.order_id.nil? end def invoice_info_hash { session_id: self.session...
rebyn/magento_api_wrapper
lib/magento_api_wrapper/requests/invoice_info.rb
Ruby
mit
892
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace posh.visu { public partial class CProperties : UserControl { public CProperties() { Init...
suegy/ReActIDE
visu/gui/properties/CProperties.cs
C#
mit
636
package com.drumonii.loltrollbuild.routing; import com.drumonii.loltrollbuild.model.Build; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapp...
drumonii/LeagueTrollBuild
backend/src/main/java/com/drumonii/loltrollbuild/routing/BuildsController.java
Java
mit
703
import { CodeExtractionInstructions } from '@webpack-ext/tdm-code-sample'; module.exports = [ { file: './render-state-event.component.ts', autoRender: true, title: 'Component' }, { file: './render-state-event.component.html', autoRender: true, title: 'Template', section: 'TDM-DEMO' ...
shlomiassaf/tdm
apps/demo/src/modules/@forms/tutorials/events/render-state-event/__tdm-code__.ts
TypeScript
mit
608
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="<?=$conf['description']?>"> <meta name="keywords" content="<?=$conf['keywords']?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?=$conf['title']?></title> <link rel...
ziggi/deHasher
tpl/default/index.php
PHP
mit
3,621
import React from 'react'; import PropTypes from 'prop-types'; import Logo from './Logo'; import SearchBar from './SearchBar'; import { CSSTransitionGroup } from 'react-transition-group'; class Header extends React.Component { render() { let header = window.scrollY > 170 && window.innerWidth > 800 ? <d...
pixel-glyph/better-reads
src/components/Header.js
JavaScript
mit
1,137
<?php namespace Ekyna\Component\Commerce\Customer\Model; use Ekyna\Component\Commerce\Common\Model\NotificationTypes; /** * Trait NotificationsTrait * @package Ekyna\Component\Commerce\Customer\Model * @author Etienne Dauvergne <contact@ekyna.com> */ trait NotificationsTrait { /** * @var string[] ...
ekyna/Commerce
Customer/Model/NotificationsTrait.php
PHP
mit
1,074
package parser import ( "github.com/stretchr/testify/assert" "testing" ) func Test_tokenize_OpeningBracket(t *testing.T) { data := []byte("(somestuff)") advance, token, err := tokenize(data, false) assert.NoError(t, err) assert.Equal(t, 1, advance) assert.Equal(t, []byte("("), token) } func Test_tokenize_Word...
mikeyhu/glipso
parser/lexer_test.go
GO
mit
2,530
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php session_start(); // Start/resume THIS session // PAGE SECURITY if (!isset($_SESSION['isAdmin'])) { echo '<script type="text/javascript">hist...
cassa/megalansystem
management/eventRegistration.php
PHP
mit
11,349
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Bl...
dibley1973/Blogs.UsingEFAndSprocFToAcheiveCQRS
Code/03.QueryStack/Blogs.EfAndSprocfForCqrs.ReadModel/Properties/AssemblyInfo.cs
C#
mit
1,444
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 futurecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #inclu...
wire306/futurecoin
src/rpcrawtransaction.cpp
C++
mit
17,383
<?php /** * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. * * @author Martin Štekl <martin.stekl@gmail.com> * @since 2011.06.26 * @license MIT * @copyright Copyright (c) 2011, 2012 Martin Štekl <martin.stekl@gmail.com> */ namespac...
stekycz/gallery-nette-plugin
Model/Group.php
PHP
mit
4,695
<?php namespace aplicacion\EmisionesBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class RevisionType extends AbstractType { /** * @param FormBuilderInterface $builder * @param ar...
angelquin1986/kobra
src/aplicacion/EmisionesBundle/Form/RevisionType.php
PHP
mit
3,637
using System; using System.Threading; using DeployService.Common.Options; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace DeploymentJobs.DataAccess { public interface IDeploymentJobsCleaner { void Start(); void Stop(); } public class DeploymentJobsCle...
MargaretKrutikova/deploy-script-runner-web-api
DeployService/DeploymentJobs.DataAccess/DeploymentJobsCleaner.cs
C#
mit
1,936
<?php namespace Concise\Mock; use Concise\Core\TestCase; class ArgumentMatcherTest extends TestCase { /** * @var ArgumentMatcher */ protected $matcher; public function setUp() { parent::setUp(); $this->matcher = new ArgumentMatcher(); } public function testMatching...
elliotchance/concise
tests/Concise/Mock/ArgumentMatcherTest.php
PHP
mit
1,305
// TInjector: TInjector // ScopeType.cs // Created: 2015-10-17 5:54 PM namespace TInjector { /// <summary> /// Represents the supported scope types. /// </summary> public enum Scope { /// <summary> /// A new instance is created each time the service is requested. //...
bungeemonkee/TInjector
TInjector/Scope.cs
C#
mit
783
#pragma once #include "variant.hh" namespace drift { namespace schemy { namespace lib { variant_ptr print(const list&); variant_ptr println(const list&); variant_ptr readln(const list&); variant_ptr foreach(const list&); } } }
Racinettee/drift-scheme
lib.hh
C++
mit
247
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { Routes,RouterModule } from '@angular/router'; import {MaterialModule} from '@angular/material'; import 'hammerjs'; import { Mainfr...
sayanuIT/teds2
src/client/app/mainframe/mainframe.module.ts
TypeScript
mit
2,120
/** * Grunt Project * https://github.com/sixertoy/generator-grunt-project * * Copyright (c) 2014 Matthieu Lassalvy * Licensed under the MIT license. * * Generate folder and files for a grunt project * with grunt basic tasks, jasmine unit testing, istanbul coverage and travis deployement * * @insatll npm insta...
sixertoy/generator-ezhtml
generators/app/index.js
JavaScript
mit
4,305
require 'bundler' Bundler.setup require 'minitest/pride' require 'minitest/spec' require 'minitest/autorun' require 'tmpdir' $: << File.expand_path('../../lib', __FILE__) require 'todo'
benpickles/todo
test/helper.rb
Ruby
mit
189
<?php namespace Anax\MVC; /** * Model for Users. * */ class CDatabaseModel implements \Anax\DI\IInjectionAware { use \Anax\DI\TInjectable; /** * Find and return all. * * @return array */ public function findAll($tableName = null) { $source = $this->getSource(); ...
phphille/aab
src/MVC/CDatabaseModel.php
PHP
mit
9,267
const debug = require('ghost-ignition').debug('importer:posts'), _ = require('lodash'), uuid = require('uuid'), BaseImporter = require('./base'), converters = require('../../../../lib/mobiledoc/converters'), validation = require('../../../validation'); class PostsImporter extends BaseImporter { ...
tannermares/ghost
core/server/data/importer/importers/data/posts.js
JavaScript
mit
8,682
mod rewrite <?php echo in_array('mod_rewrite', apache_get_modules()); ?>
DanielHirunrusme/so-il
test.php
PHP
mit
76
require 'awesome_nested_set' module DatabaseI18n class Key < ::ActiveRecord::Base self.table_name = 'translation_keys' acts_as_nested_set dependent: :destroy, counter_cache: :children_count has_one :value, class_name: 'DatabaseI18n::Value', dependent: :destroy def path self_and_ancestors.plu...
kogulko/database-i18n
lib/database_i18n/models/key.rb
Ruby
mit
358
namespace ZeroLog { internal unsafe class UnpooledLogEvent : LogEvent { public UnpooledLogEvent(BufferSegment bufferSegment, int argCapacity) : base(bufferSegment, argCapacity) { } public override bool IsPooled => false; public override string ToString() ...
Abc-Arbitrage/ZeroLog
src/ZeroLog/UnpooledLogEvent.cs
C#
mit
512
/* The MIT License (MIT) Copyright (c) 2014 Robert C. Robinson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
RobCRobinson/MyHealthRecords
src/src/com/ravenmistmedia/MyHealthRecords/DBAdminActivity.java
Java
mit
12,471
<?php namespace Papyrillio\BeehiveBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class PapyrillioBeehiveBundle extends Bundle { }
Edelweiss/beehive
src/Papyrillio/BeehiveBundle/PapyrillioBeehiveBundle.php
PHP
mit
142
var path = require('path'); var expect = require('expect.js'); var _s = require('underscore.string'); var apellaJson = require('../lib/json'); var request = require('request'); describe('.find', function () { it('should find the apella.json file', function (done) { apellaJson.find(__dirname + '/pkg-apella-...
apellajs/apella
packages/bower-json/test/test.js
JavaScript
mit
16,224
"""Implementations of locale abstract base class objects.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' and include no...
mitsei/dlkit
dlkit/abstract_osid/locale/objects.py
Python
mit
32,414
require 'spec_helper' EM.describe EmModbus::ModbusProtocol do it 'should fail fast when the server is not running' it 'should accept the slave address option' end
tallakt/em-modbus
spec/device_spec.rb
Ruby
mit
166
<body> <!-- Main Navigation ================================================== --> <nav id="tf-menu" class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> ...
AnnaDrive/StudentActivitySystem
application/views/index.php
PHP
mit
70,565
from django.contrib import admin from feedhoos.worker.models.entry import EntryModel from feedhoos.finder.models.feed import FeedModel from feedhoos.reader.models.bookmark import BookmarkModel from feedhoos.folder.models.folder import FolderModel class EntryModelAdmin(admin.ModelAdmin): list_display = ('id', "fee...
38elements/feedhoos
feedhoos/worker/admin.py
Python
mit
894
'use strict'; angular.module('myApp.contact', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/contact', { templateUrl: 'contact/contact.html', controller: 'ContactCtrl', animation: 'page-fadein' }); }]) .controller('ContactCtrl', ['$scope', 'myService', functi...
ctong1124/portfolio2016
app/contact/contact.js
JavaScript
mit
968
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributesLocation. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("ThreeCs")] [assembly: AssemblyDe...
lathoub/three.cs
ThreeCs/Properties/AssemblyInfo.cs
C#
mit
1,360
<?php namespace Enigmatic\CRMBundle\Form; use Enigmatic\CRMBundle\Entity\ContactPhone; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class ContactPhoneType extends AbstractType { /** * @param FormBuil...
chadyred/crm
src/Enigmatic/CRMBundle/Form/ContactPhoneType.php
PHP
mit
1,987
namespace EarTrumpet.Interop { internal enum AppBarEdge : uint { Left = 0, Top = 1, Right = 2, Bottom = 3 } }
File-New-Project/EarTrumpet
EarTrumpet/Interop/AppBarEdge.cs
C#
mit
157
require'rails_helper' feature 'Admin edits site setting' do let!(:admin) { create :admin_user } before :each do SiteSettings.instance.destroy end background do login_as admin, scope: :user end scenario 'checks settings' do visit root_path click_link 'Admin Panel' click_link 'Site Set...
angelikatyborska/fitness-class-schedule
spec/features/admin/site_settings/admin_edits_site_settings_spec.rb
Ruby
mit
2,527
######## """ This code is open source under the MIT license. Its purpose is to help create special motion graphics with effector controls inspired by Cinema 4D. Example usage: https://www.youtube.com/watch?v=BYXmV7fObOc Notes to self: Create a simialr, lower poly contorl handle and perhaps auto enable x-ray/bounding...
kmeirlaen/Blender_Effectors
effector.py
Python
mit
18,791
var indexSectionsWithContent = { 0: "acdefhilmnoprtw", 1: "w", 2: "aehilmoprw", 3: "w", 4: "acdefhlnrt", 5: "w", 6: "w", 7: "w" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "files", 3: "functions", 4: "variables", 5: "typedefs", 6: "enums", 7: "defines" }; var indexSectionLa...
niho/libwave
doc/private/html/search/searchdata.js
JavaScript
mit
471
<?php namespace Nwidart\Modules\Commands; use Illuminate\Console\Command; use Nwidart\Modules\Module; use Symfony\Component\Console\Input\InputArgument; class DisableCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'module:disable'; /** ...
nWidart/laravel-modules
src/Commands/DisableCommand.php
PHP
mit
1,832
#! /usr/bin/env python import flickr_api, pprint, os, sys,argparse,json,csv flickr_api.set_keys(api_key = '52182e4e29c243689f8a8f45ee2939ae', api_secret = 'a6238b15052797dc') def DownloadSource(SourceList, PhotosetTitle): for url in SourceList: os.system("wget --append-output=download...
sharathchandra92/flickrapi_downloadfavorites
flickrdownload.py
Python
mit
3,886
/** * Homes Configuration */ .config(function ($routeProvider) { $routeProvider.when('/homes', { controller: 'homesRoute', templateUrl: 'views/homes.html', reloadOnSearch: false }); });
TheDarkCode/AngularAzureSearch
src/AngularAzureSearch/liamcaReference/js/app/homesCtrl/config/homesConfig.js
JavaScript
mit
222
/** * This deadlock is missed if the transitive closure of the * `X is held by this thread while locking Y' relation is not computed when * building the lock graph because the B lock causes the (A, B)(B, C)(C, A) * cycle to have two edges (A, B)(B, C) within the same thread (t0). If the * transitive closure is com...
ldionne/d2
test/scenarios/miss_unless_transitive_closure.cpp
C++
mit
1,188
class Parent < ActiveRecord::Base wikify has_many :children end
Arcath/Wikify
spec/models/parent.rb
Ruby
mit
70
namespace IrbisUI.Pft { partial class PftDebuggerForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /...
amironov73/ManagedIrbis
Source/Classic/Libs/IrbisUI/Source/Pft/PftDebuggerForm.Designer.cs
C#
mit
1,403
import {Glyphicon, Table} from 'react-bootstrap'; let defaultActions = ['Download', 'Bookmark']; const actions = { link : defaultActions, image: defaultActions, text : [...defaultActions, 'Edit'], web : [...defaultActions, 'Preview', 'Edit'] }; export default class ActionView extends React.Component { makeBook...
andrey-ponamarev/file-manager
app/components/ActionView.js
JavaScript
mit
1,844
<?php include_once 'session.inc.php'; include_once 'check_login.php'; include_once 'connect.inc.php'; if(!empty($_GET['category']) && (!empty($_GET['usn']) || !empty($_GET['email']) ) && !empty($_GET['passkey'])) { $category=mysql_real_escape_string($_GET['category']); $usn=mysql_real_escape_string($_GET['us...
ajhalthor/signup-login-form
confirm.php
PHP
mit
2,717
import sigopt.cli.commands.cluster import sigopt.cli.commands.config import sigopt.cli.commands.experiment import sigopt.cli.commands.init import sigopt.cli.commands.local import sigopt.cli.commands.version import sigopt.cli.commands.training_run from .base import sigopt_cli
sigopt/sigopt-python
sigopt/cli/commands/__init__.py
Python
mit
277
IonicNotification.setup do |config| # ==> Configuration for the Ionic.io Application ID # The Application ID can be found on the dashboard of # https://apps.ionic.io/apps config.ionic_application_id = ENV["IONIC_APPLICATION_ID"] # ==> Configuration for the Ionic API Key # The API Key for your application ...
rentziass/ionic_notification
lib/generators/ionic_notification/install/templates/ionic_notification.rb
Ruby
mit
2,789
<style type="text/css"> .cart-coupon-code-show{display:none;} a.tooltip{ width: 23px; height: 23px; background: #9c9c9c; display: block; color: #fff; position: absolute; top: 10px; right: 7px; border-radius: 20px; text-align: center; line-height: 23px; font-family: trade-g...
sygcom/diesel_2016
application/views/cart_view_20161202.php
PHP
mit
28,392
(function () { 'use strict'; describe('Inventories Controller Tests', function () { // Initialize global variables var InventoriesController, $scope, $httpBackend, $state, Authentication, InventoriesService, mockInventory; // The $resource service augments the respo...
ebonertz/mean-blog
modules/inventories/tests/client/inventories.client.controller.tests.js
JavaScript
mit
5,483
import json from sqlalchemy import create_engine, inspect, Table, Column import pandas as pd from ilxutils.args_reader import read_args from ilxutils.scicrunch_client import scicrunch import sys import time from ilxutils.interlex_sql import interlex_sql import re from collections import defaultdict import requests as r...
tgbugs/pyontutils
ilxutils/tests/elastic_test.py
Python
mit
2,991
version https://git-lfs.github.com/spec/v1 oid sha256:ff952c4ac029ba9d378d24581d9a56937e7dc731986397dc47c3c42c56fd0729 size 132398
yogeshsaroya/new-cdnjs
ajax/libs/soundmanager2/2.97a.20120318/script/soundmanager2.js
JavaScript
mit
131
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe PayloadProcessor do describe "process!" do context "with a payload containing 3 commits" do before(:each) do @project = Project.make @content = {"commits"=> [ {"author_e...
tomkersten/codefumes-site
spec/models/payload_processor_spec.rb
Ruby
mit
3,979
using ClosedXML.Excel; using System; namespace ClosedXML_Examples.Misc { public class RightToLeft : IXLExample { public void Create(String filePath) { var wb = new XLWorkbook(); var ws = wb.Worksheets.Add("RightToLeftSheet"); ws.Cell("A1").Value = "A1"; ...
vbjay/ClosedXML
ClosedXML_Examples/Misc/RightToLeft.cs
C#
mit
486
/* * Copyright (c) 2009 Roy Wellington IV * * 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, merg...
thanatos/libjson
src/array.cpp
C++
mit
2,141
import { JKFPlayer } from "json-kifu-format"; import { observer } from "mobx-react"; import * as React from "react"; import Piece from "./Piece"; import KifuStore from "./stores/KifuStore"; export interface IProps { kifuStore: KifuStore; } @observer export default class Board extends React.Component<IProps, any> ...
na2hiro/Kifu-for-JS
src/Board.tsx
TypeScript
mit
1,723
import java.util.*; public class WeightedGraph<T> implements WeightedGraphInterface<T> { public static final int NULL_EDGE = 0; private static final int DEFCAP = 50; // default capacity private int numVertices; private int maxVertices; private T[] vertices; private int[][] edges; private boole...
Josecc/CSC202
5-assignment/Graph/WeightedGraph.java
Java
mit
5,724
// Copyright (c) 2014-2019 Daniel Kraft // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <names/main.h> #include <chainparams.h> #include <coins.h> #include <consensus/validation.h> #include <dbwrapper.h> #include <hash...
namecoin/namecore
src/names/main.cpp
C++
mit
17,522
/** */ package geometry.impl; import geometry.GeometryPackage; import geometry.Point; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; /** * <!-- begin-user-doc --> * An implementation of the model object ...
albertfdp/petrinet
src/dk.dtu.se2.geometry/src/geometry/impl/PointImpl.java
Java
mit
5,044
'use strict'; angular.module('eklabs.angularStarterPack.offer') .directive('removeOffer',function($log, $location, Offers){ return { templateUrl : 'eklabs.angularStarterPack/modules/offers/views/MyRemoveOfferView.html', scope : { offer : '=?', callba...
julienbnr/InternMe
src/modules/offers/directives/my-offer/MyRemoveOfferDirective.js
JavaScript
mit
883