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
<?php $conn = mysqli_connect("localhost", "root", "root", "linkify"); if (!$conn) { die("Connection failed: ".mysqli_connect_error()); }
vicols92/linkify
resources/includes/dbh.php
PHP
mit
141
# # #March 2014 #Adam Breznicky - TxDOT TPP - Mapping Group # #This is an independent script which requires a single parameter designating a directory. #The script will walk through each subfolder and file within the designated directory, identifying the MXD files #and re-sourcing the Comanche database connections to ...
TxDOT/python
standalone/AdminPrefix_Resourcer_v1.py
Python
mit
3,702
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Bit.CSharpClientSample.UWP")] [assembly: ...
bit-foundation/bit-framework
src/Client/Xamarin/Sample/Bit.CSharpClientSample.UWP/Properties/AssemblyInfo.cs
C#
mit
1,033
var db = require('../models'); function index(req, res) { db.User.find({}, function(err, allUsers) { //TODO: handle the errors. // TODO: Send this array as a json object res.json(allUsers); }); } function create(req, res) { // TODO: Consider creating an obect literal then passing in t...
namelessprofit/project-1
controllers/userController.js
JavaScript
mit
1,342
using System; using System.Net; namespace Manatee.Trello.Rest { /// <summary> /// Defines properties required for objects returned by RESTful calls. /// </summary> public interface IRestResponse { /// <summary> /// The JSON content returned by the call. /// </summary> string Content { get; }...
gregsdennis/Manatee.Trello
Manatee.Trello/Rest/IRestResponse.cs
C#
mit
888
--- layout: post title: "ES6 Promise API, Promise Pattern, Asynchronous Codes" date: 2015-12-17 15:59:00 +08:00 categories: Web IT tags: JavaScript ES6 AJAX --- * content {:toc} ### Notes about ES6 Promise API * JavaScript execution model - single thread, each website - main thread maintains a queue, which ha...
EastmanJian/blog
_posts/2015-12-17-es6-promise-api.markdown
Markdown
mit
5,840
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* - [Techland C++ Build Profiler](#top) - [Getting started](#gettingstarted) - [Metrics](#metrics) - [root metrics](#root) - [top-level metrics](#toplevel) - [dependency metrics](#dependency) - [The cppbuildprofiler script](#script) ...
techland-games/cpp-build-profiler
README.md
Markdown
mit
10,508
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace WebApplication3 { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
ratestHub/PostPublishTestRepo
WebApplication3/WebApplication3/Global.asax.cs
C#
mit
591
using Moq; using Ocelot.Infrastructure; using Ocelot.Logging; using Ocelot.Provider.Kubernetes; using Ocelot.ServiceDiscovery.Providers; using Ocelot.Values; using Shouldly; using System; using System.Collections.Generic; using TestStack.BDDfy; using Xunit; namespace Ocelot.UnitTests.Kubernetes { public class Pol...
geffzhang/Ocelot
test/Ocelot.UnitTests/Kubernetes/PollingKubeServiceDiscoveryProviderTests.cs
C#
mit
2,542
// WebHelp 5.10.001 var garrSortChar=new Array(); var gaFtsStop=new Array(); var gaFtsStem=new Array(); var gbWhLang=false; garrSortChar[0] = 0; garrSortChar[1] = 1; garrSortChar[2] = 2; garrSortChar[3] = 3; garrSortChar[4] = 4; garrSortChar[5] = 5; garrSortChar[6] = 6; garrSortChar[7] = 7; garrSortChar[8] = 8; garrS...
DiptoDas8/Biponi
images/Test Credit Card Account Numbers_files/whlang.js
JavaScript
mit
9,945
package com.codeborne.selenide.webdriver; import com.codeborne.selenide.Browser; import com.codeborne.selenide.Config; import com.codeborne.selenide.SelenideConfig; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.openqa.selenium.Proxy; impo...
codeborne/selenide
src/test/java/com/codeborne/selenide/webdriver/TransferBrowserCapabilitiesFromConfigurationTest.java
Java
mit
1,779
//----------------------------------------------------------------------- // <copyright file="Registry.cs">(c) http://www.codeplex.com/MSBuildExtensionPack. This source is subject to the Microsoft Permissive License. See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx. All oth...
mikefourie/MSBuildExtensionPack
Releases/4.0.9.0/Main/Framework/Computer/Registry.cs
C#
mit
19,180
import { buildUrl, contentUrl, profileUrl } from 'shared/util/url_factory'; import gql from 'graphql-tag'; import { memo } from 'react'; import { useQuery } from '@apollo/client'; const CONTENT_AND_USER_QUERY = gql` query ContentAndUserQuery($username: String!, $name: String!) { fetchContentHead(username: $user...
mimecuvalo/helloworld
server/app/HTMLHead.js
JavaScript
mit
9,836
using System; using System.ComponentModel.DataAnnotations; using System.Runtime.InteropServices.ComTypes; using System.Threading.Tasks; using CorePoker.Data; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; // For more information on enabling Web API for empty projects, visit http://go.microsoft.c...
mareklinka/CorePoker
src/CorePoker.Web/Controllers/TableController.cs
C#
mit
2,036
/* * <auto-generated> * This code was generated by a tool. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. * </auto-generated> */ #import <Foundation/Foundation.h> #import "MOZUClient.h" #import "MOZUFraudScreenRequest.h" #import "MOZU...
Mozu/mozu-ios-sdk
MozuApi/Clients/Commerce/Payments/MOZUFraudScreenClient.h
C
mit
938
## Mapping Tools >**_This documentation is for a preview version of the Azure DevOps Migration Tools._ If you are not using the preview version then please head over to the main [documentation](https://nkdagility.github.io/azure-devops-migration-tools).** [Overview](.././index.md) > [Reference](../index.md) > *Mappi...
nkdAgility/vsts-sync-migration
docs/Reference/MappingTools/index.md
Markdown
mit
626
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import <DTGraphKit/DTGraph.h> @interface DTBarGraph : DTGraph { BOOL _hasWidthOrSpacingAttribute; long long _maxX; long long _minX; long long _maxY; long long ...
wczekalski/Distraction-Free-Xcode-plugin
Archived/v1/WCDistractionFreeXcodePlugin/Headers/SharedFrameworks/DTGraphKit/DTBarGraph.h
C
mit
2,158
/** * Copyright 2011 multibit.org * * Licensed under the MIT license (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.php * * Unless required by applicable law or agreed to in writing,...
monapu/multimona
src/main/java/org/multibit/MultiMonaInExecutableJar.java
Java
mit
5,027
/// <reference path="../../d.ts/DefinitelyTyped/jasmine/jasmine.d.ts"/> import basilisk = require('../basilisk'); import Hash = basilisk.HashMap; var freeze = (obj:any):any => { return (Object.freeze) ? Object.freeze(obj) : obj; }; // given a map of strings -> numbers, return a function fixedStringHash(values:any):...
basiliskjs/basilisk
src/tests/persistenthashmap.test.ts
TypeScript
mit
7,837
angular.module('VoltronApp.services', []). factory('voltronAPIservice', function($http) { var voltronAPI = {}; function createRequest(requestType, data) { return {type: "request", request: requestType, data: data} } voltronAPI.request = function(request) { return $http({ me...
snare/voltron
examples/angularview/static/js/services.js
JavaScript
mit
1,786
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ #pragma once #include "PredictionContext.h" namespace antlr4 { namespace atn { class ANTLR4CPP_PUBLIC SingletonPredic...
caicai0/ios_demo
antlr_demo/thirdpart/antlr4/antlr4-runtime/atn/SingletonPredictionContext.h
C
mit
1,517
define("#base/0.9.2/attrs-debug", ["./util"], function(require, exports) { // Attrs // ----------------- // Thanks to: // - http://documentcloud.github.com/backbone/#Model // - http://yuilibrary.com/yui/docs/api/classes/AttributeCore.html // - https://github.com/berzniz/backbone.getters.sett...
leoner/arale
dist/base/0.9.2/attrs-debug.js
JavaScript
mit
4,385
#!/bin/bash . ~/.bash_profile ## if [[ $1 ]]; ## then; rootdir=$1; ## else; ## rootdir='django_home' ## fi; # Create "$rootdir" directory in our home directory mkdir ~/"$rootdir" # Change into the newly created ~/"$rootdir" directory cd ~/"$rootdir" # Create a place for the Chef cookbooks mkdir ~/"$rootdir"/cook...
relic7/prodimages
python/struct_vagrant.sh
Shell
mit
912
<?php namespace tests\pages; use tests\pages\mocks\TestController; use WScore\Pages\Dispatch; use WScore\Pages\Factory; require_once( dirname(__DIR__).'/autoload.php' ); require_once( __DIR__ . '/mocks/TestController.php' ); class Dispatch_FunctionTest extends \PHPUnit_Framework_TestCase { /** * @var TestCo...
asaokamei/WScore.Pages
tests/pages/Dispatch_FunctionTest.php
PHP
mit
4,875
<?php mb_internal_encoding('UTF-8'); define('SQL_HOST', 'localhost'); define('SQL_USER', 'root'); define('SQL_PASS', ''); define('SQL_DB', 'books'); session_start(); $DBconnection = mysqli_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB); if (!$DBconnection) { echo 'Няма връзка с базата данни'; exit; } mysqli_se...
Steffkn/TelerikAcademy
PHP/06.Views/include/functions.php
PHP
mit
1,131
var MNote = (function() { function MNote(label) { if (label == '' || label == null) { label = 'Note'; } var uiElement = document.createElement('span'); $(uiElement).addClass('MNote').css({ 'transform' : MNumber.random(-8, 8) }).html(label); return uiElement; }; return MNote; })();
MogulMVC/MogulJS
src/ui/MNote.js
JavaScript
mit
311
{% extends "layout.html" %} {% block propositionHeader %} {% include "includes/propositional_navigation.html" %} {% endblock %} {% block content %} <main id="content" role="main"> {% include "includes/main_nav.html" %} <div class="main-content"> <h1 class="heading-large">Settings - Maintain recor...
dwpdigitaltech/ejs-prototype
app/views/latest/delete_record.html
HTML
mit
1,478
##[demo](http://www.gaococ.com/2048/)
naseeihity/LearnReact
Projects/Hello_JS/2048/README.md
Markdown
mit
37
/** * @author mrdoob / http://mrdoob.com/ * @author ryg / http://farbrausch.de/~fg * @author mraleph / http://mrale.ph/ * @author daoshengmu / http://dsmu.me/ */ THREE.SoftwareRenderer = function ( parameters ) { console.log( 'THREE.SoftwareRenderer', THREE.REVISION ); parameters = parameters || {}; var can...
fta2012/three.js
examples/js/renderers/SoftwareRenderer.js
JavaScript
mit
26,317
class msvidctl_msvidaudiorendererdevices_1 { constructor() { // IMSVidAudioRenderer Item (Variant) {get} this.Parameterized = undefined; // int Count () {get} this.Count = undefined; } // void Add (IMSVidAudioRenderer) Add(IMSVidAudioRenderer) { } // void Rem...
mrpapercut/wscript
testfiles/COMobjects/JSclasses/MSVidCtl.MSVidAudioRendererDevices.1.js
JavaScript
mit
423
// // UIColor+SZGradient.h // SZCategories // // Created by 陈圣治 on 16/6/21. // Copyright © 2016年 陈圣治. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (SZGradient) //渐变 + (UIColor *)sz_gradientFromColor:(UIColor *)fromColor toColor:(UIColor *)toColor withHeight:(int)height; @end
chenshengzhi/SZCategories
SZCategories/UIKit/UIColor/UIColor+SZGradient.h
C
mit
325
/** * Created by Administrator on 2015/1/6. */ var grunt = require("grunt"); var htmlConverter = require("../tasks/lib/text").init(grunt); describe("Test JSON Converter",function(){ it("should convert JSON to cmd module",function(){ var code = JSON.stringify({test:"test",value:1,number:2.2}); var ...
chenliangyu/grunt-seajs-converter
test/jsonConverterSpec.js
JavaScript
mit
869
ConvertFrom-StringData @' ###PSLOC # Common NoKeyFound = No Localization key found for ErrorType: '{0}'. AbsentNotImplemented = Ensure = Absent is not implemented! TestFailedAfterSet = Test-TargetResource returned false after calling set. RemoteConnectionFailed = Remote PowerShell connection to Server '{0}' fail...
randorfer/RunbookExample
PowerShellModules/xSQLServer/1.4.0.0/en-US/xSQLServer.strings.psd1
PowerShell
mit
765
/*global jQuery:true*/ (function($, window){ "use strict"; function MaxlengthInput( el ){ var self = this; this.el = el; this.$el = $(el); // prevent double init if( this.$el.data( "MaxlengthInput" ) ){ return; } this.$el.data( "MaxlengthInput", this); this.maxlength = this.$el.attr("maxlength...
filamentgroup/formcore
js/maxlength-input.js
JavaScript
mit
2,335
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
chschenk/SVP
SVPMigrator/Old/group.cs
C#
mit
1,274
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W29086_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
datamade/elpc_bakken
ocr_extracted/W29086_text/page33.html
HTML
mit
693
<p>Home site</p>
karin112358/Samples
AngularJS/SnapSvgAndHtml5Mode/components/home/home.html
HTML
mit
19
namespace Noikoio.RegexBot.ConfigItem { enum EntityType { Channel, Role, User } /// <summary> /// Used to join together an entity ID and its name when read from configuration. /// In configuration, entities are fully specified with a prefix (if necessary), an ID, two colons, and a name. /// An...
Noikoio/RegexBot
RegexBot/ConfigItem/EntityName.cs
C#
mit
2,592
```jsx const { Button, ButtonGroup } = require('react-bootstrap'); const { SwButton } = require('./button'); class SandboxButton extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); this.setSize = this.setSize.bind(this); this.togglePending = t...
samwise-tech/components
src/input/button/example.md
Markdown
mit
1,643
{{/* {{% button href="https://getgrav.org/" %}}Get Grav{{% /button %}} {{% button href="https://getgrav.org/" icon="fa-play" %}}Get Grav with awesome icon{{% /button %}} */}} <a {{ with .Get "href"}} href="{{.}}" target="_blank" {{ end }} class="button {{ with.Get "icon"}}icon {{.}}{{end}}"> {{ .Inner }} </a>
tattwamasi/hugo-guild-theme
layouts/shortcodes/button.html
HTML
mit
315
<?php /** * Part of the kurobuta.jp. * * Copyright (c) 2015 Maemori Fumihiro * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php * * @version 1.0 * @author Maemori Fumihiro * @link https://kurobuta.jp */ namespace Accon; /** * Class Library_Utili...
maemori/accon
fuel/app/modules/accon/classes/library/utility.php
PHP
mit
2,179
#ifndef GL_HELPER_H #define GL_HELPER_H #include <OpenGL/OpenGL.h> #include <GLUT/GLUT.h> #include "SOIL.h" #include <map> #include <string> #include <iostream> using namespace std; class gl_helper { private: /**************************************************************** public *****************...
xforns/kitxen-wars
x86_64/src/gl_helper.h
C
mit
1,890
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensio...
ForEvolve/DynamicInternalServerError
test/ForEvolve.DynamicInternalServerError.TestWebServer/Startup.cs
C#
mit
1,519
<?php /** * Template part for top bar menu * * @package WordPress * @subpackage FoundationPress * @since FoundationPress 1.0.0 */ ?> <br> <div class="top-bar-container contain-to-grid show-for-medium-up"> <div class="title-area row show-for-large-up"> <div class="name large-6 large-centered ...
esm-erika/eSchoolNews
wp-content/themes/ecampusnews/parts/top-bar.php
PHP
mit
1,106
module RoxClient class Project # TODO: remove project name once API v0 is dead attr_accessor :name, :version, :api_id, :category, :tags, :tickets def initialize options = {} update options end def update options = {} %w(name version api_id category).each do |k| instance_vari...
lotaris/rox-client-ruby
lib/rox-client-ruby/project.rb
Ruby
mit
941
/* * SeriouslyConstants.h * Seriously * * Created by Corey Johnson on 7/6/10. * Copyright 2010 Probably Interactive. All rights reserved. * */ @class SeriouslyOperation; @class SeriouslyOAuthOperation; typedef void(^SeriouslyHandler)(id data, NSHTTPURLResponse *response, NSError *error); typedef void(^Seri...
probablycorey/seriously
src/SeriouslyConstants.h
C
mit
738
'use strict'; // This file is auto-generated using scripts/doc-sync.js /** * Visible page viewport * * @param {number} scrollX X scroll offset in CSS pixels. * @param {number} scrollY Y scroll offset in CSS pixels. * @param {number} contentsWidth Contents width in CSS pixels. * @param {number} cont...
buggerjs/bugger
lib/agents/emulation/types.js
JavaScript
mit
941
require 'autoprefixer-rails' require 'weui-rails/version' require 'weui-rails/helpers/weui_message_box' module Weui module Rails class Engine < ::Rails::Engine end # Make Weui helpers available in Rails applications. class Railtie < ::Rails::Railtie initializer 'weui.add_helpers' do Ac...
Eric-Guo/weui-rails
lib/weui-rails.rb
Ruby
mit
392
version https://git-lfs.github.com/spec/v1 oid sha256:3027fc57c3d0f37949a71c0e7f6cecae9198b13aa8ac666d1a752323b776547f size 97712
yogeshsaroya/new-cdnjs
ajax/libs/angular.js/1.2.0rc3/angular.min.js
JavaScript
mit
130
--- layout: default title: Case Sensitivity categories: docs # parent: Docs nav_order: 4 --- # Case Sensitivity The spell checker supports case sensitive checking. By default it is turned off. Because the spell checker was originally case insensitive, making it case aware takes care so as to not break things. CSpell...
Jason3S/cspell
docs/docs/case-sensitive.md
Markdown
mit
1,111
# -*- coding: utf-8 -*- import sys import time from subprocess import call #add the project folder to pythpath sys.path.append('../../') from library.components.SensorModule import SensorModule as Sensor from library.components.MetaData import MetaData as MetaData class Raspistill(Sensor): def __init__(self): ...
OpenSpaceProgram/pyOSP
library/sensors/Raspistill.py
Python
mit
2,060
using System; using System.Management.Automation; using System.Net; using System.Security; namespace PowerShellExecutionSample { class Program { static void Main(string[] args) { PowerShellExecutor t = new PowerShellExecutor(); t.ExecuteSynchronously(); } } ...
liupeirong/Azure
DotNetAnalysisService/AASAddRoleMember/Program.cs
C#
mit
3,151
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
nejclesek/Axiinput
Axiinput/Properties/Settings.Designer.cs
C#
mit
2,786
var myWindow = { screenX: window.screenX, screenY: window.screenY, location: window.location.pathname, screenW: window.screen.width, screenZ: window.screen.height, render: function() { var ele = document.getElementById("location"); ele.value = this.location; ele = document.getElementById("sx"); ele.valu...
smokeylee/ITE220
Week3/js/window-example.js
JavaScript
mit
568
import { module, test } from 'qunit'; import { setupApplicationTest } from 'travis/tests/helpers/setup-application-test'; import jobPage from 'travis/tests/pages/job'; import topPage from 'travis/tests/pages/top'; import signInUser from 'travis/tests/helpers/sign-in-user'; import { enableFeature } from 'ember-feature-f...
travis-ci/travis-web
tests/acceptance/job/debug-test.js
JavaScript
mit
2,230
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><style>.b{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;}</style></defs><title>ran</title><path class="b" d="M269.72,618a11,11,0,1,1-15.54,0A11,11,0,0,1,269.72,618Z" transform="translate(-249.97 -613.79)"/><line class=...
baillieo/baillieo.github.io
_includes/icons/icon-zoom.html
HTML
mit
489
{-# LANGUAGE OverloadedStrings,NoImplicitPrelude #-} module TypePlay.Infer.HM where import Prelude hiding (map,concat) import Data.List (map,concat,nub,union,intersect) import Data.Text (Text) import qualified Data.Text as T import Data.Monoid ((<>),mconcat) type Id = Text enumId :: Int -> Id enumId = ("v" <>) . T...
mankyKitty/TypePlay
src/TypePlay/Infer/HM.hs
Haskell
mit
6,014
var net = require('net'); var HOST = '128.197.50.236'; var PORT = 55000; var n=1; var client = new net.Socket(); var RollingSpider = new require('rolling-spider'); var quad = new RollingSpider({ logger: console.log }); var flying = false; var inFlip = false; var land = false; var count=0; var prevControls; qu...
buuav/Myo_gesture_suite
rolling-spider-joystick/myocontrol.js
JavaScript
mit
4,843
import React from 'react'; import classes from 'classnames'; import Feed from 'src/components/Feed'; import equip from './equip'; const Content = ({ isFetching, posts, postCount, lastUpdated }) => ( <div> {isFetching && posts.length === 0 && <h2>Loading...</h2> } {!isFetching &&...
RayBenefield/halo-forge
src/components/Content/index.js
JavaScript
mit
806
import path from 'path' import webpack from 'webpack' import UglifyJsPlugin from 'uglifyjs-webpack-plugin' const config = { mode: process.env.NODE_ENV, entry: [ './src/index.js' ], output: { path: path.resolve(__dirname, 'dist'), filename: process.env.NODE_ENV === 'production' ? 'threesixty.min.js'...
rbartoli/threesixty
webpack.config.babel.js
JavaScript
mit
950
@if ($navbar) <nav class="typicms-navbar navbar navbar-expand-md navbar-dark bg-dark justify-content-between sticky-top"> @if (Request::segment(1) === 'admin') <button class="navbar-toggler" type="button" data-toggle="offcanvas" data-target="#navigation" aria-controls="navigation" aria-expanded="fal...
TypiCMS/Core
resources/views/_navbar.blade.php
PHP
mit
4,351
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
lmazuel/azure-sdk-for-python
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/connection_monitor_parameters.py
Python
mit
2,077
# tim **tim** 是宙品科技的前端框架。`tim` 的名字来源于 "Time is money"。 特点: * 尽力做到兼容IE8+。 * 用Scss编写。 * 提供了2列,3列,4列,5列,6列,7列,8列,9列,10列,12列,20列这几种常用网格,基本满足99%的常规布局要求。 * 提供了push,pull,offset。 * 提供了多种列间距模式。
zeupin/tim
README.md
Markdown
mit
361
a11y-what-why-how ================= Talk for visit to Hyderabad, India, entitled Designing Online Course Content for Universal Access. This presentation will introduce people to the “What?”, “Why?” and “How?” of web content accessibility highlighting the particular relevance and importance to online education. I will...
terracoda/a11y-what-why-how
README.md
Markdown
mit
606
import { normalizeToInterval } from './format.js' import { client } from '../plugins/Platform.js' export const FOCUSABLE_SELECTOR = [ 'a[href]:not([tabindex="-1"]):not(.q-focus__clone)', 'area[href]:not([tabindex="-1"]):not(.q-focus__clone)', 'input:not([disabled]):not([tabindex="-1"]):not(.q-focus__clone)', '...
pdanpdan/quasar
ui/src/utils/focus-manager.js
JavaScript
mit
6,277
FROM python:2.7-alpine WORKDIR /usr/src/app RUN pip install requests && apk add --no-cache curl COPY snipe.py /usr/src/app ENTRYPOINT ["python", "-u", "snipe.py"]
giubil/Pokemongo-bot-scripts
pokemongomap-snipe/Dockerfile
Dockerfile
mit
166
require "test_helper" describe RssNewsBrasil::Rss do before do url = "http://extra.globo.com/rss.xml" @rss_feed = RSS::Parser.parse(url, false) @rss = RssNewsBrasil::Rss.new(@rss_feed) end describe "title" do it "return the name of feeds author" do @rss.title.must_be_kind_of String @...
vinicius834/rss_news_brasil
test/rss_news_brasil/rss_test.rb
Ruby
mit
1,337
var express = require('express'); var router = express.Router(); // use auth_token cookie to secure the angular /app files //TODO this needs to be reworked since someone could spoof //a legitimate cookie named auth_token. Need to actually verify //the cookie router.use('/', function (req, res, next) { if (!req.cooki...
cwkingjr/mean-example
controllers/app.controller.js
JavaScript
mit
567
#ifndef MERCURY_INI_H #define MERCURY_INI_H #include <map> #include <vector> #include "MercuryString.h" #if defined(WIN32) #define PROPERRETURN "\r\n" #else #define PROPERRETURN "\n" #endif ///Framework for INI files class MercuryINI { public: MercuryINI( ) { m_bSaveOnExit = false; } MercuryINI( const MString &sFi...
freem/SMOnline-v1
MercuryINI.h
C
mit
5,426
var mongoose = require("../../database/"); var UserSchema = mongoose.Schema({ username: String, password: String, lastLoginTime: Date, createTime: Date, userType: String, // admin,normal projectList: [ { _id: Object, name: String } ] }); module.exports = UserSchema;
LaiHuanMin/JDocument
WebServer/util/mongoose/schema/user/index.js
JavaScript
mit
301
# https://projecteuler.net/problem=81 from projecteuler.FileReader import file_to_2D_array_of_ints # this problem uses a similar solution to problem 18, "Maximum Path Sum 1." # this problem uses a diamond instead of a pyramid matrix = file_to_2D_array_of_ints("p081.txt", ",") y_max = len(matrix) - 1 x_max = len(matri...
Peter-Lavigne/Project-Euler
p081.py
Python
mit
699
define(['angular'], function(angular) { 'use strict'; return angular.module('biomsef.filter', [ ]); });
agjacome/biomsef
src/main/assets/js/filter/main.js
JavaScript
mit
112
class Tag < ActiveRecord::Base has_many :taggings has_many :articles, through: :taggings def to_s name end end
samok13/jumpstart_blogger
app/models/tag.rb
Ruby
mit
127
# Changelog ## [0.2.1](https://github.com/qgadrian/smokex/releases/tag/0.2.1) (2017-09-18) * Add JSON output format. * Bug fixes. ## [0.1.0](https://github.com/qgadrian/smokex/releases/tag/0.1.0) (2017-08-27) * First release.
qgadrian/smokex
CHANGELOG.md
Markdown
mit
230
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Facility Editor</title> <script src="https://use.fontawesome.com/7ae57e4dd9.js"></script> <link href=...
FacilityApi/FacilityApi.github.io
editor/index.html
HTML
mit
2,739
import { Pipe, PipeTransform } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; @Pipe({ name: 'keepHtml', pure: false }) export class EscapeHtmlPipe implements PipeTransform { constructor(public sanitizer: DomSanitizer) { } transform(content) { return this.sanitizer.bypassSecu...
leChuckles/PeerActivate
src/app/shared/pipes/escape-html.pipe.ts
TypeScript
mit
349
import unittest from hamlpy.parser.core import ( ParseException, Stream, peek_indentation, read_line, read_number, read_quoted_string, read_symbol, read_whitespace, read_word, ) from hamlpy.parser.utils import html_escape class ParserTest(unittest.TestCase): def test_read_whit...
nyaruka/django-hamlpy
hamlpy/test/test_parser.py
Python
mit
4,020
// // EXTRuntimeExtensions.h // extobjc // // Created by Justin Spahr-Summers on 2011-03-05. // Copyright (C) 2012 Justin Spahr-Summers. // Released under the MIT license. // #import <objc/runtime.h> /** * Describes the memory management policy of a property. */ typedef enum { /** * The value is assigne...
JaonFanwt/WtCore
WtCore/Classes/GCD/Macros/WtEXTRuntimeExtensions.h
C
mit
3,055
<?php namespace IIA\ApiBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuratio...
elouf/QC-MANAGER
src/IIA/ApiBundle/Controller/QCMController.php
PHP
mit
6,511
namespace Promact.Trappist.DomainModel.Enum { public enum TestStatus { AllCandidates = 0, CompletedTest = 1, ExpiredTest = 2, BlockedTest = 3, UnfinishedTest = 4 } }
Promact/trappist
Trappist/src/Promact.Trappist.DomainModel/Enum/TestStatus.cs
C#
mit
221
#!/bin/sh set -e APPDIR="$(dirname "$(readlink -e "$0")")" . "$APPDIR"/common.conf exec "$PYTHON" "$@"
fyookball/electrum
contrib/build-linux/appimage/scripts/python.sh
Shell
mit
106
export const ic_picture_in_picture_alt_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M19 11h-8v6h8v-6zm-2 4h-4v-2h4v2zm4-12H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V4.98C23 3.88 22.1 3 21 3zm0 16....
wmira/react-icons-kit
src/md/ic_picture_in_picture_alt_outline.js
JavaScript
mit
359
package com.stuffwithstuff.magpie.intrinsic; import com.stuffwithstuff.magpie.Def; import com.stuffwithstuff.magpie.Doc; import com.stuffwithstuff.magpie.interpreter.Context; import com.stuffwithstuff.magpie.interpreter.Obj; public class IntMethods { /* @Shared @Signature("parse(text String -> Int)") public s...
munificent/magpie
src/com/stuffwithstuff/magpie/intrinsic/IntMethods.java
Java
mit
2,936
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class AddForeignKeysToTracksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('tracks', function(Blueprint $table) { $table->foreign('genre_id')->...
scrapewww/AutomatedMusicSite
database/migrations/2017_08_02_004718_add_foreign_keys_to_tracks_table.php
PHP
mit
613
#include "TypeDecoratorTypedefName.h" #include "TypedefDecorator.h" #include "ConcreteTableColumn.h" TypeDecoratorTypedefName::TypeDecoratorTypedefName(DataExtractor *next, ConcreteTableColumn *prototype, TypedefDecorator *condition):DataExtractor(next,prototype,condition) {} TableColumn* TypeDecoratorTypedefName::ha...
petrufm/mcc
mcc/src/TypeDecoratorTypedefName.cpp
C++
mit
528
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace AstrophotographyBlog.Web.Areas.Admin.Controllers { [Authorize(Roles = "Admin")] public class AdminController : Controller { // GET: Admin/Admin public ActionResult Index() ...
J-Mitko/AstrophotographyBlog
AstrophotographyBlog/AstrophotographyBlog.Web/Areas/Admin/Controllers/AdminController.cs
C#
mit
375
/** * Controller module. * This is the unique master controller, with tiny controllers for each view. * Our project is not large scaled, so our controllers can all stay together * happily like a family. * @module shell */ 'use strict'; var helpers = require('./helpers'); var model = require('./model'); // var p...
jiayihu/chattina
app/javascripts/controller.js
JavaScript
mit
2,398
require "simplecov" SimpleCov.start # Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)] require "rails/test_help" # Filter out Minite...
nativestranger/cerializable
test/test_helper.rb
Ruby
mit
847
--- title: Forlife Teapot date: 2016-06-01 00:00:00 Z layout: post --- ## A New Post Enter text in [Markdown](http://daringfireball.net/projects/markdown/). Use the toolbar above, or click the **?** button for formatting help.
dtsn/dtsn
_drafts/forlife-teapot.md
Markdown
mit
229
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { /// <content> /// Contains the <see cref="ServiceInfoLevel"/> nest...
fearthecowboy/pinvoke
src/AdvApi32.Shared/AdvApi32+ServiceInfoLevel.cs
C#
mit
3,446
Ext.define("Com.GatotKaca.ERP.module.Personal.view.grids.Experience",{extend:"Com.GatotKaca.ERP.module.HumanResources.view.grids.Experience",alias:"widget.gridprexperience",id:"gridprexperience",title:"Experiences",store:"Com.GatotKaca.ERP.module.Personal.store.Experience"});
AdenKejawen/erp
web/assets/app/module/Personal/view/grids/Experience.js
JavaScript
mit
276
<?php namespace Application\Migrations; use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your needs! */ class Version184 extends AbstractMigration { /** * @param Schema $schema */ public function up(Schema $schema) ...
ministryofjustice/opg-digi-deps-api
api/app/DoctrineMigrations/Version184.php
PHP
mit
1,049
<?php namespace Softbox\Support\Tests; use PHPUnit\Framework\TestCase; use Softbox\Support\Collection; use Softbox\Support\CollectionHelper; use Softbox\Support\Tests\Mocks\JsonSerializableClass; use Softbox\Support\Tests\Mocks\TraversableClass; class CollectionTest extends TestCase { public function testCreatio...
SoftboxLab/php-collection-helper
tests/CollectionTest.php
PHP
mit
6,623
using OpenTK.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FreeDF { interface IDrawable { int GetWidth(); int GetHeight(); int GetX(); int GetY(); Color4 GetFG(); Color4 Ge...
vestatus/FreeDF
FreeDF/GUI/Gadget.cs
C#
mit
11,688
#! /usr/bin/env python # Copyright (c) 2019 Red Hat, Inc. # Copyright (c) 2015-2018 Cisco Systems, Inc. # # 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 w...
metacloud/molecule
setup.py
Python
mit
12,584
# This SDK is deprecated Howdy all! 👋 Thanks for checking out this repo. Your 👀 mean a lot to us. 💗 Unfortunately, this project is deprecated, and the code hosted here is woefully out of date. We wouldn't recommend it as anything other than a curiosity. If you're interested in developing against the Pocket API, ...
Pocket/Pocket-ObjC-SDK
README.md
Markdown
mit
10,841
from django.contrib import admin from xbee_module.models import xbee_module # Register your models here. admin.site.register(xbee_module);
EricJones89/SmartHome
SmartHome/xbee_module/admin.py
Python
mit
139
# banshee Banshee is a Python script that tails your access log and ban abusive IP addresses from accessing your Django applications. ## Installation Place the 'ip' directory into your Django project directory. Update your project settings.py by adding 'ip' into your INSTALLED_APPS. Run 'python manage.py syncdb', y...
ayeowch/banshee
README.md
Markdown
mit
1,953
export default function singleOrDefault<TSource>(this: Iterable<TSource>): TSource | null; export default function singleOrDefault<TSource>(this: Iterable<TSource>, predicate: (element: TSource) => boolean): TSource | null; export default function singleOrDefault<TSource>(this: Iterable<TSource>, predicate: ((element: ...
emonkak/js-enumerable
src/singleOrDefault.ts
TypeScript
mit
1,645
require "spec_helper" describe Moneybird::Service::SalesInvoice do let(:client) { Moneybird::Client.new('bearer token') } let(:service) { Moneybird::Service::SalesInvoice.new(client, '123') } describe "#all" do before do stub_request(:get, 'https://moneybird.com/api/v2/123/sales_invoices') .to...
maartenvanvliet/moneybird
spec/lib/moneybird/service/sales_invoice_spec.rb
Ruby
mit
2,977