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 |
|---|---|---|---|---|---|
# Alternate API for adding custom Jasmine matchers
This is a more declarative, and, I hope, easier to use API for writing custom Jasmime matchers.
## Documentation
Instead of this:
```javascript
// TODO: show using the standard Jasmine API for creating a matcher
```
use this:
```javascript
let jenh = require('jasmi... | smendola/jasmine-add-matcher | README.md | Markdown | mit | 1,305 |
define( 'type.Integer', {
// class configuration
alias : 'int integer',
extend : __lib__.type.Number,
// public properties
precision : 0,
// public methods
valid : function( v ) {
return this.parent( v, true ) && Math.floor( v ) === v;
},
// internal methods
init : function() {
var... | agreco/expurg8 | src/type/Integer.js | JavaScript | mit | 765 |
package ua.com.fielden.platform.entity_centre.review;
import java.util.Date;
import ua.com.fielden.platform.domaintree.testing.EntityWithStringKeyType;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.entity.DynamicEntityKey;
import ua.com.fielden.platform.entity.annotation.Composi... | fieldenms/tg | platform-pojo-bl/src/test/java/ua/com/fielden/platform/entity_centre/review/EvenSlaverDomainEntity.java | Java | mit | 2,107 |
<li class="funnel-item">
<div class="funnel-item-label-wrapper">
<span class="js-funnel-item-label funnel-item-label"></span>
<span class="funnel-item-metadata"><span class="js-funnel-item-hits"></span><span class="js-funnel-item-trend-wrapper is-hidden"> / <span class="js-funnel-item-trend"></span></span></s... | tanem/funnel | templates/step.html | HTML | mit | 522 |
<html>
<head>
<title>Howdy!</title>
<style>
* {
margin: 0;
padding: 0;
}
html {
min-height:100%;
}
#container {
width: 960px;
margin: 0 auto;
... | j3rr3n/j3rr3n.github.io | projects/product-project/.notes/layout-test-solution.html | HTML | mit | 10,457 |
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ==========================================================================
Base styles: opinionated default... | djf10715/shopping-list | src/css/main_v1.css | CSS | mit | 6,355 |
#!/usr/bin/env python
__author__ = 'Radoslaw Matusiak'
__copyright__ = 'Copyright (c) 2016 Radoslaw Matusiak'
__license__ = 'MIT'
__version__ = '0.5'
import cmd
import functools
import os
import sys
from polar import Device
from polar.pb import device_pb2 as pb_device
__INTRO = """
_| ... | rsc-dev/loophole | loophole/__main__.py | Python | mit | 9,572 |
using EnhancedChannelManager.Entities.Enterprises;
using EnhancedChannelManager.Library;
namespace EnhancedChannelManager.Entities.Accounts
{
public class Customer : Account, IOwnedEntity<Enterprise>
{
public Enterprise Owner { get; set; }
}
}
| onashackem/EnhancedChannelManager | src/EnhancedChannelManager/Entities/Accounts/Customer.cs | C# | mit | 268 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_25) on Tue Jan 13 02:32:27 EST 2015 -->
<title>DateTime</title>
<meta name="date" content="2015-01-13">
<link rel="stylesheet" type="text/css" ... | juniversal/juniversal.github.io | jsimpledoc/jsimple/util/DateTime.html | HTML | mit | 32,269 |
I am STONFileReference, I am an implementation artifact to help reading objects with class tag equal to my #stonName.
I am a FileReference. | svenvc/ston | repository/STON-Core.package/STONFileReference.class/README.md | Markdown | mit | 140 |
# Usage for packageRemover
Copy the file to /usr/local/bin/
Give the file permission to run with: chmod 777 (username) packageRemover
The scripts looks for every .java file in the directory where it is executed and echoes the found files.
It uses a regular expression to find package statements in the files and remo... | Dekadee/PGDPScripts | Shell/pkgRmvUsg.md | Markdown | mit | 1,429 |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- disable iPhone inital scale -->
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<?php
// Spit out meta tags
foreach($data->getMeta() as $name => $content)
echo '<meta name="'.$name.'" content="'.$content... | ArroyoLabs/meetups | d3demo_php/public/themes/erdiko/templates/default.php | PHP | mit | 1,660 |
<!doctype html>
<html class="no-js" lang="">
<head>
<title>Zabuun - Learn Egyptian Arabic for English speakers</title>
<meta name="description" content="">
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?>
<?php inc... | javanigus/zabuun | essay/2165-little-hope-for-hemp.php | PHP | mit | 1,174 |
<?php use_helper('I18N', 'Date', 'JavascriptBase') ?>
<?php include_partial('sfJqueryTreeDoctrineManager/assets') ?>
<div id="sf_admin_container">
<h1><?php echo sfInflector::humanize(sfInflector::underscore($model)); ?> Nested Set Manager</h1>
<?php include_partial('sfJqueryTreeDoctrineManager/flashes') ?>
<... | Symfony-Plugins/sfJqueryTreeDoctrineManagerPlugin | modules/sfJqueryTreeDoctrineManager/templates/_manager.php | PHP | mit | 775 |
@CHARSET "UTF-8";
body {
padding-top: 60px;
}
div#chartContainer {
padding-bottom: 30px;
}
div#loading {
display: none;
border: 8px solid #f3f3f3; /* Light grey */
border-top: 8px solid #3498db; /* Blue */
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 2s linear infini... | bbischoff/f3rva-web | css/f3.css | CSS | mit | 442 |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style/main.css">
</head>
<body>
<div id="tickets-panel"></div>
<div id="slider-panel">
<button id="prev-button"></button>
<button id="next-button"></button>
<div id="current-page-info">0</div>
</div>
</body>
<script src="src/ba... | telmanagababov/js-patterns-examples | mediator/index.html | HTML | mit | 827 |
/**
* KeyParser.ts
*
* Simple parsing logic to take vim key bindings / chords,
* and return a normalized object.
*/
export interface IKey {
character: string
shift: boolean
alt: boolean
control: boolean
meta: boolean
}
export interface IKeyChord {
chord: IKey[]
}
export const parseKeysFr... | extr0py/oni | browser/src/Input/KeyParser.ts | TypeScript | mit | 2,737 |
import * as React from 'react';
import { connect } from 'react-redux';
import * as Actions from './Actions';
import { ITrackHistoryState } from './ITypes';
let Dropzone = require('react-dropzone');
interface IProps extends ITrackHistoryState {
dispatch: Function;
};
function selectState(state: ITrackHistoryState) {... | inakianduaga/redux-state-history | src/Component.tsx | TypeScript | mit | 7,208 |
var fs = require('fs'),
es = require('event-stream'),
asyncJoin = require('gwm-util').asyncJoin;
module.exports = function(options) {
var type = options.buildType,
configFileName = './config/' + type + '.json',
fileData = {},
successCallback,
errorText,
blocker = asyncJoin(funct... | jhudson8/gulp-web-modules | lib/section-content-wrapper.js | JavaScript | mit | 1,761 |
---
layout: post
title: "Python tkinter 강좌 : 제 6강 - Checkbutton"
tagline: "Python tkinter Checkbutton"
image: /assets/images/tkinter.png
header:
image: /assets/patterns/asanoha-400px.png
tags: ['Tkinter']
keywords: Python, Python tkinter, tkinter Checkbutton
ref: Python-Tkinter
category: Python
permalink: /posts/Pyth... | 076923/076923.github.io | _posts/Python-Tkinter/2018-05-13-Python-tkinter-6.md | Markdown | mit | 10,276 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Task03EnglishNameOfLastDigit
{
static void Main(string[] args)
{
long number = long.Parse(Console.ReadLine());
string numberInLetters = FindTheLastDigitI... | samuilll/BeginnerExams | PrgrammingFundametnalsFast/04_MethodsAndDebbuging/Task03EnglishNameOfLastDigit/Task03EnglishNameOfLastDigit.cs | C# | mit | 1,860 |
<!-- HTML header for doxygen 1.8.8-->
<!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="X-UA-Compatible" content="IE=edge">
<!-- For Mobile Devices -->
... | utilForever/CubbyFlow | struct_cubby_flow_1_1_f_d_m_compressed_linear_system3-members.html | HTML | mit | 5,856 |
import json
import sublime
import sublime_plugin
from .edit import Edit
class PawnBuildPathCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel(
"Working directory that contains pawncc.exe",
"C:\\Pawno\\",
self.onPawnPathDone,
... | Southclaw/pawn-sublime-language | PawnBuildPath.py | Python | mit | 1,010 |
var postData = querystring.stringify({
'value' : '55',
'room_id' : '1'
});
var options = {
hostname: 'localhost',
port: 80,
path: '/temperatures',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': postData.length
}
};
var req = http.request(optio... | MirkoC/SmartHouseRaspberryPiServer | post_to_rails.js | JavaScript | mit | 701 |
# Symlinked to ~/.dotfiles/config/zsh/modules/diff.zsh
dif() {
if command -v delta >/dev/null; then
diff --unified --recursive --exclude=.terraform --exclude=.git "$@" | delta
else
diff --unified --recursive --exclude=.terraform --exclude=.git --color "$@"
fi
}
# Directory files differences only
ddif() {... | hectorhuertas/.dotfiles | config/diff/diff.zsh | Shell | mit | 428 |
<?php
use Assert\Assertion;
use expect\FailedMessage;
use expect\matcher\ToMatch;
describe(ToMatch::class, function () {
describe('#match', function () {
beforeEach(function () {
$this->matcher = new ToMatch('/foo/');
});
context('when match', function () {
it('ret... | expectation-php/expect | spec/matcher/ToMatch.spec.php | PHP | mit | 1,724 |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Design Team - Sprint Review</title>
<meta name="description" content="Talking-bout Sprint Review">
<meta name="author" content="Lee Williams">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-ap... | ell0ell0/sprint_140 | index.html | HTML | mit | 25,208 |
class node:
def __init__(self):
self.outputs=[]
def set(self):
for out in self.outputs:
out.set()
def clear(self):
for out in self.outputs:
out.clear()
class switch:
def __init__(self):
self.outputs=[]
self.state=False
self.input=False
def set(self):
self.input=True
if(self.state):
... | mikadam/LadderiLogical | tests/node.py | Python | mit | 1,030 |
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div id="left-well" class="well">
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
<button class="btn ... | fmut/freecodecampanswer | Responsive Design with Bootstrap/27-Add ID Attributes to Bootstrap Elements.html | HTML | mit | 652 |
<!doctype html>
<html>
<head>
<style>
/**
* apply a natural box layout model to all elements, but allowing components to change
* @source - https://www.paulirish.com/2012/box-sizing-border-box-ftw/
* @todo - scope global style into appropriate stylesheet, with gulp task for compiling be... | nsarafa/hours | dist/index.html | HTML | mit | 795 |
namespace MyServer.Web.Data
{
using Microsoft.AspNetCore.Identity;
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
}
} | atanas-georgiev/MyServer | src/Web/MyServer.Web/Data/ApplicationUser.cs | C# | mit | 229 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>ip::multicast::enable_loopback</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="Asio">
<... | dhh1128/intent | old/src/external/asio-1.10.2/doc/asio/reference/ip__multicast__enable_loopback.html | HTML | mit | 6,020 |
# webpi Cookbook CHANGELOG
This file is used to list changes made in each version of the webpi cookbook.
## 4.2.0 (2017-04-05)
- Convert the install LWRP to a custom resource
- Added testing of the resource in appveyer
## 4.1.1 (2017-03-29)
- Resolve incompatibility with windows 3.0 cookbook
## 4.1.0 (2017-03-20)
... | apprenda/bxcr | chef/berks-cookbooks/webpi/CHANGELOG.md | Markdown | mit | 2,268 |
package com.nepfix.sim.elements;
import com.nepfix.sim.core.Processor;
import java.util.Map;
public class UnitProcessor implements Processor {
private String id;
@Override public void init(String id, Map<String, String> args) {
this.id = id;
}
@Override public String process(String input) ... | pabloogc/Nepfix | sim/src/main/java/com/nepfix/sim/elements/UnitProcessor.java | Java | mit | 416 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TwitchIntegrator
{
internal class CitizenManagerMod : CitizenManager
{
public string GetCitizenName(uint citizenID)
{
return TwitchNames.GetName((int) citizenID);
}
... | kiwiploetze/TwitchIntegrator | CitizenManagerMod.cs | C# | mit | 329 |
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 TechReborn
*
* 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, inc... | TechReborn/TechReborn | src/main/java/techreborn/blocks/storage/item/StorageUnitBlock.java | Java | mit | 4,798 |
<?php
namespace App\Command\Import;
use App\Command\BaseCommand;
use App\Entity\Framework\LsDoc;
class MarkImportLogsAsReadCommand extends BaseCommand
{
/**
* @var LsDoc
*/
private $doc;
public function __construct(LsDoc $doc)
{
$this->doc = $doc;
}
public function getDoc... | opensalt/opensalt | core/src/Command/Import/MarkImportLogsAsReadCommand.php | PHP | mit | 371 |
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\BaseHttpException;
use Symfony\Component\HttpKernel\NotFoundHttpException;
use Silex\Provider\FormServiceProvider;
use Silex\Provider\TwigS... | Josiastech/silexApp | web/index.php | PHP | mit | 2,418 |
<?php
namespace Nature;
class UserToken {
private $timePassed = 1418464671;
private $codeMaps = "~!@#$%^&*()_+=-{}[]|\;,.<>?/abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
private $key;
private $uid;
private $expire=604800;
function __construct($key=null){
... | shiny/Nature | App/Nature/UserToken.class.php | PHP | mit | 2,810 |
// Copyright © 2017 Viro Media. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, m... | viromedia/viro | android/viro_bridge/src/main/java/com/viromedia/bridge/component/node/VRTSceneManagerImpl.java | Java | mit | 1,801 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace HTLib2.Bioinfo
{
public partial class Pdb
{
[Serializable]
public class Model : Element, IComparable<Model>, IBinarySerializable
{
/// http://www.wwpd... | htna/HCsbLib | HCsbLib/HCsbLib/HTLib2.Bioinfo/Pdb/Pdb.Element/CoordinateSection/Pdb.Model.cs | C# | mit | 5,446 |
class CreateDiners < ActiveRecord::Migration
def change
create_table :diners do |t|
t.integer :signup_id
t.string :diner_name
t.timestamps null: false
end
end
end
| heath3conk/katz-golf-tournament | db/migrate/20160522202905_create_diners.rb | Ruby | mit | 194 |
'use strict';
/**
* Created by x on 11/23/15.
*/
var path = require('path');
var webpack = require('webpack');
var os = require('os');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config.dev');
var pathToBuild = path.resolve(__dirname, 'www');
var IPv4
for(var i=0;i<os.networ... | v-xiaofendui/XFD-UI | webpack.server.js | JavaScript | mit | 1,233 |
<?php
/**
* This file is part of the Wunderlist library.
*
* @author Wilson Pinto <wilsonpinto360@gmail.com>
* @copyright 2016
*
* For the full copyright and license information,
* please view the LICENSE.md file that was distributed
* with this source code.
*/
namespace Wilsonpinto\Wunderlist\Tests\end... | wilsonpinto/wunderlist | tests/endpoints/FoldersTest.php | PHP | mit | 4,035 |
package za.co.cporm.model.loader.support;
import android.content.Context;
import android.database.Cursor;
import android.support.v4.content.CursorLoader;
import za.co.cporm.model.generate.TableDetails;
import za.co.cporm.model.query.Select;
import za.co.cporm.model.util.CPOrmCursor;
import za.co.cporm.model.util.Conte... | Wackymax/CPOrm | CPOrm/src/main/java/za/co/cporm/model/loader/support/CPOrmLoader.java | Java | mit | 2,810 |
#LICENSE
##The MIT License (MIT)
Copyright 2014 Tim Erwin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | timothyerwin/auto.js | LICENSE.md | Markdown | mit | 1,084 |
# React + MobX OfferMVC Example
This repository provides a reference implementation of the [OfferMVC](http://offermvc.com) application written using [MobX](https://github.com/mobxjs/mobx), [React](https://facebook.github.io/react) JSX and ES6.
## Running the example
```
npm install
npm start
open http://localhost:30... | HarelDavid/AdFriend | README.md | Markdown | mit | 1,377 |
import React from 'react';
import PostImage from '../components/story/PostImage';
import TwoPostImages from '../components/story/TwoPostImages';
import StoryPage from '../components/story/StoryPage';
import StoryTextBlock from '../components/story/StoryTextBlock';
import StoryImages from '../components/story/StoryImage... | danpersa/remindmetolive-react | src/stories/2016-11-20-irina-and-lucian-maternity-photo-session.js | JavaScript | mit | 6,016 |
/// <reference types="node" />
declare module 'sqlite3' {
// Type definitions for sqlite3 3.1
// Project: http://github.com/mapbox/node-sqlite3
// Definitions by: Nick Malaguti <https://github.com/nmalaguti>
// Sumant Manne <https://github.com/dpyro>
// Behind The Math <https:... | kriasoft/node-sqlite | src/vendor-typings/sqlite3/index.d.ts | TypeScript | mit | 5,194 |
{% extends "app7_static_files/flexible_base.html" %}
{% load static %}
{% block style %}
<link rel="stylesheet" href="{% static 'css/app7_green_style.css' %}">
{% endblock %}
{% block content %}
<p> <a href=".." >Back</a> </p>
<h1>Static files in production</h1>
<p>
You would do it exactly the same way, excep... | sametmax/Django--an-app-at-a-time | apps/app7_static_files/templates/app7_static_files/prod_static_files.html | HTML | mit | 3,782 |
@charset "UTF-8";
/*!
Animate.css - http://daneden.me/animate
Licensed under the MIT license - http://opensource.org/licenses/MIT
Copyright (c) 2014 Daniel Eden
*/
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.animated.in... | momin-ctg/dpi | css/animation.css | CSS | mit | 73,180 |
@font-face {
font-family: 'Overpass';
src: url('overpass-regular.eot');
src: url('overpass-regular.eot?#iefix') format('embedded-opentype'),
url('overpass-regular.woff2') format('woff2'),
url('overpass-regular.woff') format('woff'),
url('overpass-regular.ttf') format('truetype');
... | okfde/demokratielabore | static/fonts/overpass/overpass.css | CSS | mit | 3,886 |
<?php
declare(strict_types = 1);
namespace Rx\Testing;
use Rx\TestCase;
class RecordedTest extends TestCase
{
public function testRecordedWillUseStrictCompareIfNoEqualsMethod()
{
$recorded1 = new Recorded(1, 5);
$recorded2 = new Recorded(1, "5");
$recorded3 = new Recorded(1, 5);
... | ReactiveX/RxPHP | test/Rx/Testing/RecordedTest.php | PHP | mit | 602 |
/*The MIT License (MIT)
Copyright (c) 2014 PMU Staff
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | Sprinkoringo/PMU-Client | Client/Editors/RDungeons/EditableRDungeonTrap.cs | C# | mit | 1,465 |
module Locomotive
module LiquidExtras
module Filters
module Math
def round(input, digits = 0)
input.to_f.round(digits)
end
end
::Liquid::Template.register_filter(Math)
end
end
end
| warp/liquid_extras | lib/locomotive/liquid_extras/filters/math.rb | Ruby | mit | 239 |
/*
* The MIT License
*
* Copyright 2015 Ryan Gilera.
*
* 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, mod... | Daytron/Twaattin | src/main/java/com/github/daytron/twaattin/presenter/LogoutBehaviour.java | Java | mit | 2,099 |
package org.railwaystations.api.resources;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.StringUtils;
import org.railwaystations.api.PhotoImporter;
import org.railwaystations.api.StationsRepository;
import org.railwaystations.api.model.Station;
import javax.ws.rs.*;
import java... | pstorch/bahnhoefe.gpx | src/main/java/org/railwaystations/api/resources/SlackCommandResource.java | Java | mit | 5,251 |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule } from '@angular/router';
import { HttpModule } from '@angular/http';... | jupiter101/platform | example-app/app/app.module.ts | TypeScript | mit | 3,067 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2010-2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | mewf/minirs-core | src/main/java/co/mewf/minirs/rs/GET.java | Java | mit | 2,502 |
<?php
namespace anli\user\models;
use anli\user\models\TenantUser;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
/**
* TenantUserSearch represents the model behind the search form about `app\models\TenantUser`.
*/
class TenantUserSearch extends TenantUser
{
/**
* @inheritdoc
*/
pu... | anli/yii2-user | models/TenantUserSearch.php | PHP | mit | 1,696 |
import{B as t,K as e}from"./index-82df5684.js";export default class extends t{connected(){const{host:t,params:s}=this,{name:o}=s,i=`--nu${o?"-"+o:""}-offset-x`,n=`--nu${o?"-"+o:""}-offset-y`,r=e=>{this._active=!0;const s=t.getBoundingClientRect(),o=e.clientX-s.left,r=e.clientY-s.top,h=o/s.width*2-1,c=r/s.height*2-1;t.s... | cdnjs/cdnjs | ajax/libs/numl/0.12.0-beta.9/offset-db8817fb.js | JavaScript | mit | 645 |
/* ====================================================================
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 Y... | tobyclemson/msci-project | vendor/poi-3.6/src/ooxml/java/org/apache/poi/openxml4j/exceptions/OpenXML4JRuntimeException.java | Java | mit | 1,364 |
search_result['3225']=["topic_00000000000007B9.html","ApplicantDetailRequestDto.Notes Property",""]; | asiboro/asiboro.github.io | vsdoc/search--/s_3225.js | JavaScript | mit | 100 |
#include "q_constants.h"
#include "macros.h"
#include "qtypes.h"
#include "s_to_f_const_F4.h"
void
s_to_f_const_F4(
float *X,
uint64_t nX,
float val
)
{
for ( uint64_t i = 0; i < nX; i++ ) {
X[i] = val;
}
}
| NerdWalletOSS/Q | DEPRECATED_Q2/PRIMITIVES/src/s_to_f_const_F4.c | C | mit | 233 |
<!-- HTML header for doxygen 1.8.11-->
<!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" cont... | Daekesh/KeshUI | Docs/html/class_u_k_u_i_list_container.html | HTML | mit | 135,002 |
<?php
/**
* Debug Addon
* @author sven[ät]koalashome[punkt]de Sven Eichler
* @package redaxo4
*/
$REX['ADDON']['install']['ko_debug'] = 0;
| olien/RexBase15 | redaxo/include/addons/ko_debug/uninstall.inc.php | PHP | mit | 147 |
<script language="javascript">
$(document).ready(function(){
$(function() {
$("#pagination a").each(function() {
var g = window.location.href.slice(window.location.href.indexOf('?'));
var href = $(this).attr('href');
$(this).attr('href', href+g);
});
});
});
... | vuonghuynhthanhtu/administrator.lacasa.com | application/views/pages/order_cancel.php | PHP | mit | 7,186 |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search — Miruken-ES5 documentation</t... | miruken/miruken.github.io | documentation/versions/miruken-es5/miruken/master/search.html | HTML | mit | 7,518 |
require 'spec_helper'
describe Booker::BusinessClient do
let(:base_url) { 'https://apicurrent-app.booker.ninja/webservice4/json/BusinessService.svc' }
let(:temp_access_token) { 'token' }
let(:temp_access_token_expires_at) { Time.now + 1.minute }
let(:client_id) { 'client_id' }
let(:client_secret) { 'client_s... | AbeCole/booker_ruby | spec/lib/booker/business_client_spec.rb | Ruby | mit | 4,902 |
import * as Jungle from '../../../jungle'
const {Construct, Composite, Domain, Cell, j, J} = Jungle;
import * as Debug from '../../../util/debug'
describe("A Cell", function () {
Debug.Crumb.defaultOptions.log = console;
Debug.Crumb.defaultOptions.debug = true;
let cell;
beforeEach(function(){
... | Space-Ed/junglejs | ts_src/test/specs/tertiary/cellSpec.ts | TypeScript | mit | 1,305 |
# frozen_string_literal: true
module RuboCop
module Cop
module Rails
# This cop is used to identify usages of http methods
# like `get`, `post`, `put`, `path` without the usage of keyword arguments
# in your tests and change them to use keyword arguments.
#
# @example
# # ba... | melch/rubocop | lib/rubocop/cop/rails/http_positional_arguments.rb | Ruby | mit | 3,883 |
// <auto-generated />
using Elections.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Storage.I... | Aurel/rbya_election | Elections/Migrations/20180810090757_AddSomeDefaultValues.Designer.cs | C# | mit | 3,710 |
package de.danoeh.antennapod.core;
import android.content.Context;
import de.danoeh.antennapod.core.cast.CastManager;
import de.danoeh.antennapod.core.preferences.PlaybackPreferences;
import de.danoeh.antennapod.core.preferences.SleepTimerPreferences;
import de.danoeh.antennapod.core.preferences.UserPreferences;
impo... | mfietz/AntennaPod | core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java | Java | mit | 1,708 |
[](https://waffle.io/FrancFranc/stockers?utm_source=badge)
# stockers | FrancFranc/stockers | README.md | Markdown | mit | 161 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Portal = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descripto... | meyve/react-portalizer | build/index.js | JavaScript | mit | 7,276 |
package construtores;
public class ConstrutorTesteDrive {
public static void main(String[] args) {
// Construtor c1 = new Construtor();
// System.out.println("--c1\n" + c1.getNomeERg() + "\n\n");
Construtor c2 = new Construtor("Odair");
System.out.println("--c2\n" + c2.getNomeERg() + "\n\n");
... | wesleyegberto/study-ocjp | src/construtores/ConstrutorTesteDrive.java | Java | mit | 449 |
package com.veaer.glass.viewpager;
import android.support.v4.view.ViewPager;
import com.veaer.glass.trigger.Trigger;
/**
* Created by Veaer on 15/11/18.
*/
public class PagerTrigger extends Trigger implements ViewPager.OnPageChangeListener {
private ColorProvider colorProvider;
private int startPosition, e... | Veaer/Glass | glass/src/main/java/com/veaer/glass/viewpager/PagerTrigger.java | Java | mit | 1,762 |
#include "catch.hpp"
#include "SearchExpression.hpp"
using namespace quip;
TEST_CASE("Search expressions can be constructed from an empty expression.", "[SearchExpressionTests]") {
SearchExpression expression("");
REQUIRE_FALSE(expression.valid());
}
TEST_CASE("Search expressions can be constructed from a s... | jpetrie/quip | Projects/Core.Tests/SearchExpressionTests.cpp | C++ | mit | 894 |
/* global HTMLImageElement */
/* global HTMLCanvasElement */
/* global SVGElement */
import getOptionsFromElement from "./getOptionsFromElement.js";
import renderers from "../renderers";
import {InvalidElementException} from "../exceptions/exceptions.js";
// Takes an element and returns an object with information ab... | lindell/JsBarcode | src/help/getRenderProperties.js | JavaScript | mit | 2,868 |
import EVENTS from '../events.js';
import external from '../externalModules.js';
import mouseButtonTool from './mouseButtonTool.js';
import touchTool from './touchTool.js';
import pointInsideBoundingBox from '../util/pointInsideBoundingBox.js';
import toolColors from '../stateManagement/toolColors.js';
import isMouseBu... | google/cornerstoneTools | src/imageTools/textMarker.js | JavaScript | mit | 9,174 |
@import url(../../../https://fonts.googleapis.com/css?family=Oswald:400,300,700);
@import url(../../../https://fonts.googleapis.com/css?family=Lora:400,700);
@import url(../../../https://fonts.googleapis.com/css?family=Raleway:400,300,700);
body,
input,
textarea,
.mbr-company .list-group-text {
font-family: 'Rale... | sc101111/sokay | cn-fakenatoo/assets/mobirise/css/mbr-additional.css | CSS | mit | 16,578 |
using System;
class MalkoKote
{
static void Main()
{
int size = int.Parse(Console.ReadLine());
char character = char.Parse(Console.ReadLine());
//int height = size;
int width = size / 2 + 4;
int catBodyWidth = width / 2 + 1;
// part 1
Console.WriteLine... | petyakostova/Telerik-Academy | C#/C# 1 Contests/4/Malko-Kote/04. Malko-Kote/MalkoKote.cs | C# | mit | 2,124 |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Order */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="col-xs-12">
<div class="row... | kirillantv/yii2-swap | views/management/orders/view.php | PHP | mit | 1,263 |
/*
* MIT License
*
* Copyright (c) 2020 Choko (choko@curioswitch.org)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | curioswitch/curiostack | cluster/pulumi/root/bootstrap/index.ts | TypeScript | mit | 1,198 |
// Copyright (c) 2014 The GreenCoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "networkstyle.h"
#include "guiconstants.h"
#include <QApplication>
static const struct {
const char *networkId;
c... | GreenCoinX/greencoin | src/qt/networkstyle.cpp | C++ | mit | 1,659 |
<!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="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<ti... | montoyjh/pymatgen | docs/_modules/pymatgen/transformations/site_transformations.html | HTML | mit | 81,107 |
using System;
using Aop.Api.Domain;
using System.Collections.Generic;
using Aop.Api.Response;
namespace Aop.Api.Request
{
/// <summary>
/// AOP API: alipay.marketing.campaign.drawcamp.trigger
/// </summary>
public class AlipayMarketingCampaignDrawcampTriggerRequest : IAopRequest<AlipayMarketingCampaign... | erikzhouxin/CSharpSolution | OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/Request/AlipayMarketingCampaignDrawcampTriggerRequest.cs | C# | mit | 2,422 |
import assert from 'assert';
import sinon from 'sinon';
import fs from 'fs';
import stream from 'stream';
import { InsertStream } from '../';
/**
* Transform class to turn our string JSON data into objects.
*/
class TransformToObject extends stream.Transform {
constructor() {
super({objectMode:true});
}
... | feedhenry/fh-dataman | src/endpoints/http/collections/import/mongoStream/test/InsertStream_test.js | JavaScript | mit | 2,106 |
package main
import (
"errors"
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
"os"
"path/filepath"
"strings"
"text/template"
)
const (
usageText = `SCANEO
Generate Go code to convert database rows into arbitrary structs.
USAGE
scaneo [options] paths...
OPTIONS
-o, -output
Set the... | variadico/scaneo | scaneo.go | GO | mit | 8,566 |
#include <core/stdafx.h>
#include <core/smartview/NickNameCache.h>
namespace smartview
{
void SRowStruct::parse()
{
cValues = blockT<DWORD>::parse(parser);
if (*cValues)
{
if (*cValues < _MaxEntriesSmall)
{
lpProps = std::make_shared<PropertiesStruct>(*cValues, true, false);
lpProps->block::pars... | stephenegriffin/mfcmapi | core/smartview/NickNameCache.cpp | C++ | mit | 1,725 |
LastMinuteTrain
===============
A little nicknack for myself so that I can time, to the minute, my walk to the station for my commute home!
It sneaks a look at the CityMapper API, using the same call by their superduper [Super Router](https://citymapper.com/london/superrouter) to see what trains are due to leave a sp... | adav/LastMinuteTrain | README.md | Markdown | mit | 896 |
/*
* Copyright (C) 1996-2000,2002,2007 Michael R. Elkins <me@mutt.org>
*
* 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 opt... | hihellobolke/mutt-extra | hdrline.c | C | mit | 19,546 |
class AddOauthGithubToUsers < ActiveRecord::Migration[5.1]
def change
add_column :users, :provider, :string
add_column :users, :uid, :string
end
end
| Jacaa/todo_list | db/migrate/20170828093906_add_oauth_github_to_users.rb | Ruby | mit | 161 |
<?php
if(!isset($_SESSION)){
session_start();
}
session_destroy();
header("Location: ../../../login.php");
exit; | rubenalmeida/AdminLTE | administrador/cadastros/usuarios/Logout.php | PHP | mit | 117 |
<?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\Bundle\PromotionBundle\Form\Type\Rule;
use Symfony\Component\Form\Abstr... | songecko/legem-ecommerce | src/Sylius/Bundle/PromotionBundle/Form/Type/Rule/ItemCountConfigurationType.php | PHP | mit | 2,036 |
//-----------------------------------------------------------------------
// <copyright file="SingleInstance.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <summary>
// This class checks to make sure that only one instance of
// this application i... | ihtfw/Logazmic | src/Logazmic/Utils/SingleInstance.cs | C# | mit | 15,765 |
using System;
using System.Collections.Generic;
/// <summary>
/// Calculate sequence with queue.
/// 100/100
/// https://judge.softuni.bg/Contests/Practice/Index/184#4
/// </summary>
namespace _05._Sequence_With_Queue
{
class SequenceWithQueue
{
static void Main()
{
decimal n = de... | delian1986/SoftUni-C-Sharp-repo | Old Courses/C# Advanced Old/01. Stacks Queues/StackQueueExercises/05. Sequence With Queue/SequenceWithQueue.cs | C# | mit | 1,329 |
from math import sqrt
def is_prime(x):
for i in xrange(2, int(sqrt(x) + 1)):
if x % i == 0:
return False
return True
def rotate(v):
res = []
u = str(v)
while True:
u = u[1:] + u[0]
w = int(u)
if w == v:
break
res.append(w)
ret... | neutronest/eulerproject-douby | e35/35.py | Python | mit | 586 |
package main
import (
"encoding/json"
"errors"
"fmt"
"os"
"github.com/idahobean/npm-resource/check"
"github.com/idahobean/npm-resource/npm"
)
func main() {
NPM := npm.NewNPM()
command := check.NewCommand(NPM)
var request check.Request
if err := json.NewDecoder(os.Stdin).Decode(&request); err != nil {
f... | idahobean/npm-resource | check/cmd/check/main.go | GO | mit | 832 |
import 'aurelia-polyfills';
import 'aurelia-loader-webpack';
import {initialize} from 'aurelia-pal-browser';
import { PLATFORM } from 'aurelia-pal';
initialize();
PLATFORM.moduleName('test/resources/view-model-1');
PLATFORM.moduleName('test/resources/view-model-1.html');
| aurelia/templating-resources | test/setup.ts | TypeScript | mit | 274 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.