repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
dmikey/syr | android/syrnative/src/main/java/syr/js/org/syrnative/SyrAnimatedText.java | 566 | package syr.js.org.syrnative;
import android.content.Context;
import android.view.View;
import org.json.JSONObject;
/**
* Created by dereanderson on 1/16/18.
*/
public class SyrAnimatedText extends SyrText {
@Override
public View render(JSONObject component, Context context, View instance) {
View... | mit |
teeebor/reboot_mingw | src/engine/engine.cpp | 808 | #include <engine/engine.h>
#include <engine/entity/gameObject.h>
#include <engine/component/renderer.h>
namespace reboot
{
Scene *Engine::m_Scene;
Engine::Engine(BYTE contextType, BYTE canvasType)
{
m_Contex = new reboot_driver::Context(contextType, canvasType);
m_Contex->m_Canvas->create();
in... | mit |
mzubairahmed/externalapi | src/main/java/com/asi/ext/api/radar/model/MediaCriteriaMatches.java | 798 | package com.asi.ext.api.radar.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class MediaCriteriaMatches {
@JsonProperty("CriteriaSetValueId")
private String criteriaSetValueId;
@JsonProperty("MediaId")
private String mediaId;
/**
* @return the criteriaSetValueId
*/
public String getCr... | mit |
ddemarco5/SensorMovementClassification | jsat/src/main/java/jsat/regression/NadarayaWatson.java | 2926 |
package jsat.regression;
import java.util.*;
import java.util.concurrent.ExecutorService;
import jsat.classifiers.DataPoint;
import jsat.distributions.multivariate.MultivariateKDE;
import jsat.linear.Vec;
import jsat.linear.VecPaired;
import jsat.parameters.Parameter;
import jsat.parameters.Parameterized;
/**
* The... | mit |
Kore-Core/kore | src/script/script.cpp | 10627 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The KoreCore developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "script.h"
#include "tinyformat.h"
#include "utilstrencodings.h"
namespace... | mit |
billybones79/spree_lookbook | app/assets/javascripts/spree/backend/setup_taxon_select.js | 1816 | var set_taxon_select_from_parent = function(selector, maximumSelectionSize){
if ($(selector).length > 0) {
$(selector).select2({
placeholder: Spree.translations.taxon_placeholder,
multiple: true,
maximumSelectionSize: maximumSelectionSize,
initSelection: funct... | mit |
ld-test/prosody | util/sasl/scram.lua | 10492 | -- sasl.lua v0.4
-- Copyright (C) 2008-2010 Tobias Markmann
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice... | mit |
pexip/os-ruby-passenger | build/rake_extensions.rb | 4707 | # Phusion Passenger - https://www.phusionpassenger.com/
# Copyright (c) 2010 Phusion
#
# "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# i... | mit |
demigor/nreact | NReact/Differs/NListDiffer.cs | 4980 | using System;
namespace NReact
{
struct NListDiffer
{
public static NPatch Diff(NElement[] source, NElement[] target)
{
var oldSet = source != null;
var newSet = target != null;
if (oldSet == newSet)
{
if (!oldSet)
return null;
return new NLis... | mit |
mrazicz/redis-model-extension | lib/redis-model-extension/get_find.rb | 5146 | # -*- encoding : utf-8 -*-
module RedisModelExtension
# == Get & Find
# * Model.all => Array of all instances
# * Model.find(1) => Array of one instance with id 1
# * Model.get(1) => Array of one instance with id 1
# * Model.find( id: 1 ) => Array of one instance with id 1
# * Model.find( field: "test" ) =... | mit |
MonoKu2014/iso | application/views/causas_incidencias/agregar.php | 2307 | <div class="container-fluid">
<ol class="breadcrumb">
<li><a href="<?= base_url();?>panel">Dashboard</a></li>
<li>Parámetros</li>
<li><a href="<?= base_url();?>causas_incidencias">Causas Incidencias</a></li>
<li class="active">Agregar</li>
</ol>
<div class="row">
<div class="col-lg-12">
... | mit |
DavidVeksler/SmallTalk | Apps/SmallTalk.Web/App_Start/IdentityConfig.cs | 1790 | using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using SmallTalk.Web.Models;
namespace SmallTalk.Web
{
// Configure the application user manager used in this application. UserManager is defin... | mit |
jonhenning/CodeEndeavors-ResourceManager | CodeEndeavors.ResourceManager.ServiceHost/ServiceHostRepository.cs | 13671 | using CodeEndeavors.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RepositoryDomainObjects = CodeEndeavors.Services.ResourceManager.Shared.DomainObjects;
using DomainObjects = CodeEndeavors.ResourceManager.DomainObjects;
using Syste... | mit |
x335/JSIL | Tests/CompilerUtil.cs | 11087 | using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Web.Script.Serialization;
using FSharp.Compiler.CodeDom;
using Microsoft.CSharp;
using Microsoft.VisualBasic;
namespace JSIL.Te... | mit |
spike01/planner | app/presenters/member_presenter.rb | 382 | class MemberPresenter < BasePresenter
def organiser?
has_role? :organiser, :any
end
def event_organiser?(event)
has_role?(:organiser, event) || has_role?(:organiser, event.chapter) || has_role?(:admin)
end
def newbie?
!workshop_invitations.attended.exists?
end
def attending?(event)
even... | mit |
LegionXI/pydarkstar | pydarkstar/logutils.py | 3579 | import contextlib
import warnings
import logging
import logging.handlers
lfmt = '[%(asctime)s][%(process)5d][%(levelname)-5s]: %(message)s'
dfmt = "%Y-%m-%d %H:%M:%S"
logging.basicConfig(level=logging.ERROR, format=lfmt, datefmt=dfmt)
logging.addLevelName(logging.CRITICAL, 'FATAL')
logging.addLevelName(logging.WARNING... | mit |
madepeople/magento | app/code/community/Adyen/Payment/Model/Adyen/Oneclick.php | 4517 | <?php
/**
* Adyen Payment Module
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did no... | mit |
scotthue/unicycling-registration | app/controllers/compete/age_group_entries_controller.rb | 340 | class Compete::AgeGroupEntriesController < ApplicationController
before_action :authenticate_user!
include SortableObject
before_action :authenticate_ability
private
def authenticate_ability
authorize @config, :setup_competition?
end
def sortable_object
@sortable_object = AgeGroupEntry.find(par... | mit |
syniosis76/canoepoloscoreboard | Utilities/OnUserMessageDelegate.cs | 293 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace Utilities
{
public delegate MessageBoxResult OnUserMessageDelegate(MessageBoxImage image, string message, MessageBoxButton buttons, MessageBoxResult defaultResult);
}
| mit |
tamag901/LeapCoin | src/qt/optionsdialog.cpp | 9334 | // Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include ... | mit |
icqparty/linebuild | module/Application/src/Application/Service/ProjectService.php | 148 | <?php
/**
* Created by PhpStorm.
* User: icqparty
* Date: 12.10.14
* Time: 9:15
*/
namespace Application\Service;
class ProjectService {
} | mit |
bpander/motherboard-legacy | src/config.js | 136 | require.config({
baseUrl: 'src',
paths: {
EventEmitter: '../bower_components/EventEmitter/dist/EventEmitter'
}
});
| mit |
simo-tuomisto/portfolio | Computational Nanoscience 2013 - Final project/Code/plot_data.py | 7122 | import numpy as np
import matplotlib.pyplot as mpl
from matplotlib.ticker import NullFormatter
import sys
from glob import glob
import re
import os
if __name__=="__main__":
# Plot these ranges
plotranges = {
5.0 : [0.009 , 0.011],
10.0: [0.007 , 0.011],
15.0: [0.005 , 0.010],
20.0: [0.005 , 0.010],
25.0: [0.00... | mit |
devnewton/underthief | app/ui/MenuCursor.ts | 3799 | /// <reference path="../../typings/phaser.d.ts"/>
interface Togglable {
toggle?: Function;
}
export class MenuCursor extends Phaser.Text {
private buttons: Phaser.Group;
private currentButton = 0;
waitUntil: number = -1;
keyboardCursor = true;
gamepadCursor = true;
constructo... | mit |
neo7530/wabcoin | src/qt/locale/bitcoin_lt.ts | 108298 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="lt" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Wabcoin</source>
<translation>Apie Wabcoin</translation>
</messa... | mit |
satellitejs/react-boilerplate | generate/generators/util.js | 736 | const utils = require('../utils');
const BASE_DIR = './src/utils';
const TEST_DIR = './src/utils/test';
function generateUtil(args) {
if (!args[0]) {
return utils.printError('Invalid number of arguments. Must specify a name for the util.');
}
if (!utils.checkDirectoryExists(BASE_DIR)) {
return utils.pr... | mit |
kimchanyoung/kimchanyoung.github.io | js/app.js | 969 | $(document).ready(function(){
$("#to-about").click(function() {
$('html, body').animate({
scrollTop: $("#about").offset().top
}, 1000);
});
$("#to-skills").click(function() {
$('html, body').animate({
scrollTop: $("#skills").offset().top
}, 1000);
});
$("#to-portfolio").clic... | mit |
DanielTomlinson/Propeller | Propeller/config/environments/development.rb | 1117 | Propeller::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web... | mit |
linfx/LinFx | src/LinFx/Extensions/DynamicProxy/IMethodInvocation.cs | 854 | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Threading.Tasks;
namespace LinFx.Extensions.DynamicProxy
{
/// <summary>
/// 调用方法
/// </summary>
public interface IMethodInvocation
{
object[] Arguments { get; }
IReadOnlyDictionary<string, objec... | mit |
joedeller/pymine | howbig.py | 1387 | #! /usr/bin/python
# Joe Deller 2014
# Find out how big our template buildings stored in their csv files are
# Level : Intermediate
# Uses : Libraries, variables, operators, loops, files
# Our CSV files that contain blue prints for buildings do not
# contain any information about how big they are
# This program sim... | mit |
veggerby/Veggerby.Algorithm | src/Veggerby.Algorithm/LinearAlgebra/Matrix.cs | 8033 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Veggerby.Algorithm.LinearAlgebra
{
public class Matrix
{
public static Matrix Identity(int n)
{
if (n <= 0)
{
throw new ArgumentOutOfRangeException(nameof(n));
... | mit |
sjohnsonaz/cascade | src/cascade/Cascade.test.ts | 2599 | import Cascade from './Cascade';
import { IHash } from '../graph/IObservable';
describe('Cascade', function () {
describe('createObservable', function () {
it('should initialize to undefined', function () {
class ViewModel {
value: number;
constructor() {
... | mit |
juniormesquitadandao/report4all | lib/src/net/sf/jasperreports/engine/export/GenericElementsFilterDecorator.java | 2484 | /*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | mit |
polinom/iceream | project_name/static/js/app/config/DesktopInit.js | 2181 | if (!window.settings){
window.settings['STATIC_URL'] = '';
}
require.config({
baseUrl: window.settings.STATIC_URL+"/js/",
// 3rd party script alias names (Easier to type "jquery" than "libs/jquery, etc")
// probably a good idea to keep version numbers in the file names for updates checking
paths:{
... | mit |
vinecopulib/pyvinecopulib | src/main.cpp | 26401 | #include "docstr.hpp"
#include <pybind11/eigen.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <vinecopulib.hpp>
namespace py = pybind11;
using namespace vinecopulib;
PYBIND11_MODULE(pyvinecopulib, pv)
{
constexpr auto& doc = pyvinecopulib_doc;
constexpr auto& tools_stat_doc = doc.vinecopuli... | mit |
yndongyong/fast-dev-library | example/src/main/java/org/fastandroid/myapplication/StaggeredActivity.java | 6992 | package org.fastandroid.myapplication;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridL... | mit |
gbelwariar/Self-Made-Projects | Tic-Tac-Toe/Tic_Tac_Toe.cpp | 4658 | // A C++ Program to play tic-tac-toe
#include<bits/stdc++.h>
using namespace std;
#define COMPUTER 1
#define HUMAN 2
#define SIDE 3 // Length of the board
// Computer will move with 'O'
// and human with 'X'
#define COMPUTERMOVE 'O'
#define HUMANMOVE 'X'
// A function to show the current board statu... | mit |
matrharr/restful_task_api | task_app/spec/controllers/api/v1/user_tasks_controller_spec.rb | 1140 | require 'spec_helper'
require 'rails_helper'
describe Api::V1::UserTasksController do
describe "POST #create" do
context "when user task is successfully created" do
before(:each) do
@user_task_attributes = FactoryGirl.attributes_for :user_task
post :create, { user_task: @user_task_attribu... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/localforage/0.9.0/localforage.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:f86dedd52fc930afb21fbbf28b7b54676911dc7b953c1dc4bb09a4fc0db1a9d2
size 73258
| mit |
hf/stun | src/test/java/me/stojan/stun/message/attribute/STUNAttributeSoftwareTest.java | 3431 | /*
* Copyright (c) 2016 Stojan Dimitrovski
*
* 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, ... | mit |
andela/suyabay | database/migrations/2015_11_29_214941_add_roleField_to_user_table.php | 686 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRoleFieldToUserTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
... | mit |
matt-way/jsBinarySchemaParser | example/index.js | 281 | import fs from 'fs'
import { parse } from '../src'
import { buildStream } from '../src/parsers/uint8'
import { GIF } from '../src/schemas'
debugger
const data = fs.readFileSync('./example/dog.gif')
const result = parse(buildStream(new Uint8Array(data)), GIF)
console.log(result)
| mit |
DoFabien/OsmGo | src/app/components/about/about.ts | 931 | import { Component } from '@angular/core';
import { Platform, ModalController, NavController } from '@ionic/angular';
import { ToastController } from '@ionic/angular';
import { ConfigService } from '../../services/config.service';
@Component({
selector: 'page-about',
templateUrl: './about.html'
})
export class Ab... | mit |
aabustamante/Semantic-UI-React | docs/app/Components/Layout.js | 1360 | import AnchorJS from 'anchor-js'
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import Sidebar from 'docs/app/Components/Sidebar/Sidebar'
import style from 'docs/app/Style'
import TAAttribution from 'docs/app/Components/TAAttribution/TAAttribution'
import { scrollToAnchor } from 'docs/app/... | mit |
Karasiq/scalajs-highcharts | src/main/scala/com/highstock/config/PlotOptionsMapStatesNormal.scala | 1615 | /**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highstock]]
*/
package com.highstock.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript... | mit |
shtse8/miningcore | src/Native/libcryptonote/common/base58.cpp | 9192 | // Copyright (c) 2014-2017, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list o... | mit |
mose/fany | app/controllers/fany/application_controller.rb | 101 | class Fany::ApplicationController < ActionController::Base
def tr
render text: "ok"
end
end | mit |
finleysg/bhmc2 | src/app/features/results/major/major-results.component.ts | 2176 | import { Component, OnInit } from '@angular/core';
import { EventDocument, DocumentService, DocumentType, EventType, Photo, PhotoType } from '../../../core';
import { ConfigService } from '../../../app-config.service';
@Component({
moduleId: module.id,
templateUrl: 'major-results.component.html',
styleUrls... | mit |
fotinakis/travis-web | app/components/sync-button.js | 300 | import Ember from 'ember';
const { service } = Ember.inject;
const { alias } = Ember.computed;
export default Ember.Component.extend({
auth: service(),
user: alias('auth.currentUser'),
classNames: ['sync-button'],
actions: {
sync() {
return this.get('user').sync();
}
}
});
| mit |
ZeusTheTrueGod/background-geolocation-console | src/server/database/migrate.js | 776 | /**
* Migrate records created from before Sequalize was introduced
*/
var path = require('path');
var sqlite3 = require('sqlite3').verbose();
var fs = require('fs');
var DB_FILE = path.resolve(__dirname, 'background-geolocation.db');
var LocationModel = require('./LocationModel.js');
var dbh;
if (!fs.existsSync(DB_... | mit |
g-yonchev/TelerikAcademy | Homeworks/C# 2/04. Numeral Systems/08. BinaryShort/BinaryShort.cs | 916 | /* Problem 8. Binary short
Write a program that shows the binary representation of given 16-bit signed integer number (the C# type short).
*/
namespace BinaryShort
{
using System;
class BinaryShort
{
static void Main()
{
Console.Write("Enter signed short: ");
... | mit |
mtbbendigo/mtbbendigo | blocks/left_text_right_img_news/edit.php | 1910 | <?php defined('C5_EXECUTE') or die("Access Denied.");
$al = Loader::helper('concrete/asset_library');
$ps = Loader::helper('form/page_selector');
Loader::element('editor_config');
?>
<style type="text/css" media="screen">
.ccm-block-field-group h2 { margin-bottom: 5px; }
.ccm-block-field-group td { vertical-align: ... | mit |
nem0/LumixEngine | src/gui/editor/gui_plugins.cpp | 31205 | #include <imgui/imgui.h>
#include "editor/asset_browser.h"
#include "editor/asset_compiler.h"
#include "editor/settings.h"
#include "editor/studio_app.h"
#include "editor/utils.h"
#include "editor/world_editor.h"
#include "engine/crc32.h"
#include "engine/crt.h"
#include "engine/engine.h"
#include "engine/geometry.h"
... | mit |
emonkak/js-enumerable | src/hof/groupBy.ts | 758 | import groupByFn from '../groupBy';
export default function groupBy<TSource, TKey>(keySelector: (element: TSource) => TKey): (source: Iterable<TSource>) => Iterable<[TKey, TSource]>;
export default function groupBy<TSource, TKey, TElement>(keySelector: (element: TSource) => TKey, elementSelector: (element: TSource) =>... | mit |
bob2000/BookReviews | BookReviews.AccountsManager.Nh/NhModel/Group.cs | 1284 | using BookReviews.AccountsManager.Nh.NhModel.Mappings;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BookReviews.AccountsManager.Nh.NhModel
{
public class Group
{
public Group()
{
Claims = new List<Grou... | mit |
michalper/ipresso_api | tests/SegmentationTest.php | 5351 | <?php
use PHPUnit\Framework\TestCase;
/**
* Class SegmentationTest
*/
class SegmentationTest extends TestCase
{
public static $config = [
'url' => '',
'login' => '',
'password' => '',
'customerKey' => '',
'token' => '',
];
/**
* @var iPresso
*/
priv... | mit |
tcdev0/ecb | src/KIJ/Bundle/EcbBundle/Ecb/ParserInterface.php | 199 | <?php
namespace KIJ\Bundle\EcbBundle\Ecb;
interface ParserInterface
{
/**
* @param $rawData
* @return mixed
*/
function parse($rawData);
} | mit |
archimatetool/archi | com.archimatetool.editor/src/com/archimatetool/editor/actions/ShowPropertiesManagerHandler.java | 1198 | /**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.actions;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import ... | mit |
starkandwayne/shield | db/schema_v6.go | 2280 | package db
import (
"github.com/shieldproject/shield/timespec"
)
type v6Schema struct{}
func (s v6Schema) Deploy(db *DB) error {
var err error
// set the tenant_uuid column to NOT NULL
err = db.Exec(`CREATE TABLE jobs_new (
uuid UUID PRIMARY KEY,
target_uuid ... | mit |
arindampaul007/arindampaul007.github.io | js/bootstrap.js | 69710 | pop/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery')
}
+function ($) {
'use strict';
var version = $.fn.jquery.split(' ')[0].split('.')
if ... | mit |
aseber/YoutubeFileDownloader | YoutubeFileDownloaderGui/Program.cs | 525 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace YoutubeFileDownloaderGui
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
... | mit |
Aly91/TheGreatAdventure | TheAmazingAdventure/src/Bullet.java | 628 | import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
public class Bullet extends Game
{
float bulletX;
float bulletY;
float bulletSpeed;
public void bullet()... | mit |
gampleman/ice_cube | spec/examples/monthly_rule_spec.rb | 4610 | require File.dirname(__FILE__) + '/../spec_helper'
module IceCube
describe MonthlyRule do
it 'should produce the correct number of days for @interval = 1' do
schedule = Schedule.new(t0 = Time.now)
schedule.add_recurrence_rule Rule.monthly
#check assumption
schedule.occurrences(t0 + 50 * ... | mit |
zeusdeux/password-manager | webpack.config.babel.js | 2454 | /**
* This config handles jsx compilation, es6 compilation
* and css handling.
*
* JS & JSX:
* --------
* babel-loader is used in conjuction with the setup in
* .babelrc to transpile JS and transform JSX into calls
* that utilize `h` from preact instead of what React
* provides.
*
* CSS (OLD WAY):
* -------... | mit |
Juanjors/Spring-MVC | SpringGit/src/curso/microforum/jee/spring/RajoyController.java | 805 | package curso.microforum.jee.spring;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.LocaleReso... | mit |
joetde/LucyTheMoocher | LucyTheMoocher/app/src/main/java/com/lucythemoocher/graphics/Background.java | 3584 | package com.lucythemoocher.graphics;
import com.lucythemoocher.R;
import com.lucythemoocher.Globals.Globals;
import com.lucythemoocher.util.MathUtil;
/**
* Background of the level\n
* Randomly generated with elementary blocks.\n
* The sizes of images (in the grids) must be multiples.
* Can be rendered by the Came... | mit |
venanciolm/afirma-ui-miniapplet_x_x | afirma_ui_miniapplet/src/main/java/es/gob/afirma/keystores/AOKeyStoreManager.java | 12208 | /* Copyright (C) 2011 [Gobierno de Espana]
* This file is part of "Cliente @Firma".
* "Cliente @Firma" 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 2 of the License, or (at y... | mit |
openforis/collect-mobile | android/src/main/java/org/openforis/collect/android/gui/input/AverageAngle.java | 1439 | package org.openforis.collect.android.gui.input;
public class AverageAngle {
private double[] mValues;
private int mCurrentIndex;
private int mNumberOfFrames;
private boolean mIsFull;
private double mAverageValue = Double.NaN;
public AverageAngle(int frames) {
this.mNumberOfFrames = fr... | mit |
Noneatme/iLife-SA | client/Quests/Scripts/56.lua | 4195 |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
local QuestID = 56
local Quest = Quests[QuestID]
local QuestFu... | mit |
ttokutake/kic | src/command/version.rs | 453 | use error::{CliError, Usage, UsageKind};
use super::Command;
use constant::VERSION;
#[derive(Debug)]
pub struct Version;
impl Command for Version {
fn allow_to_check_current_dir(&self) -> bool { false }
fn allow_to_check_settings(&self) -> bool { false }
fn usage(&self) -> Usage {
return Usage::... | mit |
tm1990/MiscItemsAndBlocks | common/Mod/Block/ModBlockOrangeLeaf.java | 12329 | package Mod.Block;
import java.util.ArrayList;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLeaves;
import net.minecraft.block.BlockLeavesBase;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.textur... | mit |
GalleonBank/galleon | src/qt/locale/bitcoin_fi.ts | 112910 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Galleon</source>
<translation>Tietoa Bitcoinista</translation>
<... | mit |
gabriprat/hoshinplan | app/models/clockwork_event.rb | 994 | class ClockworkEvent < ApplicationRecord
hobo_model # Don't put anything above this
fields do
name :string
job :string
frequency_quantity :integer
frequency_period HoboFields::Types::EnumString.for(:second, :minute, :hour, :day, :week, :month)
at ... | mit |
kfields/decision-tree-workshop | DecisionTreeWorkshop/obj/Debug/Gui/DtWpfGraphPanel.g.i.cs | 4653 | #pragma checksum "..\..\..\Gui\DtWpfGraphPanel.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "CA3DCF7411DE522523A6B5D32FAD257A"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.225
//
// ... | mit |
LagoLunatic/DSVEdit | dsvlib.rb | 1610 |
require_relative 'dsvlib/crc16'
require_relative 'dsvlib/free_space_manager'
require_relative 'dsvlib/nds_file_system'
require_relative 'dsvlib/gba_dummy_filesystem'
require_relative 'dsvlib/gba_lz77'
require_relative 'dsvlib/bitfield'
require_relative 'dsvlib/game'
require_relative 'dsvlib/area'
require_relative 'ds... | mit |
spajus/tank_island | lib/entities/hud.rb | 1825 | class HUD
attr_accessor :active
def initialize(object_pool, tank)
@object_pool = object_pool
@tank = tank
@radar = Radar.new(@object_pool, tank)
end
def player=(tank)
@tank = tank
@radar.target = tank
end
def update
@radar.update
end
def health_image
if @health.nil? || @ta... | mit |
jimkyndemeyer/js-graphql-intellij-plugin | src/main/com/intellij/lang/jsgraphql/types/execution/instrumentation/parameters/InstrumentationCreateStateParameters.java | 2019 | /*
The MIT License (MIT)
Copyright (c) 2015 Andreas Marek and Contributors
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 ri... | mit |
moszinet/BKKCrypt | Rust/src/bin.rs | 406 | use std::env;
use std::process;
extern crate bkkcrypt_lib;
fn main() {
let args: Vec<_> = env::args().collect();
if args.len() != 2 {
println!(
"Please provide a single parameter to encrypt with the famous BKKCrypt algorithm."
);
process::exit(1);
}
let ref item = &... | mit |
InnovateUKGitHub/innovation-funding-service | ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/organisation/repository/SimpleOrganisationRepository.java | 451 | package org.innovateuk.ifs.organisation.repository;
import org.innovateuk.ifs.organisation.domain.SimpleOrganisation;
import org.springframework.data.repository.CrudRepository;
/**
* This interface is used to generate Spring Data Repositories.
* For more info:
* http://docs.spring.io/spring-data/jpa/docs/current/r... | mit |
Petr-Economissa/gvidon | src/test/compress_tests.cpp | 1936 | // Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "compressor.h"
#include "util.h"
#include "test/test_gvidon.h"
#include <stdint.h>
#include <boost/test/unit_test.... | mit |
MortenChristiansen/DDDTools.SpecGen | DDDTools.SpecGen/Spec/Feature.cs | 384 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DDDTools.SpecGen.Spec
{
class Feature : SpecificationItem
{
public List<RequirementGroup> RequirementGroups { get; set; }
public Feature()
{
Requir... | mit |
1dv024/exercise-solution-proposals | exercise-static-adding/StaticAdding/Program.cs | 774 | using System;
namespace StaticAdding
{
/// <summary>
/// Represents the main place where the program starts the execution.
/// </summary>
class Program
{
/// <summary>
/// The starting point of the application.
/// </summary>
static void Main(string[] args)
... | mit |
MihaZelnik/Django-Unchained | setup.py | 599 | # -*- coding: utf-8 -*-
"""
setup
"""
from setuptools import find_packages, setup
setup(
name="Django Unchained",
version="0.0.1",
description="Django skeleton",
url="https://github.com/MihaZelnik/Django-Unchained",
license="MIT",
author="Miha Zelnik",
author_email="miha.zelnik@gmail... | mit |
botorabi/Meet4Eat | src/main/java/net/m4e/system/deployment/UpdateInit.java | 6217 | /*
* Copyright (c) 2017-2019 by Botorabi. All rights reserved.
* https://github.com/botorabi/Meet4Eat
*
* License: MIT License (MIT), read the LICENSE text in
* main directory for more details.
*/
package net.m4e.system.deployment;
import net.m4e.app.auth.AuthRole;
import net.m4e.app.auth.AuthorityConfi... | mit |
wialon/wialon-app-drivinglogbook | lang/da.js | 3318 | TRANSLATIONS = {
"Driving Logbook": "Kørebog",
"Logbook": "Logbog",
"Unit": "Enhed",
"From": "Fra",
"To": "Til",
"OK": "Ok",
"Beginning": "Start",
"End": "Slut",
"Duration": "Varighed",
"Initial location": "Start adresse",
"Final location": "Slut adresse",
"Initial mileag... | mit |
Dasl0ki/secmjam | config/config.php | 355 | <?php
/**
* Created by PhpStorm.
* User: Loki
* Date: 13.10.2015
* Time: 08:53
*/
$config = parse_ini_file('../../mysqli_config.ini', TRUE);
$strQuery = "SET character_set_results = 'utf8',
character_set_client = 'utf8',
character_set_connection = 'utf8',
character_set_database = 'utf8',
... | mit |
dragosbdi/bitcredit-2.0 | src/qt/rpcconsole.cpp | 33904 | // Copyright (c) 2011-2015 The Bitcredit Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcredit-config.h"
#endif
#include "rpcconsole.h"
#include "ui_debugwindow.h"... | mit |
OguzhanAydin61/SpotifyApi | spotify-api/src/main/java/oguzhan/spotify/webapi/android/models/AlbumSimple.java | 1822 | package oguzhan.spotify.webapi.android.models;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
import java.util.Map;
public class AlbumSimple implements Parcelable {
public String album_type;
public List<String> available_markets;
public Map<String, String> external_urls;
... | mit |
NsdWorkBook/DbLite | src/DbLite.Test/DeleteTests.cs | 1279 | namespace DbLite.Test
{
using Tables;
using System.Data;
using Xunit;
public abstract class DeleteTests<TDatabaseFixture, TConnection>
where TDatabaseFixture : DatabaseFixture<TConnection>
where TConnection : IDbConnection
{
private readonly TDatabaseFixture fixture;
... | mit |
cmccullough2/cmv-wab-widgets | cmv/js/gis/dijit/Identify/nls/pt-br/resource.js | 379 | /* ConfigurableMapViewerCMV
* version 2.0.0-beta.1
* Project: http://cmv.io/
*/
define({labels:{selectLayer:'Escolha "Todas Camadas Visíveis" ou uma camada única para Identificar:',allVisibleLayers:"*** Todas Camadas Visíveis ***"},rightClickMenuItem:{label:"Identifique aqui"},mapInfoWindow:{identifyingTitle:"Id... | mit |
GeorgiPetrovGH/TelerikAcademy | 08.High-Quality-Code/Defensive Programming and Exceptions/Assertions_Exceptions/Exception_handling/Properties/AssemblyInfo.cs | 1412 | 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("Ex... | mit |
BitFunnel/BitFunnel | tools/BitFunnel/src/SaveCommand.cpp | 2377 | // The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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, mo... | mit |
tal/assette | lib/assette/post_processors/cache_buster.rb | 415 | module Assette
class PostProcessor::CacheBuster < Assette::PostProcessor(:css)
URL_MATCHER = /url\((?:["'])?(?!http)(?!\/\/)([\w\/\.\-\s\?=]+)(?:["'])?\)/i
def should_process?
Assette.config.compiling?
end
def processor
@@i ||= -1
@str.gsub(URL_MATCHER) do |s|
ur... | mit |
1vasari/Guitar-Practice-App | gpa/app/urls.py | 140 |
from django.conf.urls import patterns, url
from app import views
urlpatterns = patterns(
'',
url(r'^$', views.app, name='app'),
)
| mit |
sachaudh/Genie-Server | public/models/userModel.js | 341 | var mongoose = require('mongoose');
var userSchema = new mongoose.Schema({
fb_id: String,
first_name: String,
last_name: String,
email: String,
gender: String,
image : String,
friends : [{ type: mongoose.Schema.Types.ObjectId, ref: 'User'}]
}, { versionKey: false });
module.exports = mongoose.model... | mit |
nbkhope/phase-0 | week-4/shortest-string/my_solution.rb | 755 | # Shortest String
# I worked on this challenge [by myself, with: ].
# shortest_string is a method that takes an array of strings as its input
# and returns the shortest string
#
# +list_of_words+ is an array of strings
# shortest_string(array) should return the shortest string in the +list_of_words+
#
# If +list_of_w... | mit |
concord-consortium/rigse | admin-panel/react-admin-interface/src/entities/projectUser.js | 2330 | import React from "react"
import {
Edit, Create,
SimpleForm,
BooleanInput, ReferenceInput, SelectInput,
ReferenceField, TextField, FunctionField
} from "react-admin"
import { parse } from "query-string";
// Once created the project and user can't be changed
export const ProjectUserEdit = props => (
<Edit {.... | mit |
mrmar096/businesspoweron | system/database/DB_driver.php | 45741 | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... | mit |
AhmedMohamedAbdelaal/start.net | Start.Net/Entities/Charge.cs | 1328 | using Newtonsoft.Json;
using System;
namespace Start.Net.Entities
{
public class Charge
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("object")]
public string Object { get; set; }
[JsonProperty("amount")]
public int Amount { get; set; }
... | mit |
ignat-zakrevsky/surf | lib/surf/callbacks/pull_request_logger.rb | 751 | # frozen_string_literal: true
require 'surf/registry'
module Surf
class PullRequestLogger
extend Configurable
cattr_accessor(:pull_request_webhook_class) { Surf::Registry.pull_request_webhook_class }
def initialize(context)
@context = context
@webhook = find_webhook
end
def call
... | mit |