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 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using Roguelike.Core.Elements.Inventory;
using Roguelike.Entities;
using RLNET;
namespace Roguelike.Systems {
public class InventorySystem {
private Player player;
public InventorySystem() {
player = Game.Player;
}
void... | SamFergie/Roguelike | Roguelike/Systems/InventorySystem.cs | C# | mit | 18,045 |
<?php
class TeamsTest extends Raideer\TwitchApi\TestCase
{
public function __construct()
{
$this->setResource('Raideer\TwitchApi\Resources\Teams');
}
public function test_getName_returnsTeams()
{
$this->assertSame('teams', $this->resource->getName());
}
public function tes... | raideer/twitch-api | tests/Resources/TeamsTest.php | PHP | mit | 752 |
# frozen_string_literal: true
require "dry/core/equalizer"
require "rom/initializer"
require "rom/relation/loaded"
require "rom/relation/composite"
require "rom/relation/materializable"
require "rom/pipeline"
require "rom/support/memoizable"
module ROM
class Relation
# Abstract relation graph class
#
... | rom-rb/rom | lib/rom/relation/graph.rb | Ruby | mit | 2,218 |
<?php
namespace AppBundle\Tests\Entity;
use AppBundle\Entity\Auth;
use PHPUnit\Framework\TestCase;
class AuthTest extends TestCase
{
public function testAdd()
{
$obj = new Auth();
$result = $obj->setToken('sdfsdf465456');
$this->assertEquals('sdfsdf465456', $obj->getToken());
}
}... | snedi/apilite | src/AppBundle/Tests/Entity/AuthTest.php | PHP | mit | 321 |
# GKDProgress
A progress use CoreAnimation
| geekdog/GKDProgress | README.md | Markdown | mit | 43 |
#ifndef ZOMBIE_HUMANPLAYER_H
#define ZOMBIE_HUMANPLAYER_H
#include "device.h"
#include "physics/moving/unit.h"
#include "player.h"
#include "physics/moving/unit.h"
#include <glm/gtx/rotate_vector.hpp>
namespace zombie {
class HumanPlayer : public Player {
public:
HumanPlayer(DevicePtr device, std::unique_ptr<Un... | mwthinker/Zombie | src/humanplayer.h | C | mit | 1,246 |
// Copyright (c) 2014 The Okcash Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#ifndef COIN_STATE_H
#define COIN_STATE_H
#include <string>
#include <limits>
#include "sync.h"
enum eNodeType
{
NT_FULL =... | okcashpro/okcash | src/state.h | C | mit | 4,272 |
version https://git-lfs.github.com/spec/v1
oid sha256:b51623fcae1419d2bb29084e11d56fc9aafae7b0e35bd2a7fd30633a133bef40
size 24229
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.17.0/slider-base/slider-base-debug.js | JavaScript | mit | 130 |
module Librr::Displayer
class << self
attr_accessor :save_output, :output
def clear_output
@output = []
end
def save(text)
@output ||= []
@output << text
end
end
def show text
if Librr::Displayer.save_output
Librr::Displayer.save(text)
return
end
... | halida/librr | lib/librr/displayer.rb | Ruby | mit | 342 |
var gif_bgs = [];
var gif_center = [];
var length_bgs = 0;
var length_center = 0;
var timer;
var duration = 4000;
var loaded = 0;
var next_bg;
var next_center;
var audio = document.getElementById("sound");
var muted = false;
function next(e){
clearInterval(timer);
timer = setInterval(next, duration);
$("#ba... | paralin/1148WTF | client/js/gif.js | JavaScript | mit | 1,679 |
{% extends 'login_base.html' %}
{% block body %}
<div class="form-container">
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{% for field in form %}
{{ field }}
{{ field.errors }}
{% endfor %}
<input id="submit" type="submit" value="Create new account" />
</form>
</d... | yayraj/myproject | slrtcebook/templates/register.html | HTML | mit | 426 |
<?php
class ProfilesTest extends PHPUnit_Framework_TestCase
{
public function setUp()
{
$di = Xhgui_ServiceContainer::instance();
$this->profiles = $di['profiles'];
$this->_loadFixture('tests/fixtures/results.json');
}
protected function _loadFixture($file)
{
$conten... | YvesPasteur/env-php | cookbooks/xhprof/xhgui/tests/ProfilesTest.php | PHP | mit | 5,305 |
package com.tbp.safemaps;
import the.safemaps.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MarkUnsafe ext... | thebachchaoproject/safemaps | safemaps_android/src/com/tbp/safemaps/MarkUnsafe.java | Java | mit | 1,557 |
#include "protagonist.h"
#include "SerializeResult.h"
#include "v8_wrapper.h"
#include "snowcrash.h"
using namespace v8;
using namespace protagonist;
Result::Result()
{
}
Result::~Result()
{
}
Nan::Persistent<Function> Result::constructor;
void Result::Init(Handle<Object> exports)
{
Nan::HandleScope scope;
... | cold-brew-coding/protagonist | src/result.cc | C++ | mit | 1,745 |
<select ng-model="city" ng-options="city.name for city in cities">
<option value="">Choose City</option>
</select>
Best City:{{city.name}}
<label>Select Two Fish</label>
<input type="checkbox" ng-model="isTwoFish"> <br/>
<select>
<option>One Fish</option>
<option ng-selected="isTwoFish">Two Fish</option>
</sel... | wufengwhu/myBlog | app/views/select.html | HTML | mit | 325 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_71) on Sun Jan 11 17:03:54 EET 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>com.github.tilastok... | tilastokeskus/Matertis | dist/site/testapidocs/com/github/tilastokeskus/matertis/core/command/package-frame.html | HTML | mit | 1,272 |
<?php
/**
* Craft by Pixel & Tonic
*
* @package Craft
* @author Pixel & Tonic, Inc.
* @copyright Copyright (c) 2014, Pixel & Tonic, Inc.
* @license http://buildwithcraft.com/license Craft License Agreement
* @link http://buildwithcraft.com
*/
// Define path constants
defined('CRAFT_BASE_PATH') ... | RobErskine/generator-craft | app/templates/craft/app/tests/bootstrap.php | PHP | mit | 3,152 |
require "importu/backends"
class DummyBackend
def self.supported_by_definition?(definition)
false
end
def initialize(finder_fields:, **)
@finder_fields = finder_fields
@objects = []
@max_id = 0
end
def find(record)
@finder_fields.detect do |field_group|
if field_group.respond_to?(... | dhedlund/importu | spec/support/dummy_backend.rb | Ruby | mit | 1,083 |
#!/usr/bin/env python3
"""
My radio server application
For my eyes only
"""
#CREATE TABLE Radio(id integer primary key autoincrement, radio text, genre text, url text);
uuid='56ty66ba-6kld-9opb-ak29-0t7f5d294686'
# Import CherryPy global namespace
import os
import sys
import time
import socket
import cherrypy
imp... | ernitron/radio-server | radio-server/server.py | Python | mit | 26,943 |
{% load staticfiles i18n %}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{% block title %}netmon{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"... | Landver/netmon | netmon/templates/baseold.html | HTML | mit | 5,836 |
require 'spec_helper'
describe 'Git LFS File Locking API' do
include WorkhorseHelpers
let(:project) { create(:project) }
let(:maintainer) { create(:user) }
let(:developer) { create(:user) }
let(:guest) { create(:user) }
let(:path) { 'README.md' }
let(:headers) do
{
'Authorization' =... | dreampet/gitlab | spec/requests/lfs_locks_api_spec.rb | Ruby | mit | 4,652 |
---
layout: default
title: Yogi Tea Sayings - Archive
---
{% for post in site.posts %}
<article class="saying">{{ post.title }}</article>
{% endfor %}
| parkr/yogi | archive.html | HTML | mit | 154 |
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
/* eslint hammerhead/proto-methods: 2 */
import reEscape from '../utils/rege... | AlexanderMoskovkin/testcafe-hammerhead | src/processing/style.js | JavaScript | mit | 3,704 |
import announcements from './announcements'
import delegates from './delegates'
import fees from './fees'
import ledger from './ledger'
import market from './market'
import peer from './peer'
import wallets from './wallets'
export {
announcements,
delegates,
fees,
ledger,
market,
peer,
wallets
}
| ArkEcosystem/ark-desktop | src/renderer/services/synchronizer/index.js | JavaScript | mit | 312 |
/**
* @flow
* @module ProductPropertyInput
* @extends React.PureComponent
*
* @author Oleg Nosov <olegnosov1@gmail.com>
* @license MIT
*
* @description
* React form for product property(options select only).
*
*/
import React, { PureComponent } from "react";
import { isObject } from "../../../helpers";
imp... | olegnn/react-shopping-cart | src/components/Product/ProductPropertyInput/ProductPropertyInput.js | JavaScript | mit | 4,423 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open... | GoC-Spending/data-corporations | html/234567111997.html | HTML | mit | 33,409 |
let BASE_DIR = '/masn01-archive/';
const TAG_OPTIONS = ['meteor', 'cloud', 'bug', 'misc'];
let CURR_DIR = null;
let CURR_FILES = null;
let INIT_CMAP = null;
let CURR_IDX = 0;
let PREV_IDX = null;
$(async function() {
let cameras = JSON.parse(await $.get('cameras.php'));
cameras.forEach((camera) => {
... | warnerem/pyASC | www/js/tagger.js | JavaScript | mit | 8,131 |
import React, { Component, PropTypes } from 'react'
import { Search, Grid } from 'semantic-ui-react'
import { browserHistory } from 'react-router'
import Tag from './Tag'
import { search, setQuery, clearSearch } from '../actions/entities'
import { MIN_CHARACTERS, DONE_TYPING_INTERVAL } from '../constants/search'
cons... | kingdido999/atogatari | client/src/components/GlobalSearch.js | JavaScript | mit | 1,903 |
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("Po... | vladislav-karamfilov/TelerikAcademy | ASP.NET WebForms Projects/ExamPreparation/PollSystem/PollSystem/Properties/AssemblyInfo.cs | C# | mit | 1,356 |
<!-- HTML header for doxygen 1.8.10-->
<!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" cont... | bradhowes/sidecar | docs/structSideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits.html | HTML | mit | 29,751 |
require 'test_helper'
class HostRedirectorTest < ActionController::TestCase
tests MyController
setup do
@old_host = get_config_host
set_config_host "localhost"
end
teardown do
set_config_host @old_host
end
test "should get index" do
request.host = "localhost"
get :index
... | johngibb/host-redirector | test/host_redirector_test.rb | Ruby | mit | 808 |
/***********************************************************************
* Copyright (c) 2015 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or https://www.opensource.org/licenses/mit-license.php.*
***************************... | syscoin/syscoin | src/secp256k1/contrib/lax_der_parsing.h | C | mit | 4,234 |
# .NET CoreのプロジェクトをCIする方法
サンプル : https://ci.appveyor.com/project/KazuhitoMiura/dotnetcoresample/history
MSの.NET系のCI…といえばAppVeyorなのですが、.NET Coreのやつは「今まだ対応されてない」ので、 `appveyor.yml` という設定ファイルを書きます。
UIと両方できるのですが、設定ファイルに書きます。
https://github.com/Remote-Pairpro/DotNetCoreSample/blob/master/appveyor.yml
ランナーはxunitをつかってるので... | kazuhito-m/kazuhito-m.github.io | _drafts/dotnet-core-ci.md | Markdown | mit | 1,391 |
---
title: 'off-canvas'
items:
1:
url: /
title: Front Page
icon: home
2:
url: /tools
title: Tools
icon: wrench
3:
url: /forms
title: Forms
icon: files-o
4:
url: /alerts
title: Alerts
icon: bell-o
--- | khanduras/grav-backbone-js | pages/extras/menus/off-canvas/menu.md | Markdown | mit | 311 |
PowerdnsOnRails::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is t... | kennethkalmer/powerdns-on-rails | config/environments/production.rb | Ruby | mit | 2,371 |
%"Èíòåëëåêòóàëüíûå" êðåñòèêè-íîëèêè íà Java Internet Prolog
%êîìïüþòåð óìååò èãðàòü è çà êðåñòèêè, è çà 0
% (Ñ) À.À. Òþãàøåâ 2014
%Êëåòêè ïîëÿ çàäàþòñÿ êîîðäèíàòàìè, íàïèìåð, [3,1] - ïðàâûé âåðõíèé óãîë
%ñíà÷àëà íîìåð âåðòèêàëè!
% 1 2 3
%1 | |
%---------------------
%2 | |
%----... | petruchcho/Android-JIProlog-XO | Java+Prolog/assets/tyugashov.pl | Perl | mit | 3,018 |
'''
Test cases for pyclbr.py
Nick Mathewson
'''
from test.test_support import run_unittest, import_module
import sys
from types import ClassType, FunctionType, MethodType, BuiltinFunctionType
import pyclbr
from unittest import TestCase
StaticMethodType = type(staticmethod(lambda: None))
ClassMethodTyp... | babyliynfg/cross | tools/project-creator/Python2.6.6/Lib/test/test_pyclbr.py | Python | mit | 7,874 |
<<<<<<< HEAD
var xmlDoc;
var xmlloaded = false;
var _finalUrl;
/*
* input: none
* output: none
* gets zipcode from the zipcode text field
*/
function createURL() {
var zip = document.getElementById("zipcode").value;
var format = "&format=xml"
var _clientId = "&client_id=API KEY";
var _url = "https:... | pas1411/layzsunday | Lazysunday.com/XMLHandler.js | JavaScript | mit | 1,581 |
<div class="col-md-12 remove_padding">
<div class="col-md-4 right_padding ttt_pack" id="rmpd_calculate">
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock">Location</h2>
<span class="liner_landing"></span>
... | akashbachhania/jeet99 | application/views/ttt/caculate.php | PHP | mit | 37,369 |
The MIT License (MIT)
Copyright (c) 2015 copyright Juan Quemada
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,... | casf19/random | LICENSE.md | Markdown | mit | 1,090 |
import { createElement } from 'react'
import omit from 'lodash/omit'
import { useSpring, animated } from '@react-spring/web'
import { useTheme, useMotionConfig } from '@nivo/core'
import { NoteSvg } from './types'
export const AnnotationNote = <Datum,>({
datum,
x,
y,
note,
}: {
datum: Datum
x: ... | plouc/nivo | packages/annotations/src/AnnotationNote.tsx | TypeScript | mit | 1,549 |
package pl.mmorpg.prototype.client.exceptions;
public class UnknownSpellException extends GameException
{
public UnknownSpellException(String identifier)
{
super(identifier);
}
public UnknownSpellException(Class<?> type)
{
super(type.getName());
}
}
| Pankiev/MMORPG_Prototype | Client/core/src/pl/mmorpg/prototype/client/exceptions/UnknownSpellException.java | Java | mit | 262 |
FROM node
WORKDIR /usr/src/app
COPY package*.json client.js index.html rest-server.js UserModel.js ./
RUN npm ci
EXPOSE 3000
CMD ["npm", "start"]
| maritz/nohm | examples/rest-user-server/Dockerfile | Dockerfile | mit | 151 |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Uno.Collections\0.13.2\Extensions\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#ifndef __APP_UNO_COLLECTIONS_UNION_ENUMERATOR__OUTRACKS_SIMULATOR_BYTECODE_STATEMENT_H__
#define __APP_UNO_COLLECTIONS_UNION_ENUMERATOR__OUTRACKS... | blyk/BlackCode-Fuse | AndroidUI/.build/Simulator/Android/include/app/Uno.Collections.UnionEnumerator__Outracks_Simulator_Bytecode_Statement.h | C | mit | 2,919 |
---
layout: automation
title: Automation of Paving, Surfacing, and Tamping Equipment Operators
subtitle: Will robots and artificial intelligence take the job of Paving, Surfacing, and Tamping Equipment Operators? Get the facts.
soc:
code: 47-2071
title: Paving, Surfacing, and Tamping Equipment Operators
definitio... | simonmesmith/simonmesmith.github.io | _automation/paving-surfacing-and-tamping-equipment-operators.md | Markdown | mit | 856 |
import { ILogger, getLogger } from './loggers';
import { CancellationToken, ICancellationToken } from '../util/CancellationToken';
import { Step } from './Step';
import { ModuleLoader } from './ModuleLoader';
import * as _ from 'underscore';
import { Guid } from '../util/Guid';
import { InjectorLookup, Module, ModuleRe... | pumlhorse/pumlhorse | src/script/Script.ts | TypeScript | mit | 9,364 |
<div class="usermanager_profile_edit">
<ion:usermanager request="form" attr="has_errors" form_name="profile_save">
<div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_error" /></div></div></div></div><div class="greentab_content"><div><div>
<div class="us... | lostfly2/g2 | modules/Usermanager/views/tag_profile_edit.php | PHP | mit | 12,808 |
# YUMMY License
> **YoU make Money, I make MoneY.** If you don't make money using it, you are allowed to use the Software for free.
1. Permission is hereby granted to any person obtaining (A) a copy of this software and (B) a license code issued on [backpackforlaravel.com](https://backpackforlaravel.com) (the "Softwa... | Laravel-Backpack/crud | LICENSE.md | Markdown | mit | 7,083 |
from django.db import models
from django.core.urlresolvers import reverse
class Software(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
def get_absolute_url(self):
return reverse('software_edit', kwargs={'pk': self.pk})
| htlcnn/pyrevitscripts | HTL.tab/Test.panel/Test.pushbutton/keyman/keyman/keys/models.py | Python | mit | 300 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Децентрализированное Хранилище Данных</title>
<link rel="stylesheet" href="/bootstrap-3.3.7/css/bootstrap.min.cs... | lboss75/vds | www/store.html | HTML | mit | 3,000 |
#!/usr/bin/python3
"""
This bot uploads text from djvu files onto pages in the "Page" namespace.
It is intended to be used for Wikisource.
The following parameters are supported:
-index:... name of the index page (without the Index: prefix)
-djvu:... path to the djvu file, it shall be:
... | wikimedia/pywikibot-core | scripts/djvutext.py | Python | mit | 6,822 |
// Copyright 2015 LastLeaf, LICENSE: github.lastleaf.me/MIT
'use strict';
var fs = require('fs');
var fse = require('fs-extra');
var async = require('async');
var User = fw.module('/db_model').User;
var exports = module.exports = function(conn, res, args){
User.checkPermission(conn, 'admin', function(perm){
if(!p... | LastLeaf/LightPalette | plugins/xbackup/rpc/sites.js | JavaScript | mit | 2,163 |
# opencfp-vote
| OpenWestConference/opencfp-vote | README.md | Markdown | mit | 15 |
{{ _("test1") }}
{{ _('test2') }}
{{ _ 'test3' }}
{{ _ "test3.1" _ 'test4' _ "test5" }}
<%=_("test6")%>
<%= _("test7") %> | kosatyi/node-gettext-generator | tests/source/test.html | HTML | mit | 128 |
/*
* Copyright 2015 The Android Open Source Project
*
* 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 applicab... | jonasrottmann/realm-browser | realm-browser/src/main/java/de/jonasrottmann/realmbrowser/helper/ScrollAwareFABBehavior.java | Java | mit | 2,812 |
package edu.brown.cs.pianoHeroFiles;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileRea... | valentin7/pianoHero | src/main/java/edu/brown/cs/pianoHeroFiles/PianoHeroFileHandler.java | Java | mit | 11,443 |
$( document ).ready( function () {
$( "#form" ).validate( {
rules: {
company: { required: true },
truckType: { required: true },
materialType: { required: true },
fromSite: { required: true },
toSite: { required: true },
hourIn: { required: true },
hourOut: { required: true... | bmottag/vci_app | assets/js/validate/hauling/hauling_v2.js | JavaScript | mit | 6,397 |
# QCWeChatPay
- 微信 APP 支付 Demo
- 开发环境:Xcode 8.2,WeChatSDK-1.7.5,AFNetworking-3.1.0
- 微信 APP 支付集成说明见 [QianChia 的博客](http://www.cnblogs.com/QianChia/p/6206153.html)。
| QianChia/QCWeChatPay | README.md | Markdown | mit | 216 |
var axios = require("axios");
var expect = require("chai").expect;
var MockAdapter = require("../src");
describe("MockAdapter asymmetric matchers", function () {
var instance;
var mock;
beforeEach(function () {
instance = axios.create();
mock = new MockAdapter(instance);
});
it("mocks a post reque... | ctimmerm/axios-mock-adapter | test/asymmetric.spec.js | JavaScript | mit | 1,140 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'pages... | younginnovations/resourcecontracts-rc-subsite | database/migrations/2020_03_11_052945_update_pages_table.php | PHP | mit | 830 |
'use strict';
var intlNameInitials = function () {
};
var pattern = '{0}{1}';
function _firstLetter(text) {
return text.charAt(0);
}
function _upperCase(letter) {
if (letter === 'ı'){
return 'I';
}
return letter.toUpperCase();
}
function _isHangul(l){
if ((l > 44032) && (l < 55203)) {... | lwelti/intl-name-initials | src/index.js | JavaScript | mit | 3,252 |
export default [
{
radius: 6,
sizeReduction: .85,
branchProbability: 0.12,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 6,
sizeReduction: .85,
branchProbability: 0.21,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 3,
sizeReduction: .87... | susielu/3d | src/plantae/conical-dendrite-trees.js | JavaScript | mit | 1,089 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Hirocoin</source>
<translation>Par Hirocoin</translation>
</m... | GoogolplexCoin/GoogolPlexCoin | src/qt/locale/bitcoin_lv_LV.ts | TypeScript | mit | 106,292 |
VERSION := 1.1a
ROOT := $(shell pwd)
PATH := $(ROOT)/.luvit:$(PATH)
all: module
test: module
checkit tests/*
module: build/slnunicode/unicode.luvit
build/slnunicode/unicode.luvit: build/slnunicode/slnunico.c
$(CC) $(shell luvit-config --cflags | sed 's/ -Werror / /') -DluaI_openlib=luaL_openlib -shared -o ... | dvv/luvit-unicode | Makefile | Makefile | mit | 689 |
setTimeout(() => {
import(/* webpackPreload: true */ "./lazy-chunk-2.js").then((mod) =>
mod.test()
);
}, 750);
| waysact/webpack-subresource-integrity | examples/webpack-preload/lazy-chunk-1.js | JavaScript | mit | 119 |
/*
@font-face
{
font-family: 'Gotham-Book';
src: url(Gotham-Book.otf);
src: local('Gotham-Book'), local('Gotham-Book'), url(Gotham-Book.otf) format('opentype');
}
@font-face {
font-family: 'Muli';
font-style: normal;
font-weight: 400;
src: local('Muli'), url('http://themes.googleusercontent.com/s... | heladiofog/ecommerce_ci | css/style.css | CSS | mit | 16,646 |
<?php declare(strict_types=1);
namespace Tests\Tsufeki\HmContainer\Definition;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
use Tsufeki\HmContainer\Definition\Reference;
/**
* @covers \Tsufeki\HmContainer\Definition\Reference
*/
class ReferenceTest extends TestCase
{
public function te... | tsufeki/hmcontainer | tests/Tsufeki/HmContainer/Definition/ReferenceTest.php | PHP | mit | 734 |
using NSubstitute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace PoshGit2.TabCompletion
{
public class TabCompletionTests
{
private readonly ITestOutputHelper _log;
... | twsouthwick/poshgit2 | test/PoshGit2.TabCompletion.Tests/TabCompletionTests.cs | C# | mit | 24,041 |
package org.fayalite.sjs
import org.fayalite.sjs.canvas.CanvasBootstrap
import org.scalajs.dom
import org.scalajs.dom.Node
import org.scalajs.dom.raw.CanvasRenderingContext2D
import org.scalajs.dom.raw.HTMLCanvasElement
import rx.core.{Rx, Var}
/**
* Created by aa on 3/17/2016.
*/
object Schema extends SJSHelp {... | ryleg/fayalite | src/main/scala/org/fayalite/sjs/Schema.scala | Scala | mit | 5,152 |
var Purest = require('purest');
function Facebook(opts) {
this._opts = opts || {};
this._opts.provider = 'facebook';
this._purest = new Purest(this._opts);
this._group = 'LIB:SOCIAL:FACEBOOK';
return this;
}
Facebook.prototype.user = function (cb) {
var self = this;
this._purest.query()
... | selcukfatihsevinc/app.io | lib/social/facebook.js | JavaScript | mit | 1,038 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Note Detail</title>
<script
src="http://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
cr... | marclabud/cas_fee_projectone | src/notedetail/noteDetail.html | HTML | mit | 5,137 |
<?php
namespace Lollipop;
defined('LOLLIPOP_BASE') or die('Lollipop wasn\'t loaded correctly.');
/**
* Benchmark Class
*
* @author John Aldrich Bernardo
* @email 4ldrich@protonmail.com
* @package Lollipop
* @description Class for recording benchmarks
*/
class Benchmark
{
/*... | jabernardo/lollipop-php | Library/Benchmark.php | PHP | mit | 2,593 |
#include <windows.h>
#include "NativeCore.hpp"
bool RC_CallConv IsProcessValid(RC_Pointer handle)
{
if (handle == nullptr)
{
return false;
}
const auto retn = WaitForSingleObject(handle, 0);
if (retn == WAIT_FAILED)
{
return false;
}
return retn == WAIT_TIMEOUT;
}
| KN4CK3R/ReClass.NET | NativeCore/Windows/IsProcessValid.cpp | C++ | mit | 281 |
#!/usr/bin/env bash
# build datatheme resources
# usage: $ bash ./publi.sh
# build & deploys datatheme resources to host s3 bucket
# usage: $ bash ./publi.sh put dev.afgo.pgyi
# dependencies:
# aws cli : http://aws.amazon.com/cli/
# nodejs : https://nodejs.org/
# bawlk : https://github.com/tesera/bawlk
datatheme_ro... | pulsifer/datatheme-mackenzie-pmd | publi.sh | Shell | mit | 1,549 |
#ifndef SKULL_SERVICE_TYPES_H
#define SKULL_SERVICE_TYPES_H
#include "api/sk_txn.h"
#include "api/sk_service.h"
struct _skull_service_t {
sk_service_t* service;
const sk_txn_t* txn;
sk_txn_taskdata_t* task;
// If freezed == 1, user cannot use set/get apis to touch data. Instead
// user s... | finaldie/skull | src/user-c/src/srv_types.h | C | mit | 447 |
# read only
In leveldb you may only open an instance in one process...
but you could have other processes open the database in read only mode
easily enough. You could also have each instance create it's own memtable,
(and tail other's memtables... as long as there weren't too many)
then you could have eventual consis... | dominictarr/goatdb | ideas.md | Markdown | mit | 962 |
#ifndef BITCOINGUI_H
#define BITCOINGUI_H
#include <QMainWindow>
#include <QSystemTrayIcon>
#include <QLabel>
#include <QMap>
#include "util.h"
class TransactionTableModel;
class WalletView;
class ClientModel;
class WalletModel;
class WalletStack;
class TransactionView;
class OverviewPage;
class AddressBookPage;
cl... | Meee32/NET-TEST | src/qt/bitcoingui.h | C | mit | 9,461 |
package dev.jee6demo.jspes;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... | fegalo/jee6-demos | jsp/jsp-eventsource/src/main/java/dev/jee6demo/jspes/EventSourceServlet.java | Java | mit | 1,399 |
<?php
/**
* This file is part of the PrestaCMSThemeBasicBundle
*
* (c) PrestaConcept <www.prestaconcept.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Presta\CMSThemeBasicBundle\DependencyInjection;
use Symfony\Com... | prestaconcept/PrestaCMSThemeBasicBundle | DependencyInjection/Configuration.php | PHP | mit | 1,183 |
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace XF_ManySwitches.Droid
{
[Activity(Label = "XF_ManySwitches", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | Con... | ytabuchi/Study | XF_ManySwitches/XF_ManySwitches/XF_ManySwitches.Droid/MainActivity.cs | C# | mit | 670 |
describe('controllers/home', function () {
var di,
Core,
Home,
Type,
contentModel = {
findOne: function() {
}
},
widgetHooks = [],
widgetHook = {
load: function (a, b, c) {
widgetHooks.push({
... | Siljanovski/gapi | tests/controllers/home-unit-spec.js | JavaScript | mit | 6,456 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | kuhlenh/port-to-core | Reports/fl/flitbit.ioc.3.2.1/FlitBit.IoC-net451.html | HTML | mit | 52,198 |
#ifndef APPSETTINGSSTORAGE_H
#define APPSETTINGSSTORAGE_H
#include <QDebug>
#include <QCoreApplication>
#include <QString>
#include <QMap>
#include <QSettings>
#include <QDir>
class AppSettingsStorage
{
public:
enum Settings {
ACCOUNT_LOGIN = 0,
ACCOUNT_PASS,
APP_RUN_ON_BOOT,
APP_S... | dmitrysl/qt-mclaut-notifier | appsettingsstorage.h | C | mit | 1,015 |
<?php
return array(
/** @brief Table de liaison avec les mots clés */
'table_liaison' => 'jayps_search_word_occurence',
/** @brief Préfixe de la table de liaison avec les mots clés */
'table_liaison_prefixe' => 'mooc_',
/** @brief mots clés interdits */
'forbidden_words' => array(
// ... | novius/jayps_search | config/config.php | PHP | mit | 1,338 |
/* vim: set syntax=javascript ts=8 sts=8 sw=8 noet: */
/*
* Copyright 2016, Joyent, Inc.
*/
var BINDING = require('./lockfd_binding');
function
check_arg(pos, name, value, type)
{
if (typeof (value) !== type) {
throw (new Error('argument #' + pos + ' (' + name +
') must be of type ' + type));
}
}
functi... | joyent/node-lockfd | lib/index.js | JavaScript | mit | 2,075 |
'use strict';
angular.module('depthyApp')
.controller('DrawCtrl', function ($scope, $element, depthy, $window, $timeout) {
var drawer = depthy.drawMode,
viewer = depthy.getViewer(),
lastPointerPos = null,
oldViewerOpts = angular.extend({}, depthy.viewer);
drawer.setOptions(depthy.drawOpti... | amcassetti/parallax-pro-creator | app/scripts/controllers/draw.js | JavaScript | mit | 6,782 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... | Lefter1s/BigBang | src/qt/locale/bitcoin_el_GR.ts | TypeScript | mit | 128,896 |
<?php
function event_stat_alexa_calculated($ranks){
}
function event_stat_similarweb_calculated($ranks){
} | iqbalfn/admin | application/events/stat.php | PHP | mit | 114 |
#include <stdio.h>
int main() {
int current_char, previous_char;
printf("Input text below, multiple spaces will be escaped:\n");
previous_char = -1;
while((current_char = getchar()) != EOF) {
if (!(current_char == ' ' && previous_char == ' ')) {
putchar(current_char);
}
previous_char = cu... | moki/The-C-Programming-Language-walkthrough | chapter-1-A-Tutorial-Introduction/escape-multiple-blanks.c | C | mit | 337 |
<!DOCTYPE html>
<html dir="rtl" lan="en">
<head>
<meta charset="utf-8">
<title>2018-AR-07-arrows</title>
<script>
window.stringsLanguage = 'ar';
</script>
<script class="remove" type="text/javascript" src="../../../_common/modules/pemFioi/importModules-1.1_M.js" id="i... | France-ioi/bebras-tasks | bebras/2018/2018-HU-07-arrows/index_ar_eg.html | HTML | mit | 21,360 |
<ion-header>
<ion-navbar>
<ion-title>会议查询</ion-title>
<!-- <ion-buttons end (click)="presentPopover($event)">
<button ion-button icon-only>
<ion-icon name="search"></ion-icon>
</button>
</ion-buttons> -->
</ion-navbar>
<div>
<tab-slide (... | cicixiaoyan/OA_WEBApp | OA_WEBApp/src/pages/meeting/meeting-search/meeting-search.html | HTML | mit | 1,768 |
---
layout: tag_index
tag: libraries
---
| femgeekz/femgeekz.github.io | tag/libraries/index.html | HTML | mit | 41 |
// ***********************************************************************
// <copyright file="AssemblyInfo.cs" company="Holotrek">
// Copyright © Holotrek 2016
// </copyright>
// ***********************************************************************
using System.Reflection;
using System.Runtime.CompilerServices... | holotrek/kore-csharp | Kore/Domain/EF/Kore.Domain.EF.Tests/Properties/AssemblyInfo.cs | C# | mit | 1,736 |
<td>
{{item.name}}
</td>
<td>
{{item.age}}
</td>
<td>
{{item.sex}}
</td> | ectechno/mulgala | PlatformProject.SPA/App/sampleService/tableComponents/tableTemplate.html | HTML | mit | 91 |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class My_PHPMailer {
public function My_PHPMailer()
{
require_once('class.phpmailer.php');
}
}
?> | ProyectoDAW2/Proyecto | application/libraries/my_phpmailer.php | PHP | mit | 177 |
<?php
return array(
'service_manager' => array(
'factories' => array(
'Twilio\Options\ModuleOptions' => 'Twilio\Options\Factory\ModuleOptionsFactory',
'Twilio\Service\TwilioService' => 'Twilio\Service\Factory\TwilioServiceFactory'
)
)
);
| al3xdm/Twilio | config/module.config.php | PHP | mit | 287 |
<?php
$lang['date_year'] = 'Ano';
$lang['date_years'] = 'Anos';
$lang['date_month'] = 'Mês';
$lang['date_months'] = 'Meses';
$lang['date_week'] = 'Semana';
$lang['date_weeks'] = 'Semanas';
$lang['date_day'] = 'Dia';
$lang['date_days'] = 'Dias';
$lang['date_hour'] = 'Hora';
$lang['date_hours'] = 'Horas';
$lang['date_min... | srpurdy/SharpEdgeCMS | framework_2_2_3/language/pt-BR/date_lang.php | PHP | mit | 3,088 |
<!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... | waitman/red | doc/html/classItem-members.html | HTML | mit | 16,319 |
// Package time extends the time package in the stdlib.
package time
| goph/stdlib | time/time.go | GO | mit | 69 |
/* eslint-disable node/no-deprecated-api */
module.exports.pathBasename = pathBasename
module.exports.hasSuffix = hasSuffix
module.exports.serialize = serialize
module.exports.translate = translate
module.exports.stringToStream = stringToStream
module.exports.debrack = debrack
module.exports.stripLineEndings = stripLi... | linkeddata/ldnode | lib/utils.js | JavaScript | mit | 6,588 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.