repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
aguerny/LacquerTracker | node_modules/mongoose/lib/options/saveOptions.js | 216 | 'use strict';
const clone = require('../helpers/clone');
class SaveOptions {
constructor(obj) {
if (obj == null) {
return;
}
Object.assign(this, clone(obj));
}
}
module.exports = SaveOptions; | mit |
SidneyAllen/Xero-Java | src/main/java/com/xero/models/payrollau/HomeAddress.java | 5057 | /*
* Xero Payroll AU
* This is the Xero Payroll API for orgs in Australia region.
*
* The version of the OpenAPI document: 2.2.4
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manuall... | mit |
rurc/rurc | doc/README.md | 1707 | rurc 0.8.x BETA
====================
Copyright (c) 2009-2013 Bitcoin Developers
Copyright (c) 2014 Vertcoin Developers
Copyright (c) 2015 rurc Developers
Distributed under the MIT/X11 software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes softw... | mit |
pshrmn/cryptonite | src/components/tools/VigenereKeys.js | 1314 | import React from 'react';
import ShiftKey from './ShiftKey';
import 'scss/vigenere.scss';
export default class VigenereKeys extends React.Component {
constructor(props) {
super(props);
this.state = {
keyword: ''
};
this.keywordHandler = this.keywordHandler.bind(this);
}
keywordHandler(ev... | mit |
TYLANDER/interspan | client/src/components/job-form/references/References.tsx | 11774 | import * as React from 'react';
import ActiveButtons from '../active-buttons/ActiveButtons';
import { TextField, FlatButton } from 'material-ui';
import "./References.css";
import Styling from "../jobTheme";
class References extends React.Component<any, any>{
constructor(props: any) {
super(props);
... | mit |
C2FO/gofigure | jest.config.js | 6865 | /*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// The direct... | mit |
LykkeCity/MarketPlace | AzureRepositories/Finance/BalanceRepository.cs | 2167 | using System.Collections.Generic;
using System.Threading.Tasks;
using AzureStorage;
using Common;
using Core.Finance;
using Microsoft.WindowsAzure.Storage.Table;
namespace AzureRepositories.Finance
{
public class TraderBalanceEntity : TableEntity, ITraderBalance
{
public static string GeneratePartiti... | mit |
zdizzle6717/battle-comm | src/actions/UserNotificationActions.js | 2189 | 'use strict';
import UserNotificationConstants from '../constants/UserNotificationConstants';
import UserNotificationService from '../services/UserNotificationService';
const _initiateRequest = (type, data) => {
return {
'type': type,
'data': data
};
};
const _returnResponse = (type, data) => {
return {
'typ... | mit |
denglert/manuals | q/namespaces/dotQ/en.md | 293 | # `.Q.en`
**References:**
- https://code.kx.com/q/kb/splayed-tables/
- https://code.kx.com/q/wp/symfiles/
- https://code.kx.com/q/kb/compacting-hdb-sym/
-------------------------------------------------------------------------------------------------------
## Enumarating symbol columns
| mit |
sustmi/fb-post-downloader | src/Command/AddPageCommand.php | 1246 | <?php
declare(strict_types=1);
namespace App\Command;
use App\Model\Page\PageRepository;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class AddPageCommand ex... | mit |
spryker/demoshop | src/Pyz/Zed/Collector/Business/CollectorFacadeInterface.php | 7206 | <?php
/**
* This file is part of the Spryker Demoshop.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Zed\Collector\Business;
use Generated\Shared\Transfer\LocaleTransfer;
use Orm\Zed\Touch\Persistence\SpyTouchQuery;
use Spryker\Zed\Collec... | mit |
realspencerdupre/PoS_Sourcecoin | src/qt/locale/bitcoin_ar.ts | 119926 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About CM_CapitalName</source>
<translation>عن البلاك كوين</translation>
</message>
<message>
... | mit |
sultanhq/RAND-MakersBNB | app/controllers/session_controller.rb | 580 | class RandBnb < Sinatra::Base
get '/signin' do
redirect '/sessions/new'
end
get '/sessions/new' do
erb :signin
end
post '/sessions' do
user = User.authenticate(params[:email], params[:password])
if user
session[:user_id] = user.id
session[:new_user] = false
redirect("/dash... | mit |
dale3h/alexa-skills-list | skills/B01MTUPB0J/README.md | 659 | # [jonaskeutel](http://alexa.amazon.com/#skills/amzn1.ask.skill.4832882a-edf2-4449-8d13-ed6499dbb9af)
 2014 STABILO digital. All rights reserved.
//
// Version 1.0 May 18, 2015
//
#import "PaintViewData.h"
#import "PaintViewLine.h"
@interface PaintSplines : NSObject
- (instancetype) initWithData:(PaintViewData *)data;
- (... | mit |
ArchitectNow/ArchitectNow.ApiStarter | src/ArchitectNow.ApiStarter.Api/Models/ViewModels/LoginResultVm.cs | 199 | namespace ArchitectNow.ApiStarter.Api.Models.ViewModels
{
public class LoginResultVm
{
public string AuthToken { get; set; }
public UserVm CurrentUser { get; set; }
}
} | mit |
andres0sorio/CodeExperiments | fichemgrfront/src/app/fiches/fiche-detail/fiche-detail.component.html | 5872 | <div>
<h3>{{labels[0].details.title}}</h3>
<p>{{labels[0].details.selected}}: {{ id }}</p>
<form [formGroup]="ficheForm" (ngSubmit)="onSubmit(ficheForm)" novalidate>
<div class="field style-4">
<label for="titleInput">{{bookform.title.label}}</label>
<input type="text" id="titleInput" placehol... | mit |
nabeta/enju_root | app/models/expression_relationship_type.rb | 127 | class ExpressionRelationshipType < ActiveRecord::Base
attr_accessible :name, :position, :definition, :url
acts_as_list
end
| mit |
jinalex/htn-scale | example/live_w_locator.html | 3322 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>index</title>
<meta name="description" content="" />
<meta name="author" content="Christoph Oberhofer" />
<meta name="viewport" content="width=device-width... | mit |
rnavarro/Movie-Magic | imdbphp2/imdb_budget.class.php | 15927 | <?php
#############################################################################
# IMDBPHP (c) Giorgos Giagas & Itzchak Rehberg #
# written by Giorgos Giagas #
# extended & maintained by Itzchak Rehberg <izzysoft AT qumran DOT org> #
# ... | mit |
shine/tree_view | README.md | 549 | tree_view
=========
This is testing project to show my coding style to potential clients
Functionality description
=========================
Tree structure should be edited, stored and showed in usual Ruby on Rails application with classic RDBMS in the backend. Search field should let user to filter out unneeded el... | mit |
patrickkettner/grunt-akamai-clear | node_modules/akamai/akamai.js | 88 | /*jshint node: true, eqnull: true*/
exports.purge = require('./lib/purge').AkamaiPurge; | mit |
kuhlenh/port-to-core | Reports/co/commons.locale.helpers.pt_br.1.1.10/Commons.Locale.Helpers.pt_BR-net35.html | 9671 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | mit |
Hacker0x01/react-datepicker | docs-site/src/examples/customTimeClassName.js | 340 | () => {
const [startDate, setStartDate] = useState(new Date());
let handleColor = (time) => {
return time.getHours() > 12 ? "text-success" : "text-error";
};
return (
<DatePicker
showTimeSelect
selected={startDate}
onChange={(date) => setStartDate(date)}
timeClassName={handleCo... | mit |
unstoppablecarl/1d-heightmap | src/key-indexes/index.js | 11619 | 'use strict';
var arg = require('../util').arg;
var oneDHeightmapFactory = require('../1d-heightmap');
var rng = require('../rng');
var random = rng.float;
var randomRange = rng.range;
var randomRangeInt = rng.rangeInt;
var randomSpacedIndexes = rng.space... | mit |
georgipyaramov/PaintShop | PaintShop/PaintShop.Models/ApplicationUser.cs | 693 | namespace PaintShop.Models
{
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
public class ApplicationUser : IdentityUser
{
public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManag... | mit |
Siv3D/OpenSiv3D | Siv3D/include/ThirdParty/sol/compatibility/compat-5.3.c.h | 26430 | #include <sol/compatibility/compat-5.3.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
/* don't compile it again if it already is included via compat53.h */
#ifndef KEPLER_PROJECT_COMPAT53_C_
#define KEPLER_PROJECT_COMPAT53_C_
/* definitions f... | mit |
flairyu/binetwork | src/ruanmianbao/binetwork/Main.java | 7911 | package ruanmianbao.binetwork;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.text.SimpleDateFormat;
import java.util.Calendar;
... | mit |
FacticiusVir/Warm | Keeper.Warm/QueryResult.cs | 3572 | using Keeper.Warm;
using System;
using System.Collections.Generic;
namespace Keeper.Warm
{
public class QueryResult
{
private Machine machine;
private Variable[] variables;
public QueryResult(bool success, Variable[] variables, Machine machine)
{
this.Success = suc... | mit |
adamhathcock/sharpcompress | src/SharpCompress/Common/SevenZip/SevenZipFilePart.cs | 3350 | using System;
using System.IO;
using System.Linq;
using SharpCompress.IO;
namespace SharpCompress.Common.SevenZip
{
internal class SevenZipFilePart : FilePart
{
private CompressionType? _type;
private readonly Stream _stream;
private readonly ArchiveDatabase _database;
interna... | mit |
hiteshgupta1992/BP-Core | bppackaging/src/customMetadata/HomeSearch_Grid_Column.Parts_Cost.md | 872 | <?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<label>Cost</label>
<protected>false</protected>
<values>
<field>Display_Object_Name__c</field>
... | mit |
Inside-Sistemas/mailer.net | src/Mailer.NET/Mailer/Email.cs | 3511 | using System;
using System.Collections.Generic;
using Mailer.NET.Mailer.Rendering;
using Mailer.NET.Mailer.Transport;
using Mailer.NET.Mailer.Internal;
using Mailer.NET.Mailer.Response;
using System.Threading.Tasks;
namespace Mailer.NET.Mailer
{
public class Email
{
public AbstractTransport Transport ... | mit |
OmarTawfik/SuperBasic | Source/SmallBasic.Tests/Compiler/ParsingTests.cs | 11842 | // <copyright file="ParsingTests.cs" company="MIT License">
// Licensed under the MIT License. See LICENSE file in the project root for license information.
// </copyright>
namespace SmallBasic.Tests.Compiler
{
using SmallBasic.Compiler;
using SmallBasic.Compiler.Diagnostics;
using Xunit;
public seale... | mit |
hhmpro/node-practice-project | src/init/mongodb.js | 450 | 'use strict';
/**
* practice Node.js project
*
* @author Huiming Hou <240050497@qq.com>
*/
import mongoose from 'mongoose';
module.exports = function(done){
const debug = $.createDebug('init:mongodb');
debug('connecting to MongoDB...');
const conn = mongoose.createConnection($.config.get('db.mongodb'));
... | mit |
AmnestyInternational/visor | twitter_to_gdoc.rb | 7536 | #!/usr/bin/env ruby
require 'rubygems'
require 'json'
require 'net/http'
require 'google_drive'
require 'yaml'
require 'time'
require 'twitter'
require 'active_support/all'
require 'pry'
require 'logger'
def log_time(input, type = 'info')
puts Time.now.to_s + " " + type + ": " + input
$LOG.error(input) if type == ... | mit |
Reeska/restinpi | src/server/plugins/t411/views/index.php | 46 | <?php
location(BASEURL ."/view/t411/search"); | mit |
TigerHix/Cytoid | Assets/Scripts/Player/Player.cs | 24520 | using System;
using System.Collections.Generic;
using System.Linq;
using Polyglot;
using Cysharp.Threading.Tasks;
using LiteDB;
using Sentry;
using UnityEngine;
#if UNITY_IOS
using UnityEngine.iOS;
#elif UNITY_ANDROID
using Google.Play.Review;
#endif
public class Player
{
public string Id => Settings.PlayerId;
... | mit |
CaliStyle/humpback | assets/app/views/admin/role/index.html | 2971 | <!--
* @description
*
* A humpback-view created at Wed Sep 09 2015 15:10:53 GMT-0400 (EDT).
-->
<!--admin/role/index.ejs-->
<div class="admin-header-block">
<div class="grid-content">
<h1>Roles</h1>
<p class="lead">
Manage Roles
</p>
</div>
<div class="grid-content">
<a
class="button"
ui-sref=... | mit |
GiveCampUK/GiveCRM | src/GiveCRM.Web/Areas/Admin/Controllers/ElmahResult.cs | 1826 | namespace GiveCRM.Web.Areas.Admin.Controllers
{
using System;
using System.Web;
using System.Web.Mvc;
internal class ElmahResult : ActionResult
{
private readonly string resourceType;
public ElmahResult(): this(null)
{ }
public ElmahResult(string resourceType)
... | mit |
Daz2345/dhPulse | packages/dh-dunnhumby/lib/client/templates/dh_user_menu_label.html | 393 | <template name="dh_user_menu_label">
<a class="menu-top-level-link" href="#">
<span class="user-menu-label menu-top-level-label">
<!--{{> avatar userId=this._id shape="circle"}} -->
<span class="user-menu-username">{{this.getDisplayName}}</span>
</span>
<span class="menu-items-toggle js-menu-t... | mit |
falgon/SrookCppLibraries | srook/tmpl/vt/set_difference.hpp | 1711 | // Copyright (C) 2011-2019 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_TMPL_VT_SET_DIFFERENCE_HPP
#define INCLUDED_SROOK_TMPL_VT_SET_DIFFERENCE_HPP
#include <srook/tmpl/vt/detail/config.hpp>
#include <srook/tmpl/vt/unique.hpp>
#include <srook/tmpl/vt/concat.hpp>
#include <srook/tmpl/vt/not_fn.hpp>
#... | mit |
shookees/SmartFood_old | src/smartfood/YummlyWrapper.java | 7629 | /*
* The MIT License
*
* Copyright 2014 Paulius Šukys.
*
* 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... | mit |
LoganArnett/node-zillow | lib/helpers.js | 1998 | var request = require('request'),
Q = require('q'),
xml2js = require('xml2js'),
_ = require('lodash');
module.exports = {
/**
* Helper function that handles the http request
*
* @param {string} url
*/
httprequest: function(url) {
var deferred = Q.defer();
request(url, ... | mit |
smartpension/signable | lib/signable/concerns/query.rb | 1321 | # frozen_string_literal: true
module Signable
module Concerns
module Query
extend ActiveSupport::Concern
def save
return false unless valid?
persisted? ? update : create
end
def delete
self.class.client.delete self.class.entry_point, id
end
def pers... | mit |
mudynamics/pcapr-local | lib/pcapr_local/www/static/script/closet/closet.folders.js | 3861 | var closet = closet || {};
(function($) {
closet.folders = (function() {
var iconPlus = '<img class="icon" style="width:10px" src="/static/image/16x16/Plus.png"/>';
var iconMinus = '<img class="icon" style="width:10px" src="/static/image/16x16/Minus.png"/>';
var iconEmpty = '<img class="icon" style="width:... | mit |
JordanV/LinkStreamViz | main.py | 11963 | import sys
import pdb
import svgfig
import json
import os
import math
import random
def show_help():
print("Usage: main.py input_file [--silent] [--output=<out.svg>]" +
" [--order=order.txt]")
print("Input file is either a text file containing t u v," +
"or a JSON file where the following ... | mit |
angular/angular-cli-stress-test | src/app/components/comp-4719/comp-4719.component.ts | 484 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-comp-4719',
templateUrl: './comp... | mit |
Amoki/Amoki-Music | player/admin.py | 434 | from django.contrib import admin
from player.models import Room, PlaylistTrack
from ordered_model.admin import OrderedModelAdmin
class RoomAdmin(admin.ModelAdmin):
list_display = ('name', 'shuffle', 'current_music', 'can_adjust_volume')
class ItemAdmin(OrderedModelAdmin):
list_display = ('move_up_down_link... | mit |
zship/joss | src/joss/util/elements/fromPoint.js | 681 | define(function(require) {
var $ = require('jquery');
var Point = require('joss/geometry/Point');
var _scrollIsRelative = !($.browser.opera || $.browser.safari && $.browser.version < "532");
/**
* Returns a DOM element lying at a point
*
* @param {joss/geometry/Point} p
* @return {Element}
*/
var fr... | mit |
pdanpdan/quasar | extras/material-icons-sharp/index.d.ts | 88356 | /* Google Material Design Icons */
export declare const sharp10k: string;
export declare const sharp10mp: string;
export declare const sharp11mp: string;
export declare const sharp12mp: string;
export declare const sharp13mp: string;
export declare const sharp14mp: string;
export declare const sharp15mp: string;
expo... | mit |
tungptvn/tungpts-ng-blog | gulp/tasks/development.js | 239 | import gulp from 'gulp';
import runSequence from 'run-sequence';
gulp.task('dev', ['clean'], function(cb) {
global.isProd = false;
runSequence(['styles', 'images', 'fonts', 'views','vendor'], 'browserify', 'watch', cb);
});
| mit |
PavelVak/sell-it | src/app/shared/models/add-product.model.ts | 341 | export class AddProduct {
public title: string;
public description: string;
public author: number;
public price: number;
public photos: any;
constructor(data) {
this.title = data.title;
this.description = data.description;
this.author = data.author;
this.price = data.price;
this.photos ... | mit |
umn-asr/query_string_search | lib/query_string_search/matcher_factory.rb | 473 | module QueryStringSearch
class MatcherFactory
def self.build(search_option, build_options)
matcher_to_build = build_options.detect { |m| m.build_me?(search_option) }
if matcher_to_build
matcher = matcher_to_build.new
matcher.attribute = search_option.attribute
... | mit |
nuveo/prest | adapters/postgres/formatters/formatters_test.go | 931 | package formatters
import (
"fmt"
"testing"
)
type str struct{}
func (s str) String() string {
return "test"
}
func TestFormatArray(t *testing.T) {
testCases := []struct {
name string
in interface{}
ret string
}{
{"array string", []string{"value 1", "value 2", "value 3"}, `{"value 1","value 2","valu... | mit |
w-i-n-s/SimplePlugin | MailHeaders/Mavericks_GM/MailUI/HyperlinkEditor.h | 898 | /*
* Generated by class-dump 3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard.
*/
#import "NSObject.h"
@class DOMHTMLAnchorElement, DOMNode, EditingMessageWebView, NSButton, NSPanel, NSString, NSTextField;
@interface HyperlinkEditor : NSObject
{
NSTextFiel... | mit |
Dyalog/MiServer | PlugIns/Syncfusion-15.3.0.33/assets/angular2/radiobutton.component.ts | 2349 | import 'syncfusion-javascript/Scripts/ej/web/ej.radiobutton.min';
import { CommonModule } from '@angular/common';
import { EJComponents } from './core';
import { EventEmitter, Type, Component, ElementRef, ChangeDetectorRef, Input, Output, NgModule, ModuleWithProviders, Directive, forwardRef } from '@angular/core';
impo... | mit |
leclem/androidappfromwebsite | README.md | 731 | androidappfromwebsite
Android app displaying a website, supporting Facebook connect and displaying a loading bar when the user is loading a page.
To setup, just change line 28 indicating the starting URL of the app, line 29 with your website prefix, and line 30 with the HTML that the app will display in case of 404 e... | mit |
shamithc/tailf | test/dummy/app/controllers/home_controller.rb | 78 | class HomeController < ApplicationController
def index
# asdsa
end
end
| mit |
martinbosse/exercice_login | middleLogin.php | 626 | <?php
require_once 'frontHomeLogin.php';
require_once 'backOpenSession.php';
require_once 'backCloseSession.php';
require_once 'backCheckLogin.php';
manageLogin();
function manageLogin() {
$user = (string) $_POST["username"];
$password = (string) $_POST["password"];
if (checkLogin($user, $pass... | mit |
zuik/stuff | unnatural_rubber/hw/CS131/hw4.tex | 3175 | \documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{indentfirst}
\title{CS131 B1: HW 4}
\author{Duy Nguyen}
\date{10 October 2016}
\begin{document}
\maketitle
\section*{Question 1}
\subsection*{a.$\forall x \forall y P(x,y)$}
When $ x \neq y $ the statement is \textbf{false}.
\subsection*{b.$\forall x \... | mit |
Dimimo/Booklet | app/Listeners/Articles/Comments/ApprovedEmailAdmin.php | 1155 | <?php
/**
* Copyright (c) 2017. Puerto Parrot Booklet. Written by Dimitri Mostrey for www.puertoparrot.com
* Contact me at admin@puertoparrot.com or dmostrey@yahoo.com
*/
namespace App\Listeners\Articles\Comments;
use App\Events\Articles\Comments\Approved;
use App\Mail\Articles\Comments\ApprovedToAdmin;
use App\Mo... | mit |
pavel-voronin/jDoc | js/engines/RTF/reader/private/_specialControlWords.js | 383 | /**
*
* @type {*}
* @private
*/
jDoc.Engines.RTF.prototype._specialControlWords = [
"chpgn",
"chftn",
"chdate",
"chtime",
"chatn",
"chftnsep",
"/",
":",
"*",
"~",
"-",
"_",
"'hh",
"page",
"line",
"раr",
"sect",
"tab",
"сеll",
"row",
... | mit |
mudroljub/angular-wiki-search | style.css | 306 | [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none !important;
}
.wiki-logo {
height: 2em;
}
.main {
margin-bottom: 40px;
}
.wiki-article {
max-height: 600px;
overflow-y: scroll;
margin-bottom: 20px;
}
.pointer {
cursor: pointer;
}
| mit |
Joe4evr/Discord.Addons | src/Discord.Addons.SimplePermissions.EFProvider/EFCommandServiceExtension.cs | 1588 | //using System;
//using Microsoft.EntityFrameworkCore.Infrastructure;
//using Discord.Commands;
//using Microsoft.Extensions.DependencyInjection;
//using System.Collections.Generic;
//namespace Discord.Addons.SimplePermissions
//{
// /// <summary> </summary>
// public sealed class EFCommandServiceExtension : ID... | mit |
dtfialho/js-tdd-course | module-06/src/album.js | 263 | export default function album() {
return {
getAlbum: id => this.request(`${this.apiURL}/albums/${id}`),
getAlbums: ids => this.request(`${this.apiURL}/albums/?ids=${ids}`),
getTracks: id => this.request(`${this.apiURL}/albums/${id}/tracks`),
};
}
| mit |
nsacoin/nsacoin | src/qt/locale/bitcoin_sah.ts | 130888 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="sah" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About NSAcoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location ... | mit |
nleva/gwthtml | HtmlGwt/src/main/java/ru/sendto/gwt/client/html/Th.java | 287 | package ru.sendto.gwt.client.html;
public class Th extends WidgetBase {
public Th() {
super("th");
}
public void setRowspan(String rows){
getElement().setAttribute("rowspan", rows);
}
public void setColspan(String cols){
getElement().setAttribute("colspan", cols);
}
}
| mit |
spiderbait90/Step-By-Step-In-Coding | C# Fundamentals/C# Advanced/Multidimensional Arrays/Pascal Triangle/Properties/AssemblyInfo.cs | 1431 | 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("Pas... | mit |
b0jko3/SoftUni | JavaScript/Core/Fundamentals/Exams/11_Feb_2018/02._Air_Pollution.js | 1937 | function airPollution(sofiaMap, forces) {
for (let i = 0; i < sofiaMap.length; i++) {
sofiaMap[i] = sofiaMap[i].split(' ').map(Number)
}
for (let i = 0; i < forces.length; i++) {
forces[i] = forces[i].split(' ')
}
for (let i = 0; i < forces.length; i++) {
for (let k = 0; k < ... | mit |
mikadev001/SublimeText-Overlay | SublimeOverlay/GradientPanel.cs | 908 | using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
public class GradientPanel : Panel
{
public Color GradientFirstColor = Color.FromArgb(33, 33, 33);
public Color GradientSecondColor = Color.FromArgb(22, 22, 22);
public GradientPane... | mit |
Azure/azure-sdk-for-java | sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableServiceMetrics.java | 3217 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.data.tables.models;
import com.azure.core.annotation.Fluent;
/**
* A model representing configurable metrics settings of the Table service.
*/
@Fluent
public final class TableServiceMetrics {
/*
... | mit |
biow0lf/evemonk | app/importers/eve/local_planets_importer.rb | 224 | # frozen_string_literal: true
module Eve
class LocalPlanetsImporter
def import
Eve::Planet.pluck(:planet_id).each do |planet_id|
Eve::UpdatePlanetJob.perform_later(planet_id)
end
end
end
end
| mit |
inexistence/PictureLibrary | src/com/scut/picturelibrary/manager/VideoManager.java | 1631 | package com.scut.picturelibrary.manager;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;
import android.media.MediaPlayer.OnPreparedListener;
import android.view... | mit |
EtwasGE/InformationPortal | Portal.Web/Helpers/CookieHelper.cs | 4698 | using System;
using System.Configuration;
using System.Web;
using Portal.Core.Content;
namespace Portal.Web.Helpers
{
public static class CookieHelper
{
private static readonly HttpContext HttpContext;
private static readonly string NameCookieContentType;
private static readonly string... | mit |
v8-dox/v8-dox.github.io | e6887e2/html/classv8_1_1Exception-members.html | 7064 | <!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" content="IE=9"/>
<meta name="generator" con... | mit |
avdgaag/storyteller | app/controllers/requirements_controller.rb | 701 | class RequirementsController < ApplicationController
before_filter :authenticate_user!
before_filter :require_project_involvement
before_filter :find_story
def create
@requirement = @story.pending_requirements.build(params[:requirement])
if @requirement.save
flash[:notice] = 'Requirement added'
... | mit |
bashmach/bluz-skeleton-parse | application/modules/parse/controllers/grid.php | 231 | <?php
/**
*
* @author dev
* @created 2015-09-17 10:57:04
*/
namespace Application;
use Application\Parse\TodoGrid;
use Bluz;
return
/**
* @return \closure
*/
function () use ($view) {
$view->grid = new TodoGrid();
}; | mit |
camillescott/boink | include/goetia/sketches/sketch/vec/blaze/blazemark/blazemark/armadillo/Complex7.h | 3055 | //=================================================================================================
/*!
// \file blazemark/armadillo/Complex7.h
// \brief Header file for the Armadillo kernel for the complex expression E = ( A + B ) * ( C - D )
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
//... | mit |
Cyberwatch/cbw-security-fixes | Red_Hat_5/x86_64/2016/RHSA-2016:1217.sh | 1106 | #!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:1217
#
# Security announcement date: 2016-06-08 17:06:49 UTC
# Script generation date: 2017-01-25 21:23:43 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - firefox.i386:45.2.0-1.el5_11
# - fire... | mit |
LRDesign/mizugumo_demo | spec/helpers/products_helper_spec.rb | 355 | require 'spec_helper'
# Specs in this file have access to a helper object that includes
# the ProductsHelper. For example:
#
# describe ProductsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# helper.concat_strings("this","that").should == "this that"
# end
# end
# ... | mit |
anetwork/validation | src/ValidationRules.php | 13284 | <?php
namespace Anetwork\Validation;
use Anetwork\Validation\ValidationMessages;
/**
* @author Shahrokh Niakan <sh.niakan@anetwork.ir>
* @since May 21, 2016
*/
class ValidationRules
{
/**
* @var boolean
*/
protected $status;
/**
* validate persian alphabet and space
* @param $attri... | mit |
Clunt/clantujs | example/basic/index.html | 760 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Clantu.js Example</title>
<script src="../../dist/clantu.js"></script>
</head>
<body>
<ul>
<li><a href="/中文 EN+C">中文 EN+C</a></li>
<li><a href="/first-path">first-path</a></li>
<li><a href="/path#hash">path#hash</a></li>
<li><... | mit |
agencja-acclaim/gulp-bower-webapp | wp-content/plugins/wordpress-seo/admin/class-meta-storage.php | 2857 | <?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Links
*/
/**
* Represents the link count storage.
*/
class WPSEO_Meta_Storage implements WPSEO_Installable {
const TABLE_NAME = 'yoast_seo_meta';
/**
* @var WPSEO_Database_Proxy
*/
protected $database_proxy;
/**
* @deprecated
*
* @var null|... | mit |
Coding/Coding-Android | app/src/main/java/net/coding/program/task/TaskDescripMdFragment.java | 3443 | package net.coding.program.task;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import net.coding.program.R;
import net.coding.program.common.Global;
import... | mit |
foxable/app-manager | storage/apps/xnview-mp/versionProvider.js | 277 | "use strict";
exports.default = {
type: "html",
url: "http://www.xnview.com/en/xnviewmp/",
getVersion: function($) {
return $("#downloads p")
.contains("Download")
.find("strong")
.version("XnView MP @version");
}
};
| mit |
tmcgee/cmv-wab-widgets | wab/2.13/widgets/ParcelDrafter/nls/tr/strings.js | 5323 | ///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. All Rights Reserved.
//
// Licensed under the Apache License Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.ap... | mit |
kylemcco/jengaship | app/scripts/index.js | 19418 | /*globals $:false, _:false, Firebase:false */
'use strict';
var url = 'https://jengaship.firebaseio.com/',
fb = new Firebase(url),
gamesFb = new Firebase(url + 'games'),
games,
avaGames = [],
emptyGames = [],
myGames = [],
myBoardPositions = [],
current... | mit |
ankane/mailkick | test/service_test.rb | 1549 | require_relative "test_helper"
class TestService < Mailkick::Service
def opt_outs
[
{email: "test@example.com", time: Time.current, reason: "bounce"},
{email: "test2@example.com", time: 1.day.ago, reason: "spam"}
]
end
end
class ServiceTest < Minitest::Test
def setup
super
Mailkick.s... | mit |
AlexKomm/alexkomm.github.io | patterns/07-utilities/index.html | 16024 | <!DOCTYPE html>
<html class="pl">
<head>
<title>Pattern Lab</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="/assets/../components/css/pattern-scaffolding.css?1500631430" media="all" />
<link rel="stylesheet" href="/assets/style.css... | mit |
teepluss/laravel-component | src/templates/component/ExampleComponent.php | 1609 | <?php
namespace {AppNamespace}Components\{ComponentName};
use Teepluss\Component\BaseComponent;
use Illuminate\Foundation\Application as Application;
use Teepluss\Component\Contracts\BaseComponent as BaseComponentContract;
class {ComponentName} extends BaseComponent implements BaseComponentContract
{
/**
*... | mit |
iwfe/koa-rudy | app/views/index/index.html | 163 | <h1>这仅仅是个测试</h1>
<%- include('snippet.html')%>
<ul>
<% for(var key in locals){ %>
<li><%= key %>:<%= locals[key]%></li>
<% } %>
</ul> | mit |
iadix/iadixcoin | db-5.3.28.NC/docs/api_reference/C/dbassociate.html | 24529 | <?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>DB-&g... | mit |
cuckata23/wurfl-data | data/alltel_ppc6800_ver1.php | 266 | <?php
return array (
'id' => 'alltel_ppc6800_ver1',
'fallback' => 'sprint_ppc6800_ver1_subie711',
'capabilities' =>
array (
'brand_name' => 'HTC',
'model_extra_info' => 'Alltel',
'playback_acodec_amr' => 'nb',
'playback_wmv' => '7',
),
);
| mit |
ab4d/Ab3d.OculusWrap | Ab3d.OculusWrap/Ab3d.OculusWrap/TrackerFlags.cs | 1882 | // Copyright (c) 2017 AB4D d.o.o.
//
// 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, publish,... | mit |
NeblioTeam/neblio | wallet/test/wallet_tests.cpp | 16924 | #include "googletest/googletest/include/gtest/gtest.h"
#include "main.h"
#include "mocks/mtxdb.h"
#include "wallet.h"
// how many times to run all the tests to have a chance to catch errors that only show up with particular
// random shuffles
#define RUN_TESTS 100
// some tests fail 1% of the time due to bad luck.
/... | mit |
gds-attic/jobs | test/unit/vacancy_test.rb | 5259 | # coding:utf-8
require 'test_helper'
class VacancyTest < ActiveSupport::TestCase
test 'is invalid without a vacancy_id' do
vacancy = Factory.build(:vacancy, :vacancy_id => nil)
assert_equal false, vacancy.valid?
end
test '.to_solr_document' do
vacancy = Factory.build(:vacancy,
... | mit |
gryffon/ringteki | server/game/cards/12-SoW/MastuKoso.js | 964 | import { Durations } from '../../Constants.js';
const DrawCard = require('../../drawcard.js');
const AbilityDsl = require('../../abilitydsl.js');
class MatsuKoso extends DrawCard {
setupCardAbilities() {
this.action({
title: 'Lower military skill',
condition: context => context.sour... | mit |
monzo/typhon | expire_test.go | 1033 | package typhon
import (
"context"
"net/http"
"testing"
"github.com/monzo/terrors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestExpirationFilter(t *testing.T) {
t.Parallel()
svc := Service(func(req Request) Response {
return req.Response("ok")
})
svc = svc.Filter(... | mit |
fcarreiro/crashingthecode | structures/queue.test.cc | 3768 | #include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <queue>
#include "queue.h"
#include "../test_helpers.h"
template<template<typename T> class ConcreteQueue>
void test_queue(TestHelper& th) {
{
th.message("Default construction");
ConcreteQueue<int> q;
th.tassert();
th.... | mit |
tseyler/proto-server | proto_server/core/server/proto_tcp_text_server.cpp | 2872 | //
// Copyright (c) 2016 Terry Seyler
//
// Distributed under the MIT License
// See accompanying file LICENSE.md
//
#include <boost/bind.hpp>
#include <core/server/proto_tcp_text_server.hpp>
#include <core/client/proto_tcp_text_client.hpp>
using namespace boost::asio::ip;
namespace proto_net
{
using namespac... | mit |