code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
import scala.reflect.macros.blackbox.Context
import language.experimental.macros
object Macros {
def impl1_0_0(c: Context)() = { import c.universe._; c.Expr[Unit](q"""println("hello world")""") }
def impl1_1_1(c: Context)(x: c.Expr[Int]) = { import c.universe._; c.Expr[Unit](q"""println("hello world")""") }
def ... | felixmulder/scala | test/files/neg/t7157/Impls_Macros_1.scala | Scala | bsd-3-clause | 2,174 |
#ifdef COMPILE_EXAMPLE1_CODE_MODSERIAL
/*
* To run this test program, link p9 to p10 so the Serial loops
* back and receives characters it sends.
*/
#include "mbed.h"
#include "MODSERIAL.h"
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
DigitalOut led4(LED4);
MODSERIAL pc(USBTX, USBRX);
/... | CMUBOOST/BOOST_Stalker | rosserial/rosserial_mbed/src/ros_lib/MODSERIAL/example1.cpp | C++ | bsd-3-clause | 4,310 |
/* Write a Program detab,which replaces tabs in the input with a proper
number of blanks to spaces */
#include<stdio.h>
#define TABINC 8
int main(void)
{
int nb,pos,c;
nb = 0;
pos = 1;
while((c=getchar())!=EOF)
{
if( c == '\t')
{
nb = TABINC - (( pos - 1) % TABINC);
while( nb > 0)
{
putchar... | beqa2323/learntosolveit | languages/cprogs/Ex_1.20_detab.c | C | bsd-3-clause | 472 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/ip_endpoint.h"
#include <ostream>
#include <string.h>
#include <tuple>
#include "base/check.h"
#include "base/check_op.h"
#inclu... | chromium/chromium | net/base/ip_endpoint.cc | C++ | bsd-3-clause | 5,740 |
//===- Intrinsics.h - LLVM Intrinsic Function Handling ----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/Intrinsics.h | C | bsd-3-clause | 7,692 |
#ifndef ERBGENERATOR_H
#define ERBGENERATOR_H
#include <QStringList>
#include <QDir>
#include <QPair>
#include <QVariant>
class ErbGenerator
{
public:
ErbGenerator(const QString &view, const QList<QPair<QString, QVariant::Type>> &fields, int pkIdx, int autoValIdx);
bool generate(const QString &dstDir) const;... | froglogic/treefrog-framework | tools/tspawn/erbgenerator.h | C | bsd-3-clause | 484 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SPEECH_SPEECH_RECOGNITION_TEST_HELPER_H_
#define CHROME_BROWSER_SPEECH_SPEECH_RECOGNITION_TEST_HELPER_H_
#include <memory>
#includ... | ric2b/Vivaldi-browser | chromium/chrome/browser/speech/speech_recognition_test_helper.h | C | bsd-3-clause | 2,950 |
/*
* This file is part of wl1251
*
* Copyright (c) 1998-2007 Texas Instruments Incorporated
* Copyright (C) 2008 Nokia Corporation
*
* Contact: Kalle Valo <kalle.valo@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ve... | go2ev-devteam/Gplus_2159_0801 | openplatform/sdk/os/kernel-2.6.32/drivers/net/wireless/wl12xx/wl1251_tx.c | C | gpl-2.0 | 13,386 |
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | shahabhijeet/azure-sdk-for-net | src/SDKs/EventGrid/management/Management.EventGrid/Generated/Operations.cs | C# | mit | 9,663 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doc... | sameedali/dotemacs | my-code/backup/libs/emacs-request/doc/Makefile | Makefile | mit | 6,532 |
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2009, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... | jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/unittest/type/count_type.cpp | C++ | mit | 2,944 |
---
title: Telerik.Web.UI.GridEditFormItem
page_title: Telerik.Web.UI.GridEditFormItem
description: Telerik.Web.UI.GridEditFormItem
---
# Telerik.Web.UI.GridEditFormItem
Item that loads an EditForm during binding if P:Telerik.Web.UI.GridTableView.EditMode is F:Telerik.Web.UI.GridEditMode.EditForms . When in this mode... | scstauf/ajax-docs | api/server/Telerik.Web.UI/GridEditFormItem.md | Markdown | mit | 8,435 |
---
title: "Quick-Start Guide"
permalink: /docs/quick-start-guide/
excerpt: "How to quickly install and setup Minimal Mistakes for use with GitHub Pages."
last_modified_at: 2017-11-15T09:49:52-05:00
redirect_from:
- /theme-setup/
toc: true
---
Minimal Mistakes has been developed as a [Jekyll theme gem](http://jekyll... | dwinter/minimal-mistakes | docs/_docs/01-quick-start-guide.md | Markdown | mit | 9,168 |
require 'ebay/types/pagination_result'
require 'ebay/types/category'
module Ebay # :nodoc:
module Responses # :nodoc:
# == Attributes
# object_node :pagination_result, 'PaginationResult', :class => PaginationResult, :optional => true
# array_node :categories, 'CategoryArray', 'Category', :class => Cate... | skiz/ebayapi | lib/ebay/responses/get_popular_keywords.rb | Ruby | mit | 870 |
// Boost Lambda Library -- control_constructs_common.hpp -------------------
// Copyright (C) 1999, 2000 Jaakko Järvi (jaakko.jarvi@cs.utu.fi)
// Copyright (C) 2000 Gary Powell (powellg@amazon.com)
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// ... | Ezeer/VegaStrike_win32FR | vegastrike/boost/1_35/boost/lambda/detail/control_constructs_common.hpp | C++ | mit | 1,286 |
"""
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012-2014 Alex Forencich
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... | elopezga/ErrorRate | ivi/agilent/agilentDSA91204A.py | Python | mit | 1,632 |
module.exports = {
VERSION: '%KARMA_VERSION%',
KARMA_URL_ROOT: '%KARMA_URL_ROOT%',
KARMA_PROXY_PATH: '%KARMA_PROXY_PATH%',
CONTEXT_URL: 'context.html'
}
| pedrotcaraujo/karma | client/constants.js | JavaScript | mit | 161 |
'''
FFmpeg video abstraction
========================
.. versionadded:: 1.0.8
This abstraction requires ffmpeg python extensions. We have made a special
extension that is used for the android platform but can also be used on x86
platforms. The project is available at::
http://github.com/tito/ffmpeg-android
The ... | Cheaterman/kivy | kivy/core/video/video_ffmpeg.py | Python | mit | 2,694 |
# stm32f4xx RT-Thread Demo
---
## 1¡¢¼ò½é
ͨ¹ý `app\src\app_task.c` µÄ `test_env()` ·½·¨À´ÑÝʾ»·¾³±äÁ¿µÄ¶ÁÈ¡¼°Ð޸ŦÄÜ£¬Ã¿´ÎϵͳÆô¶¯²¢ÇÒ³õʼ»¯EasyFlash³É¹¦ºó»áµ÷Óø÷½·¨¡£
ÔÚ `test_env()` ·½·¨ÖУ¬»áÏȶÁȡϵͳµÄÆô¶¯´ÎÊý£¬¶ÁÈ¡ºó¶ÔÆô¶¯´ÎÊý¼ÓÒ»£¬ÔÙ´æÈëµ½»·¾³±äÁ¿ÖУ¬ÊµÏּǼϵͳÆô¶¯£¨¿ª»ú£©´ÎÊýµÄ¹¦ÄÜ¡£
### 1.1¡¢Ê¹Ó÷½·... | weitengchu/EasyFlash | demo/env/stm32f4xx/README.md | Markdown | mit | 940 |
---
title: Binding to Table-Based DataSource
page_title: Binding to Table-Based DataSource | RadMenu for ASP.NET AJAX Documentation
description: Binding to Table-Based DataSource
slug: menu/data-binding/binding-to-table-based-datasource
tags: binding,to,table-based,datasource
published: True
position: 3
---
... | scstauf/ajax-docs | controls/menu/data-binding/binding-to-table-based-datasource.md | Markdown | mit | 3,536 |
<?php
/**
* This file is part of PHP_Depend.
*
* PHP Version 5
*
* Copyright (c) 2008-2012, Manuel Pichler <mapi@pdepend.org>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* *... | drBenway/siteResearch | vendor/pdepend/pdepend/src/main/php/PHP/Depend/Parser/TokenStreamEndException_1.php | PHP | mit | 3,000 |
var AreasOfEffect = (() => {
'use strict';
let MENU_CMD = '!areasOfEffectShowMenu';
let ADD_EFFECT_CMD = '!areasOfEffectAddEffect';
let APPLY_EFFECT_CMD = '!areasOfEffectApplyEffet';
let DEL_EFFECT_CMD = '!areasOfEffectDeleteEffect';
let SHOW_EFFECTS_CMD = '!areasOfEffectShowEffects';
let VERSION = '1.0'... | shdwjk/roll20-api-scripts | AreasOfEffect/1.0/aoe.js | JavaScript | mit | 10,124 |
/** @file
*****************************************************************************
Declaration of interfaces for a gadget that can be created from an R1CS constraint system.
*****************************************************************************
* @author This file is part of libsnark, developed by... | litecoinz-project/litecoinz | src/snark/libsnark/gadgetlib1/gadgets/gadget_from_r1cs.hpp | C++ | mit | 1,424 |
/////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2013-2014
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost... | phusion/passenger | src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp | C++ | mit | 96,305 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Component\Product\Model;
use Doctrine\Common\Collections\Collection;
use Sylius\Comp... | sweoggy/Sylius | src/Sylius/Component/Product/Model/ProductInterface.php | PHP | mit | 3,967 |
<!--Title:Indexing (under construction)-->
<!--Url:indexing-->
//TODO
| jokokko/marten | documentation/documentation/postgres/indexing.md | Markdown | mit | 71 |
# frozen_string_literal: true
require "bundler/shared_helpers"
Bundler::SharedHelpers.major_deprecation "Bundler no longer integrates with " \
"Capistrano, but Capistrano provides its own integration with " \
"Bundler via the capistrano-bundler gem. Use it instead."
module Bundler
class Deployment
def self.... | sho-h/ruby_env | ruby-2.3.3-x64-mingw32/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/deployment.rb | Ruby | mit | 3,265 |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005 Eric Niebler
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)... | viennautils/viennautils-dev | override/boost/fusion/container/list/cons_iterator.hpp | C++ | mit | 3,331 |
var fs = require('fs');
var os = require('os');
var path = require('path');
var util = require('./ci-util');
// initialize _package
util.initializePackagePath();
// create the tasks.zip
util.createTasksZip();
var branch = null;
if (process.env.TF_BUILD) {
// during CI agent checks out a commit, not a branch.
... | vithati/vsts-tasks | ci/stage-hotfix.js | JavaScript | mit | 1,362 |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... | spskeen/wgdb | vendor/cakephp/cakephp/src/ORM/Table.php | PHP | mit | 93,471 |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){function a(b,c){var d=b.lang.placeholder,e=b.lang.common.generalTab;return{title:d.title,minWidth:300,minHeight:80,contents:[{id:'info',label:e,title:e,eleme... | evansd-archive/kohana-module--ckeditor | vendor/ckeditor/plugins/placeholder/dialogs/placeholder.js | JavaScript | mit | 985 |
using System;
using System.Collections;
using System.Linq;
namespace umbraco.macroRenderings
{
/// <summary>
/// Summary description for propertyTypePicker.
/// </summary>
public class propertyTypePicker : System.Web.UI.WebControls.ListBox, interfaces.IMacroGuiRendering
{
string _value = "";
bool ... | dampee/Umbraco-CMS | src/umbraco.macroRenderings/propertyTypePicker.cs | C# | mit | 1,959 |
if(!dojo._hasResource["tests.rpc"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["tests.rpc"] = true;
dojo.provide("tests.rpc");
dojo.require("dojo.rpc.RpcService");
dojo.require("dojo.rpc.JsonService");
dojo.require("dojo.rpc.JsonpService");
doh.register("te... | Goldcap/TAHealth | web/js/dojo/dojo/tests/rpc.js | JavaScript | mit | 3,491 |
// Type definitions for multer-s3 2.7
// Project: https://github.com/badunk/multer-s3
// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk <https://github.com/tcaesvk>
// Gal Talmor <https://github.com/galtalmor>
// Matt Terski <https://github.com/terski>
// Definitions: https://github.com/... | markogresak/DefinitelyTyped | types/multer-s3/index.d.ts | TypeScript | mit | 2,593 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Description of imagesAlignSeq</title>
<meta name="keywords" content="imagesAlignSeq">
<meta name="description" content="Stabilize image sequence using coarse optic... | subtri/streaming_VOP_clustering | object_proposals/piotr_toolbox/doc/videos/imagesAlignSeq.html | HTML | mit | 4,811 |
<div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost bx-def-margin-sec-top bx-clearfix">
<input type="hidden" name="__name__[]" value="{file_id}" />
<div class="bx-base-general-icon-wrapper bx-def-margin-sec-right">
<img src="{file_icon}" class="bx-def-round-corners bx-base-gen... | camperjz/trident | upgrade/files/9.0.0.RC8-9.0.0.RC9/files/modules/base/text/template/form_ghost_template.html | HTML | mit | 2,255 |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_UNITTESTS_INSTRUCTION_SELECTOR_UNITTEST_H_
#define V8_COMPILER_UNITTESTS_INSTRUCTION_SELECTOR_UNITTEST_H_
#include <deque>
#includ... | kingland/go-v8 | v8-3.28/test/compiler-unittests/instruction-selector-unittest.h | C | mit | 4,530 |
<html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - integrate_function_adapt_simpson_abstract.h</title></head><body bgcolor='white'><pre>
<font color='#009900'>// Copyright (C) 2013 Steve Taylor (steve98654@gmail.com)
</font><fo... | ruby-dlib/ruby-dlib | ext/dlib-19.4/docs/dlib/numerical_integration/integrate_function_adapt_simpson_abstract.h.html | HTML | mit | 2,177 |
// set default source and build directories
var dest = './build';
var src = './src';
module.exports = {
// options for Gulp tasks go here
markup: {
/* there most likely won't be a need for any markup other than a main
index.html but you can add more configuration here if necessary */
src: src + '/index... | zelliott/intrn | gulp/config.js | JavaScript | mit | 473 |
/*
* cocos2d for iPhone: http://www.cocos2d-iphone.org
*
* Copyright (c) 2013-2014 Cocos2D Authors
*
* 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 with... | leanlyne/ShootColor | ShootColor/Libraries/cocos2d/Platforms/iOS/CCAppDelegate.h | C | mit | 5,626 |
using System.Linq;
using Stratis.SmartContracts.CLR.Validation.Policy;
namespace Stratis.SmartContracts.CLR.Validation
{
/// <summary>
/// Validates a namespace/type/member for whitelisting
/// </summary>
public class WhitelistPolicyFilter
{
public WhitelistPolicyFilter(WhitelistPolicy pol... | mikedennis/StratisBitcoinFullNode | src/Stratis.SmartContracts.CLR.Validation/WhitelistPolicyFilter.cs | C# | mit | 2,178 |
local TestIAPScene = class("TestIAPScene",function()
return cc.Scene:create()
end)
function TestIAPScene.create()
local scene = TestIAPScene.new()
scene:addChild(scene:createLayerMenu())
return scene
end
function TestIAPScene:ctor()
self.iap = plugin.PluginManager:getInstance():loadPlugin("IOSIAP"... | dios-game/dios-cocos | src/oslibs/cocos/cocos-src/plugin/samples/HelloPluginsLua/src/TestIAPScene.lua | Lua | mit | 984 |
let helpers = {
formatPrice : function(cents) {
return '$' + ( (cents / 100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ",") );
},
rando : function(arr) {
return arr[Math.floor(Math.random() * arr.length)];
},
slugify : function(text) {
return text.toString().toLowerCase()
.replace(/\s+/g... | nicholasbair/react-todo | scripts/helpers.js | JavaScript | mit | 1,548 |
/// \file
/// \brief A simple TCP based server allowing sends and receives. Can be connected by any TCP client, including telnet.
///
/// This file is part of RakNet Copyright 2003 Jenkins Software LLC
///
/// Usage of RakNet is subject to the appropriate license agreement.
#include "NativeFeatureIncludes.h"
#if _RAK... | emlowry/AIEFramework | dep/raknet/include/PacketizedTCP.h | C | mit | 2,534 |
def test():
for i in xrange(int(5e3)):
t = []
for j in xrange(int(1e4)):
#t[j] = 'x'
t.append('x')
t = ''.join(t)
test()
| svaarala/duktape | tests/perf/test-string-array-concat.py | Python | mit | 174 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.JSEncrypt = {})));
}(this, (function (exports) { 'use strict';
var BI_RM = "0123456789abcdefghijklmnopqrstuvwxy... | jonobr1/cdnjs | ajax/libs/jsencrypt/3.0.0-rc.1/jsencrypt.js | JavaScript | mit | 177,817 |
'use strict';
/**
* Lazily required module dependencies
*/
var lazy = require('lazy-cache')(require);
var fn = require;
require = lazy;
require('falsey', 'isFalsey');
require('delimiter-regex', 'delims');
require('get-view');
require = fn;
/**
* Expose `utils`
*/
module.exports = lazy;
| glg-enterprises/Cms | template/admin/node_modules/layouts/utils.js | JavaScript | mit | 296 |
interface A { 'C': string; }
interface B { "D": boolean; }
| rattrayalex/prettier | tests/format/flow/generic/interface.js | JavaScript | mit | 59 |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... | antoniocdff/tree | vendor/cakephp/bake/src/Shell/Task/TemplateTask.php | PHP | mit | 13,819 |
using System.Reflection;
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("VoicemailBoxActorService")]
[assembly: As... | JayHCho/servicefabric-samples | samples/Actors/VS2013/VoicemailBox/V2/VoicemailBoxActorServiceV2/Properties/AssemblyInfo.cs | C# | mit | 1,385 |
#clearchat-control {
background: transparent url('page_refresh.png') no-repeat;
position: relative;
} | sriducati/chat.am | vendor_libs/clearchat/candy.css | CSS | mit | 109 |
/*
* stencilReduceOCL_macros.hpp
*
* Created on: Feb 13, 2015
* Author: drocco
*/
#ifndef STENCILREDUCEOCL_MACROS_HPP_
#define STENCILREDUCEOCL_MACROS_HPP_
#include <string>
#include <sstream>
namespace ff {
#if 1 //explicit input, single-device
/*
* both indexed and direct elemental function for 1D ma... | DanieleDeSensi/Peafowl | include/peafowl/external/fastflow/ff/stencilReduceOCL_macros.hpp | C++ | mit | 27,252 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>DbEnv... | dwaynebailey/poedit | deps/db/docs/api_reference/CXX/envset_lg_bsize.html | HTML | mit | 8,669 |
module Locomotive
class Membership
include Locomotive::Mongoid::Document
## fields ##
field :role, default: 'author'
## associations ##
belongs_to :account, class_name: 'Locomotive::Account', validate: false
embedded_in :site, class_name: 'Locomotive::Site', inverse_of: :memberships
... | furkanayhan/engine | app/models/locomotive/membership.rb | Ruby | mit | 2,167 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | takumif/vscode | src/vs/workbench/services/request/node/rawHttpService.ts | TypeScript | mit | 3,347 |
# Frame-filter commands.
# Copyright (C) 2013-2019 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any late... | OpenSmalltalk/vm | processors/ARM/gdb-8.3.1/gdb/python/lib/gdb/command/frame_filters.py | Python | mit | 16,256 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrueCraft.API.Logic;
using TrueCraft.API;
using TrueCraft.API.Entities;
using TrueCraft.API.World;
using TrueCraft.API.Networking;
namespace TrueCraft.Core.Logic
{
public abstract class ItemProvider : IItemProvider
{
... | blha303/TrueCraft | TrueCraft.Core/Logic/ItemProvider.cs | C# | mit | 1,072 |
<html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - random_hashing_abstract.h</title></head><body bgcolor='white'><pre>
<font color='#009900'>// Copyright (C) 2012 Davis E. King (davis@dlib.net)
</font><font color='#009900'>// ... | ruby-dlib/ruby-dlib | ext/dlib-19.4/docs/dlib/general_hash/random_hashing_abstract.h.html | HTML | mit | 3,832 |
using System;
using System.IO;
using System.Collections.Specialized;
using System.Net;
using System.Text;
using System.Web;
using System.Security.Cryptography;
using Newtonsoft.Json;
using System.Security.Cryptography.X509Certificates;
using System.Net.Security;
using SteamKit2;
namespace SteamTrade
{
public class... | JackHarknes/Bot1 | SteamTrade/SteamWeb.cs | C# | mit | 10,937 |
using TestExtensions;
using Xunit;
namespace NonSilo.Tests
{
// Assembly collections must be defined once in each assembly
[CollectionDefinition("DefaultCluster")]
public class DefaultClusterTestCollection : ICollectionFixture<DefaultClusterFixture> { }
[CollectionDefinition(TestEnvironmentFixture.Def... | veikkoeeva/orleans | test/NonSilo.Tests/CollectionFixtures.cs | C# | mit | 438 |
// -----------------------------------------------------------------------
// <copyright file="ShouldRetryException.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------
namespace Cinchcast.Roque.Core
{
using System;
... | benjamine/Roque | Roque.Core/ShouldRetryException.cs | C# | mit | 1,490 |
/*!
* OOUI v0.27.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2018-07-11T18:13:08Z
*/
/**
* WikimediaUI Base v0.10.0
* Wikimedia Foundation user interface base variables
*/
.oo-ui-ic... | sufuf3/cdnjs | ajax/libs/oojs-ui/0.27.5/oojs-ui-wikimediaui-icons-layout.rtl.css | CSS | mit | 5,071 |
# Ignore documentation lints as these aren't original implementations.
# rubocop:disable Documentation
module Sass::Script
# Since the Sass library is already loaded at this point.
# Define the `node_name` and `visit_method` class methods for each Sass Script
# parse tree node type so that our custom visitor can... | ivantsepp/scss-lint | lib/scss_lint/sass/script.rb | Ruby | mit | 2,259 |
"use strict";
var render = require("../../render");
var src = __dirname + "/src.js";
render(
{
src: src,
template: __dirname + "/../template.hbs",
"global-index-format": "none",
source: src
},
__dirname + "/readme.md"
);
| daserge/jsdoc-to-markdown | example/tags/todo and done/render.js | JavaScript | mit | 267 |
/** Challenge Activity 2 - Temperature Conversion
*
* In this activity, we will write a GUI program to convert temperatures to/from
* Celcius/Fahrenheit. You should be able to run the program right now but it will
* not perform the conversion. Your mission for this activity it to get the
* program to perform th... | Prajwalch27/prajwal | Lesson-18/SOLUTIONS/Solution-ChallengeActivity2-TemperatureConversion/src/temperatureconversion/TempConv.java | Java | mit | 8,622 |
import React from "react";
export default React.createClass({
propTypes: {
show: React.PropTypes.bool,
viaCSS: React.PropTypes.bool,
},
render: function() {
if (this.props.viaCSS) {
const display = this.props.show ? null : {display: "none"};
return (
<div style={display}>{this.pro... | wflmax/webm.js | src/util/show-hide.js | JavaScript | cc0-1.0 | 435 |
# MongoDB - Aula 03 - Exercício
autor: Hudson Brendon Silva
## Liste todos Pokemons com a altura **menor que** 0.5;
```
ubuntu(mongod-3.0.7) pokemons> db.pokemons.find({height:{$lt: 0.5}})
{
"_id": ObjectId("564d08317ba047cbf6497bc8"),
"name": "Pikachu",
"description": "Rato elétrico bem fofinho",
"type": "e... | netoabel/be-mean-instagram-mongodb-exercises | class-03/class03-resolved-hudsonbrendon-Hudson-Brendon.md | Markdown | cc0-1.0 | 2,673 |
/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | gazarenkov/che-sketch | plugins/plugin-java-debugger/che-plugin-java-debugger-server/src/main/java/org/eclipse/che/plugin/jdb/server/expression/ExpressionParser.java | Java | epl-1.0 | 1,690 |
/*
* PackageReference.java
*
* Copyright (c) 2013 Mike Strobel
*
* This source code is based on Mono.Cecil from Jb Evain, Copyright (c) Jb Evain;
* and ILSpy/ICSharpCode from SharpDevelop, Copyright (c) AlphaSierraPapa.
*
* This source code is subject to terms and conditions of the Apache License, Versi... | mbriskar/windup | forks/procyon/Procyon.CompilerTools/src/main/java/com/strobel/assembler/metadata/PackageReference.java | Java | epl-1.0 | 3,167 |
/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | gazarenkov/che-sketch | ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/event/ModuleCreatedEvent.java | Java | epl-1.0 | 1,723 |
/**
* Copyright (c) 2010-2019 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | gerrieg/openhab2 | addons/binding/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/SqueezeBoxAudioSink.java | Java | epl-1.0 | 5,000 |
#pragma once
#include "captions-handler.hpp"
#include "captions-mssapi-stream.hpp"
#include <util/windows/HRError.hpp>
#include <util/windows/ComPtr.hpp>
#include <util/windows/WinHandle.hpp>
#include <util/windows/CoTaskMemPtr.hpp>
#include <util/threading.h>
#include <util/platform.h>
#include <sphelper.h>
#include... | makeen/obs-studio | UI/frontend-plugins/frontend-tools/captions-mssapi.hpp | C++ | gpl-2.0 | 920 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
namespace MediaBrowser.Controller.Entities.Audio
{
/// <summary>
/// Class MusicGenre
/// </summary>
public class MusicGenre : BaseItem, IItemByName
{
/// <summary>
/// Gets the u... | mtlott/Emby | MediaBrowser.Controller/Entities/Audio/MusicGenre.cs | C# | gpl-2.0 | 2,132 |
/* This file is part of the KDE project
@@COPYRIGHT@@
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
... | KDE/calligra-history | plugins/chartshape/tests/odf/me07_percentage_stacked_bar_chart/TestLoading.h | C | gpl-2.0 | 1,436 |
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that it will be usefu... | MariaDB/server | storage/mroonga/vendor/groonga/lib/mrb/mrb_query_logger.c | C | gpl-2.0 | 2,125 |
/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | faux123/htc-kernel-pyramid | drivers/video/msm_8x60/vidc/1080p/ddl/vidc.c | C | gpl-2.0 | 33,290 |
/* Copyright (c) 2009, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope th... | thenameisnigel/android_kernel_lge_ls840 | lge/com_device/camera/sensor_mt9v113.h | C | gpl-2.0 | 3,252 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Sequence</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="Chapter 1.&... | FFMG/myoddweb.piger | myodd/boost/libs/fusion/doc/html/fusion/sequence.html | HTML | gpl-2.0 | 6,100 |
/*-------------------------------------------------------------------------
SDCCsystem - SDCC system & pipe functions
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1999)
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License... | darconeous/sdcc | src/SDCCsystem.h | C | gpl-2.0 | 1,405 |
<?php
/**
* AMF0 Parser
*
* Based (pretty far) on the AMFPHP serializer. I actually started using the AMFPHP serializer and
* mostly rewrote it.
*
* @author Tommy Lacroix <tlacroix@quantiksolutions.com>
* @copyright Copyright (c) 2006-2008 Tommy Lacroix
* @license LGPL
*/
class ... | thinkcollege/tc-code | plugins/editors/jce/tiny_mce/plugins/mediamanager/classes/flvinfo/amfo.php | PHP | gpl-2.0 | 6,978 |
start windiff *.exp *.txt
| MavenRain/reko | src/tools/wd.cmd | Batchfile | gpl-2.0 | 26 |
SELECT a.Id
FROM Weather a, Weather b
WHERE TO_DAYS(a.Date) = TO_DAYS(b.Date) + 1 AND a.Temperature > b.Temperature
| daniyuu/leetcode | solutions/197.Rising_Temperature/AC_TO_DAYS.sql | SQL | gpl-2.0 | 116 |
/****************************************************************************
*
* Copyright (C) 2005 - 2012 by Vivante Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ... | tsfs/Vybrid-Linux | drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_enum.h | C | gpl-2.0 | 19,403 |
/*
* ADI-AIM ADC Interface Module
*
* Copyright 2012 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/poll.h>
#include <linux/io.h>
#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include "../iio.h"
#include "../sysfs.h"... | xiaogaogao/linuxFromDigilent | drivers/staging/iio/adc/cf_ad9467_ring.c | C | gpl-2.0 | 5,954 |
/*
Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with cer... | greenlion/mysql-server | storage/ndb/include/kernel/signaldata/CreateFKImpl.hpp | C++ | gpl-2.0 | 4,177 |
/* Mach-O support for BFD.
Copyright (C) 1999-2017 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fou... | totalspectrum/binutils-propeller | bfd/mach-o-target.c | C | gpl-2.0 | 8,300 |
/*
* Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... | Kreegoth/Darkportalwow | src/game/LootMgr.h | C | gpl-2.0 | 14,833 |
/*
* grunt-notify
* https://github.com/dylang/grunt-notify
*
* Copyright (c) 2014 Dylan Greene, 2014 Matej Simek
* Licensed under the MIT license.
*/
'use strict';
var NOTIFY_TYPE = 'toaster';
var path = require('path');
var os = require('os');
var spawn = require('../util/spawn');
var semver = require('semver'... | marceliotstein/marcelio8 | web/themes/baspac/node_modules/grunt-notify/lib/platforms/toaster.js | JavaScript | gpl-2.0 | 1,564 |
explain
select actor_id,
(select count(film_id) from sakila.film join sakila.film_actor using(film_id))
from sakila.actor;
+----+-------------+------------+-------+----------------+--------------------+---------+---------------------+------+-------------+
| id | select_type | table | type | possible_keys | k... | fipar/percona-toolkit | t/pt-visual-explain/samples/join_in_subquery.sql | SQL | gpl-2.0 | 1,100 |
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you ... | ikoula/cloudstack | utils/src/main/java/com/cloud/utils/time/InaccurateClockMBean.java | Java | gpl-2.0 | 957 |
/*
LUFA Library
Copyright (C) Dean Camera, 2011.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation ... | SelfDesignRobotics/DuinoPack | win/hardware/multiplo/avr/bootloaders/DuinoBot.v1.x/Sources/HID/LUFA/Drivers/Board/BENITO/LEDs.h | C | gpl-2.0 | 3,686 |
/*
===========================================================================
Copyright (C) 1999 - 2005, Id Software, Inc.
Copyright (C) 2000 - 2013, Raven Software, Inc.
Copyright (C) 2001 - 2013, Activision, Inc.
Copyright (C) 2013 - 2015, OpenJK contributors
This file is part of the OpenJK source code.
OpenJK is ... | AlexCSilva/OpenJK | codeJK2/game/g_local.h | C | gpl-2.0 | 22,512 |
<?php
/**
* Contains EWSType_ExchangeImpersonationType.
*/
/**
* Represents the account to impersonate within a request.
*
* @package php-ews\Types
*/
class EWSType_ExchangeImpersonationType extends EWSType
{
/**
* Represents an account to impersonate when you are using the
* ExchangeImpersonation ... | andrewwippler/rpi-wayfinding | php-ews/EWSType/ExchangeImpersonationType.php | PHP | gpl-2.0 | 450 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<title>File account/modules.php | Cypht Documentation</title>
<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.h... | thetomester13/hm3 | docs/code_docs/source-class-Hm_Output_create_form.html | HTML | gpl-2.0 | 75,074 |
// license:BSD-3-Clause
// copyright-holders:Ramiro Polla
#include "nec_p72.h"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
const device_type NEC_P72 = &device_creator<nec_p72_t>;
//... | RJRetro/mame | src/devices/bus/centronics/nec_p72.cpp | C++ | gpl-2.0 | 2,936 |
<?php
/**
* Cache decorator.
*
* PHP version 5
*
* Copyright (C) Villanova University 2010.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distribut... | swissbib/sbvf2 | module/VuFind/src/VuFind/Config/Reader/CacheDecorator.php | PHP | gpl-2.0 | 3,224 |
/*
* fips186prf.c An implementation of the FIPS-186-2 SHA1-based PRF.
*
* The development of the EAP/SIM support was funded by Internet Foundation
* Austria (http://www.nic.at/ipa).
*
* This code was written from scratch by Michael Richardson, and it is
* dual licensed under both GPL and BSD.
*
* Version: ... | simonflood/freeradius-server | src/modules/rlm_eap/libeap/fips186prf.c | C | gpl-2.0 | 6,564 |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | Skin1980/bass | kernel/trace/ipc_logging.c | C | gpl-2.0 | 22,470 |
// license:BSD-3-Clause
// copyright-holders:Sergey Svishchev
/***************************************************************************
BBN BitGraph -- monochrome, raster graphics (768x1024), serial terminal.
Apparently had at least four hardware revisions, A-D, but which ROM
revisions support which ha... | RJRetro/mame | src/mame/drivers/bitgraph.cpp | C++ | gpl-2.0 | 21,416 |
/*
Copyright (C) 2007, 2010 - Bit-Blot
This file is part of Aquaria.
Aquaria is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program ... | chewi/Aquaria | BBGE/RenderRect.cpp | C++ | gpl-2.0 | 1,528 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.