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
class AddStatusToRegistration < ActiveRecord::Migration def up ids = Registration.select([:id, :approved]).find_all { |r| r.approved }.map(&:id) remove_column :registrations, :approved add_column :registrations, :status, :string, default: 'pending' add_index :registrations, :status Registration.re...
mike-park/haidb
db/migrate/20140402140657_add_status_to_registration.rb
Ruby
mit
1,103
import Loader from '../../src/loader'; describe('loader', function () { let loader, configRan; beforeAll(() => { window.pmAnimatedBannersConfig = () => { configRan = true; }; loader = new Loader(); }); it('should call pmAnimatedBannersConfig', () => { expect(configRan).toEqual(true)...
partnermarketing/pm-animated-banners
tests/unit/loader.test.js
JavaScript
mit
332
using UnityEngine; using System.Collections; public class ShapesUpdater : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
rbakx/UnityRobot_FHICT
Unity/RobotMaster/Assets/scripts/Shapes & Mapping/Shapes/ShapesUpdater.cs
C#
mit
227
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("XE...
b-slavov/Telerik-Software-Academy
01.C# Part 1/Exam-Preparation-3rd-Tasks/XExpression/Properties/AssemblyInfo.cs
C#
mit
1,398
package entitydifferentiation; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import es.um.nosql.s13e.NoSQLSchema.Attribute; import es.um.nosql.s13e.NoSQLSchema.EntityType; import es.um.nosql.s13e.NoSQLSchema.StructuralVariation; import es.um.nosql.s13e.NoSQ...
catedrasaes-umu/NoSQLDataEngineering
projects/es.um.nosql.s13e.entitydifferentiation/test/entitydifferentiation/Test2.java
Java
mit
2,641
<!-- HTML header for doxygen 1.8.6--> <!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/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" conte...
lucasbrsa/OpenCV-3.2
docs/3.2/d2/d6d/classcv_1_1FileNodeIterator-members.html
HTML
mit
15,632
FactlinkUI::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the te...
Factlink/factlink-core
config/environments/test.rb
Ruby
mit
1,762
<!DOCTYPE html> <html ng-app="waitStaffApp"> <head> <title>WaitStaff Calculator</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="container"> <header> <h1 class="tex...
MasoodGit/ngWaitStaffCalculator
index.html
HTML
mit
1,202
#include <iostream> #define GLM_FORCE_RADIANS #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/matrix_transform.hpp> #include "DebugRenderer.hpp" DebugRenderer::DebugRenderer(): debug_shader(), line_shader(), line({0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, {0}, {3}), quad( { -0.5, -0.5, 0.0, 0.0...
Jrende/Hondo
src/gfx/DebugRenderer.cpp
C++
mit
4,961
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>stream_socket_service::receive</title> <link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="../../../index.html" title="As...
dhh1128/intent
old/src/external/asio-1.10.2/doc/asio/reference/stream_socket_service/receive.html
HTML
mit
3,747
//package codechicken.enderstorage.command.help; // //import codechicken.enderstorage.api.EnderStoragePlugin; //import codechicken.enderstorage.manager.EnderStorageManager; //import codechicken.lib.command.help.IHelpPage; // //import java.util.ArrayList; //import java.util.List; //import java.util.Map.Entry; // ///** /...
TheCBProject/EnderStorage
src/main/java/codechicken/enderstorage/command/help/ValidStorageHelp.java
Java
mit
1,175
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 Dogecoin Developers // Copyright (c) 2014 Surge Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://...
surgecoin/Surge
src/protocol.cpp
C++
mit
3,533
<?php /** * Singleton Factory * * @package RedLove * @subpackage PHP * @category Classes * @author Joshua Logsdon <joshua@joshualogsdon.com> * @author Various from CodeIgniter to Internet * @copyright Copyright (c) 2015, Joshua Logsdon (http://joshualogsdon.com/) * @license http://opensource.org/licenses/MIT MIT Licens...
logsdon/redlove
php/classes/Singleton_factory.php
PHP
mit
2,206
(function() { 'use strict'; angular .module('app') .filter('sample', sample); function sample() { return sampleFilter; //////////////// function sampleFilter(params) { return params; } } })();
chandantrue/AngularApp
client/app/components/filters/sample.filter.js
JavaScript
mit
289
/*! @Name: layer's style @Author: 贤心 @Blog: sentsin.com */ * html { background-image: url(about:blank); background-attachment: fixed; } html #layui_layer_skinlayercss { display: none; position: absolute; width: 1989px; } /* common */ .layui-layer-shade, .layui-layer { position: fixed; ...
TCL-MIG-FE/velocity-startkit
resources/src/plugins/layer/skin/layer.css
CSS
mit
18,674
import { NgZone } from '@angular/core'; import { Menu, MenuItem, MenuItemConstructorOptions, PopupOptions, remote } from 'electron'; import { Observable, Subject } from 'rxjs'; let uniqueId = 0; interface MenuItemWithId extends MenuItem { id?: string; } export class NativeMenuRef { readonly id: string = `...
seokju-na/geeks-diary
src/browser/ui/menu/native-menu-ref.ts
TypeScript
mit
1,738
import * as React from "react"; import styled from "styled-components"; import { Themer } from "@patternplate/component-utility"; import { Icon, symbols } from "./icon"; function DemoIcon(props) { return ( <StyledDemoIcon title={props.title}> <Icon symbol={props.symbol} /> </StyledDemoIcon> ); } exp...
sinnerschrader/patternplate
components/next-generation/icon/src/icon.demo.tsx
TypeScript
mit
1,037
# 4Minitz FAQ - Frequently Asked Questions ### 4Minitz is a cumbersome name - what does it mean? The 4Minitz webapp is simply "for the minutes". ;-) (Some people also told us that setting up the server was done in only *four minutes*). ### What does the "red warning message" mean? See first chapter of the [user do...
RobNeXX/4minitz
doc/faq.md
Markdown
mit
9,850
<?php /* * This file is part of the lyMediaManagerPlugin package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * lyMediaValidatorFolder folder validator class. * * @package lyMediaManagerPlugin * @subpackage validato...
pycmam/lyMediaManagerPlugin
lib/validator/lyMediaValidatorFolder.class.php
PHP
mit
1,625
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/x-icon" href="../favicon.ico"> <link rel="stylesheet" type="text/css" href="../css/font-awesome-4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="../css/fonts.css"> <lin...
grunfeld/grunfeld.github.io
levels/t4.html
HTML
mit
6,024
Ext.define('Signout.controller.Home', { extend: 'Ext.app.Controller', refs:[{ ref: 'infoform', selector: 'homecard > * > form' }], models:['SliInfo'], stores:['SliInfos'], init: function(){ var id = tokobj.ssid; var me = this; this.control({ ...
jiangts/ncssm-signout
signout/sli/app/controller/Home.js
JavaScript
mit
753
var levState={ ////////////Game made by Huanmeng Zhai///////////////////////// //start state called 'start' create: function(){ var platforms; var player; var cursors; var monsterGroup; var monster; var stars; var diamonds; var score = 0; var scoreText; var button; var mytime=0; var total=0; //add backgro...
nickchulani99/ITE-445
final/alien copy 6/js/lev.js
JavaScript
mit
10,889
package controllers import akka.actor.ActorSystem import io.flow.location.v0.models import io.flow.location.v0.models.json._ import io.flow.reference.{Countries, data} import io.flow.reference.v0.models.Country import play.api.libs.json._ import play.api.mvc._ import scala.concurrent.Future @javax.inject.Singleton c...
flowcommerce/location
api/app/controllers/CountryDefaults.scala
Scala
mit
1,708
ccio-summer-school-beer ======================= open source beer recipe for the beers made for the EHI CCIO summer school For an optimum mash tun experience, why not build yourself a self-filtering mash tun with my Instructable at http://www.instructables.com/id/Simple-Self-filter-Mash-Tun-for-All-grain-Beer/
open-health-hub/ccio-summer-school-beer
README.md
Markdown
mit
314
require 'spec_helper.rb' describe "Tasks Panel", :feature => :taskEdit, :helper => :taskEdit do before(:all) {load_umple_and_switch_to_tasks_panel} context "Simple task manipulations:" do it "begins task creation and ends it" do page.execute_script("document.quer...
umple/umple
umpleonline/testsuite/spec/tasks_panel_test_spec.rb
Ruby
mit
3,633
<?php /** * Message translations. * * This file is automatically generated by 'yiic message' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * * Each array element represents the translation (value) of a message...
thebighub/travaux
messages/nl/widgets_views_test.php
PHP
mit
776
# Migrating to v1.1.0 ## General - Kadabra has been bumped to `v0.3.1`. Minimum requirements are now Elixir v1.4 / OTP 19.2 - Pushes are now synchronous by default for all services. For async functionality, pass an `:on_response` callback as an option with `push/2`. - `{:ok, notif}`/`{:error, reason, notif}` respo...
codedge-llc/pigeon
docs/Migrating to v1-1-0.md
Markdown
mit
1,355
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Una modelo nos enseña a saber si una mujer tiene implantes | La Red Semanario</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="sexy,senos,implantes" /> ...
reneisrael/reneisrael.github.io
2016/05/Una-modelo-nos-ensena-a-saber-si-una-mujer-tiene-implantes/index.html
HTML
mit
23,967
// // WQTest1VC.h // WQRoute // // Created by 青秀斌 on 17/1/21. // Copyright © 2017年 woqugame. All rights reserved. // #import <UIKit/UIKit.h> @interface WQTest1VC : BSViewController @end
jayla25349/WQRoute
Example/WQRoute/UI/WQTest1VC.h
C
mit
202
<?php namespace Skewd\Amqp\Connection; use Icecave\Isolator\IsolatorTrait; use InvalidArgumentException; /** * A connector for connecting to one AMQP server within a cluster. */ final class ClusterConnector implements Connector { /** * Create a cluster connector. * * @param Connector $connector T...
koden-km/skewd
src/Amqp/Connection/ClusterConnector.php
PHP
mit
2,501
'use strict'; module.exports = { db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/pw', facebook: { clientID: 'APP_ID', clientSecret: 'APP_SECRET', callbackURL: 'http://localhost:3000/auth/facebook/callback' }, twitter: { clientID: 'CONSUMER_KEY', clientSecret: 'CONSUMER_SEC...
jollyburnz/pw-meanjs
config/env/production.js
JavaScript
mit
650
using System; using System.Diagnostics; using System.Dynamic; using System.Threading; using L4p.Common.DumpToLogs; using L4p.Common.Helpers; using L4p.Common.Wcf; namespace L4p.Common.PubSub.client.Io { interface IAgentWriter : IHaveDump { string AgentUri { get; } TimeSpan NonActiveSpan { get; ...
Ubinary/L4p
L4p.Common/PubSub/client/Io/AgentWriter.cs
C#
mit
4,249
[data-control=chat]{top:0;bottom:0;} [data-control=chat] > header{width:100%} [data-control=chat] > article div > ul > li{list-style:none} [data-control=chat] > article div[data-control=users]{position:fixed} [data-control=chat] textarea{height:54px;resize:none} [data-control=chat] footer{background-color:#d8d8d8;botto...
Josebaseba/HereAndNow
assets/css/hereandnow.css
CSS
mit
564
// Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Format a regular expression structure as a string. // Tested by parse_test.cc #include "util/util.h" #include BOSS_OPENALPR_U_re2__regexp_h //original-cod...
koobonil/Boss2D
Boss2D/addon/openalpr-2.3.0_for_boss/src/openalpr/support/re2/tostring.cc
C++
mit
8,364
/* library based on jeelabs RTClib [original library at https://github.com/jcw/rtclib ] altered to support Microchip MCP7940M RTC, used in Arduino based embedded environments. To use this library, add #include <MCP7940.h> to the top of your program.*/ class DateTime { //DateTime class constructs the variable to store...
sanu-openmaker/RTC_MCP7940
MCP7940.h
C
mit
2,183
<?php include('slice-slice/top.php'); ?> <?php session_start(); ?> <html> <head><title>原料購買紀錄</title></head> <body> <br><br> <p align = "center"> <?php $con = mysql_connect("140.135.113.38","final","3fueeSMfZqmBcWFW"); mysql_query("SE...
loxoli/mis_ea_sys
pages/input_material.php
PHP
mit
1,956
/** * @ngdoc module * @name material.components.progressLinear * @description Linear Progress module! */ angular.module('material.components.progressLinear', [ 'material.core' ]) .directive('mdProgressLinear', MdProgressLinearDirective); /** * @ngdoc directive * @name mdProgressLinear * @module material.com...
HipsterZipster/material
src/components/progressLinear/progress-linear.js
JavaScript
mit
6,622
-------------------------------------------------------------------------------- -- Quanty input file generated using Crispy. If you use this file please cite -- the following reference: http://dx.doi.org/10.5281/zenodo.1008184. -- -- elements: 3d -- symmetry: D4h -- experiment: XAS -- edge: L2,3 (2p) -----------------...
mretegan/crispy
crispy/quanty/templates/3d_D4h_XAS_2p.lua
Lua
mit
36,930
// // AccessRecordCell.h // SkyNet // // Created by 魏乔森 on 2017/10/16. // Copyright © 2017年 xrg. All rights reserved. // #import <UIKit/UIKit.h> #import "VillageApplyModel.h" @interface AccessRecordCell : UITableViewCell + (instancetype)cellWithTableView:(UITableView *)tableView; @property (nonatomic, strong)Villa...
CQTWProgramme/cqtw
SkyNet/Class/Home/AccessControl/View/AccessRecordCell.h
C
mit
537
# learning-colloborating-using-github Repository is created to learn collaboration in GitHub
sachi059/learning-colloborating-using-github
README.md
Markdown
mit
93
// ==UserScript== // @include http://reference.bahai.org/en/t/* // ==/UserScript== /*globals WritingsMap, SpecialWritingsMap, MissingWritingsMap*/ var WritingsMap = { // 'b/ESW': "Epistle to the Son of the Wolf", 'b/GDM': "Gems of Divine Mysteries", // "Gems of Divine Mysteries (Javáhiru’l-Asrár)" 'b/GWB':...
brettz9/bahai-reference-library-wiki-overlay
opera/includes/Writings-map.js
JavaScript
mit
6,269
// // ViewController.h // CulveDisplay // // Created by 王源果 on 14/12/15. // Copyright (c) 2014年 g4idrijs. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
g4idrijs/culve-display
CulveDisplay/ViewController.h
C
mit
221
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) 2011 The...
guileen/ferrydb
extern/rocksdb/util/testutil.h
C
mit
10,017
/// <reference path="../typings/main.d.ts"/> import {Request, Response} from "express"; var express = require('express'); var util = require('util'); var router = express.Router(); /* GET home page. */ router.get('/', function(req: Request, res: Response, next: Function) { res.render('index', { title: 'Express' }); ...
rafaelumlei/vscode_node_gulp_express_typescript_boilerplate
routes/index.ts
TypeScript
mit
349
import { CollectionHubFixture } from "Apps/__tests__/Fixtures/Collections" import { useTracking } from "Artsy/Analytics/useTracking" import { ArrowButton } from "Components/Carousel" import { mount } from "enzyme" import "jest-styled-components" import React from "react" import { FeaturedCollectionEntity, FeaturedC...
artsy/reaction-force
src/Apps/Collect/Routes/Collection/Components/CollectionsHubRails/FeaturedCollectionsRails/__tests__/FeaturedCollectionsRails.test.tsx
TypeScript
mit
4,582
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "item": { "@id": "{{ site.url }}", "name": "Articles" } }, { "@type": "ListItem", "position": 2, ...
NSHipster/nshipster.com
_includes/json-ld/breadcrumblist.html
HTML
mit
462
describe('ModeloConsultaDeTs', function() { var ModeloConsultaDeTs; beforeEach(module('ApiConsumator')) beforeEach(inject(function($injector) { ModeloConsultaDeTs = $injector.get('ModeloConsultaDeTs') })) describe('criação', function() { it('deve ter as propriedades default preenc...
Katreque/ApiConsumator
test/unit/models/treturner_model_test.js
JavaScript
mit
3,100
package com.ziroom.godeye.transfer.disruptor; import com.lmax.disruptor.RingBuffer; import com.lmax.disruptor.dsl.Disruptor; import com.ziroom.godeye.entity.trace.Span; import com.ziroom.godeye.transfer.Transfer; import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory; import java.util.concur...
junzixiehui/godeye
godeye-client/src/main/java/com/ziroom/godeye/transfer/disruptor/DisruptorTransfer.java
Java
mit
1,796
public class HistoryBufferEntry { public float v; public boolean isInRange; }
fi-content2-games-platform/FIcontent.Gaming.Enabler.UnusualDatabaseEventDetection
src/HistoryBufferEntry.java
Java
mit
80
var express = require('express'); var router = express.Router(); // use session auth to secure the angular app files router.use('/', function (req, res, next) { // request will be intercepted console.log("token is " + req.session.token) if (req.path !== '/login' && !req.session.token) { return res....
YifanTerryYang/MortgagePlatformWebserver
controllers/app.controller.js
JavaScript
mit
655
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), coffee: { compile:{ files: { 'app/js/quote.js' : 'app/coffee/quote.coffee', 'app/js/util.js' : 'app/coffee/util.coffee', } } }, <<<<<<< HEAD ======= copy: { main: { expand...
marketingpartnersau/niaquote
Gruntfile.js
JavaScript
mit
1,165
/** * @external {Project} https://doc.esdoc.org/github.com/schema-mapper/spec/typedef/index.html#static-typedef-Project */ /** * @external {Schema} https://doc.esdoc.org/github.com/schema-mapper/spec/typedef/index.html#static-typedef-Schema */ /** * @external {Column} https://doc.esdoc.org/github.com/schema-mapp...
schema-mapper/validator
lib/typedefs.js
JavaScript
mit
2,366
## Overview This repository contains my latest resume ## Credit This project is based on [prat0318/json_resume](https://github.com/prat0318/json_resume) ##Installation $ gem install json_resume ### Conversion * Syntax `json_resume convert --template templates/default_html.mustache --out=html_pdf Xuefeng_Zhu_Resum...
Xuefeng-Zhu/My_Resume
README.md
Markdown
mit
1,895
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="content-type" /> <title>RepoView: overbox-base-repo</title> <link href="layout/repostyle.css" type="text/css" rel="stylesheet" /> <meta c...
AncientLeGrey/overbox-base-repo
noarch/repoview/vboxadditions-download.html
HTML
mit
2,973
#include "cnffilemodel.h" using namespace Model; CnfFileModel::CnfFileModel() { } unsigned long long CnfFileModel::getNumVariables() { return numVariables; } void CnfFileModel::setNumVariables(unsigned long long numVariables) { this->numVariables = numVariables; } unsigned long long CnfFi...
tasmanianfox/sat-cnf-converter
src/Model/cnffilemodel.cpp
C++
mit
529
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>aInstaller - updating...</title> <link rel="stylesheet" type="text/css" href="./app/icons.less"> <link rel="stylesheet" href="./app/index.less"> </head> <body> <div id="loading"> <h4 class="title afont ashadow absolute-center"> u...
ainstaller/aInstaller
app/update.html
HTML
mit
528
<!-- > Muaz Khan - github.com/muaz-khan > MIT License - www.webrtc-experiment.com/licence > Documentation - www.RTCMultiConnection.org --> <!DOCTYPE html> <html lang="en"> <head> <title>WebRTC Remote Stream Forwarding ® Muaz Khan</title> <meta http-equiv="Content-Type" content="text/html; ch...
garyfeng/WebRTC-Experiment
RTCMultiConnection/demos/remote-stream-forwarding.html
HTML
mit
9,771
# Is there a Caps game? ## What's it all about? Simple: you want to know if there's a Washington Capitals game, so you visit this app. It tells you. ## What a great idea! Yup, I only wish it were mine. I took this idea wholesale from Mark Paschal and his [Is there a Giants game?](http://isthereagiantsga.me/) ## Te...
bruceadams/isthereacapsgame
README.md
Markdown
mit
1,584
# Install gem install gem-init # Usage mkdir my_awesome_gem cd my_awesome_gem gem init my_awesome_gem If the gem already exists on [rubygems.org](http://rubygems.org) it will stop and let you know. Use the ``-s`` option to skip the check.
mwhuss/gem-init
README.md
Markdown
mit
264
--- layout: default --- <div class="container"> <div class="article"> <h2 class="article-title">{{ page.title }}</h2> <div class="article-meta">{{ page.date | date: "%Y年%m月%d日" }}</div> <div class="article-body"> {{ content }} </div> <div class="article-footer"> <a href="/archives/in...
pipboy3000/count0.org
src/_layouts/post.html
HTML
mit
382
#include "conversion.h" using namespace uva; QString uva::Conversion::getVerdictName(Submission::Verdict verdict) { typedef Submission::Verdict Verdict; switch(verdict) { case Verdict::SUBMISSION_ERROR: return "Submission Error"; case Verdict::CANNOT_BE_JUDGED: return "Can not be jud...
jgcoded/UVA-Arena-Qt
src/commons/conversion.cpp
C++
mit
4,052
using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace Xamarin.Forms.Portable3.Droid { [Activity(Label = "Xamarin.Forms.Portable3", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges....
takuya-takeuchi/Demo
Xamarin.Forms.Portable3/Xamarin.Forms.Portable3/Xamarin.Forms.Portable3.Droid/MainActivity.cs
C#
mit
686
#Unused def fail(): for t in [TypeA, TypeB]: x = TypeA() run_test(x) #OK by name def OK1(seq): for _ in seq: do_something() print("Hi") #OK counting def OK2(seq): i = 3 for x in seq: i += 1 return i #OK check emptiness def OK3(seq): for thing in seq: ...
github/codeql
python/ql/test/query-tests/Variables/unused/test.py
Python
mit
2,148
{% extends "base.html" %} {% load cms_tags %} {% block title %}{{ block.super }}{% endblock %} {% block main %} <section> {% placeholder "content" %} </section> {% endblock main %} {% block bodyclasses %}{{ block.super }} full{% endblock %} {% block sidebar %} {% endblock %}
frinat/fribourg-natation.ch
frinat/frontend/templates/full.html
HTML
mit
284
module MapEditor3 class FrameTimer attr_accessor :duration attr_reader :reset def initialize(t) setup(t) end def setup(t) @duration = t reset end def done? @time <= 0 end def rate @time / @duration.to_f end def rate_inv 1.0 - rate ...
Archeia/Kread-Ex-Scripts
IceDragon2000/lib/map_editor3/frame_timer.rb
Ruby
mit
455
from __future__ import division import random import matrix from tile import Tile class Island(object): def __init__(self, width=300, height=300): self.radius = None self.shore_noise = None self.rect_shore = None self.shore_lines = None self.peak = None self.spoke...
supermitch/Island-Gen
island.py
Python
mit
4,697
class Asset < ActiveRecord::Base belongs_to :uploadable, :polymorphic => true attr_accessible :attachment, :description, :uploadable_id, :uploadable_type, :uploadable acts_as_list def scope_condition "assets.uploadable_id = #{uploadable_id} and assets.uploadable_type='#{uploadable_type}'" end def v...
kerglis/keg_engine
app/models/asset.rb
Ruby
mit
542
jQuery.sap.registerModulePath("oui5lib", "webapp"); var oui5lib = {}; oui5lib.namespace = function(string) { var object = this; var levels = string.split("."); for (var i = 0, l = levels.length; i < l; i++) { if (typeof object[levels[i]] === "undefined") { object[levels[i]] = {}; ...
cahein/oui5lib
webapp/test/spec/helpers/setup.js
JavaScript
mit
826
'use strict'; moduloPrioridad.controller('PrioridadPListController', ['$scope', '$routeParams', '$location', 'serverService', 'prioridadService', '$uibModal', function ($scope, $routeParams, $location, serverService, prioridadService, $uibModal) { $scope.fields = prioridadService.getFields(); $sco...
Samyfos/Facturacion-Samuel
public_html/js/prioridad/plist.js
JavaScript
mit
3,275
PYTHON=`which python3.3` build: deps statics statics: venv venv/bin/python manage.py collectstatic --noinput deps: venv venv/bin/pip install -r requirements.txt venv: virtualenv venv --python ${PYTHON} clean: rm -rf venv rm -rf public find . -name '*.pyc' -delete find . -name '__pycache__' -delete
oinopion/membr
Makefile
Makefile
mit
312
// // WtDemoWebViewController.h // WtCore_Example // // Created by wtfan on 2017/9/1. // Copyright © 2017年 JaonFanwt. All rights reserved. // #import <UIKit/UIKit.h> @interface WtDemoWebViewController : UIViewController @property (nonatomic, assign) BOOL useThunder; @end
JaonFanwt/WtCore
Example/WtCore/Classes/ViewControllers/WtDemoWebViewController.h
C
mit
282
#![allow(dead_code)] //! A first person camera. use input::{ Button, GenericEvent }; use vecmath::traits::{ Float, Radians }; use Camera; bitflags!(pub struct Keys: u8 { const MOVE_FORWARD = 0b00000001; const MOVE_BACKWARD = 0b00000010; const STRAFE_LEFT = 0b00000100; const STRAFE_RIGHT = 0b0000...
elrnv/camera_controllers
src/first_person.rs
Rust
mit
9,586
"use strict"; exports.__esModule = true; exports.default = void 0; var _assert = _interopRequireDefault(require("assert")); var t = _interopRequireWildcard(require("@babel/types")); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var...
ocadni/citychrone
.build/bundle/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/@babel/helper-module-imports/lib/import-builder.js
JavaScript
mit
5,143
<section data-ng-controller="ProjectsController" data-ng-init="findOne()"> <div class="page-header"> <h1>Edit Project Proposal</h1> </div> <div class="col-md-12"> <form name="projectForm" class="form-horizontal" data-ng-submit="update(projectForm.$valid)" novalidate> <fieldset> <div class="form-group" ng-...
keegansanford/Colab
public/modules/projects/views/edit-project.client.view.html
HTML
mit
1,636
from __future__ import absolute_import, unicode_literals from builtins import str import os import pytest import io from glob import glob from psd_tools import PSDImage from psd2svg import psd2svg FIXTURES = [ p for p in glob( os.path.join(os.path.dirname(__file__), 'fixtures', '*.psd')) ] @pytest.ma...
kyamagu/psd2svg
tests/test_convert.py
Python
mit
1,077
2.1.1 / 2020-05-01 ================== * upgrade async to ~3 * replace mongo/should with tape * add `useUnifiedTopology` flag for DB connection * fix iterator.eachLimit * fix findOneAndUpdate test 2.1.0 / 2019-01-06 ================== * rename removeOne/All to deleteOneAll * add findOneAndReplace and findOneA...
code42day/mniam
History.md
Markdown
mit
2,993
# - 易工分系统
DeathPluto/-
README.md
Markdown
mit
20
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("Ca...
cgourlay/Cake.WebDeploy
src/WebDeploy/Properties/AssemblyInfo.cs
C#
mit
724
<?php require_once 'app/config/session.php'; require_once 'app/config/class.owner.php'; $auth_owner = new OWNER(); $id_owner = $_SESSION['user_session']; $stmt = $auth_owner->runQuery("SELECT * FROM tbl_owner WHERE id_owner=:id_owner"); $stmt->execute(array(":id_owner"=>$id_owner)); $ownerRow=$stmt->fetch(P...
oimtrust/paykoos
owner-renter-edit.php
PHP
mit
2,490
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <iWorkImport/TSDImageFill.h> @class TSPData, TSUColor; // Not exported @interface TSDMutableImageFill : TSDImageFill { } - (void)setScale:(double)arg1; @property(nonat...
matthewsot/CocoaSharp
Headers/PrivateFrameworks/iWorkImport/TSDMutableImageFill.h
C
mit
624
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <HomeSharing/HSRequest.h> @interface HSBulkRemovePlaylistRequest : HSRequest { } + (id)requestWithDatabaseID:(unsigned int)arg1 sessionID:(unsigned int)arg2 containerID...
matthewsot/CocoaSharp
Headers/PrivateFrameworks/HomeSharing/HSBulkRemovePlaylistRequest.h
C
mit
532
<?php namespace JeroenDesloovere\Bundle\GeolocationBundle\DependencyInjection; /* * This file is part of the Geolocation bundle. * * (c) Jeroen Desloovere <info@jeroendesloovere.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */...
jeroendesloovere/geolocation-bundle
DependencyInjection/JeroenDesloovereGeolocationExtension.php
PHP
mit
1,108
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2019.07....
simokhov/schemas44
src/main/java/ru/gov/zakupki/oos/signincoming/soap/messages/ReceiveRvpRequestType.java
Java
mit
2,772
<?php namespace <%= namespace %>; use <%= adminHelperNs %>\AdminHelper\Helper\AdminEditHelper; class <%= interfaceName %>EditHelper extends AdminEditHelper { protected static $model = '\<%= modelClass %>'; }
yetione/generator-bitrix-tools
generators/entity/templates/admininterface/edithelper.php
PHP
mit
216
# -*- coding: utf-8 -*- require 'comma/sanitized_extractor' module Comma class SanitizedDataExtractor < SanitizedExtractor def multicolumn(method, &block) Comma::MulticolumnExtractor.new(@instance, method, @globals, &block).extract_values.each do |result| @results << result end end ...
chargify/comma
lib/comma/sanitized_data_extractor.rb
Ruby
mit
2,150
package main import ( "github.com/gin-gonic/gin" "github.com/loopfz/scecret/auth" "github.com/loopfz/scecret/models" ) type ListCardsIn struct { IDScenario int64 `path:"scenario, required"` } func ListCards(c *gin.Context, in *ListCardsIn) ([]*models.Card, error) { sc, err := auth.RetrieveTokenScenario(db, c, ...
loopfz/scecret
api/card.go
GO
mit
5,398
Permission.create(section: 'ticketing', resource: 'admin', action: 'login') Permission.create(section: 'ticketing', resource: 'queue', action: 'read') Permission.create(section: 'ticketing', resource: 'queue', action: 'create') Permission.create(section: 'ticketing', resource: 'queue', action: 'update') Permission.cre...
sumitbirla/rhombus_ticketing
db/seeds.rb
Ruby
mit
765
namespace MiniUML.Model.ViewModels { using MiniUML.Model.Events; using MiniUML.Model.ViewModels.Shapes; /// <summary> /// Shape size adjustment operations /// supported by the <seealso cref="IShapeParent"/> interface. /// </summary> public enum SameSize { /// <summary> ...
Dirkster99/Edi
MiniUML/MiniUML.Model/ViewModels/IShapeParent.cs
C#
mit
4,418
import { FC, createElement as h } from 'react'; import { PageProps } from '@not-govuk/app-composer'; import { Page } from '@hods/components'; import './app.scss'; export const PageWrap: FC<PageProps> = ({ routes, children }) => { const compare = (a, b) => ( a.href > b.href ? 1 : -1 ); const navigati...
eliothill/home-office-digital-patterns
lib/plop-pack/skel/app/src/common/page-wrap.tsx
TypeScript
mit
603
using UnityEngine; using System.Collections; public class BookOfBasics : BookFinished { public Animator Door; public override void Finished() { Door.SetBool("Open", true); } }
noplisu/BookLearning
Assets/Scripts/BookOfBasics.cs
C#
mit
206
require 'gon' require 'fogbugz' class ApplicationController < ActionController::Base include Gitlab::CurrentSettings include GitlabRoutingHelper include PageLayoutHelper PER_PAGE = 20 before_action :authenticate_user_from_token! before_action :authenticate_user! before_action :validate_user_service_tic...
koreamic/gitlabhq
app/controllers/application_controller.rb
Ruby
mit
11,970
<?php class Home extends CI_Controller { function __construct() { parent::__construct(); //$this->load->model(''); $this->load->model('doctor_model'); $this->load->model('appointment_model'); $this->load->helper(array('fo...
milind-okay/HMS
application/controllers/home.php
PHP
mit
816
--- layout: page title: Omega Serenity Chemical Executive Retreat date: 2016-05-24 author: Andrea Fuentes tags: weekly links, java status: published summary: Morbi augue augue, consectetur eget pulvinar quis, blandit. banner: images/banner/people.jpg booking: startDate: 06/14/2016 endDate: 06/18/2016 ctyhocn: BMI...
KlishGroup/prose-pogs
pogs/B/BMIWEHX/OSCER/index.md
Markdown
mit
2,335
--- layout: page title: Zone Holdings Dinner date: 2016-05-24 author: Joshua Frost tags: weekly links, java status: published summary: Mauris venenatis lorem quis sapien auctor, nec tincidunt sem venenatis. banner: images/banner/leisure-04.jpg booking: startDate: 02/22/2017 endDate: 02/24/2017 ctyhocn: PBIVCHX ...
KlishGroup/prose-pogs
pogs/P/PBIVCHX/ZHD/index.md
Markdown
mit
2,968
package com.davan.alarmcontroller.http.services; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.media.AudioManager; import android.media.MediaPlayer; import android.net.Uri; import android.support.v4.content.L...
davandev/AlarmController
app/src/main/java/com/davan/alarmcontroller/http/services/LocalMediaFilePlayer.java
Java
mit
2,964
'use strict' const server = require('./lib/server') const base = require('../webpack.config') module.exports = function(env) { let config = base(env) // Setup the webpack dev server to include our API endpoints config.devServer.before = server return config }
vigetlabs/microcosm
examples/chatbot/webpack.config.js
JavaScript
mit
272
module Elliptic # elliptic integrals of 1st/2nd/3rd kind export E, F, K, Pi # jacobi elliptic functions export Jacobi # matlab compatible export ellipj, ellipke include("jacobi.jl") include("slatec.jl") function E(phi::Float64, m::Float64) if isnan(phi) || isnan(m) return NaN end if m < 0. || m > 1. throw(D...
nolta/Elliptic.jl
src/Elliptic.jl
Julia
mit
3,567
module Poseidon module Protocol class ResponseBuffer def initialize(response) @s = response @pos = 0 end def int8 byte = @s.slice(@pos, 1).unpack("C").first @pos += 1 byte end def int16 short = @s.slice(@pos, 2).unpack("s>").first ...
SponsorPay/poseidon
lib/poseidon/protocol/response_buffer.rb
Ruby
mit
1,166
app.controller('GroupListCtlr', [ '$scope', '$http', 'ToastFactory', function($scope, $http, toast) { $scope.pageSize = 20; $scope.currentPage = 0; $scope.getGroups = function() { $http.get('/api/management/groups') .success(function(data, status, ...
stanier/coyot.io
src/scripts/controllers/management/group/list.js
JavaScript
mit
1,705
# Meteor Video Chat This extension allows you to implement user-to-user video calling in React, Angular and Blaze. This package now uses [RTCFly](https://github.com/rtcfly/rtcfly) [Example with React](https://meteorvideochat.herokuapp.com) [Click here for the React example source code.](https://github.com/elmarti/me...
elmarti/meteor-video-chat
README.md
Markdown
mit
5,052