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) 2009-2015 farmafene.com
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitatio... | venanciolm/commons-j2ee-tools | src/main/java/com/farmafene/commons/j2ee/tools/jdbc/Connection2PooledConnection.java | Java | mit | 9,383 |
<?php
namespace Surume\Console\Client\Boot;
use ReflectionClass;
use Surume\Console\Client\ConsoleClientInterface;
use Surume\Support\StringSupport;
class ConsoleBoot
{
/**
* @var mixed[]
*/
protected $controllerParams;
/**
* @var string
*/
protected $controllerClass;
/**
... | khelle/surume | src/Console/Client/Boot/ConsoleBoot.php | PHP | mit | 2,192 |
#!/bin/bash
#
# author : Didier BONNEFOI <dbonnefoi@gmail.com>
#
[ -z "$BIN_OVS_VSCTL" ] && BIN_OVS_VSCTL=$(which ovs-vsctl)
# create a bridge in OVS
# usage : ovs_add_bridge <bridge>
function ovs_add_bridge
{
local ret=
_log_debug "OVS: adding bridge $1"
[ $# -lt 1 ] && echo "$_ERR_NO_BRIDGE_DEFINED" && retur... | bonidier/xen4-toolbox | ovs-bridges-maker/inc/bridge-OVS.lib.sh | Shell | mit | 3,676 |
const jsonfile = require('jsonfile')
const stats = require("stats-lite");
const commandLineArgs = require("command-line-args");
const mqtt = require("mqtt");
const stringify = require("csv-stringify");
const fs = require("fs");
const client = mqtt.connect("mqtt://127.0.0.1:1883");
const options = commandLineArgs([
... | kacperzuk/mqtt_qos_analyzer | index.js | JavaScript | mit | 3,536 |
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './heroFinder/heroFinder.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic(... | postfab/postfab.github.io | src/main.ts | TypeScript | mit | 384 |
#include <fstream>
#include <iostream>
#include "cmd_flags.h"
#include "filenames.h"
#include "simplify_points.h"
using std::string;
using cflags::Require;
DEFINE_string(filenames, kRequired, "", "The input filenames");
DEFINE_string(output_path, kOptional, ".", "The output path");
DEFINE_int(dim, kOptional, 256, "T... | microsoft/O-CNN | octree/tools/simplify_points.cpp | C++ | mit | 1,715 |
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
# Password authenticatable
t.string :username
t.string :email
t.string :encrypted_password
# Confirmable
t.string :unconfirmed_email
t.string :confirmation_token
t.datetime :confirma... | kentaroi/goma | test/rails_app/db/migrate/20140524062919_create_users.rb | Ruby | mit | 1,260 |
using DragonSpark.Model.Operations;
using Microsoft.AspNetCore.Identity;
using System.Security.Claims;
namespace DragonSpark.Application.Security.Identity.Model.Authenticators;
public interface IAddExternalSignin : ISelecting<ClaimsPrincipal, IdentityResult?> {} | DragonSpark/Framework | DragonSpark.Application/Security/Identity/Model/Authenticators/IAddExternalSignin.cs | C# | mit | 267 |
package jutt.com.zcalenderviewextended.day;
import java.util.Calendar;
import java.util.List;
public interface WeekViewLoader {
/**
* Convert a date into a double that will be used to reference when you're loading data.
*
* All periods that have the same integer part, define one period. Dates that ... | Zulqurnain/ZCalenderViewExtended | zcalenderviewextended/src/main/java/jutt/com/zcalenderviewextended/day/WeekViewLoader.java | Java | mit | 779 |
class Page
include PageObject
expected_title "Static Elements Page"
expected_element :hello0
link(:hello0, {:text => "Hello", :index => 0})
link(:hello1, {:text => "Hello", :index => 1})
link(:hello2, {:text => "Hello", :index => 2})
value_hooks = define_hooks do
before(:value).call(:before_callbac... | Donavan/page-object | features/support/page.rb | Ruby | mit | 16,387 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
本测试模块用于测试与 :class:`sqlite4dummy.schema.MetaData` 有关的方法
class, method, func, exception
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from sqlite4dummy import *
from sqlite4dummy.tests.basetest import *
from datetime import dateti... | MacHu-GWU/sqlite4dummy-project | sqlite4dummy/tests/functionality/test_MetaData.py | Python | mit | 5,883 |
package io.fundrequest.platform.tweb.profile;
import io.fundrequest.core.message.MessageService;
import io.fundrequest.core.message.dto.MessageDto;
import io.fundrequest.platform.keycloak.Provider;
import io.fundrequest.platform.profile.github.GithubBountyService;
import io.fundrequest.platform.profile.profile.Profile... | FundRequest/platform | tweb/src/main/java/io/fundrequest/platform/tweb/profile/ProfileController.java | Java | mit | 8,165 |
/*
* 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"); you may ... | plumer/codana | tomcat_files/8.0.22/Response (2).java | Java | mit | 50,758 |
/*
* Copyright (c) 2015 XING AG (http://xing.com/)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | CiprianU/xing-android-sdk | sdk/src/main/java/com/xing/android/sdk/model/user/field/PhotoUrlsField.java | Java | mit | 2,653 |
<?php
namespace Tests\BrainExe\Core\Util;
use BrainExe\Core\Util\Time;
use PHPUnit\Framework\TestCase;
/**
* @covers \BrainExe\Core\Util\Time
*/
class TimeTest extends TestCase
{
/**
* @var Time
*/
private $subject;
public function setUp()
{
$this->subject = new Time();
}
... | brainexe/core | Tests/BrainExe/Core/Util/TimeTest.php | PHP | mit | 1,000 |
using ControlePontos.Dominio.Model;
using ControlePontos.Dominio.Model.Configuracao;
using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace ControlePontos.Control
{
internal class CheckBoxCell : DataGridViewCheckBoxCell, IDiaTrabalhoCell
{
public void AddedCell(Co... | cabralRodrigo/controle-pontos | ControlePontos.UI/Control/DiaTrabalhoCheckBoxControls.cs | C# | mit | 2,788 |
html {
background-color: #e2e2e2;
margin: 0;
padding: 0;
}
body {
background-color: #fff;
border-top: solid 10px #000;
color: #333;
font-size: .85em;
font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;
margin: 0;
padding: 0;
}
a {
color: #333;
outline: none;
p... | teelahti/TD2013JSBus | JSBus/Content/Site.css | CSS | mit | 13,612 |
/*
The MIT License (MIT)
Copyright (c) 2014, Groupon, 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 without limitation the rights
to use, copy, modify, merge... | jenkinsci/DotCi | src/main/java/com/groupon/jenkins/dynamic/buildconfiguration/ConfigSection.java | Java | mit | 2,858 |
FILE(REMOVE_RECURSE
"CMakeFiles/stable_norm_1.dir/stable_norm.cpp.o"
"stable_norm_1.pdb"
"stable_norm_1"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang CXX)
INCLUDE(CMakeFiles/stable_norm_1.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
| cmeon/Simplex | lib/test/CMakeFiles/stable_norm_1.dir/cmake_clean.cmake | CMake | mit | 277 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tasks', function (Blueprint $table) {
// Cr... | WebSpanner/track | database/migrations/2016_07_22_223427_create_tasks_table.php | PHP | mit | 1,150 |
package tech.letscode.awsexplorer.domain.model;
import org.apache.commons.lang3.Validate;
import javax.annotation.Nonnull;
import java.util.List;
import java.util.function.Consumer;
/**
* @author Oleg Pavlov <oleg.pavlov@aol.com>
*/
public class Bucket
{
private String name;
private List<Directory> direct... | opavlov24/aws-s3-explorer | src/main/java/tech/letscode/awsexplorer/domain/model/Bucket.java | Java | mit | 857 |
#!/usr/bin/env python
# https://www.codeeval.com/open_challenges/1/
import sys
def solve(X, Y, N):
r = []
for i in range(1, N + 1):
if i % X == 0 and i % Y == 0:
r.append('FB')
elif i % X == 0:
r.append('F')
elif i % Y == 0:
r.append('B')
el... | guozengxin/codeeval | easy/fizzBuzz.py | Python | mit | 537 |
version https://git-lfs.github.com/spec/v1
oid sha256:7532f5b4891e60d75d6a1d91f80921a3ad8b96ba88a746f05948fc6c6f5a9772
size 137987
| yogeshsaroya/new-cdnjs | ajax/libs/lodash.js/1.0.0-rc.2/lodash.js | JavaScript | mit | 131 |
package sanitize
import(
"os"
"encoding/json"
)
// Load a new whitelist from a JSON file
func WhitelistFromFile(filepath string) (*Whitelist, error) {
bytes, err := readFileToBytes(filepath)
if err != nil {
return nil, err
}
whitelist, err := NewWhitelist(bytes)
return whitelist, nil
}
// helper function t... | maxwells/sanitize | whitelist_parser.go | GO | mit | 921 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | SpongeHistory/SpongeAPI-History | src/main/java/org/spongepowered/api/service/permission/package-info.java | Java | mit | 1,358 |
#ifndef IMAPC_STORAGE_H
#define IMAPC_STORAGE_H
#include "index-storage.h"
#include "imapc-settings.h"
#define IMAPC_STORAGE_NAME "imapc"
#define IMAPC_LIST_ESCAPE_CHAR '%'
#define IMAPC_LIST_BROKEN_CHAR '~'
struct imap_arg;
struct imapc_untagged_reply;
struct imapc_command_reply;
struct imapc_mailbox;
struct imapc_... | dscho/dovecot | src/lib-storage/index/imapc/imapc-storage.h | C | mit | 6,085 |
/**
* Albores, Allyssa
* Bedio, Aiden Justin
* Malaki, Earl Timothy
* Paler, Timothy River
* <p>
* BSCS - II | UP - Cebu
* CMSC22 - OOP
* Final Project
* <p>
* Done:
* - basic skeleton code for concrete monster
* <p>
* To Do:
* - add specific identity/behaviour (skills, capabilities, etc.)
* - do this to... | earlmalaki/BeatBitBeat | src/game/monsters/Monster3.java | Java | mit | 15,628 |
package evergarden.fxchart.chart;
import java.util.Comparator;
import charlotte.tools.LongTools;
public class PriceData {
public static double DEF_PRICE = 120.0;
private long _sec;
private double _ask;
private double _bid;
public PriceData(long sec, double ask, double bid) {
_sec = sec;
_ask = ask;
_bid ... | stackprobe/Java3 | evergarden/fxchart/chart/PriceData.java | Java | mit | 1,436 |
---
layout: post
title: svn冲突处理
categories: svn
---
冲突处理
大多数情况下svn会自动merge, 这时文件会有G的标志, 当自动merge失败时会有提示, 并生成3个文件, 分别是
f.mine 本地修改的版本
f.rOLDREV 本地修改所基于的版本
f.rNEWREV 其它人修改后提交的版本
直接查看f文件, 可以发起其中有类似如下标志的行
<<<<<< .mine
xx
=======
将这些冲突的地方修改后, 手动将f.mine f.rOLDREV f.rNEWREV文件删除即可
或者用svn reso... | icoolworld/icoolworld.github.io | _posts/svn/2016-09-27-svn冲突处理.md | Markdown | mit | 1,300 |
import ConfigParser
import sys, traceback
from slackclient import SlackClient
from chatterbot import ChatBot
import os
from os import listdir
from os.path import isfile, join
from chatterbot.trainers import ChatterBotCorpusTrainer
config = ConfigParser.SafeConfigParser({"host": "searchhub.lucidworks.com", "port":... | gsingers/rtfmbot | src/python/run.py | Python | mit | 2,559 |
#
# Unified2
#
module Unified2
#
# Signature
#
class Signature
attr_accessor :id, :generator, :revision, :name,
:blank, :references
#
# Initialize signature object
#
# @param [Hash] signature Signature hash attributes
#
# @option signature [Integer] :signature_id Signa... | mephux/unified2 | lib/unified2/signature.rb | Ruby | mit | 1,474 |
package pl.grzeslowski.jsupla.protocoljava.impl.serializers.sc;
import org.junit.Test;
import org.mockito.BDDMockito;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import pl.grzeslowski.jsupla.protocol.api.structs.sc.SuplaChannelValue;
import pl.grzeslowski.jsupla.protocol.api.structs.sc.SuplaChannelValueP... | magx2/jSupla | protocol-java/src/test/java/pl/grzeslowski/jsupla/protocoljava/impl/serializers/sc/ChannelValuePackSerializerImplTest.java | Java | mit | 2,093 |
let spec = {
"swagger": "2.0",
"info": {
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authori... | rynam0/ember-swagger-ui | tests/integration/components/petstore.js | JavaScript | mit | 24,794 |
package net.mrlatte.feeds.feeding;
public interface TaskListener {
public Object getData();
public void setData(Object data);
public void onPreExecute();
public void onPostExecute();
}
| jongha/android-feeds | src/src/net/mrlatte/feeds/feeding/TaskListener.java | Java | mit | 193 |
#ifndef MONGOMANAGER_H
#define MONGOMANAGER_H
#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/json.hpp>
#include <bsoncxx/exception/exception.hpp>
#include <mongocxx/exception/bulk_write_exception.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>
#include <iostream>
#include <chro... | blaecwen/rc_logging | rclogd/mongomanager.h | C | mit | 835 |
import style from './style';
const s = Object.create(style);
s.root = {
fontFamily: 'helvetica, sans-serif',
fontWeight: '300',
fontSize: '16px',
letterSpacing: '0.025em',
padding: '3vh 0 12vh 0',
width: '500px',
// use responsive max-width to simulate padding/margin to allow
// space for vertical scr... | AKBarcenas/akbarcenas.github.io | src/styles/app.style.js | JavaScript | mit | 1,830 |
package com.decSports.measureme;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PointF;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
public clas... | tylernickr/MeasureMe | app/src/main/java/com/decSports/measureme/DotDrawView.java | Java | mit | 2,106 |
<?php $this->load->view('themes/dppm/header'); ?>
<?php $this->load->view('themes/dppm/sidebar'); ?>
<div class="page animsition">
<div class="page-header">
<h1 class="page-title">Dashboard </h1>
<ol class="breadcrumb">
<li><a href="#">Menu Umum</a></li>
<li class="active">D... | Lective/newdospres | application/modules/lv_dashboard/views/view_dashboard_dppm.php | PHP | mit | 5,835 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>flexile.js Tests Runner using Jasmine v2.5.2</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jasmine/2.5.2/jasmine.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jasmine/2.5.2/jasmine.min.js"></scrip... | timbrock/flexile.js | src/js/tests/flexile-tests-runner.html | HTML | mit | 855 |
<LINK REL="stylesheet" HREF="../static/styles.css">
<HTML>
<HEAD>
<TITLE>FMOD_DSP_GETPARAM_FLOAT_CALLBACK</TITLE>
</HEAD>
<BODY TOPMARGIN="0" class="api_reference">
<p class="header">Firelight Technologies FMOD Studio API</p>
<H1>FMOD_DSP_GETPARAM_FLOAT_CALLBACK</H1>
<P>
<p>This callback is called when the user wants t... | Silveryard/Car_System | Old/3rdParty/fmodstudioapi10802linux/doc/FMOD Studio Programmers API for Linux/content/generated/FMOD_DSP_GETPARAM_FLOAT_CALLBACK.html | HTML | mit | 2,804 |
"""
filename: controllers.py
description: Controllers for committee notes.
created by: Chris Lemelin (cxl8826@rit.edu)
created on: 04/20/18
"""
from flask_socketio import emit
from app.decorators import ensure_dict
from app import socketio, db
from app.committee_notes.models import *
from app.committees.models import ... | ritstudentgovernment/chargeflask | app/committee_notes/controllers.py | Python | mit | 5,203 |
package com.github.piasy.fancytransitiondemo;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import com.facebook.rebound.BaseSpringSystem;
import com.facebook.rebound.SimpleSpringListener;
import com.facebook.rebound.... | Piasy/AndroidPlayground | effect/FancyTransitionDemo/src/main/java/com/github/piasy/fancytransitiondemo/CountdownAnimationTextView.java | Java | mit | 5,277 |
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_calcButton_clicked();
void on_clearButton_clicked();
... | dannagle/BarcampCalculator | mainwindow.h | C | mit | 417 |
/**Copyright (C) 2013 Rory Burks
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, ... | roryburks/rock-pipe | src/Rockslide Content Pipeline/IO/ExportComposite.cs | C# | mit | 15,181 |
using FlatRedBall.IO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TMXGlueLib
{
/// <summary>
/// Contains utility methods specific to tools - these should not be needed at runtime (in games)
/// </summary>
public static class TiledMapSaveToolsUtiliti... | vchelaru/FlatRedBall | Tiled/TMXGlueLib/TiledMapSaveToolsUtilities.cs | C# | mit | 1,689 |
export class Ruleset {
constructor(private movesPerTurn: number) {}
public getMovesPerTurn = (): number => this.movesPerTurn;
}
| HolyMeekrob/i-shove-you-so-much | src/model/ruleset.ts | TypeScript | mit | 131 |
/*******************************************************************************
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) an... | wknishio/variable-terminal | src/jsocks/net/sourceforge/jsocks/socks/ProxyServer.java | Java | mit | 18,739 |
#include <iostream>
#include <sstream>
#include "../swissarmyknife/enums/smart_enum.hpp"
namespace myapp {
SMART_ENUM(State,
enum State {
RUNNING,
SLEEPING,
FAULT,
UNKNOWN,
CO_545OL
})
/*struct State : public swissarmyknife:... | daminetreg/lib-cpp-swissarmyknife | test/enums.cpp | C++ | mit | 1,563 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>edit permison</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">... | trungjc/quanlyhocsinh | pages/user/edit-permission.html | HTML | mit | 22,040 |
<?php
/* Security check */
if (!defined('RESTExample')) {
die("Direct access not permitted\n");
}
/** Contact collection */
class ContactCollection extends SimpleREST\Legacy\Database\DatabaseCollection {
/** */
public function __construct() {
parent::setTableName('contact');
}
}
| sendanor/php-rest | examples/v1/src/ContactCollection.class.php | PHP | mit | 290 |
'use strict';
module.exports = {
SET_COUNTRY: function(state, value) {
state.countryCode = value;
},
SET_PERIOD: function(state, value) {
state.period = value;
}
};
| openspending/subsidystories.eu | app/scripts/application/store/mutations.js | JavaScript | mit | 182 |
/*------------------------------------*\
# base.container
\*------------------------------------*/
.container {
margin: 0 auto;
}
@media all and (--from-xlarge) {
.container {
}
}
.container__fixed {
height: 100%;
}
.container__main {
min-height: 100%;
}
@media all and (--from-xlarge) {
.co... | Baasic/baasic-starterkit-angularjs-blog | src/themes/gastro-thumbnail/src/base.container.css | CSS | mit | 366 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./0df314d3d7dda98f5118cf2136a08fb1125a7b0939296685e112ceb243a8494d.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/b49ac23dc9df07614076ab4802fb1df030cf3304d54486fe355c95263f2c5f62.html | HTML | mit | 550 |
# GimiqsVM
Virtual Machine with 128bit Lisp-like CONS CELLs(Briqs) for Programming Language
## Briq?
Briq is 128bit Lisp-like 'CONS CELL'.
We call formar pointer 'P', and latter 'Q'.
```
+-----+-----+
| P | Q |
+-----+-----+
```
Briq has bit patterns below.
```
0 2 4 6 8 10 12 14 16(... | cohyou/GimiqsVM | README.md | Markdown | mit | 793 |
#pragma once
#include <vector>
#include <unordered_map>
#include <memory>
#include "Utils/StringId.h"
#include "Utils/Types.h"
#include "Math/Matrix.h"
#include "ObjectComponent.h"
namespace oakvr
{
class Object;
using ObjectSharedPointer = sp < Object > ;
using ObjectUniquePointer = up < Object > ;
using Objec... | bluespeck/OakVR | src/Core/OakVR/Object.h | C | mit | 2,350 |
var app = angular.module('Zespol', []);
//Filtr umożliwiający wstawienie scope jako link url
app.filter('trustAsResourceUrl', ['$sce', function($sce) {
return function(val) {
return $sce.trustAsResourceUrl(val);
};
}]);
app.controller('MusicCtrl', function($scope, $http){
$http.get("http://tolmax... | PiotrKulpa/spa | assets/js/my-app.js | JavaScript | mit | 1,909 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | tamasflamich/effort | Main/Source/lab/Z.Lab.NamingIssue/Properties/Resources.Designer.cs | C# | mit | 2,793 |
<!DOCTYPE html>
<html class="no-js" lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="p5.js a JS client-side library for creating graphic and interactive ... | mayaman/p5js-website | ko/showcase/index.html | HTML | mit | 13,199 |
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme_settings.title }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{%... | mcheang20/mcheang20.github.io | _includes/head.html | HTML | mit | 2,426 |
module PloggyHelper
@log_items = []
@use_project_time = false
def self.log_items
@log_items
end
def self.log_time
total_time_s = 0
@log_items.each{ |item|
start_time = DateTime.parse(item[:start_time])
end_time = (item[:end_time] == nil) ? start_tim... | Caster/Ploggy | lib/helpers/ploggy.rb | Ruby | mit | 2,741 |
// Copyright 2016, Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | jordanpotter/remote-backup | vendor/cloud.google.com/go/pubsub/apiv1/subscriber_client.go | GO | mit | 13,956 |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CountryListSortComponent } from './country-list-sort.component';
describe('CountryListSortComponent', () => {
let component: CountryListSortComponent;
let fixture: ComponentFixture<CountryListSortComponent>;
beforeEach(async(() ... | liebsoer/country-viewer | src/app/component/country-list-sort/country-list-sort.component.spec.ts | TypeScript | mit | 697 |
<?php
namespace AppBundle\Extensions\DataTag;
use AppBundle\Common\ArrayToolkit;
use Biz\Course\Service\CourseService;
use Biz\Course\Service\CourseSetService;
use Biz\Course\Service\MemberService;
use Biz\Task\Service\TaskService;
use Biz\User\Service\UserService;
use Topxia\Service\Common\ServiceKernel;
abstract c... | richtermark/SMEAGOnline | src/AppBundle/Extensions/DataTag/CourseBaseDataTag.php | PHP | mit | 10,382 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace _01_Problem
{
class StartUp
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
var list = new L... | vasilchavdarov/SoftUniHomework | Defining Classess/01 Problem/StartUp.cs | C# | mit | 869 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace _3.CameraView
{
class Program
{
static void Main()
{
int[] array = Console.ReadLine().Split().Select(int.Parse).ToArray();
int skip = array[0];
... | spacex13/SoftUni-Homework | RegEx-Exercises/3.CameraView/Program.cs | C# | mit | 788 |
#!/bin/bash
#####################################
# Chef Client Downloader
# Ryan Moon
# Created 08/29/16
# Version 0.0.1 on 08/29/16
#####################################
# CURRENTLY REQUIRES WGET
#####################################
# This script iterates thru two arrays
# chef_versions and os_versions, to
# downloa... | ryanmoon/at-action-park | scripts/chef-downloader.sh | Shell | mit | 1,969 |
package com.sleep.soko;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import com.badlogic.gdx.math.Vector2;
import com.sleep.Constants;
import com.sleep.Entity;
public class CollisionGrid {
private Entity[][] collisionGrid;
public int[][] ghostPathGrid;
public int[][] spectrePath... | galnegus/sleep | src/com/sleep/soko/CollisionGrid.java | Java | mit | 7,772 |
//VARIABLES
var currentCountries = [];
var lastbenchrmak = null;
var test = "test";
var measures;
var calculatedBenchmark = null;
var routeJson = null;
// UTILITY FUNCTIONS
// SELECTION
function selectedBenchmarkMenu(menu) {
if (menu == "cbenchmark")
return $('#cbenchmark').val();
if (menu == 'disabledbenchmark')
... | riccardotommasini/GDA | war/js/golem-scripts.js | JavaScript | mit | 12,711 |
'use strict';
/* istanbul ignore next */
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('hashes', {
h1: {
allowNull: false,
primaryKey: true,
type: Sequelize.STRING(128),
},
s2: {
allowNull: false,
type: Sequelize... | gabrieltanchen/xpns-api | migrations/20180618230743-create-hashes-table.js | JavaScript | mit | 451 |
<html>
<head>
<title>Tessa Munt's panel show appearances</title>
<script type="text/javascript" src="../common.js"></script>
<link rel="stylesheet" media="all" href="../style.css" type="text/css"/>
<script type="text/javascript" src="../people.js"></script>
<!--#include virtual="head.txt" -->
</head>
<body>
<!--#in... | slowe/panelshows | people/de1s3mno.html | HTML | mit | 1,596 |
set(vtktiff_LOADED 1)
set(vtktiff_DEPENDS "vtkjpeg;vtkzlib")
set(vtktiff_LIBRARIES "vtktiff")
set(vtktiff_INCLUDE_DIRS "/home/tim/CMU/SunTracker/IMU/VTK-6.2.0/ThirdParty/tiff")
set(vtktiff_LIBRARY_DIRS "")
set(vtktiff_RUNTIME_LIBRARY_DIRS "/home/tim/CMU/SunTracker/IMU/VTK-6.2.0/lib")
set(vtktiff_WRAP_HIERARCHY_FILE "")... | timkrentz/SunTracker | IMU/VTK-6.2.0/lib/cmake/vtk-6.2/Modules/vtktiff.cmake | CMake | mit | 359 |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@class PBCodable;
@interface AWDMetricContainer : NSObject
{
PBCodable *_metric;
unsigned int _metricId;
}
@property(readonly, nonatomic) unsigned... | matthewsot/CocoaSharp | Headers/PrivateFrameworks/WirelessDiagnostics/AWDMetricContainer.h | C | mit | 516 |
package com.caner.mirzabey.kalah.game.data;
import com.caner.mirzabey.kalah.user.User;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Stack;
/**
* Created by ecanmir on 14.06.2016.
*/
public class Side {
public static final int HOUSE_COUNT = 6;
private User ... | canermirzabey/mancala | src/main/java/com/caner/mirzabey/kalah/game/data/Side.java | Java | mit | 2,348 |
To build and publish a tag:
./release.sh <tag>
If the tag is new, you'll have to create a `build/<tag>.sh` file. Just copying the
second-most-recent tag's build file will probably work.
To build and publish an arbitrary commit:
./release.sh <sha>
This will run the build file of the tag immediately precedin... | datapad/bower-angular-all | README.md | Markdown | mit | 630 |
namespace EnumPlusPlus.Tests
{
using System;
using Xunit;
public class IsValidExtensionTests
{
[Fact]
public void IsValidOnInt_NotEnumType_ThrowsArgumentException()
{
Assert.Throws<ArgumentException>(() =>
{
2.IsValid<LookAlike>();
... | boriseetgerink/EnumPlusPlus | src/EnumPlusPlus.Tests/IsValidExtensionTests.cs | C# | mit | 6,746 |
<?php
namespace Elektra\SeedBundle\Entity\Companies;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="Elektra\SeedBundle\Repository\Companies\CompanyPersonRepository")
* @ORM\Table("persons_company")
*
* @ORM\HasLifecycleCallbacks()
*
* Unique: nothing
*/
class CompanyPerson extends Person
... | feichler/CESU | src/Elektra/SeedBundle/Entity/Companies/CompanyPerson.php | PHP | mit | 1,962 |
import React from 'react';
import { assert } from 'chai';
import {
createMount,
createShallow,
describeConformance,
getClasses,
} from '@material-ui/core/test-utils';
import DialogTitle from './DialogTitle';
describe('<DialogTitle />', () => {
let mount;
let shallow;
let classes;
before(() => {
mo... | allanalexandre/material-ui | packages/material-ui/src/DialogTitle/DialogTitle.test.js | JavaScript | mit | 1,202 |
import {RootState} from '../reducers/rootReducer'
export const selectBackend = (state: RootState) => state.backend
| hwaterke/sec | frontend/src/redux/selectors/backend.ts | TypeScript | mit | 116 |
var a = require('./a');
exports.value = 3; | RReverser/grunt-pure-cjs | test/fixtures/c.js | JavaScript | mit | 42 |
#include "Snap.h"
#include "path.h"
#include "io.h"
#include "dlink.h"
#include "shortest_path.h"
#include "multiclass.h"
int main()
{
std::string m_file_folder = "../../data/input_files_6by6grid_multiclass";
// std::string m_file_folder = "../../data/input_files_7link_fix";
// std::string m_file_folder = "../.... | Lemma1/MAC-POSTS | src/examples/test_path.cpp | C++ | mit | 2,805 |
// @ts-ignore
import Fragment from "ember-data-model-fragments/fragment";
import Store from "@ember-data/store";
import { attr } from "@ember-data/model";
import { computed } from "@ember/object";
import { isBlank } from "@ember/utils";
import { task } from "ember-concurrency-decorators";
import { inject as service } f... | pjcarly/ember-mist-components | addon/models/address.ts | TypeScript | mit | 5,036 |
export function threePointSecondDerivative(previous, current, next, uniformDistance) {
return (next - 2 * current + previous) / (uniformDistance * uniformDistance);
}
| woochi/sensic | src/board/differential.js | JavaScript | mit | 169 |
// Copyright (C) 2011 - Will Glozer. All rights reserved.
package outils.crypt.jni;
/**
* {@code LibraryLoaders} will create the appropriate {@link LibraryLoader} for
* the VM it is running on.
*
* The system property {@code com.lambdaworks.jni.loader} may be used to override
* loader auto-detection, or to disa... | Chnapy/Timeflies_Serveur_v2 | src/main/java/outils/crypt/jni/LibraryLoaders.java | Java | mit | 1,192 |
import uuid
from typing import Optional, Union
from mitmproxy import connection
from mitmproxy import flow
from mitmproxy import http
from mitmproxy import tcp
from mitmproxy import websocket
from mitmproxy.test.tutils import treq, tresp
from wsproto.frame_protocol import Opcode
def ttcpflow(client_conn=True, server... | mitmproxy/mitmproxy | mitmproxy/test/tflow.py | Python | mit | 5,859 |
require 'spec_helper'
describe Pub do
it "should find all pubs" do
list_of_pubs = Pub.all
list_of_pubs.size.should > 150
end
it "should find at least one Bishops" do
Pub.all.detect {|pub| pub.name =~ /Bishops/ } .should_not be_nil
end
it "should find names on em all" do
Pub.all.each { |pub|... | froderik/thirst | spec/thirst_quencher_spec.rb | Ruby | mit | 1,178 |
package javaProbs;
/**
* LeetCode - Problem 9
*
* Determine whether an integer is a palindrome. Do this without extra space.
*
* @author DJTai
*
*/
public class Solution_009_Palindrome
{
public static void main(String[] args)
{
int num1 = 10109;
int num2 = 10101;
int num3 = 123454321;
System.out... | DJ-Tai/practice-problems | leet-code/java/javaProbs/Solution_009_Palindrome.java | Java | mit | 750 |
class TempGenerator
attr_reader :date, :filename, :title, :file_array
def initialize(date)
@date = date
end
def to_file
if File.exist? @filename
puts "The file already exists. Quitting"
return
end
File.open(@filename, 'w') do |f|
@file_array.each { |line| f.write line }
e... | lannonbr/cosi-temp | lib/cosi-temp/temp-generator.rb | Ruby | mit | 373 |
#include "stdafx.h"
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;
//
// General Information about an assembly is controlled through the following
// set of ... | Neo-Desktop/Coleman-Code | COM380/Project2/Project2/AssemblyInfo.cpp | C++ | mit | 1,357 |
package ofuangka.propmessages.api.security;
public interface SecurityService {
String getUserId();
String getUsername();
String getLogoutUrl(String afterUrl);
}
| ofuangka/prop-messages | api/src/main/java/ofuangka/propmessages/api/security/SecurityService.java | Java | mit | 168 |
.icon-product-navy {
background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2223%22%20height%3D%2223%22%20viewBox%3D%220%200%2023%2023%22%3E%3Ctitle%3Eicons-singletons%3C%2Ftitle%3E%3Cpolygon%20points%3D%226.38%206.19%2011.5%203.28%2016.62%206.19... | vhx/quartz-rails | vendor/assets/stylesheets/vhx-quartz.icon-product.css | CSS | mit | 4,041 |
from django.test import Client
import mock as mock
from image_converter.tests.base import ImageConversionBaseTestCase
from image_converter.utils.convert_image import convert_image_to_jpeg
__author__ = 'Dominic Dumrauf'
class ViewsTestCase(ImageConversionBaseTestCase):
"""
Tests the 'views'.
"""
def ... | dumrauf/web_tools | image_converter/tests/test_views.py | Python | mit | 3,078 |
<?php
namespace AppBundle\Controller;
//use AppBundle\Entity\RarOrder;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Doctrine\ORM\EntityManagerInterf... | Jo3lefou/ERPBackRA | src/AppBundle/Controller/LogoutController.php | PHP | mit | 486 |
package net.woeye.verbatim.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DatabaseHelper extends SQLiteOpenHelper {
private static DatabaseHelper instance = null;
private final static int DATABASE_VERSION = 1;
... | woeye/verbatim-android | Verbatim/src/main/java/net/woeye/verbatim/db/DatabaseHelper.java | Java | mit | 1,554 |
namespace DbTestMonkey.Contracts
{
using System.Configuration;
public class DatabasesConfigurationCollection : ConfigurationElementCollection
{
public DatabaseConfiguration this[int index]
{
get
{
return base.BaseGet(index) as DatabaseConfiguration;
... | DbTestMonkey/DbTestMonkey | src/DbTestMonkey.Contracts/DatabasesConfigurationCollection.cs | C# | mit | 1,272 |
<?php
// make an associative array of senders we know, indexed by phone number
$people = array(
"+14158675309"=>"Curious George",
"+14158675310"=>"Boots",
"+14158675311"=>"Virgil",
);
// if the sender is known, then greet them by name
// otherwise, consider them just another monkey
if(!$name = $people[$_R... | gmittal/gautam.cc | hacks/ancient/gautam.cc-backups/gautam.cc-old.cc/sms/sms-reply.php | PHP | mit | 560 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>XAMPP 访问 Access forbidden 问题 – 再试,再失败,更好地失败</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="当安装好 XAMPP 用 IP 进行访问的时候会出... | tudousi/tudousi.github.io | _site/tools/2015/02/27/xampp-access-forbidden/index.html | HTML | mit | 10,479 |
using System.Collections.Immutable;
using NQuery.Authoring.BraceMatching;
namespace NQuery.Authoring.Composition.BraceMatching
{
public interface IBraceMatcherService
{
ImmutableArray<IBraceMatcher> Matchers { get; }
}
} | terrajobst/nquery-vnext | src/NQuery.Authoring.Composition/BraceMatching/IBraceMatcherService.cs | C# | mit | 245 |
<!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 | 20127e0/html/classv8__inspector_1_1V8StackTrace.html | HTML | mit | 8,714 |
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2020
//
// 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 r... | FacticiusVir/SharpVk | src/SharpVk/Interop/NVidia/Experimental/PhysicalDeviceMultiviewPerViewAttributesProperties.gen.cs | C# | mit | 1,909 |
#!/usr/bin/python3
#
# Copyright © 2017 jared <jared@jared-devstation>
#
from pydub import AudioSegment, scipy_effects, effects
import os
import settings, util
# combine two audio samples with a crossfade
def combine_samples(acc, file2, CROSSFADE_DUR=100):
util.debug_print('combining ' + file2)
sample2 = Audi... | techlover10/StochasticSoundscape | src/audio.py | Python | mit | 1,411 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.