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 |
|---|---|---|---|---|---|
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** ... | Oriense/orsens | include/QtCore/qsocketnotifier.h | C | mit | 2,790 |
require 'test_helper'
class AmenitiesControllerTest < ActionController::TestCase
# test "the truth" do
# assert true
# end
end
| tiy-austin-ror/SpaceBook | test/controllers/amenities_controller_test.rb | Ruby | mit | 136 |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import PhoneIcon from '@material-ui/icons/Phone';
import FavoriteIcon from '@material-ui/icons/Favorite';
import PersonPi... | cherniavskii/material-ui | docs/src/pages/demos/tabs/ScrollableTabsButtonPrevent.js | JavaScript | mit | 2,367 |
<!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... | bmateusz-inc/bombas-jatek | doxygen/html/class_bomb-members.html | HTML | mit | 7,163 |
# CPSC3780-Project
CPSC 3780 Data Communications and Networking project
Chat system with client server setup.
Client will be able to send messages to another client connected to a server.
Message goes from the client to the server, and then goes to the destionation client.
Check [CPSC3780project.pdf](https://gith... | Clumsy-Coder/CPSC3780-Project | README.md | Markdown | mit | 1,215 |
/**
* comment
*/
.class {
padding: 10px;
}
/*comment*/
.foo {
color: red;
}
/*
at rule
*/
@media only screen {
/* inner at rule comment */
.foo {
display: none;
}
/*
* another comment
*/
.bar {
color: yellow;
}
}
| MhdAljuboori/stylefmt | test/fixtures/comment/comment.out.css | CSS | mit | 255 |
using System.Collections.Generic;
namespace Greg.Requests
{
public class PackageVersionUploadRequestBody : RequestBody
{
internal PackageVersionUploadRequestBody()
{
}
public PackageVersionUploadRequestBody(string name, string version, string description,
... | Benglin/GRegClientNET | src/GregClient/Requests/PackageVersionUploadRequestBody.cs | C# | mit | 2,001 |
package xsierra.digitguesser.drawer.pipeline;
import java.awt.image.BufferedImage;
public interface DigitPipeline {
/**
* @param image An image that contains a drawed digit
* @return the guessed digit, a number between 0 - 9
*/
byte imageGuessDigit(BufferedImage image);
}
| xaviersierra/digit-guesser | drawer/src/main/java/xsierra/digitguesser/drawer/pipeline/DigitPipeline.java | Java | mit | 299 |
---
layout: post
title: Sunday Update No. 2
---
This was my first full week with the project. While I kept up on my commit-a-day goal, the pace is still pretty slow (see below). Overall I'm happy though, and the streak is still alive.
##The Numbers
* Total commits: 6
* Total issues reported: 2
* Repos contributed to: ... | chagan/chagan.github.io | _posts/2015-01-11-sunday-update-2.md | Markdown | mit | 3,746 |
package connect.view;
import android.content.Context;
import android.util.AttributeSet;
import connect.view.roundedimageview.RoundedImageView;
/**
* Created by Administrator on 2016/12/15.
*/
public class HightEqWidthRounderImage extends RoundedImageView {
public HightEqWidthRounderImage(Context context) {
... | connectim/Android | app/src/main/java/connect/view/HightEqWidthRounderImage.java | Java | mit | 759 |
package com.sind.projectx.domain.food.menu;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;
/**
* @author Dmytro Bekuzarov
*/
public class MenuSection {
@NotBlank
private String name;
@NotEmpt... | dmytro-bekuzarov/projectx-api | projectx-api-domain/src/main/java/com/sind/projectx/domain/food/menu/MenuSection.java | Java | mit | 890 |
// package it.at.oiml.bitbucket.lfs;
//
// import org.junit.Test;
// import org.junit.runner.RunWith;
// import com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner;
// import at.oiml.bitbucket.lfs.MyPluginComponent;
// import com.atlassian.sal.api.ApplicationProperties;
//
// import static org.junit.Assert.asser... | joerg/stash-git-lfs | src/test/java/it/at/oiml/stash/lfs/MyComponentWiredTest.java | Java | mit | 1,003 |
/*
Binary Tree Upside Down
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it upside down and turn it into a tree where the original right nodes turned into left leaf nodes. Return the new root.
For example:
Given a binary... | Yujia-Xiao/Leetcode | List/Binary_Tree_Upside_Down.java | Java | mit | 1,805 |
import { lighten } from 'polished';
import { css } from '@emotion/react';
import styled from '@emotion/styled';
import { colors } from './colors';
export const outer = css`
position: relative;
padding: 0 5vw;
`;
// Centered content container blocks
export const inner = css`
margin: 0 auto;
max-width: 1040px... | chso2/chso2.github.io | src/styles/shared.ts | TypeScript | mit | 8,265 |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Terraria;
using TAPI;
namespace Avalon.Projectiles.FromPlayer.Explosions
{
/// <summary>
/// The Ichor Explosion.
/// </summary>
public sealed class IchorExplosion : ModProjectile
{
/// <... | Avalon-Team/Terraria-Avalon | Avalon/Projectiles/FromPlayer/Explosions/Ichor Explosion.cs | C# | mit | 1,177 |
package ru.mail.parking.sw2.system;
import com.sonyericsson.extras.liveware.aef.registration.Registration;
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils;
import com.sonyericsson.extras.liveware.extension.util.registration.RegistrationInformation;
import android.content.ContentValues;
import r... | trashkalmar/MrParkingNavigator | src/ru/mail/parking/sw2/system/SwRegInfo.java | Java | mit | 2,177 |
/**
* ****************************************************************************
* Copyright 2014 Virginia Polytechnic Institute and State University
* <p/>
* 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 cop... | PATRIC3/patric3_website | portal/patric-diseaseview/src/edu/vt/vbi/patric/portlets/DiseaseOverview.java | Java | mit | 7,388 |
/*****************************************************************************
* Course: CS 27500
* Name: Adam Joseph Cook
* Email: cook5@purduecal.edu
* Assignment: 1
*
* The <CODE>TestDrive</CODE> Java application simulates a car being driven
* depending on its provided fuel efficiency and fuel amount.
*
* @... | adamjcook/cs27500 | hw1/TestDrive.java | Java | mit | 2,807 |
<header class="content">
<div class="row items-push">
<div class="col-sm-7">
<h1 class="h3 font-w400 push-5-t">Experiencias</h1>
</div>
<div class="col-sm-5 text-right">
<a ng-href="/admin/#/experiences/create" class="btn btn-primary btn-min-width">
<i class="fa fa-plus"></i> Agregar Experiencia
</a... | EmprendedoresLA/emprendevs-equipo-4 | resources/assets/html/backend/experiences/index.html | HTML | mit | 1,479 |
#!/usr/bin/env ruby
require "pathname"
require_relative "testframework/testhelper"
require_relative "testframework/testenvironment"
require_relative "testframework/testdefinition"
require_relative "testframework/testoperator"
environment = TestEnvironment.new()
definition = TestDefinition.new()
pathname = Pathname.n... | embear/logger | test/test014.rb | Ruby | mit | 1,456 |
// Actions
export const ADD_NOTIFICATION = 'notifications/ADD_NOTIFICATION'
export const DISMISS_NOTIFICATION = 'notifications/DISMISS_NOTIFICATION'
export const CLEAR_NOTIFICATIONS = 'notifications/CLEAR_NOTIFICATIONS'
// Reducer
export const initialState = []
export default function reducer(state = initialState, act... | cannoneyed/tmm-glare | src/core/notifications/index.js | JavaScript | mit | 1,447 |
var rarities = {
'Common': {
name: 'Common',
level_prop: 'MultiplierQ1'
},
'Rare': {
name: 'Rare',
level_prop: 'MultiplierQ2'
},
'Epic': {
name: 'Epic',
level_prop: 'MultiplierQ3'
},
'Legendary': {
name: 'Legendary',
level_prop: 'MultiplierQ4'
},
'Mythic': {
name: '... | trigunshin/party_of_heroes_info | static/js/base_hero_values.js | JavaScript | mit | 48,676 |
#!/bin/bash
#PBS -N elastic
#PBS -o out
#PBS -q batch
#PBS -j oe
#PBS -l nodes=2:ppn=4
#-----------------------------------------------------------------------
# Usage:
# $ qsub run_vasp.sh
#-----------------------------------------------------------------------
export LANG=en_US
cd $PBS_O_WORKDIR
NPROCS=`wc -l < $P... | ryokbys/nap | nappy/vasp/batch_elastic_constants.sh | Shell | mit | 928 |
<?php
// src/VersionControl/GitlabIssueBundle/Entity/User.php
/*
* This file is part of the GitlabIssueBundle package.
*
* (c) Paul Schweppe <paulschweppe@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Versio... | SSHVersionControl/git-web-client | app/src/VersionControl/GitlabIssueBundle/Entity/User.php | PHP | mit | 887 |
---
layout: page
published: true
---
I am a Weierstrass research group leader heading the Data-driven Optimization and Control research group, [Weierstrass Institute, Berlin](https://www.wias-berlin.de/). I am also an affiliated researcher with the [Empirical Inference Department](https://ei.is.tuebingen.mpg.de/), [Max... | bustermachinej/bustermachinej.github.io | index.md | Markdown | mit | 1,383 |
var NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/natural-language-understanding/v1.js');
var ToneAnalyzerV3 = require('watson-developer-cloud/tone-analyzer/v3');
let fs = require('fs');
let path = require('path');
const directoryName = path.dirname(__filename);
const creds = {
tone: {
"userna... | jhowtan/frost-poetry-dh | scripts/watson.js | JavaScript | mit | 3,009 |
var encodeDecode = function() {
var randomNum = function (min, max) { // helper function for random numbers
return Math.random() * (max - min) + min;
};
var insertBreak = function (counter) { //helper function to break lines @ 100 char
if (counter % 100 === 0) {
$('body').append("<br>");
... | Pink401k/kyle.pink | app/quizzes/scripts.js | JavaScript | mit | 1,653 |
using System.Data.Common;
using System.Linq;
using System.Reflection;
namespace FluentMethods.UnitTests
{
public class MethodInfoFixture
{
#if NetCore
[Xunit.Fact]
#else
[NUnit.Framework.Test]
#endif
public void IsAsync()
{
var methodOpenAsync= typeof... | edwardmeng/FluentMethods | test/Core/System.Reflection.MethodInfo/IsAsync.cs | C# | mit | 1,041 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cmn" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Horuscoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<locatio... | horuscoin/horuscoin | src/qt/locale/bitcoin_cmn.ts | TypeScript | mit | 131,056 |
# systemPreferences
> Get system preferences.
Process: [Main](../glossary.md#main-process)
```javascript
const {systemPreferences} = require('electron')
console.log(systemPreferences.isDarkMode())
```
## Events
The `systemPreferences` object emits the following events:
### Event: 'accent-color-changed' _Windows_
... | shiftkey/electron | docs/api/system-preferences.md | Markdown | mit | 9,127 |
<?php
if(isset($_POST['message']) && isset($_POST['name'])){
$handle = fopen('feedback.txt', 'a') or die('Could not open the file');
$from = $_POST['name'];
$time = date('m/d h:i:s');
$message = $_POST['message'];
$toWrite = "Message from: $from on $time:\r\n$message\r\n\r\n";
fwrite($handle, $t... | M-shin/homepage | tileslide/php/feedback.php | PHP | mit | 534 |
namespace Merchello.Web.Models.ContentEditing.Collections
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using System.Security.Cryptography;
using Merchello.Core;
using Merchello.Core.Models;
using Merchello.Core.Models.EntityBase;
using Merc... | rasmusjp/Merchello | src/Merchello.Web/Models/ContentEditing/Collections/EntityCollectionDisplay.cs | C# | mit | 3,983 |
# coding=utf-8
# Bootstrap installation of setuptools
from ez_setup import use_setuptools
use_setuptools()
import os
import sys
from fnmatch import fnmatchcase
from distutils.util import convert_path
from propane_distribution import cmdclassdict
from setuptools import setup, find_packages
from engineer import version... | tylerbutler/engineer | setup.py | Python | mit | 5,374 |
// -------------------------------------------------------
// Copyright (C) 施维串 版权所有。
// 创建标识:2013-11-11 10:53:36 Created by 施维串
// 功能说明:
// 注意事项:
//
// 更新记录:
// -------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace sh... | q120582371/gameserver | shiwch.util/ByteArrayEqualityComparer.cs | C# | mit | 2,062 |
import React, {
Fragment,
Children,
cloneElement,
useRef,
useEffect
} from 'react';
import { createPortal } from 'react-dom';
import PropTypes from 'prop-types';
import cx from 'classnames';
import idgen from './idgen';
import Button from './Button';
import { safeJSONStringify } from './utils';
const Modal ... | react-materialize/react-materialize | src/Modal.js | JavaScript | mit | 4,976 |
class KonamiCodeManager {
constructor() {
this._pattern = "38384040373937396665";
this._keyCodeCache = '';
this._callback = () => {};
this._boundCheckKeyCodePattern = this._checkKeyCodePattern.bind(this);
}
attach(root, callback) {
if (root instanceof Element) {
root.removeEventListener... | EragonJ/Kaku | src/views/modules/KonamiCodeManager.js | JavaScript | mit | 988 |
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Template Foundation - Sign In</title>
<link rel="icon" type="image/png" href="images/favicon.png" />
<link rel="stylesheet" href="//cdnjs.c... | intrepion/sign-up-template-foundation | sign-in-verified.html | HTML | mit | 2,730 |
class CharAttribute < ActiveRecord::Base
belongs_to :character
belongs_to :base_attribute
default_scope -> { order(base_attribute_id: :asc) }
end
| mbroadwater/shadowrun | app/models/char_attribute.rb | Ruby | mit | 152 |
<?xml version="1.0" encoding="utf-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" xml:lang="en" lang="en">
<head>
<title>ActiveModel::SecurePassword</title>
<meta http-equiv="Content-Typ... | zhuzhang/auc | doc/api/classes/ActiveModel/SecurePassword.html | HTML | mit | 2,342 |
'use strict';
describe('test search controller', function() {
beforeEach(module('mapTweetInfoApp'));
beforeEach(module('twitterSearchServices'));
beforeEach(module('latLngServices'));
describe('searchCtrl', function(){
var scope, ctrl, $httpBackend, $browser, $location;
beforeEach(inject(function(_$... | hartzis/MapTweet.Info | test/app/unit/controllers/searchControllerSpec.js | JavaScript | mit | 1,204 |
/**
*
* Trailing Zeroes
*
* @author: Corey Hart <http://www.codenothing.com>
* @description: Removes unecessary trailing zeroes from values
*
* @before:
* .example {
* width: 5.0px;
* }
*
* @after:
* .example {
* width: 5px;
* }
*
*/
var CSSCompressor = global.CSSC... | codenothing/CSSCompressor | lib/rules/Trailing Zeroes.js | JavaScript | mit | 1,115 |
<?php date_default_timezone_set('asia/manila');?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="John Noah G. Ompad">
<title>AGUS 6/7 - Warehouse Management System</title>
<!-- Boo... | comexprt/swms | application/views/Request_Spares_Approved.php | PHP | mit | 16,009 |
// 文件上传
jQuery(function() {
var $ = jQuery,
$list = $('#thelist'),
$btn = $('#ctlBtn'),
state = 'pending',
// 优化retina, 在retina下这个值是2
ratio = window.devicePixelRatio || 1,
// 缩略图大小
thumbnailWidth = 100 * ratio,
thumbnailHeight = 100 * ratio,
up... | sxyx2008/rubyblog | public/webuploader/user-webuploader.js | JavaScript | mit | 3,416 |
/*
* Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Pdf. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package programmersguide.workingwitha... | asposemarketplace/Aspose-Pdf-Java | src/programmersguide/workingwithasposepdfgenerator/workingwithtext/textformatting/inheritingtextformat/java/InheritingTextFormat.java | Java | mit | 751 |
'use strict';
module.exports = {
client: {
lib: {
// Load Angular-UI-Bootstrap module templates for these modules:
uibModuleTemplates: [
'modal',
'popover',
'progressbar',
'tabs',
'tooltip',
'typeahead'
],
css: [
'public/lib/fontello... | mleanos/trustroots | config/assets/default.js | JavaScript | mit | 8,669 |
using System;
using System.Collections.Generic;
namespace EventStreams.Projection {
using Core;
using EventHandling;
using Transformation;
public interface IProjector {
IEventSequenceTransformer Transformations { get; }
TModel Project<TModel>(IEnumerable<IStreamedEvent> ev... | nbevans/EventStreams | EventStreams/Projection/IProjector.cs | C# | mit | 590 |
<!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>
... | kuhlenh/port-to-core | Reports/nv/nview.1.4.2/NView-MonoAndroid10.html | HTML | mit | 9,625 |
(function (w) {
var $ = w.$,
d = document,
e = d.documentElement,
g = d.getElementsByTagName('body')[0],
my = w.ilm,
contid = 0;
function fixCharts(width, fn) {
$(fn).css("width", width);
$(d).ready(function () {
var inner = $(fn).width();
setTimeout(function () {
$.each(w.ilm.charts... | aivoprykk/ilmcharts | src/js/docfix.js | JavaScript | mit | 3,683 |
<?php
/*
Safe sample
input : get the $_GET['userData'] in an array
sanitize : use of intval
construction : use of sprintf via a %u
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its documentation f... | designsecurity/progpilot | projects/tests/tests/vulntestsuite/CWE_89__array-GET__func_intval__multiple_select-sprintf_%u.php | PHP | mit | 1,651 |
import setupStore from 'dummy/tests/helpers/store';
import Ember from 'ember';
import {module, test} from 'qunit';
import DS from 'ember-data';
var env, store;
var attr = DS.attr;
var hasMany = DS.hasMany;
var belongsTo = DS.belongsTo;
var run = Ember.run;
var Post, Tag;
module("unit/many_array - DS.ManyArray", {
... | nickiaconis/data | tests/unit/many-array-test.js | JavaScript | mit | 3,924 |
using System.Threading;
using System.Threading.Tasks;
namespace FluentSpotifyApi.Builder.Me.Following
{
/// <summary>
/// The builder for "playlists/{playlistId}/followers" endpoint.
/// </summary>
public interface IFollowedPlaylistBuilder
{
/// <summary>
/// Adds the current user ... | dotnetfan/FluentSpotifyApi | src/FluentSpotifyApi/Builder/Me/Following/IFollowedPlaylistBuilder.cs | C# | mit | 1,776 |
<?php
// This file is generated by Composer
require_once 'vendor/autoload.php';
// Load .env file
Dotenv::load(__DIR__);
// Function to calculate the percentage
function percent($amount, $total) {
$countA = $amount / $total;
$countB = $countA * 100;
// Round number
$count = number_format($... | frdmn/frd.mn | parser.php | PHP | mit | 3,239 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Paper - Material Admin Theme</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<me... | jobteam/albumso | public_admin/maps-mapael.html | HTML | mit | 42,295 |
package org
import (
"fmt"
"strings"
"unicode"
"unicode/utf8"
)
// OrgWriter export an org document into pretty printed org document.
type OrgWriter struct {
ExtendingWriter Writer
TagsColumn int
strings.Builder
indent string
}
var emphasisOrgBorders = map[string][]string{
"_": []string{"_", "_"},
... | typeless/gitea | vendor/github.com/niklasfasching/go-org/org/org_writer.go | GO | mit | 8,133 |
import WordSearch from './word-search';
describe('single line grids', () => {
test('Should accept an initial game grid', () => {
const grid = ['jefblpepre'];
const wordSearch = new WordSearch(grid);
expect(wordSearch instanceof WordSearch).toEqual(true);
});
xtest('can accept a target search word',... | exercism/xecmascript | exercises/practice/word-search/word-search.spec.js | JavaScript | mit | 12,331 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>input</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<div class="container">
<form>
<div class="form-group">
<label for="exampleInputEmail1">Em... | honger05/webpack-arale | c03-bootstrap/src/tmpl/input.html | HTML | mit | 1,147 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Abnaki.Windows.Software.Wpf.Ultimate
{
/// <summary>
/// Starts Ultimate MainWindow where a Tcontrol occupies all the useful space
/// </summary>
/// <typeparam name="Tcontrol">
/// </typeparam>
public clas... | abnaki/windows | Library/Software/WpfApplication/Ultimate/UltimateStarter.cs | C# | mit | 1,221 |
'use strict';
/* Controllers */
angular.module('myApp.controllers')
.controller('DatepickerDemoCtrl', ['$scope','$timeout',function($scope, $timeout) {
$scope.today = function() {
$scope.dt = new Date();
};
$scope.today();
$scope.showWeeks = true;
$scope.toggle... | Jeffwan/friendsDoc | app/js/controllers/datepickerDemoCtrl.js | JavaScript | mit | 1,071 |
# -*- coding: utf-8 -*-
class Courier::SubscriptionType::Base < ActiveRecord::Base
INTERPOLATION_PATTERN = Regexp.new /%\{([a-z|0-9\._]+)\}/
self.table_name = :courier_subscription_types
serialize :properties
has_many :log_entities, :foreign_key => :subscription_type_id, :class_name => 'Courier::LogEntity'
... | BrandyMint/courier | app/models/courier/subscription_type/base.rb | Ruby | mit | 3,123 |
.inline-item {
display: inline-block;
}
/* Photo */
/* main-album */
#main-album {
-moz-transition: -moz-filter 0.5s ease, -webkit-filter 0.5s ease, -ms-filter 0.5s ease, -moz-filter 0.5s ease;
-webkit-transition: -moz-filter 0.5s ease, -webkit-filter 0.5s ease, -ms-filter 0.5s ease, -webkit-filter 0.5s... | yinger650/alialbum | Public/assets/css/mychange.css | CSS | mit | 12,403 |
<?php
namespace StoreIntegrator\tests\Amazon;
use Sabre\Xml\Writer;
use StoreIntegrator\Amazon\AmazonProduct;
use StoreIntegrator\Amazon\ProductFeed;
use StoreIntegrator\tests\TestCase;
class AmazonProductFeedTest extends TestCase
{
public function testTestXMLAgainstXSD()
{
$schema = __DIR__ . '/../x... | netoholic/store-integrator | tests/Amazon/AmazonProductFeedTest.php | PHP | mit | 1,328 |
\begin{figure}[H]
\centering
\includegraphics[width=4.25in]{figs/run_20/run_20_rt_contour}
\caption{Contour plot of $\overline{v_{r}^{\prime} v_{\theta}^{\prime}}$ at $z/c$=6.97, $V_{free}$=33.39, station 2.}
\label{fig:run_20_rt_contour}
\end{figure}
| Jwely/pivpr | texdocs/figs/run_20/run_20_rt_contour.tex | TeX | mit | 254 |
<body style="background-color: #4CAF50">
<ul class="menu-area">
<li class="menu-part-area"><a class="menu-link-area" href="<?php echo site_url('welcome/index') ?>">Domov</a></li>
</ul>
<form action="<?php echo site_url('reservation/writeplace');?>" method="post">
<div class="dark-form">
Vyberte si čas ... | Laope94/sportcomplex | application/views/choose_time.php | PHP | mit | 1,208 |
import { Injectable } from '@angular/core';
@Injectable()
export class AuthConfiguration {
// The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery) MUST exactly match the value of the iss (issuer) Claim.
public iss = 'http://robustidentity.tmentorsinc.com'; //identity se... | ShaimaaHamdan/AngularJS-4-Startar | Robust/src/app/auth.configuration.ts | TypeScript | mit | 1,398 |
## Overview
NOTE: AWS in Dec 2018 released WebSocket support for their API Gateway. This offers another pattern for serverless WebSocket implementation, as an alternative to per-user SQS queues and Cognito for identity management.
One challenge with serverless architectures is supporting event-driven browser experi... | ReutersMedia/sqs-browser-events | README.md | Markdown | mit | 13,969 |
//Draw at the console a filled square of size n like in the example:
//--------
//-\/\/\/-
//-\/\/\/-
//--------
namespace Draw_a_Filled_Square
{
using System;
class DrawAFilledSquare
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
PrintHeaderRow(n)... | NikolaySpasov/Softuni | Programming Fundamentals/03.Methods - Defining and Calling Methods/4. Draw a Filled Square/DrawAFilledSquare.cs | C# | mit | 837 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sk" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About StreamCoin</source>
<translation>O StreamCoin</translation>
</me... | streamcoin/streamcoin-master | src/qt/locale/bitcoin_sk.ts | TypeScript | mit | 106,581 |
using System;
using Newtonsoft.Json;
using VkNet.Enums;
using VkNet.Enums.Filters;
using VkNet.Enums.SafetyEnums;
using VkNet.Utils.JsonConverter;
namespace VkNet.Model.RequestParams
{
/// <summary>
/// Параметры метода users.search
/// </summary>
[Serializable]
public class UserSearchParams
{
/// <summary>
... | vknet/vk | VkNet/Model/RequestParams/Users/UserSearchParams.cs | C# | mit | 5,434 |
package smash.data.tweets.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* @author Yikai Gong
*/
public class TweetCoordinates implements Serializable {
private String type;
// Order in lon-lat. Follow the GeoJSON/WKT standard which JTS is... | project-rhd/smash-app | smash-tweets/smash-tweets-data/src/main/java/smash/data/tweets/pojo/TweetCoordinates.java | Java | mit | 1,190 |
---
title: Componente React Menu
components: Menu, MenuItem, MenuList, ClickAwayListener, Popover, Popper
githubLabel: 'component: Menu'
materialDesign: https://material.io/components/menus
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
# Menu
<p class="description">Os menus exibem uma lista de o... | callemall/material-ui | docs/src/pages/components/menus/menus-pt.md | Markdown | mit | 4,556 |
<!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_31) on Wed Dec 17 20:47:30 PST 2014 -->
<title>URLDecoder (Java Platform SE 8 )</title>
<meta name="date" content="2014-12-17">
<meta name="key... | fbiville/annotation-processing-ftw | doc/java/jdk8/java/net/URLDecoder.html | HTML | mit | 17,186 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DockSample
{
public partial class SplashScreen : Form
{
public SplashScreen()
{
Initiali... | thijse/dockpanelsuite | DockSample/SplashScreen.cs | C# | mit | 355 |
# 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 may ... | Azure/azure-sdk-for-python | sdk/testbase/azure-mgmt-testbase/azure/mgmt/testbase/aio/__init__.py | Python | mit | 524 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Poseidon.Energy.Core.DL
{
using Poseidon.Base.Framework;
using Poseidon.Base.Utility;
/// <summary>
/// 能源计量总类
/// </summary>
... | robertzml/Poseidon.Energy | Poseidon.Energy.Core/DL/Measure.cs | C# | mit | 1,522 |
FixedWidthCSS
=============
| joefallon/FixedWidthCSS | README.md | Markdown | mit | 28 |
//////////////////////////////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
//
// Copyright (c) 2017-present, cyder.org
// All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation ... | cyderjs/cyder | scripts/src/events/IOErrorEvent.ts | TypeScript | mit | 2,265 |
Application Performance Monitoring with Airbrake makes it easy to:
- **Understand high-level performance:** Quickly see a broad performance
overview for your whole application.
- **Monitor user satisfaction:** Measure user satisfaction with your app
performance using Apdex.
- **Catch problem routes:** Identify rout... | airbrake/airbrake-docs | jekyll/_docs/performance-monitoring/partials/features-list.md | Markdown | mit | 721 |
import {Manager} from './manager'
export {Filterer} from './filter';
export {Logger} from './logger';
export {Manager};
var logging = new Manager();
export default logging;
| smialy/sjs-logging | src/index.js | JavaScript | mit | 175 |
http://fontool.xyz
Fontool can help you to test your webfonts. It's focussing on the following aspects:
## Overall readability
Is it friendly to read and suitable for large amounts of text?
## Rendering
How well does the font perform on different platforms, browsers and devices? Is it well hinted so that it looks go... | fhoeg/fontool | README.md | Markdown | mit | 1,508 |
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usetheme{Frankfurt}
\setbeamertemplate{navigation symbols}{}
\title{Showing \LaTeX Beamer Slides with JessyInk}
\author{\texorpdfstring{Jochen Lüdering\newline\url{j@chaotisch.org}}{Jochen Lüdering}}
\date{\today}
\begin{document}
\begin{frame}
\maketitle
\end{frame}... | 00joshi/SVGLayerUp | layerup-manual.tex | TeX | mit | 1,052 |
# Ant
#
# Copyright (c) 2012, Gustav Tiger <gustav@tiger.name>
#
# 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... | ddboline/Garmin-Forerunner-610-Extractor_fork | ant/easy/node.py | Python | mit | 4,653 |
---
layout: automation
title: Automation of Private Detectives and Investigators
subtitle: Will robots and artificial intelligence take the job of Private Detectives and Investigators? Get the facts.
soc:
code: 33-9021
title: Private Detectives and Investigators
definition: 'Gather, analyze, compile and report in... | simonmesmith/simonmesmith.github.io | _automation/private-detectives-and-investigators.md | Markdown | mit | 696 |
Function Get-HostsFile {
<#
.SYNOPSIS
Split out the windows HOST file and converts it into a custom object
.DESCRIPTION
Split out the windows HOST file and converts it into a custom object
.PARAMETER InputFile
Use an alternative file instead of the default
.EXAMPLE... | My-Random-Thoughts/Various-Code | Get-HostsFile.ps1 | PowerShell | mit | 1,425 |
<!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... | v8-dox/v8-dox.github.io | 4432dc8/html/classv8_1_1_string_1_1_external_string_resource_base.html | HTML | mit | 7,835 |
import os
from ConfigParser import ConfigParser
from amlib import argp
tmp_conf = ConfigParser()
tmp_path = os.path.dirname(os.path.abspath(__file__)) # /base/lib/here
tmp_path = tmp_path.split('/')
conf_path = '/'.join(tmp_path[0:-1]) # /base/lib
tmp_conf.read(conf_path+'/ampush.conf')
c = {}
c.update(tmp_conf.ite... | sfu-rcg/ampush | amlib/conf.py | Python | mit | 1,274 |
/**
* Created by larry on 2017/1/6.
*/
import React from 'react';
import Todo from './Todo';
//圆括号里面要写大括号
const TodoList = ({todos, onTodoClick}) => {
return (
<ul>
{
todos.map
(
todo =>
<Todo
... | lingxiao-Zhu/react-redux-demo | src/components/TodoList.js | JavaScript | mit | 568 |
#include "Object.h"
// #include <SFML/Audio.hpp> // for playing sounds
namespace {
using namespace ogl;
// taken from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html#The C Code
// Argument Meaning
// nvert Number of vertices in the polygon.Whether to repeat the first vertex at the e... | martensm/CSC5210_Project_5 | src/ogl/Object.cpp | C++ | mit | 5,100 |
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | rorykoehler/login-with-soundcloud-demo-app | db/schema.rb | Ruby | mit | 1,366 |
<div class="commune_descr limited">
<p>
Saint-Privat est
une ville géographiquement positionnée dans le département de l'Ardêche en Rhône-Alpes. On dénombrait 1 540 habitants en 2008.</p>
<p>À proximité de Saint-Privat sont situées les villes de
<a href="{{VLROOT}}/immobilier/saint-didier-sous-aubenas_0722... | donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/07289.html | HTML | mit | 1,683 |
package com.bellini.recipecatalog.exception.recipe;
public class NotExistingRecipeException extends RuntimeException {
private static final long serialVersionUID = 2975419159984559986L;
private Long id;
public NotExistingRecipeException(Long id) {
super();
if (id == null) {
th... | riccardobellini/recipecatalog-backend-java | src/main/java/com/bellini/recipecatalog/exception/recipe/NotExistingRecipeException.java | Java | mit | 559 |
requirejs.config({
// baseUrl: '/',
paths: {
lodash: '//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash',
jquery: '//code.jquery.com/jquery-1.11.0.min',
react: '//cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react-with-addons'
},
shim: {
lodash: {exports: '_'},
... | wix/react-templates | sample/main.js | JavaScript | mit | 581 |
package biz.golek.whattodofordinner.view.activities;
import android.support.annotation.NonNull;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.MenuInflater;
import android.view.MenuItem;
import and... | bartoszgolek/whattodofordinner | app/src/main/java/biz/golek/whattodofordinner/view/activities/PromptsActivity.java | Java | mit | 7,640 |
Gem.find_files('slackbot_frd/**/*.rb').each do |path|
require path.gsub(/\.rb$/, '') unless path =~ /bot.*cli/
end
| FreedomBen/slackbot_frd | lib/slackbot_frd.rb | Ruby | mit | 117 |
# encoding: utf-8
from __future__ import unicode_literals
import operator
import pytest
from marrow.mongo import Filter
from marrow.schema.compat import odict, py3
@pytest.fixture
def empty_ops(request):
return Filter()
@pytest.fixture
def single_ops(request):
return Filter({'roll': 27})
def test_ops_iterat... | marrow/mongo | test/query/test_ops.py | Python | mit | 5,358 |
export const bubble = {"viewBox":"0 0 16 16","children":[{"name":"path","attribs":{"fill":"#000000","d":"M8 1c4.418 0 8 2.91 8 6.5s-3.582 6.5-8 6.5c-0.424 0-0.841-0.027-1.247-0.079-1.718 1.718-3.77 2.027-5.753 2.072v-0.421c1.071-0.525 2-1.48 2-2.572 0-0.152-0.012-0.302-0.034-0.448-1.809-1.192-2.966-3.012-2.966-5.052 0-... | wmira/react-icons-kit | src/icomoon/bubble.js | JavaScript | mit | 347 |
<?php
namespace SVG\Nodes\Filters;
use SVG\Nodes\SVGNodeContainer;
use SVG\Rasterization\SVGRasterizer;
/**
* Represents the SVG tag 'feComponentTransfer'.
*/
class SVGFEComponentTransfer extends SVGNodeContainer
{
const TAG_NAME = 'feComponentTransfer';
public function __construct()
{
parent:... | JangoBrick/php-svg | src/Nodes/Filters/SVGFEComponentTransfer.php | PHP | mit | 482 |
export { default } from 'ember-fhir/serializers/timing-repeat'; | davekago/ember-fhir | app/serializers/timing-repeat.js | JavaScript | mit | 63 |
import { Route } from '@angular/router';
import { LoginComponent } from './index';
export const LoginRoutes: Route[] = [
{
path: 'login',
component: LoginComponent
}
];
| AnnaCasper/finance-tool | src/client/app/login/login.routes.ts | TypeScript | mit | 186 |
// <auto-generated />
using ArragroCMS.BusinessLayer.Data.EFCore;
using ArragroCMS.Core.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Stora... | Arragro/ArragroCMS | src/ArragroCMS.BusinessLayer/Data/EFCore/Migrations/ArragroCms/SQL/20170907110926_Initial.Designer.cs | C# | mit | 10,037 |
require File.expand_path(File.join(File.dirname(__FILE__), "test_helper"))
require 'onelogin/ruby-saml/slo_logoutresponse'
class SloLogoutresponseTest < Minitest::Test
describe "SloLogoutresponse" do
let(:settings) { OneLogin::RubySaml::Settings.new }
let(:logout_request) { OneLogin::RubySaml::SloLogoutreq... | onelogin/ruby-saml | test/slo_logoutresponse_test.rb | Ruby | mit | 16,979 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.