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 |
|---|---|---|---|---|---|
<?php
//2382364672-2399141887
$ranges=Array(
"2382430208" => array("2382495743","CA"),
"2382495744" => array("2382561279","CA"),
"2382561280" => array("2382626815","CA"),
"2382626816" => array("2382692351","CA"),
"2382692352" => array("2382757887","CA"),
"2382757888" => array("2382823423","CA"),
"2382823424" => array("... | NikoRoberts/BuzzerBeaterStats | scripts/c_ip/142.php | PHP | mit | 9,164 |
package twg2.template.codeTemplate;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @param <T> the {@link ClassInfo} to build
*
* @author TeamworkGuy2
* @since 2015-1-24
*/
public final class ClassTemplateBuilder<T extends ClassInfo> {
private T tmpl;
public ClassTemplateBuild... | TeamworkGuy2/JTwg2Templating | src/twg2/template/codeTemplate/ClassTemplateBuilder.java | Java | mit | 5,967 |
<?php
get_header();
$sidebar = ot_get_option( 'search_page_sidebar', 'yes' );
$content_class = 'sixteen';
if ( $sidebar == 'yes' )
$content_class = 'eleven';
$cat_title = single_cat_title( '', false );
$cat_id = get_query_var( 'cat' );
$count = 0;
global $paged;
?>
<div class="pageTitle">
<div clas... | mandino/www.bloggingshakespeare.com | reviewing-shakespeare/wp-content/themes/reviewing-shakespeare/search.php | PHP | mit | 5,913 |
$(document).ready(function() {
//Note: default min/max ranges are defined outside of this JS file
//include "js/BoulderRouteGradingSystems.js" before running this script
//generate Bouldering rating selection upon click
//Find which boulder grading system is selected and update the difficulty range
//*********... | shimizust/trackyourclimb | js/preferences.js | JavaScript | mit | 8,494 |
<html>
<head>
<title>OGRE: OgreShaderExPerPixelLighting.h File Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link type="text/css" rel="stylesheet" href="doxygen.css">
<link type="text/css" rel="stylesheet" href="tabs.css">
</head>
<body>
<!-- Generate... | lennonchan/OgreSource | Docs/api/html/OgreShaderExPerPixelLighting_8h.html | HTML | mit | 3,137 |
<HTML><HEAD>
<TITLE>Review for Mercury Rising (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0120749">Mercury Rising (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Nathaniel... | xianjunzhengbackup/code | data science/machine_learning_for_the_web/chapter_4/movie/11831.html | HTML | mit | 5,481 |
<?php
declare(strict_types=1);
namespace App\Persistence\Query\Constraint;
class Lt extends FieldValue
{
const OP = '<';
} | kilahm/minutes | back/Persistence/Query/Constraint/Lt.php | PHP | mit | 128 |
# YADB
Personal Development Blog / Journal
<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
{{ post.excerpt }}
</li>
{% endfor %}
</ul>
| drew-y/drew-y.github.io | README.md | Markdown | mit | 197 |
'use strict';
jQuery(document).ready(function ($) {
var lastId,
topMenu = $("#top-navigation"),
topMenuHeight = topMenu.outerHeight(),
// All list items
menuItems = topMenu.find("a"),
// Anchors corresponding to menu items
scrollItems = menuItems.map(function () {
... | SamuelRocha2015/ch-v3 | assets/js/app.js | JavaScript | mit | 14,062 |
require 'simplecov'
require 'coveralls'
Coveralls.wear!
SimpleCov.start 'rails' do
SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
add_filter '/spec/'
end
require 'lita-wit'
require 'lita/rspec'
require 'lita_config'
# A compatibility mode is provided ... | dbastin/lita-wit | spec/spec_helper.rb | Ruby | mit | 753 |
<div class="header">
<h1>Yardım ve Destek</h1>
</div>
<div class="main">
<div class="content wide">
<p>Xubuntu hakkında en ortak sorulan alanlar ve soruların çoğunu kapsayan Resmi
Belgelendirme'si, her Xubuntu sürümü ile birlikte gelir. Buna ana menüden
Yardım tıklayarak ulaşabilirsiniz.</p>
<p>Belgelendirmeye... | educatie/installer | slides/l10n/tr/06_support.html | HTML | mit | 1,218 |
import {Issue} from "../issue";
import {IObject} from "../objects/_iobject";
import {IRule, IRuleMetadata, RuleTag} from "./_irule";
import {BasicRuleConfig} from "./_basic_rule_config";
import {IRegistry} from "../_iregistry";
export class AllowedObjectNamingConf extends BasicRuleConfig {
}
export class AllowedObjec... | larshp/abapOpenChecksJS | packages/core/src/rules/allowed_object_naming.ts | TypeScript | mit | 1,693 |
---
layout: post
title: MA Parish Using Social Media/Website Effectively
author: Jeff Geerling
nid: 288
comments: true
redirect_from: /blog/oscatholic/ma-parish-using-social/
created: 1277481145
---
<p>After reading <a href="http://www.catholicnews.com/data/stories/cns/1002362.htm">this article from the CNS</a> about a... | open-source-catholic/opensourcecatholic.com | _posts/2010-06-25-ma-parish-using-social-media-website-effectively.md | Markdown | mit | 2,238 |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_09_01/aio/operations/_load_balancers_operations.py | Python | mit | 23,464 |
<?php
abstract class BaseGgSettingsPeer {
const DATABASE_NAME = 'propel';
const TABLE_NAME = 'gg_settings';
const CLASS_DEFAULT = 'lib.model.GgSettings';
const NUM_COLUMNS = 3;
const NUM_LAZY_LOAD_COLUMNS = 0;
const ID = 'gg_settings.ID';
const PARAM = 'gg_settings... | vincent03460/fxcmiscc-partner | lib/model/om/BaseGgSettingsPeer.php | PHP | mit | 9,104 |
/* eslint-env jasmine, jest */
import React from 'react';
import View from '../';
import StyleSheet from '../../StyleSheet';
import { act } from 'react-dom/test-utils';
import { createEventTarget } from 'dom-event-testing-library';
import { render } from '@testing-library/react';
describe('components/View', () => {
... | necolas/react-native-web | packages/react-native-web/src/exports/View/__tests__/index-test.js | JavaScript | mit | 8,530 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... | BuzzAcademy/idioms-moe-unformatted-data | all-data/14000-14999/14462-22.html | HTML | mit | 1,895 |
/*
* Globalcode - "The Developers Company"
*
* Academia do Java
*
*/
public abstract class Agencia {
private String numero;
private Banco banco;
/**
* @param num
* Numero da agencia
* @param bc
* banco ao qual a agencia pertence
*/
public Agencia(Str... | andersonsilvade/workspacejava | engsoft1globalcode/aj2lab10_02/src/Agencia.java | Java | mit | 2,802 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02.Rabbits
{
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine();
var rabbitAnswers = input.Split(' ').Select(i... | TsvetanRazsolkov/Telerik-Academy | Homeworks/Programming/DSA/17.Workshop-Strings-Greedy-2015.11.27/02.Rabbits/Program.cs | C# | mit | 1,645 |
/*
* Globalize Culture co
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this file... | bevacqua/jscharting | bundle/JSC/cultures/globalize.culture.co.js | JavaScript | mit | 1,986 |
package com.ccsi.commons.dto.tenant;
/**
* @author mbmartinez
*/
public class BaseCcsiInfo {
protected Long id;
protected String name;
protected String description;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public... | lordmarkm/ccsi | ccsi-commons/src/main/java/com/ccsi/commons/dto/tenant/BaseCcsiInfo.java | Java | mit | 595 |
// TriAppSkeleton.cpp
#ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
#endif
#include <GL/glew.h>
#include "AppSkeleton.h"
#include "GL/GLUtils.h"
#include "GL/ShaderFunctions.h"
#include "MatrixMath.h"
#include "utils/Logger.h"
#include "paramgl.h"
#include "TriAppSkeleton.... | jimbo00000/OpenGLMultiSkeleton | src/appskeleton/TriAppSkeleton.cpp | C++ | mit | 3,856 |
Cory started working with the internet way back in 2001 when she chanced her way into a position as web content editor for the Aussie version of the X-Games. Since then she's dabbled in PR, marketing, events management, a skateboard shop, worked as a barista, accrued a blank IMDB profile, run pub poker tournaments in r... | conc-at/2018.conc.at | app/talks/joseph.bio.md | Markdown | mit | 561 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/test/fake_server/bookmark_entity.h"
#include <string>
#include "base/basictypes.h"
#include "base/guid.h"
#include "sync/internal_api/pub... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/sync/test/fake_server/bookmark_entity.cc | C++ | mit | 4,239 |
(function () {
'use strict';
angular.module('customers')
.controller('OneCustomerCtrl', function ($scope, customers, $stateParams) {
var cid = $stateParams.cid;
$scope.customer=_.find(customers, function (customer) {
return customer.profile.userName===cid;
... | SvitlanaShepitsena/remax16 | app/scripts/customers/controllers/OneCustomerCtrl.js | JavaScript | mit | 393 |
<i rel="tooltip" title="<span class="tooltip_message">{{ message }}</span>"><img src="{{ icon_url }}" alt="tooltip"></i>
<script type="text/javascript">
jQuery(function(){
$("[rel=tooltip]").tooltip({ html: 'true', trigger: 'click hover'});
});
</script> | myrjola/neverlate | django/templates/tooltip.html | HTML | mit | 280 |
var exptemplate = require('../prepublic/javascripts/exptemplate');
module.exports = exptemplate;
| addrummond/nodeibexfarm | lib/exptemplate.js | JavaScript | mit | 97 |
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("Va... | BlueDress/School | C# OOP Basics/Encapsulation/Validation Data/Properties/AssemblyInfo.cs | C# | mit | 1,406 |
PriceCharts.jl is licensed under the MIT License:
> Copyright (c) 2013: Algorithm Alpha, LLC and other 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, i... | milktrader/TimeCharts.jl | LICENSE.md | Markdown | mit | 1,178 |
using System.Collections.Generic;
using BEPUphysics.Constraints.SolverGroups;
using BEPUphysics.Constraints.TwoEntity.Motors;
using BEPUphysics.Entities.Prefabs;
using BEPUutilities;
using BEPUphysics.Entities;
using BEPUphysics.CollisionRuleManagement;
using Microsoft.Xna.Framework.Input;
using System;
using BEPUphys... | karrtmomil/coms437_assignment2 | 3DAsteroids/3DAsteroids/BEPUphysicsDemos/BEPUphysicsDemos/Demos/SpiderDemo.cs | C# | mit | 10,023 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Doge Social Network - Friends</title>
</head>
<body style="background:skyblue">
<h1>Doge Social Network</h1>
<nav>
<ul>
<li>
<a href="home.html">
Home
</a>
</li>
<li>
<a href="profile.html">
Profile
</a>
</li>
<l... | AYankova/HTML-CSS | HTMLFundamentals/Doge/friends.html | HTML | mit | 757 |
/**
* Created by jsturtevant on 1/18/14
*/
var DEFAULT_SHORTCUT_KEY = 'ctrl+shift+k';
var LOCAL_STORAGE_KEY = 'optionsStore'
var defaultOptions = {
shortcuts: [
{key: "", value:""}
],
cssSelectors: [{value:""}],
shortcutKey: DEFAULT_SHORTCUT_KEY,
includeIFrames: true
};
var optionsApp = ... | jsturtevant/expander | app/scripts/options.js | JavaScript | mit | 2,125 |
package flow;
/**
* This interface is used to define the name of variables that are
* declared in the call flow. All variables are defined as
* <code>public static final String</code>, which allows user-defined
* code to reference variable names by the Java variable name.
* Last generated by Orchestration Desi... | RadishSystems/choiceview-webapi-avaya-demo | RadishTest/WEB-INF/src/flow/IProjectVariables.java | Java | mit | 6,735 |
<?php
/* To jest proba*/
namespace Mcc\Bundle\ASMemberBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('MccASMemberBundle:Default:index.html.twig', array('name' => $name))... | KonradMasalski/ASMember | src/Mcc/ASMemberBundle/Controller/DefaultController.php | PHP | mit | 330 |
/*
GWEN
Copyright (c) 2012 Facepunch Studios
See license in Gwen.h
*/
#include <rose/Rose.hpp>
#include <rose/Utility.hpp>
#include <rose/Skin.hpp>
#include <rose/ctl/PageControl.hpp>
#include <rose/ctl/Controls.hpp>
using namespace rose;
using namespace rose::ctl;
GWEN_CONTROL_CONSTRUCTOR(... | FRex/rose | src/rose/PageControl.cpp | C++ | mit | 4,144 |
"""Contains tests for oweb.views.updates.item_update"""
# Python imports
from unittest import skip
# Django imports
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from django.contrib.auth.models import User
# app imports
from oweb.tests import OWebViewTests
from oweb.models... | Mischback/django-oweb | oweb/tests/views/item_update.py | Python | mit | 10,246 |
import { BecauseError } from "../../errors";
import { Response } from "../../response";
import { parse_response } from "../../parse";
import { JWT, LazyJWT } from "./jwt";
class TokenParseError extends BecauseError {
}
// https://github.com/boundlessgeo/bcs/blob/master/bcs-token-service
// /src/main/java/com/boundl... | harts-boundless/because.js | src/services/token/parse.ts | TypeScript | mit | 3,733 |
package piskvork;
/**
* Root interface for a Piskvork command. A command must provide a string to
* send to the AI, and a method to validate the response.
*/
public interface PiskvorkCommand {
/**
* Get the string for this command to send to the AI.
* @return String identifier of the command, e.g. TU... | haslam22/gomoku | src/main/java/piskvork/PiskvorkCommand.java | Java | mit | 898 |
/* Copyright (C) 2001, 2008 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.render;
import gov.nasa.worldwind.geom.*;
import gov.nasa.worldwind.render.airspaces.*;
import javax.media.opengl.*;
... | caadxyz/Macro-Thinking-Micro-action | experimental/gov/nasa/worldwind/render/SurfaceCircle2.java | Java | mit | 1,719 |
# DU-Better
Learn Somethings
## 2017/1/3
### chmod
$ chmod [options] mode[,mode] file1 [file2 ...]
r 4
w 2
x 1
\- 0
<a href="https://zh.wikipedia.org/wiki/Chmod">link</a>
## 2017/1/4
### php install ubuntu
document: http://php.net/manual/zh/
<a href="http://www.linuxidc.com/Linux/2016-01/127180.htm">... | yinruyi/DU-Better | README.md | Markdown | mit | 840 |
.PHONY: all
all: sphinx
# doctrees used for searching
SPHINXOPTS=-n -W -d _build/doctrees .
.PHONY: sphinx
sphinx:
PYTHON=$(which python3) sphinx-build -b html $(SPHINXOPTS) _build/html
| manhg/tokit | example/doc/Makefile | Makefile | mit | 190 |
// MIT License
//
// Copyright (c) 2016 Fingercomp
//
// 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, ... | Fingercomp/game-of-life | src/main.cpp | C++ | mit | 10,463 |
import { fromJS, OrderedMap } from 'immutable';
const vaccines = fromJS([
{
name: 'AVA (BioThrax)',
id: '8b013618-439e-4829-b88f-98a44b420ee8',
diseases: ['Anthrax'],
},
{
name: 'VAR (Varivax)',
id: 'f3e08a56-003c-4b46-9dea-216298401ca0',
diseases: ['Varicella (Chickenpox)'],
},
{
... | nikgraf/CarteJaune | constants/vaccines.js | JavaScript | mit | 5,870 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "db.h"
#i... | deemkeen/leprocoin | src/net.cpp | C++ | mit | 57,969 |
export class Entry {
title: string;
photo: string;
description: string;
comments: any[];
} | TechGladiator/Treehouse | angular-basics/src/app/entries/shared/entry.model.ts | TypeScript | mit | 98 |
#include<stdio.h>
#include<string.h>
int main(){
char izr[1000], ts='a', tb='A';
int i, br=0;
fgets(izr, 1000, stdin);
for(;ts<='z' && tb<='Z';ts++, tb++){
br=0;
for(i=0; i<strlen(izr); i++){
if(izr[i] == ts || izr[i] == tb){
br++;
}
}
... | elsys/c-programming-homework | A/04/07/03_Frequency.c | C | mit | 387 |
##
# This code was generated by
# \ / _ _ _| _ _
# | (_)\/(_)(_|\/| |(/_ v1.0.0
# / /
module Twilio
module REST
class Chat < Domain
##
# Initialize the Chat Domain
def initialize(twilio)
super
@base_url = 'https://chat.twilio.com'
@host = 'chat.twil... | Yasu31/TK_1720 | app/loverduck_app/vendor/bundle/ruby/2.4.0/gems/twilio-ruby-5.4.3/lib/twilio-ruby/rest/chat.rb | Ruby | mit | 1,229 |
#!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings.prod')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| monovertex/ygorganizer | manage.py | Python | mit | 247 |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Orleans.Runtime.Configuration;
using Orleans.MultiCluster;
using Orleans.Versions.Compatibility;
using Orleans.Versions.Selector;
namespace Orleans.Runtime
{
/// <summary>
/// Interface for system management functions of silos,... | bstauff/orleans | src/Orleans/SystemTargetInterfaces/IManagementGrain.cs | C# | mit | 12,177 |
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<base href="https://neandr.github.io/piSchedule/" >
<title>piSchedule - Job Editor</title>
<!-- HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/s... | neandr/piSchedule | docs/en.scheduleEdit.html | HTML | mit | 10,489 |
import os
import sys
import pygame
import signal
import time
import ConfigParser
from twython import TwythonStreamer
#-----------------------------------------------------------------------------
# Import custom modules
#-----------------------------------------------------------------------------
# Add pyscope modul... | ShawnHymel/TweetRace | pytest/wager_test_01.py | Python | mit | 5,938 |
package com.martin.lolli;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Fragment;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.ActionBarDrawerTogg... | martindisch/Lolli | app/src/main/java/com/martin/lolli/NavigationDrawerFragment.java | Java | mit | 10,019 |
<?php
$id = $_GET['id'];
$link = mysqli_connect("localhost",
"root",
"lict@2",
"crud");
$query = "select * from ict_skills WHERE id = $id";
$result = mysqli_query($link, $query);
$row = mysqli_fetch_assoc($result);
?>
<form action="update.php" method="post">
<input type="hidden" name="id" value="<?php e... | Muktaranibiswas/Assignment_crud | ict_skills/edit.php | PHP | mit | 1,875 |
(function (r) {
"use strict";
var events = r('events');
var eventEmitter = new events.EventEmitter();
var playerManager = r('../PlayerSetup/player-manager').playerManager;
var helper = r('../helpers');
var world = {
valston: r('../../World/valston/prison')
};
var time... | LiamKenneth/MudDungeonJS | Game/Core/Events/time.js | JavaScript | mit | 12,168 |
require_relative '../spec_helper'
describe Expense do
describe "#new" do
subject {Expense.new(name: "water bill", amount: 100, recurrance: "annually", description: "lets me shower")}
its(:name) { should == "water bill"}
its(:amount) { should == 100}
its(:recurrance) { should == "annually"}
its(:des... | mknicos/dynamic-income-budget | spec/models/expense_spec.rb | Ruby | mit | 15,439 |
<?php
namespace Distill\Tests\Method\Command;
use Distill\Method;
use Distill\Format;
use Distill\Tests\Method\AbstractMethodTest;
class UnrarTest extends AbstractMethodTest
{
public function setUp()
{
$this->method = new Method\Command\Unrar();
if (false === $this->method->isSupported()) {... | xabbuh/distill | tests/Method/Command/UnrarTest.php | PHP | mit | 1,467 |
<?php
/**
* Created by PhpStorm.
* User: SSOMENS-022
* Date: 15/5/15
* Time: 11:13 AM
*/
class Mdl_access_rights_terminate_search_update extends CI_Model{
public function URT_SRC_errormsg_loginid($URT_SRC_source){
$URT_SRC_errorarray =array();
$USRC_arr_loginid =array();
$USRC_arr_u... | Rajagunasekaran/sample | application/models/ACCESS RIGHTS/Mdl_access_rights_terminate_search_update.php | PHP | mit | 17,707 |
using MomWorld.DataContexts;
using MomWorld.Entities;
using MomWorld.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MomWorld.Controllers
{
public class ChatController : Controller
{
private IdentityDb identityDb = new Iden... | shortgiraffe4/MomWorld | MomWorld/Controllers/ChatController.cs | C# | mit | 714 |
# Concepts for scale-generator
A note about the exercise: as one with a graduate degree in Music Theory and Composition, this one drove me nuts. The way it approached steps and tonality was at a minimum, not standard. Specifically, I think the explanation and solution could be simplified if it addressed the issue of e... | exercism/xelixir | reference/exercise-concepts/scale-generator.md | Markdown | mit | 8,105 |
namespace MyApp.Core.Commands
{
using AutoMapper;
using MyApp.Core.Commands.Contracts;
using MyApp.Core.ViewModels;
using MyApp.Data;
using System.Linq;
public class EmployeePersonalInfoCommand : ICommand
{
private readonly MyAppContext context;
private readonly ... | Ivelin153/SoftUni | C# DB/C# DB Advanced/Automapper_/MyApp/Core/Commands/EmployeePersonalInfoCommand.cs | C# | mit | 978 |
# Scheme 5
## Wie können in Scheme lokale Namen definiert werden?
```
(local (<definition1>...<definitionN>) <expression>)
```
## Wie kann eine lokale Funktion zum Verdoppeln einer Liste genutzt werden?
```
(define (redouble a-list)
(local (
(define (f x) (* x 2))
(define (g a-numlist) (cond
... | chefe/summaries | pcp/07A-Scheme.md | Markdown | mit | 1,869 |
#  SocketMessaging
*SocketMessaging* is a package with wrappers around `System.Net.Sockets.Socket`, much like the C# internal classes `TcpClient` and `TcpListener`.
Major benfits over the internal classes are:
* Event-d... | aquamoth/SocketMessaging | README.md | Markdown | mit | 6,969 |
/**
* 页面管理
* @author: SimonHao
* @date: 2015-12-19 14:24:08
*/
'use strict';
var path = require('path');
var fs = require('fs');
var extend = require('extend');
var mid = require('made-id');
var file = require('./file');
var config = require('./config');
var page_list = {};
var comm_option = confi... | simonhao/made-build | lib/page.js | JavaScript | mit | 3,662 |
package org.bouncycastle.asn1.cms;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1Set;
import org.bouncycastle.as... | sake/bouncycastle-java | src/org/bouncycastle/asn1/cms/EncryptedData.java | Java | mit | 2,516 |
#!/usr/bin/env zsh
#
# Author: Denys Dovhan, denysdovhan.com
# https://github.com/spaceship-prompt/spaceship-prompt
# ------------------------------------------------------------------------------
# Colors
# Set color variables for colorful output
# ---------------------------------------------------------------------... | denysdovhan/spaceship-zsh-theme | scripts/install.sh | Shell | mit | 3,867 |
<?php
if (DEBUG_MODE) ini_set("display_errors", 1);ini_set("display_startup_errors",1);error_reporting(-1);
session_start();
require_once("Config.php");
require_once("autoload.php");
require_once('forum/SSI.php');
$uri = $_SERVER['REQUEST_URI'];
$controller = explode('/', $uri);
$controller = array_slice($con... | kiuru/kiekkoliiga | index.php | PHP | mit | 893 |
//===- FindUsedTypes.cpp - Find all Types used by a module ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------... | abduld/clreflect | extern/llvm/lib/Analysis/IPA/FindUsedTypes.cpp | C++ | mit | 3,524 |
require_dependency "taiwan_districts/application_controller"
module TaiwanDistricts
class DataController < ApplicationController
def show
data = TaiwanDistricts.list(params[:lang], params[:id])
render json: data, layout: nil
end
def index
end
end
end
| bugtender/TaiwanDistricts | app/controllers/taiwan_districts/data_controller.rb | Ruby | mit | 285 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Search results</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"... | mfmakeup/mfmakeup.github.io | search.php | PHP | mit | 4,789 |
using System;
using System.Collections;
using System.Collections.Generic;
using Bender;
using Bender.Collections;
using Bender.Extensions;
using Bender.Reflection;
using NUnit.Framework;
using Should;
using Tests.Collections.Implementations;
namespace Tests.Serializer.Json
{
[TestFixture]
public... | mikeobrien/Bender | src/Tests/Serializer/Json/ArrayTests.cs | C# | mit | 16,448 |
<?php
/**
* The Opera Framework
* Cookies.php
*
* @author Marc Heuker of Hoek <me@marchoh.com>
* @copyright 2016 - 2017 All rights reserved
* @license MIT
* @created 27-8-16
* @version 1.0
*/
namespace Opera\Component\Http;
use ArrayIterator;
use IteratorAggregate;
use Traversable;
class Cookies i... | theopera/framework | src/Component/Http/Cookies.php | PHP | mit | 823 |
export { default } from 'ember-flexberry-gis/components/flexberry-wfs-filter'; | Flexberry/ember-flexberry-gis | app/components/flexberry-wfs-filter.js | JavaScript | mit | 78 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Untitled Document</title>
<metaname="viewport" content="width=device-width,user-scalable=no"/>
<link rel="stylesheet" href="cssreset.css"/>
<style type="text/css">
#content {
width: 90%;
margin: 10px auto;
height: auto;
}
... | zhaishuai/jingmintong | PoliceMessageBoard/PoliceMessageBoard/扰乱单位秩序,选举秩序.html | HTML | mit | 2,526 |
<!doctype html>
<html class="no-js" lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hannah Jones | Web Developer</title>
<meta name="description" content="Coderjones.com is a portfol... | MrsHannahJ/portfolio | src/index.html | HTML | mit | 16,106 |
# Frozen-string-literal: true
# Encoding: utf-8
require 'rubygems'
require 'yaml'
module Jekyll
module LanguagePlugin
module Loaders
class BuiltinDataLoader < BaseLoader
attr_reader :data
def initialize(site)
super
@data = Hash.new
end
def loaded?(lang... | vwochnik/jekyll-language-plugin | lib/jekyll/language-plugin/loaders/builtin_data_loader.rb | Ruby | mit | 962 |
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "Donguili");
sf::Music sound;
if (!sound.openFromFile("C:/Users/Alpha/Documents/Donguili/bin/Debug/test.ogg"))
return -1; // erreur
sound.play();
while (win... | haaggen/Donguili | main.cpp | C++ | mit | 910 |
<!DOCTYPE HTML>
<html lang="en" >
<!-- Start book WDI Darth Vader -->
<head>
<!-- head:start -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Backbone.js | WDI Darth Vader</title>
<meta content="text/html; charset=utf-8" http-equiv... | ga-chicago/ga-chicago.github.io | darth-vader/08_restful_apis_backbonejs/Readme.html | HTML | mit | 61,716 |
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Created by jackrosenhauer on 5/5/15.
*/
public class Main {
public static void main(String[] args){
final int DEFAULT_PORT = 8080; // For security reasons, only root can use ports < 1024.
int portNumber = args.length >... | jackrosenhauer/web-server | src/Main.java | Java | mit | 983 |
._bp-debug-bar {
display: block;
position: fixed;
bottom: 0;
left: 0;
margin: 0;
font-family: "Helvetica Neue", helvetica, arial, sans-serif;
font-size: 12px;
width: 100%;
height: 32px;
line-height: 32px;
z-index: 9999;
background: #ECF0F1;
color: #434A54;
border-top: 2px solid... | lambirou/babiphp | resources/assets/css/debugbar.css | CSS | mit | 3,385 |
#include "hiscores.h"
#include "nucleo.h"
#include "galeria.h"
Hi_Scores::Hi_Scores(Nucleo *nucleo) : Widget( nucleo->screen, (SDL_Rect) {200, 50, 430, 520} )
{
this->nucleo = nucleo;
fuente = nucleo->galeria->get_fuente(CHICA2);
set_color(183, 238, 128);
refresh();
}
void Hi_Scores::refresh()
{
s... | jion/tetrabrick | hiscores.cpp | C++ | mit | 629 |
using Moq;
using RestSharp;
using System.Collections.Generic;
using Xunit;
namespace MarvelAPI.Test.Requests.StoryRequestTests
{
public class GetStoryTests : StoryRequestTestBase
{
[Fact]
public void Success()
{
// arrange
var storyId = 1;
var data =... | foilking/MarvelAPI | MarvelAPI.Test/Requests/StoryRequestTests/GetStoryTests.cs | C# | mit | 1,050 |
using System;
using System.Collections.Generic;
using Content.Server.AI.Utility.Actions;
using Content.Server.AI.Utility.Actions.Combat.Melee;
using Content.Server.AI.Utility.Considerations;
using Content.Server.AI.Utility.Considerations.Combat.Melee;
using Content.Server.AI.WorldState;
using Content.Server.AI.WorldSta... | space-wizards/space-station-14-content | Content.Server/AI/Utility/ExpandableActions/Combat/Melee/EquipMeleeExp.cs | C# | mit | 1,564 |
import asyncio
from abc import ABCMeta
from collections.abc import MutableMapping
from aiohttp import web
from aiohttp.web_request import Request
from aiohttp_session import get_session
from collections.abc import Sequence
AIOLOGIN_KEY = '__aiologin__'
ON_LOGIN = 1
ON_LOGOUT = 2
ON_AUTHENTICATED = 3
ON_FORBIDDEN = 4... | trivigy/aiologin | aiologin/__init__.py | Python | mit | 7,901 |
//
// BaseRequset.h
// DrinkingW
//
// Created by 王宏洋 on 2016/12/23.
// Copyright © 2016年 WHY. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <ReactiveObjC/ReactiveObjC.h>
#import "APIClient.h"
@interface BaseRequset : NSObject<RequestConstraint>
@property (nonatomic, strong, readonly) NSDate... | lforme/EasyNetworking | EasyNetworking/NetworkingTool/BaseRequset.h | C | mit | 506 |
lychee.define('Font').exports(function(lychee) {
var Class = function(spriteOrImages, settings) {
this.settings = lychee.extend({}, this.defaults, settings);
if (this.settings.kerning > this.settings.spacing) {
this.settings.kerning = this.settings.spacing;
}
this.__cache = {};
this.__images = null;
... | Smotko/lycheeJS | lychee/Font.js | JavaScript | mit | 2,768 |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M8 9v1.5h2.25V15h1.5v-4.5H14V9H8zM6 9H3c-.55 0-1 .45-1 1v5h1.5v-1.5h2V15H7v-5c0-.55-.45-1-1-1zm-.5 3h-2v-1.5h2V12zM21 9h-4.5c-.55 0-1 .45-1 1v5H17v-4.5h1V14h1.5v-3.51h1V15H22v-5c0-.55-.45-1-1-1z"
}... | AlloyTeam/Nuclear | components/icon/esm/atm-outlined.js | JavaScript | mit | 338 |
<style>
body {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
/* Ca ne va pas jusqu'en bas, malgré un height 100% :s donc je laisse à blanc, pour le moment ... */
background-color: #FFF;
}
.header {
background-color: #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.26);
colo... | lduhaut/Galerie-E-E | PortailCss.html | HTML | mit | 2,296 |
//------------------------------------------------------------------------------
// <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>
//--... | v-am/Vipr | test/ODataReader.v4UnitTests/Properties/Resources.Designer.cs | C# | mit | 15,866 |
# coding: utf-8
# pylint: disable=too-many-lines
import inspect
import sys
from typing import TypeVar, Optional, Sequence, Iterable, List, Any
from owlmixin import util
from owlmixin.errors import RequiredError, UnknownPropertiesError, InvalidTypeError
from owlmixin.owlcollections import TDict, TIterator, TList
from ... | tadashi-aikawa/owlmixin | owlmixin/__init__.py | Python | mit | 34,064 |
"""Chapter 22 Practice Questions
Answers Chapter 22 Practice Questions via Python code.
"""
from pythontutorials.books.CrackingCodes.Ch18.vigenereCipher import decryptMessage
def main():
# 1. How many prime numbers are there?
# Hint: Check page 322
message = "Iymdi ah rv urxxeqfi fjdjqv gu gzuqw clunijh... | JoseALermaIII/python-tutorials | pythontutorials/books/CrackingCodes/Ch22/PracticeQuestions.py | Python | mit | 1,117 |
require('mini_magick')
module Aurita
module Plugins
module Wiki
class MiniMagickRenderer
@@logger = Aurita::Log::Class_Logger.new(self)
def initialize(media_asset_instance)
@media_asset = media_asset_instance
end
def import
end
def create_variants(variants={})
end
def cre... | fuchsto/aurita-wiki-plugin | lib/modules/mini_magick_renderer.rb | Ruby | mit | 366 |
body {
color: #282c35;
}
.weight-500 {
font-weight: 500 !important;
}
.pink {
fill: #e91e63 !important;
}
.badge {
margin: 0 0 0 8px;
background-color: #aaa;
color: white;
padding: 2px 4px;
border-radius: 2px;
}
.your-custom-chip {
font-weight: 400 !important;
font-style: normal !important;
co... | lakshit1001/CampusBox-webapp | .tmp/serve/app/index.css | CSS | mit | 17,487 |
namespace Pluton.Rust.Events
{
using Core;
using Rust;
using Rust.Objects;
using System;
using System.Collections.Generic;
public class DoorCodeEvent : Event
{
public Player Player;
public CodeLock codeLock;
public bool ForceAllow = false;
private s... | Notulp/Pluton.Rust | Events/DoorCodeEvent.cs | C# | mit | 2,204 |
var fb = "https://glaring-fire-5349.firebaseio.com";
var TodoCheck = React.createClass({displayName: "TodoCheck",
getInitialState: function() {
this.checked = false;
return {checked: this.checked};
},
componentWillUnmount: function() {
this.ref.off();
},
componentWillMount: function() {
this.... | jasharpe/firebase-react-todo | build/.module-cache/55ef8d641456cf304b91346e5672f316c68f8da9.js | JavaScript | mit | 10,058 |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Script.hpp>
# include <Siv3D/... | Siv3D/OpenSiv3D | Siv3D/src/Siv3D/Script/Bind/ScriptStopwatch.cpp | C++ | mit | 6,338 |
//
// SoundManager.h
// Jam
//
// Created by Ostap on 23.11.14.
//
//
#ifndef __Jam__SoundManager__
#define __Jam__SoundManager__
#include "cocos2d.h"
#include "audio/include/AudioEngine.h"
using namespace cocos2d;
using namespace ui;
USING_NS_CC;
enum Sounds {
sound_best_loop,
sound_drop_item,
soun... | jetberry/JamPewDiePie | Classes/SoundManager/SoundManager.h | C | mit | 1,629 |
#import <Foundation/Foundation.h>
#import "SQDAPI.h"
#import "UIColor+Util.h"
#import "UIView+Util.h"
#import "UIImage+Util.h"
#import "UIImageView+Util.h"
#import "AFHTTPRequestOperationManager+Util.h"
@interface Util : NSObject
//通过颜色来生成一个纯色图片
+ (UIImage *)getImageFromColor:(UIColor *)color withFrame:(CGRect )fram... | dudulu00/NJMUtils | iOSUtils/category/Util.h | C | mit | 1,567 |
<?php
namespace Acme\StoreBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Acme\StoreBundle\Entity\Product;
use Acme\StoreBundle\Form\ProductType;
class DefaultController extends Controller {
public function indexAction() {
// just setup a fresh $product object (no dummy ... | VelvetMirror/validation | src/Acme/StoreBundle/Controller/DefaultController.php | PHP | mit | 1,068 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
from future.utils import with_metaclass
import numpy as np
import scipy as sp
from abc import ABCMeta, abstractmethod
from scipy import integrate
import scipy.interpolate as interpolate
from . import core
from . import refstate
_... | aswolf/xmeos | xmeos/models/gamma.py | Python | mit | 11,700 |
# encoding: utf-8
# @note Актовая запись о перемене имени в объеме справки формы32 c ЭП
class SignedActRecordToReferenceNameChange32Mapper
include XmlSchemaMapper
schema File.expand_path('../../vendor/ezags-protocols/eZAGS/public/UploadService.xsd', File.dirname(__FILE__))
type 'SignedActRecordToReferenceNameCha... | webgago/ezags-xsd | app/mappers/signed_act_record_to_reference_name_change32_mapper.rb | Ruby | mit | 692 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.