repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
hidakatsuya/redmine_default_custom_query | app/patches/models/query_patch.rb | 323 | require_dependency 'query'
module DefaultCustomQuery
module QueryPatch
extend ActiveSupport::Concern
included do
scope :only_public, -> { where(visibility: Query::VISIBILITY_PUBLIC) }
end
end
end
DefaultCustomQuery::QueryPatch.tap do |mod|
Query.send :include, mod unless Query.include?(mod)
e... | mit |
yunxu1019/efront | coms/zimoli/back.html | 26 | <i></i><span>返回</span> | mit |
ekrtf/angular-express-starter | client/index.controller.js | 156 | (function() {
'use strict';
angular.module('newApp')
.controller('newAppCtrl', newAppCtrl);
function newAppCtrl() {
}
})();
| mit |
tniswong/web-build | build/support/stream/StreamReplacer.js | 1719 | let upath = require('upath'),
through2 = require('through2'),
paths = require('../../project.conf.js').paths,
RegexUtil = require('../util/RegexUtil');
module.exports = class StreamReplacer {
constructor(replacements = {}) {
this.replacements = replacements;
}
/**
* Add a transf... | mit |
reimagined/resolve | packages/runtime/adapters/replicators/replicator-via-api-handler/src/set-replication-paused.ts | 637 | import { InternalMethods } from './types'
import fetch from 'node-fetch'
import HttpError from './http-error'
import {
PAUSE_REPLICATION,
RESUME_REPLICATION,
} from '@resolve-js/module-replication'
const setReplicationPaused: InternalMethods['setReplicationPaused'] = async (
pool,
paused
) => {
const endpoi... | mit |
huyq119/mobile-driver | README.md | 922 | mobile-driver
=============
> Automation driver for mobile.
## Installment
```bash
$ npm i mobile-driver -g
```
## Quick Start
### Start server
```shell
# normal usage
$ driver server
# set a port
$ driver server -p 3456
# run in background
$ driver server -p 3456 &
# send signal to server process
$ dirver -s ... | mit |
leroy-merlin-br/garden | src/css/atoms/steps/label.css | 329 | .steps-label {
color: $color-default-light;
display: none;
font-size: .8rem;
left: 50%;
margin-top: .5rem;
position: absolute;
transform: translateX(-50%);
white-space: nowrap;
@media (--small) {
display: block;
font-size: 1em;
position: static;
transform: none;
white-space: norma... | mit |
kenshinthebattosai/LinqAn.Google | src/LinqAn.Google/Metrics/Goal1Value.cs | 443 | using System.ComponentModel;
namespace LinqAn.Google.Metrics
{
/// <summary>
/// The total numeric value for the requested goal number.
/// </summary>
[Description("The total numeric value for the requested goal number.")]
public class Goal1Value: Metric<decimal>
{
/// <summary>
/// Instantiates a <seealso... | mit |
Unity-Technologies/ScriptableRenderLoop | com.unity.shadergraph/Editor/Data/Nodes/IPropertyFromNode.cs | 167 | namespace UnityEditor.ShaderGraph
{
interface IPropertyFromNode
{
AbstractShaderProperty AsShaderProperty();
int outputSlotId { get; }
}
}
| mit |
sonjacolmsjo/Ultimatesweden1 | pages/ultimateforbundet/marknadsforingsmaterial.md | 238 | ---
layout: page
title: "Marknadsföringsmaterial"
meta_title: "Markanadsföringsmaterial"
subheadline: ""
teaser: ""
header:
image_fullwidth: "header_ultimateforbundet.jpg"
permalink: "/ultimateforbundet/marknadsforingsmaterial/"
---
| mit |
stormcolor/stormenginec | StormEngineC/WebCLGLVertexFragmentProgram.class.js | 19084 | /**
* WebCLGLVertexFragmentProgram Object
* @class
* @constructor
*/
WebCLGLVertexFragmentProgram = function(gl, vertexSource, vertexHeader, fragmentSource, fragmentHeader) {
this.gl = gl;
var highPrecisionSupport = this.gl.getShaderPrecisionFormat(this.gl.FRAGMENT_SHADER, this.gl.HIGH_FLOAT);
this.precision = (hi... | mit |
ahultgren/presspress | Gruntfile.js | 943 | "use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
interval: 200,
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: false,
newcap: true,
noarg: ... | mit |
TsvetanNikolov123/CSharp---Programming-Fundamentals | 06 Conditional Statements And Loops - Exercises/04.Hotel/Hotel.cs | 2718 | namespace _04.Hotel
{
using System;
public class Hotel
{
public static void Main()
{
string month = Console.ReadLine();
int nightsCount = int.Parse(Console.ReadLine());
if (month == "May" || month == "October")
{
double disco... | mit |
0ppen/introhacking | code_from_book.py | 16192 | # Python Code From Book
# This file consists of code snippets only
# It is not intended to be run as a script
raise SystemExit
####################################################################
# 3. Thinking in Binary
####################################################################
import magic
print magic.f... | mit |
ysong49/LeetCode-Note | algorithm/106.Construct Binary Tree from Inorder and Postorder Traversal.md | 1215 | # 106. Construct Binary Tree from Inorder and Postorder Traversal [M]
Given inorder and postorder traversal of a tree, construct the binary tree.
# Note:
You may assume that duplicates do not exist in the tree.
# Code:
```c++
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNo... | mit |
raluka/osem | app/controllers/conference_controller.rb | 834 | class ConferenceController < ApplicationController
before_filter :respond_to_options
load_and_authorize_resource find_by: :short_title
def index
@current = Conference.where('end_date >= ?', Date.current).order('start_date ASC')
@antiquated = @conferences - @current
end
def show; end
def schedule
... | mit |
navroopsingh/HepBProject | app/assets/javascripts/bootstrap-list-filter-contacts.js | 3485 | //borrowed from stefanocudini bootstrap-list-filter
(function($) {
$.fn.btsListFilterContacts = function(inputEl, options) {
var searchlist = this,
searchlist$ = $(this),
inputEl$ = $(inputEl),
items$ = searchlist$,
callData,
callReq; //last callData execution
function tmpl(str, data) {
retu... | mit |
thelinmichael/spotify-web-api-java | docs/com/wrapper/spotify/model_objects/specification/package-summary.html | 47289 | <!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.10) on Thu Apr 15 10:34:57 CEST 2021 -->
<title>com.wrapper.spotify.model_objects.specification (Spotify Web API Java Client 6.5.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.crea... | mit |
hwclass/jquery.initialize | jquery.initialize-0.1.0.js | 1101 | /*!
* jquery.initialize. An basic element initializer plugin for jQuery.
*
* Copyright (c) 2014 Barış Güler
* http://hwclass.github.io
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* http://docs.jquery.com/Plugins/Authoring
* jQuery authoring guidelines
*
* Launch : July 201... | mit |
samagra14/Shush | app/src/main/java/com/mdg/droiders/samagra/shush/MainActivity.java | 10861 | package com.mdg.droiders.samagra.shush;
import android.Manifest;
import android.app.NotificationManager;
import android.content.ContentValues;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
impor... | mit |
devbanana/wp-nonce-wrapper | src/Devbanana/WPNonceWrapper/WPNonceField.php | 1417 | <?php # -*- coding: utf-8 -*-
/*
* This file is part of the wp-nonce-wrapper package.
*
* (c) 2017 Brandon Olivares
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Devbanana\WPNonceWrapper;
/**
* Wordpress nonce attach... | mit |
ibawt/ev | vendor/Box2D/Collision/Shapes/b2PolygonShape.h | 3674 | /*
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
* Copyright (c) 2013 Google, Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use ... | mit |
scwissel/garagepi | utils.js | 1421 | /**
* utility library
*/
var basicAuth = require('basic-auth');
var fs = require('fs');
/**
* Simple basic auth middleware for use with Express 4.x.
*
* @example
* app.use('/api-requiring-auth', utils.basicAuth('username', 'password'));
*
* @param {string} username Expected username
* @param {string}... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/yui/3.16.0/io-queue/io-queue.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:5f5740cfcc24e2a730f7ea590ae0dc07d66d256fd183c46facf3fdfeb0bd69d2
size 3654
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/vis/3.12.0/vis.js | 132 | version https://git-lfs.github.com/spec/v1
oid sha256:467bccdb74ef62e6611ba27f338a0ba0c49ba9a90ef1facb394c14de676318cf
size 1150464
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/uikit/2.5.0/js/addons/form-password.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:4f8b1998d2048d6a6cabacdfb3689eba7c9cb669d6f81dbbd18156bdb0dbe18f
size 1880
| mit |
nikhilrajaram/nikhilrajaram.github.io | instructors/Matthew_Dean_Gerber.md | 5060 | ---
layout: page
title: "Matthew Dean Gerber"
comments: true
description: "blanks"
keywords: "Matthew Dean Gerber,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script... | mit |
neoscoin/neos-core | src/qt/locale/neos_cs.ts | 86643 | <TS language="cs" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Pravým kliknutím upravte adresu nebo popisek</translation>
</message>
<message>
<source>Create a new address</source>
<tran... | mit |
GeekGhc/ISpace | config/scout.php | 2714 | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Search Engine
|--------------------------------------------------------------------------
|
| This option controls the default search connection that gets used while
| using Laravel Scou... | mit |
climberwb/video-api | src/comments/serializers.py | 2962 | from django.contrib.auth import get_user_model
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
from rest_framework import routers, serializers, viewsets, permissions
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework.reverse import reve... | mit |
DataSF/open-data-explorer | src/components/FilterListInput/index.js | 425 | import React from 'react'
import { FormControl } from 'react-bootstrap'
import './@FilterListInput.css'
const FilterListInput = ({onFilter, searchValue}) => {
let handleFilter = e => {
onFilter(e.target.value)
}
return (<FormControl className='FilterListInput' type='text' defaultValue={searchValue} placehold... | mit |
lduboeuf/skeleton-web-app | src/app.css | 5246 |
body {
margin:0;
font-family: Verdana,sans-serif;
background-color: #F5F5F5;
font-size: 14px;
}
h1 { font-size: 1.10em; }
h2 { font-size: 1.10em; margin-top: 0;}
h3 { font-size: 1em; }
a {
text-decoration: none;
}
section > div, .alert {
width:50%;
margin:auto;
}
/* all sections are off by default... | mit |
saveav/Remexify | lib/generators/active_record/templates/create_remexify_logowners.rb | 743 | class CreateRemexifyLogowners < ActiveRecord::Migration
def self.up
create_table :<%= table_name %>_owners do |t|
t.string :log_md5, null: false
t.string :identifier_id, null: false
# this can be used to store additional info, such as the class of identifier_id above, or anything else
# y... | mit |
mahedee/gen-bot-hrm | src/HRMBot.Repository/Migrations/201711120656421_NewModelTempOtp.Designer.cs | 834 | // <auto-generated />
namespace HRMBot.Repository.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
public sealed partial c... | mit |
tom-weatherhead/inference | InferenceLibs/Inference.Tests/Interpreter/Scheme/Parser_Fixture.cs | 65162 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Inference.Interpreter;
using Inference.Interpreter.LISP;
using Inference.Interpreter.Scheme;
using Inference.Parser;
using NUnit.Framework;
namespace Inference.Tests.Interpreter.Scheme
... | mit |
kendallnelson/kendallnelson.github.io | _posts/2020-4-7-Week-4.md | 2101 | ---
layout: post
title: Week 4
description: "Spending Money in Quarantine"
tags: [post]
image:
background: triangular.png
---
In general I feel like I am saving money by being home. I don't
go out to eat (we do takeout on $food_delivery_service on occasion
now). I don't work from coffeeshops. I don't drive as much s... | mit |
nbonamy/doctrine-0.10.4 | lib/Doctrine/Query/Groupby.php | 1870 | <?php
/*
* $Id: Groupby.php 3884 2008-02-22 18:26:35Z jwage $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. ... | mit |
Azure/azure-sdk-for-net | sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeOperationTests.cs | 36885 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Azure.Core.TestFramework;
using NUnit.Framework;
namespace Azure.AI.TextAnalytics.Tests
{
[ClientTestFixture(
... | mit |
majestrate/nntpchan | contrib/backends/nntpchan-daemon/include/nntpchan/line.hpp | 487 | #ifndef NNTPCHAN_LINE_HPP
#define NNTPCHAN_LINE_HPP
#include "server.hpp"
#include <stdint.h>
#include <sstream>
namespace nntpchan
{
/** @brief a buffered line reader */
class LineReader
{
public:
/** @brief queue inbound data from connection */
void Data(const char *data, ssize_t s);
protected:
/** @brief h... | mit |
davidsullins/AdventOfCodeRust | src/bin/advent16.rs | 2789 | // advent16.rs
// find Aunt Sue
extern crate pcre;
use std::io;
fn main() {
loop {
let mut input = String::new();
let result = io::stdin().read_line(&mut input);
match result {
Ok(byte_count) => if byte_count == 0 { break; },
Err(_) => {
println!("e... | mit |
martinda/http-request-plugin | src/main/java/jenkins/plugins/http_request/HttpRequest.java | 15118 | package jenkins.plugins.http_request;
import static com.google.common.base.Preconditions.checkArgument;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.annotation.Nonnull;
import org.kohsuke.s... | mit |
MicroDreamIT/ShapeCss | node_modules/rollup-plugin-multi-entry/README.md | 1911 | # rollup-plugin-multi-entry
Use multiple entry points in your [rollup](https://github.com/rollup/rollup)
bundle. This is particularly useful for tests, but can also be used to package
a library. The exports from all the entry points will be combined, e.g.
```js
// a.js
export const a = 1;
// b.js
export const b = 2;... | mit |
CoursesPlus/CoursesPlus | css/markEvents.css | 483 | .eventList {
position:relative;
}
.event {
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
}
.eventComplete {
background-color: lightgray;
position: relative;
margin-left: -5px;
text-decoration: line-through;
}
.eventComplete > tbody {
background-color: lightgray;
}
.calenda... | mit |
miguelmota/common-lisp-examples | README.md | 238 | # Common-Lisp examples
The examples and my notes are from the book [Common LISP - A Gentle Introduction to Symbolic Computation](http://www.cs.cmu.edu/~dst/LispBook/) by [David S. Touretzky](http://www.cs.cmu.edu/~dst/).
# License
MIT
| mit |
VerkhovtsovPavel/BSUIR_Labs | Labs/ADB/ADB-2/src/by/bsuir/verkpavel/adb/data/DataProvider.java | 4665 | package by.bsuir.verkpavel.adb.data;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.ArrayList;
import by.bsuir.verkpavel.adb.data.entity.Account;
import by.bsuir.verkpavel.adb.data.entity.Client;
import by.bsuir.verkpavel.adb.data.entity.Deposit;
import by.bs... | mit |
dmotz/ear-pipe | index.js | 1304 | /*!
* ear-pipe
* Pipe audio streams to your ears
* Dan Motzenbecker <dan@oxism.com>
* MIT Licensed
*/
"use strict";
var spawn = require('child_process').spawn,
util = require('util'),
Duplex = require('stream').Duplex,
apply = function(obj, method, args) {
return obj[method].apply(obj, args... | mit |
xianjunzhengbackup/code | data science/machine_learning_for_the_web/chapter_4/movie/0781.html | 3882 | <HTML><HEAD>
<TITLE>Review for Total Recall (1990)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0100802">Total Recall (1990)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Jaye+Mathisen... | mit |
mandino/emergingprairie.misfit.co | wp-content/plugins/collapsing-categories/collapscat.php | 5550 | <?php
/*
Plugin Name: Collapsing Categories
Plugin URI: http://blog.robfelty.com/plugins
Description: Uses javascript to expand and collapse categories to show the posts that belong to the category
Author: Robert Felty
Version: 2.0.3
Author URI: http://robfelty.com
Tags: sidebar, widget, categories, menu, navigation, ... | mit |
congchinhqn/CapitalManagement | src/app/components/admin/admin.component.html | 332 | <app-header></app-header>
<div class="app-body">
<app-sidebar></app-sidebar>
<main class="main">
<ol class="breadcrumb">
<breadcrumbs></breadcrumbs>
</ol>
<div class="container-fluid">
<router-outlet></router-outlet>
</div>
</main>
</div>
<app-footer><... | mit |
lioneil/pluma | core/submodules/Form/submodules/Field/Providers/FieldServiceProvider.php | 967 | <?php
namespace Field\Providers;
use Pluma\Support\Providers\ServiceProvider;
class FieldServiceProvider extends ServiceProvider
{
/**
* Array of observable models.
*
* @var array
*/
protected $observables = [
[\Field\Models\Field::class, '\Field\Observers\FieldObserver'],
];
... | mit |
salimkapadia/dating-with-node-api | database/models/drink.js | 260 | /**
* @description - The purpose of this model is to lookup various Drinking activities for a user
*/
var baseModel = require('./base');
var Drink;
Drink = baseModel.Model.extend({
tableName: 'drink'
});
module.exports = baseModel.model('Drink', Drink); | mit |
tutorcruncher/socket-frontend | .eslintrc.js | 653 | module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
'jsx': true
},
},
globals: {
enz: true,
xhr_calls: true,
},
plugins: [
'react'
],
extends: 'react-app',
rules: {
'semi': [2, 'never'],
// allow paren-le... | mit |
czajkowski/sunnynote | src/js/core/agent.js | 2766 | define(['jquery'], function ($) {
if (!Array.prototype.reduce) {
/**
* Array.prototype.reduce polyfill
*
* @param {Function} callback
* @param {Value} [initialValue]
* @return {Value}
*
* @see http://goo.gl/WNriQD
*/
Array.proto... | mit |
ArcherSys/ArcherSys | Lib/encodings/cp852.py | 105146 | <<<<<<< HEAD
<<<<<<< HEAD
""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP852.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_map)
def decode(self,... | mit |
Sonnydch/dzwfinal | AndroidFinal/engine/src/main/java/com/lfk/justweengine/Utils/tools/SpUtils.java | 8126 | package com.lfk.justweengine.Utils.tools;
import android.content.Context;
import android.content.SharedPreferences;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
impo... | mit |
cuckata23/wurfl-data | data/samsung_z130_ver1.php | 304 | <?php
return array (
'id' => 'samsung_z130_ver1',
'fallback' => 'generic_android_ver4_2',
'capabilities' =>
array (
'model_name' => 'Z130',
'brand_name' => 'Acer',
'release_date' => '2013_september',
'physical_screen_height' => '74',
'physical_screen_width' => '50',
),
);
| mit |
joseflamas/zet | variaciones/antesFestival/ANTES01/build-tmp/source/ANTES01.java | 11561 | import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import ddf.minim.spi.*;
import ddf.minim.signals.*;
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.ugens.*;
import ddf.minim.effects.*;
import codeanticode.syphon.*;
import java.uti... | mit |
zfedoran/modulite-three.js | example/js/threejs/src/scenes/Fog.js | 390 | ml.module('three.scenes.Fog')
.requires('three.Three',
'three.core.Color')
.defines(function(){
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
*/
THREE.Fog = function ( hex, near, far ) {
this.color = new THREE.Color( hex );
this.near = ( near !== undefined )... | mit |
coopattitude/coopgui | system/Css/IrCssClassBody.php | 1148 | <?php
/**
* Copyright (c) 2012 - 2017, COOPATTITUDE. Tous droits réservés.
*
*
* @author COOPATTITUDE
* @copyright Copyright (c) 2012 - 2017, COOPATTITUDE
*/
class IrCssClassBody extends \IrCssClassFather {
function __construct ($className) {
parent::__construct ('body', $className) ;
}
function setFon... | mit |
pensandoodireito/sisdepen-forms | src/Renatomefi/FormBundle/Resources/public/angular/views/form/pages/inspecao-estabelecimentos-penais/2.html | 2116 | <form>
<fieldset>
<form-field name="2_1">
<input ng-model="field.value"
ng-model-options="{ debounce: 300 }"
class="form-control">
</form-field>
<form-field name="2_2">
<input ng-model="field.value"
ng-model-o... | mit |
pamge/leetcode | Algorithms/1xx/100 Same Tree.c | 580 | bool isSameTree(struct TreeNode* p, struct TreeNode* q) {
if (p == NULL && q == NULL) {
return true;
} else if ((p && !q) || (q && !p)) {
return false;
} else if ((p->left == NULL && q->left != NULL) || (q->left == NULL && p->left != NULL)) {
return false;
} else if ((p->right == NULL && q->right != NULL) || ... | mit |
kikonen/sampler | lib/sampler.rb | 45 | require "sampler/engine"
module Sampler
end
| mit |
dwivivagoal/KuizMilioner | application/libraries/php-google-sdk/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistory.php | 2197 | <?php
/*
* Copyright 2014 Google Inc.
*
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | mit |
plu/simctl | lib/simctl/command/status_bar.rb | 1529 | require 'ostruct'
module SimCtl
class Command
module StatusBar
# Clear all status bar overrides
#
# @param device [SimCtl::Device] the device
# @return [void]
def status_bar_clear(device)
unless Xcode::Version.gte? '11.4'
raise UnsupportedCommandError, 'Needs at le... | mit |
jamesu/libDTShape | libdts/src/core/util/triListOpt.cpp | 13083 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | mit |
Contrapuntist/petrescuers | client/src/components/Saved/saved.css | 281 | .send{
background-color: #FFC107;
margin-bottom: 5px;
}
.animalName {
font-size: 32px;
color: #FFC107;
text-shadow: 0 0 1px #070101;
margin-bottom: 10px;
text-align: left;
}
Form {
margin-top: 20px;
}
.animalPic {
padding:1px;
border:3px solid #021a40;
}
| mit |
itkoren/fur | ci/tasks/ico_task.js | 517 | /**
* @file Generate ico image files.
* @memberof module:ci/tasks
* @function icoTask
* @param grunt
* @param {object} config - Task configuration.
* @param {function} callback - Callback when done.
*
*/
"use strict";
var ico = require('../../lib/commands/ico');
module.exports = function (grunt, config, call... | mit |
timojarv/genvoice | templates/invoice.css | 1505 | /*GENERAL*/
html {
zoom: 0.8;
-webkit-print-color-adjust: exact;
}
body {
font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
font-weight: 400;
font-size: 14px;
}
h1,h2,h3 {
font-weight: 300;
margin: 0.3em 0;
}
h4,h5 {
font-weight: 400;
margin: 0.5em 0;
}
h5 {
font-size: 1.2em;
}
h1 {
font-size... | mit |
Sh1zha0/Assignment2 | README.md | 5057 | <<<<<<< HEAD
# Object Oriented Programming Assignments 2014/2015
## Assignment 2
Create a retro-style game to run on this beautiful arcade cabinet.


If you need inspiration, check out:
[](http://www.youtube.com/watc... | mit |
shprink/react-redux-webpack-todo | webpack.config.js | 3162 | 'use strict';
const path = require('path')
const webpack = require('webpack')
const pkg = require('./package.json')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const WebpackNotifierPlugin = require('webpack-notifier')
var paths = {
dist: path.join(__dirname, 'dist'),
src: path.join(__dirname, 'sr... | mit |
webstruction/eCommerce | assets/admin/pages/scripts/products-edit.js | 24442 | var EcommerceProductsEdit = function () {
var handleImages = function() {
// see http://www.plupload.com/
var uploader = new plupload.Uploader({
runtimes : 'html5,html4',
browse_button : document.getElementById('tab_images_uploader_pickfiles'), // you can pass in i... | mit |
bearjaws/dotbeautify | test/index.spec.js | 1510 | var dotBeautify = require('../index.js');
var fs = require('fs');
var chai = require('chai');
var assert = chai.assert;
var expect = chai.expect;
var setup = 'function start (resp)\
{\
resp.writeHead(200, {"Content-Type": "text/html"\
});\
fs.readFile(filename, "utf8", function(err, data) {\
if (e... | mit |
Stephen-Cameron-Data-Services/isis-agri | dom/src/main/java/au/com/scds/agric/dom/simple/SimpleObjectRepository.java | 2086 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | mit |
MAGKILLER/magkiller.github.io | Demo/battleship/mapObject.js | 14779 | function Block() {
this.isAttacked = false;
this.hasShip = false;
this.shipType = "NONE";
this.attackable = true;
this.shipSize = 0;
this.direction = "no"
}
function Ship(x,y,direction,size){
this.x = x;
this.y = y;
this.direction = direction;
this.size = size;
this.win = fa... | mit |
Sarwat/GeoSpark | viz/src/main/java/org/datasyslab/geosparkviz/utils/S3Operator.java | 3664 | /*
* FILE: S3Operator
* Copyright (c) 2015 - 2019 GeoSpark Development Team
*
* 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.apache.org/licenses/LICENSE-2.0
*
* Un... | mit |
holandes22/kube-admin | app/components/pod-containers/component.js | 987 | import Ember from 'ember';
export default Ember.Component.extend({
colorMap: {
running: 'green',
waiting: 'orange',
terminated: 'red'
},
getStatusByName(name) {
let retval = null;
Ember.$.each(this.get('containerStatuses'), (i, containerStatus) => {
if (name === containerStatus.name) {... | mit |
tapichu/highway-maps | project/media/js/views/TramoView.js | 436 | define(function() {
var TramoView = Backbone.View.extend({
tagName: 'tr',
template: _.template($('#tramo-tmpl').html()),
events: {},
initialize: function() {},
render: function(index) {
$(this.el).html(this.template(this.model.toJSON()))
.add... | mit |
cabralRodrigo/Mineswepper | src/ts/libs/lib.ts | 34 | import * as Q from 'q'
export {Q} | mit |
stevearc/dynamo3 | setup.py | 1819 | """ Setup file """
import os
from setuptools import find_packages, setup
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, "README.rst")) as f:
README = f.read()
with open(os.path.join(HERE, "CHANGES.rst")) as f:
CHANGES = f.read()
REQUIREMENTS_TEST = open(os.path.join(HERE, "r... | mit |
zeusdeux/colorfad.in | public/css/flaticon.css | 619 | @font-face {
font-family: "Flaticon";
src: url("../fonts/flaticon.eot");
src: url("../fonts/flaticon.eot#iefix") format("embedded-opentype"), url("../fonts/flaticon.woff") format("woff"), url("../fonts/flaticon.ttf") format("truetype"), url("../fonts/flaticon.svg") format("svg");
font-weight: normal;
font-sty... | mit |
CryptoParts/GlobalCoin | src/serialize.h | 41549 | // Copyright (c) 2009-2015 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2011-2015 Litecoin Developers
// Copyright (c) 2013-2015 Globalcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... | mit |
stefanliydov/SoftUniLab | LINQ/DefaultValues/Program.cs | 1113 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DefaultValues
{
class Program
{
static void Main(string[] args)
{
var dict = new Dictionary<string, string>();
var currValue = Console.ReadLine... | mit |
mimiem/CSharp-Part1 | ConsoleInputOutput/QuadraticEquation/Properties/AssemblyInfo.cs | 1410 | 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("Qu... | mit |
mundizzle/letstalkshoppe | liana.html | 5488 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | mit |
Jarrey/ChameWeather | src/ChameWeather.Service/Properties/AssemblyInfo.cs | 1060 | 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("Ch... | mit |
vue-styleguidist/vue-styleguidist | examples/vuecli3-class-pug-ts/jest.config.js | 655 | module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'ts', 'tsx'],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.tsx?$': 'ts-jest'
},
transformIgnorePatterns: ['/node_modules/'],
moduleNameMapper: {
'^@/(.... | mit |
pttravis/ds-armor | src/pttravis/ScoreElementalDef.java | 726 | package pttravis;
import java.util.List;
public class ScoreElementalDef implements ScoreItems {
public ScoreElementalDef() {
}
@Override
public String getName() {
return "Elemental Def";
}
@Override
public float score(List<Item> items) {
if( items == null ) return 0;
float score = 0;
for( Item ... | mit |
BioGRID/ORCA | operations/ViewGenerator/ViewGeneratorService.py | 594 | #!/usr/bin/env python
import Config
import Database
import atexit, os, time
from flask import Flask
from concurrent.futures import ThreadPoolExecutor
from classes import CRONTask
# Generate a thread pool
executor = ThreadPoolExecutor(5)
app = Flask( __name__ )
@app.route( "/" )
def index( ) :
return "View Generator... | mit |
deadshield/chriscoin | build/ui_askpassphrasedialog.h | 5506 | /********************************************************************************
** Form generated from reading UI file 'askpassphrasedialog.ui'
**
** Created: Sun Feb 16 07:26:55 2014
** by: Qt User Interface Compiler version 4.8.1
**
** WARNING! All changes made in this file will be lost when recompiling UI fil... | mit |
visvirial/bitcoinjs-lib | src/networks.js | 700 | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
exports.bitcoin = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'bc',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80,
};
exports.regtest = {
messagePrefix:... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/extra-dev/dev/paramcoq/1.1.3+coq8.14.html | 7597 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | mit |
alirezamdz/Boilerplate4NodeJsApp | public/stylesheets/style.css | 96 | .navbar-brand a {
color: inherit;
text-decoration: none;
}
.content {
margin-top: 70px;
}
| mit |
aliakbr/oktan | oktansite/migrations/0005_news_image.py | 526 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-23 15:47
from __future__ import unicode_literals
from django.db import migrations, models
import oktansite.models
class Migration(migrations.Migration):
dependencies = [
('oktansite', '0004_news_attachment'),
]
operations = [
... | mit |
koobonil/Boss2D | Boss2D/addon/_old/tesseract-3.04.01_for_boss/classify/cutoffs.cpp | 3102 | /******************************************************************************
** Filename: cutoffs.c
** Purpose: Routines to manipulate an array of class cutoffs.
** Author: Dan Johnson
** History: Wed Feb 20 09:28:51 1991, DSJ, Created.
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Lic... | mit |
romhack/aBsenTminDeD | pQueue.c | 3857 | #include "pQueue.h"
#include <stdlib.h>
#include <stdio.h>
void initPQueue(pQueue **queue)
{
//We allocate memory for the priority queue type
//and we initialize the values of the fields
(*queue) = (pQueue *) malloc(sizeof(pQueue));
(*queue)->first = NULL;
(*queue)->size = 0;
return;
}
void addPQueu... | mit |
LIJI32/MIP | MIP/injector/payloads/injected32.c | 4058 | #include "injected.h"
#include <mach-o/dyld_images.h>
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
#include <string.h>
#include <dlfcn.h>
/* These values are overwritten on a per-injection basis by the injector. */
/* Must not be defined as consts, or the compiler will optimize them. */
struct dyld_all_image_i... | mit |
polyfox/moon-basalt | lib/basalt/packages/multi_repo.rb | 1070 | require 'basalt/packages/repo'
require 'basalt/packages/package_assert'
module Basalt
class Packages
# Allows the searching of multiple repos as if it was one repo
class MultiRepo
include PackageAssert
# @return [Array<Repo>]
attr_accessor :repos
def initialize
@repos = []
... | mit |
JoeSouthan/citywrapper | lib/citywrapper/configuration.rb | 109 | # frozen_string_literal: true
module Citywrapper
class Configuration
attr_accessor :api_key
end
end
| mit |
tschaens1/Xamarin.Plugin.AudioState | README.md | 2587 | # Xamarin.Plugin.AudioState
The AudioState plugin for Xamarin and Xamarin.Forms applications will add some cross-platform audio checks to your application:
* Check if there is any music playing in the background
* Check if a wired headset is connected to the headphone jack
* Get the current output latency
* Get the c... | mit |
jwngr/jwn.gr | src/layouts/index.js | 247 | import React from 'react';
import PropTypes from 'prop-types';
import './index.css';
const TemplateWrapper = ({children}) => <div>{children()}</div>;
TemplateWrapper.propTypes = {
children: PropTypes.func,
};
export default TemplateWrapper;
| mit |