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 |
|---|---|---|---|---|---|
#include "TelaPrincipal.h"
TelaPrincipal::TelaPrincipal()
{
}
| VitorDiToro/EC206-EngenhariaDeSoftware2 | SIF_CONSOLE/View/TelaPrincipal.cpp | C++ | mit | 65 |
<?php
namespace Ty666\LaravelTheme;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\View;
use Ty666\LaravelTheme\Exception\ThemeNotFound;
class ThemeManager
{
protected $config;
protected $files;
protected $activeTheme;
protected $activeThemeConfig = null;
protected $isUseTheme ... | ty666/laravel-theme | src/ThemeManager.php | PHP | mit | 2,906 |
<!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/234567113659.html | HTML | mit | 33,185 |
echo "Starting Lightnet Server"
| mostley/lightnet | startserver.sh | Shell | mit | 33 |
.configuration-root {
flex: 1;
padding: 20px;
}
.configuration-section {
margin-bottom: 40px;
}
| earaujoassis/watchman | web/components/Configuration/style.css | CSS | mit | 103 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package blastbenchmark;
/**
*
* @author thanos
*/
public class Lock {
private boolean isLocked = false;
public synchron... | BioDAG/odysseys | BlastBenchmark/src/blastbenchmark/Lock.java | Java | mit | 617 |
import { setData } from '@progress/kendo-angular-intl';
setData({
name: "pt-CH",
identity: {
language: "pt",
territory: "CH"
},
territory: "CH",
numbers: {
symbols: {
decimal: ",",
group: " ",
list: ";",
percentSign: "%",
... | antpost/antpost-client | node_modules/@progress/kendo-angular-intl/locales/pt-CH/all.js | JavaScript | mit | 93,114 |
# About
The libmaxminddb library provides a C library for reading MaxMind DB files,
including the GeoIP2 databases from MaxMind. This is a custom binary format
designed to facilitate fast lookups of IP addresses while allowing for great
flexibility in the type of data associated with an address.
The MaxMind DB format... | iOS-mamu/SS | P/Library/ShadowPath/ShadowPath/libmaxminddb/README.md | Markdown | mit | 4,195 |
{% if site.owner.google.ad-client and site.owner.google.ad-slot %}{% include ad-footer.html %}{% endif %}
<span>© {{ site.time | date: '%Y' }} {{ site.title }}. Powered by <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> using the <a href="https://mademistakes.com/work/so-simple-jekyll-theme/" rel="nofollo... | ayafi/ayafi.github.io | _includes/footer.html | HTML | mit | 2,694 |
package br.edu.fumep.entity;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
/**
* Created by arabasso on 09/05/2017.
*/
public class GrupoEstudoTests {
private GrupoEstudo gru... | plugadoeep/plugado | src/test/java/br/edu/fumep/entity/GrupoEstudoTests.java | Java | mit | 1,921 |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Web.Mvc;
using VsixMvcAppResult.Models;
using VsixMvcAppResult.Models.Common;
using VsixMvcAppResult.Models.Membership;
using VsixMvcAppResult.UI.Web.Controllers;
using VsixMvcAppResult.UI.Web.Models;
namespace VsixM... | jordivila/Net_MVC_NLayer_Result | VsixMvcAppResult/VsixMvcAppResult.UI.Web/Areas/UserAdministration/Models/DetailsViewModel.cs | C# | mit | 1,727 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | landonepps/vscode | src/vs/workbench/parts/tasks/node/taskConfiguration.ts | TypeScript | mit | 67,393 |
//Symbolic Property
#ifndef _PROBMODELS_BASE_SYMBOLIC_PROPERTY_HPP_
#define _PROBMODELS_BASE_SYMBOLIC_PROPERTY_HPP_
#include <array>
#include "boost/pending/property.hpp"
namespace probmodels {
namespace base {
//Property must be copyable, assignable and copy constructable
template <std::size_t Len, typename Proper... | antoniohps/probmodels | include/base/symbolic_property.hpp | C++ | mit | 844 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp1546Component } from './comp... | angular/angular-cli-stress-test | src/app/components/comp-1546/comp-1546.component.spec.ts | TypeScript | mit | 847 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Pegawai extends CI_Controller {
/*
@author : Okki Setyawan © 2016
*/
//ini method yang pertama kali di jalankan oleh codeginiter,semua pemanggilan ada disini termasuk hak akses
public function __construct(){
parent ::__construct();
... | okki23/asdp | application/modules/pegawai/controllers/Pegawai.php | PHP | mit | 8,952 |
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("4.... | aliv59git/C-1N_HomeAndExam | CSharp1_Home2/4.UnicodeCharacter/Properties/AssemblyInfo.cs | C# | mit | 1,412 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.ChangeTracking.In... | Kation/ComBoost | src/samples/Wodsoft.ComBoost.Forum/Controllers/HomeController.cs | C# | mit | 1,001 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="view... | WISVCH/payments | src/main/resources/templates/mail/wisvch.html | HTML | mit | 18,498 |
package seedu.ezdo.logic.parser;
import seedu.ezdo.logic.commands.Command;
/**
* An interface for the command parsers in ezDo.
*/
public interface CommandParser {
/** Parses the given string */
Command parse(String args);
}
| CS2103JAN2017-W14-B4/main | src/main/java/seedu/ezdo/logic/parser/CommandParser.java | Java | mit | 236 |
---
uid: SolidEdgeFrameworkSupport.FeatureControlFrameDataSet
summary:
remarks: Each of these collections of settings is a data set. By adding a data set to the FeatureControlFrameDataSets collection object, those settings are available to the FeatureControlFrames collection object as a DataSet property selection. Th... | SolidEdgeCommunity/docs | docfx_project/apidoc/SolidEdgeFrameworkSupport.FeatureControlFrameDataSet.md | Markdown | mit | 449 |
<?php
namespace Embark\CMS\Database;
use Exception;
use Profiler;
use PDO;
class Connection
{
const UPDATE_ON_DUPLICATE = 1;
protected $log;
protected $conf;
protected $queryCaching;
protected $lastException;
protected $lastQuery;
protected $string;
public function __construct($conf... | psychoticmeow/journey-cms | packages/system/lib/Database/Connection.php | PHP | mit | 6,723 |
#pragma once
#include <cmath>
// windows MinGW fix
#ifdef __MINGW32__
#ifndef M_PI
const double M_PI = 3.14159265358979323846264338327950288;
#endif
#endif
const double M_2PI = M_PI * 2.0;
inline float _fmod( float x, float y ) { return fmod( fmod( x, y ) + y, y ); } | pinecrew/golos | src/math.hpp | C++ | mit | 271 |
import fileinput
def str_to_int(s):
return([ int(x) for x in s.split() ])
# args = [ 'line 1', 'line 2', ... ]
def proc_input(args):
(n, l) = str_to_int(args[0])
a = tuple(str_to_int(args[1]))
return(l, a)
def solve(args, verbose=False):
(l, a) = proc_input(args)
list_a = list(a)
list_a.sort()
max_dist = max... | cripplet/practice | codeforces/492/attempt/b_lanterns.py | Python | mit | 897 |
/*
* Copyright (c) 2010-2014 OTClient <https://github.com/edubart/otclient>
*
* 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... | mathiasbynens/otclient | src/framework/core/binarytree.h | C | mit | 2,529 |
# Cyclon
Cyclon [1] is a complete framework for inexpensive membership management in very large P2P overlays. It an improvement of the basic shuffling protocol developed by Stavrou et al. [2]. It is highly scalable, very robust, and completely decentralized. Most important is that the resulting communication graphs sh... | robzenn92/EpTODocker | cyclon_project/README.md | Markdown | mit | 1,778 |
define(function(require) {
var Checker = require("checkers/controller/Checker"),
GameBoard = require("checkers/controller/GameBoard"),
GameSpace = require("checkers/controller/GameSpace");
var instance = null;
function GameBoardUtil() {
}
var getInstance = function... | RobStrader/Robs-Arcade | js/checkers/util/GameBoardUtil.js | JavaScript | mit | 5,153 |
namespace Novell.Directory.Ldap.Sasl
{
public class SaslDigestMd5Request : SaslRequest
{
public string Host { get; }
public SaslDigestMd5Request()
: base(SaslConstants.Mechanism.DigestMd5)
{
}
public SaslDigestMd5Request(string username, string password, st... | dsbenghe/Novell.Directory.Ldap.NETStandard | src/Novell.Directory.Ldap.NETStandard/Sasl/SaslDigestMd5Request.cs | C# | mit | 550 |
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
// Adapted from DescriptorHeap.h in Microsoft's Miniengi... | DrGr4f1x/Kodiak | Engine/Source/DescriptorHeap12.h | C | mit | 2,734 |
import { LOCAL_STORAGE_REMOVE_ITEM, LOCAL_STORAGE_SET_ITEM } from './actionTypes'
import createMiddleware from './middleware'
describe('middleware', () => {
let removeItem
let setItem
let middleware
let next
let store
beforeEach(() => {
removeItem = jest.fn()
setItem = jest.fn()
middleware = c... | fredrikolovsson/redux-module-local-storage | src/middleware.test.js | JavaScript | mit | 1,262 |
## V 0.1.0-alpha
06/10/2017
1. Basic info per user, like commit numbers and lines of changes.
2. Provide Lines of Code vs. time image.
## V 1.0.0-alpha
07/01/2017
1. Using template html
2. Support file by extension
## V 1.0.1-alpha
07/02/2017
1. Support ranking by month
| gzc/gitstats | changelog.md | Markdown | mit | 273 |
// This file is generated by rust-protobuf 3.0.0-alpha.8. Do not edit
// .proto file is parsed by protoc --rust-out=...
// @generated
// https://github.com/rust-lang/rust-clippy/issues/702
#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_p... | stepancheg/rust-protobuf | protobuf/src/rustproto.rs | Rust | mit | 18,154 |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of THOR_ACCESSGROUPTYPES_DataBoundSimplePersistable
*
* @author KottkeDP
*/
class THOR_ACCESSGROUPTYPES_DataBoundSimplePersistable extends THOR_DataBoundSimplePersistable{
... | USStateDept/thecurrent | bll/persistables/simplePersistables/THOR_ACCESSGROUPTYPES_DataBoundSimplePersistable.class.php | PHP | mit | 709 |
@(decks: Seq[ShipWithName], deckport: DeckPort, user: User)
@import models.join.ShipParameter.Rate
<input type="hidden" data-id="@deckport.id" class="fleet_data" />
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div style="float: right; ma... | ttdoda/MyFleetGirls | server/app/views/user/modal_fleet.scala.html | HTML | mit | 3,888 |
using Xunit;
using XUnit.Extensions.TestOrdering;
[assembly: TestCaseOrderer(DependencyTestCaseOrderer.Name, DependencyTestCaseOrderer.Assembly)]
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly, DisableTestParallelization = true)]
[assembly: TestCollectionOrderer(DependencyTestCollectionOrderer... | Sebazzz/NetUnitTestComparison | src/BankAccountApp.XUnitTests.Integration/Properties/AssemblyInfo.cs | C# | mit | 371 |
require 'test_helper'
class WatchedExceptionTest < ActiveSupport::TestCase
should_have_named_scope :recent, :limit => 5
should_have_named_scope "recent(20)", :limit => 20
should_have_default_scope :order => "#{WatchedException.quoted_table_name}.created_at DESC"
context "A watched exception instance" do
... | joshuaclayton/watchtower | test/models/watched_exception_test.rb | Ruby | mit | 1,816 |
<?php
namespace Mawi\Bundle\FrostlogBundle\Controller;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Confi... | mawi12345/frostlog | src/Mawi/Bundle/FrostlogBundle/Controller/FrontController.php | PHP | mit | 2,772 |
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class SymptomType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
... | garasuresh/practice2.6 | src/AppBundle/Form/SymptomType.php | PHP | mit | 905 |
# IdentityServer4.Mock
Mock Identity Server for Integration testing
| mtranter/IdentityServer4.Mock | README.md | Markdown | mit | 68 |
### qr
The world's most useful watch face. Want to know what time it is?
Just scan your watch with your phone!

| josharian/pebble | qr/README.md | Markdown | mit | 144 |
# Methods added to this helper will be available to all templates in the application.
# origin: RM
module ApplicationHelper
def icon(icon, label)
content_tag(:span, label, :class => "#{icon}_icon")
end
def page_head(options = {})
html = ''.html_safe
html << content_tag(:h1, options[:title]) if opt... | makandra/serum-rails | spec/test_apps/rails-2-3/app/helpers/application_helper.rb | Ruby | mit | 5,460 |
# [Climbing](/climbing)
These are miscellaneous notes I've taken while reading climbing related books.
Books:
* [The Rock Warrior's Way](http://a.co/0p1O8rP)
* [Self-Coached Climber](http://a.co/3FFbnTp)
* [Training for Climbing](http://a.co/eTcKh2Y)
* [9 Out of 10 Climbers Make the Same Mistakes](http://a.co/d3rWH5... | colby/colbyolson.com | posts/climbing.md | Markdown | mit | 2,142 |
---
layout: post
title: "117"
date: 2016-09-20
image: "117.jpg"
location: "Times Square, NYC"
---
100% Brightness
| Cbeck527/365 | src/_posts/2016-09-20-117.md | Markdown | mit | 127 |
package market
import (
"github.com/Efruit/marqit/exchange"
"github.com/Efruit/marqit/managers"
"github.com/nu7hatch/gouuid"
"time"
)
type Exchange interface {
manager.Bank
manager.Broker
manager.Ticker
exchange.Dealership
exchange.Auctioner
Init() // Perform initial set... | Efruit/marqit | market/market.go | GO | mit | 1,270 |
import { isFunction } from './isFunction';
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
import { isObject } from './isObject';
import { isMasked } from './_isMasked';
import { toSource } from './_toSource';
const reRegExpChar = /[\\^$.*+?()[\]{}|]... | UIUXEngineering/ix-material | libs/fn/src/lib/_common/_baseIsNative.ts | TypeScript | mit | 1,398 |
jQuery.each(param_obj, function (index, value) {
if (!isNaN(value)) {
param_obj[index] = parseInt(value);
}
});
function Portfolio_Gallery_Full_Height(id) {
var _this = this;
_this.container = jQuery('#' + id + '.view-full-height');
_this.hasLoading = _this.container.data("show-loa... | rahul121290/php | wp-content/plugins/portfolio-gallery/assets/js/view-full-height.js | JavaScript | mit | 6,558 |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2019 Baldur Karlsson
*
* 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... | TurtleRockStudios/renderdoc_public | renderdoc/os/posix/posix_libentry.cpp | C++ | mit | 2,988 |
# directory-ui-supplier
[Find a Supplier](https://www.great.gov.uk/trade/)
[![code-climate-image]][code-climate]
[![circle-ci-image]][circle-ci]
[![codecov-image]][codecov]
[![gitflow-image]][gitflow]
[![calver-image]][calver]
---
## Development
### Installing
$ git clone https://github.com/uktrade/directory-u... | uktrade/directory-ui-supplier | README.md | Markdown | mit | 3,828 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Copyright (C), 2013, The Schilduil Team. All rights reserved.
"""
import sys
import pony.orm
import suapp.orm
from suapp.logdecorator import loguse, logging
__all__ = ["Wooster", "Drone", "Jeeves"]
class FlowException(Exception):
pass
class ApplicationClos... | schilduil/suapp | suapp/jandw.py | Python | mit | 11,304 |
using MyRoutine.Service;
using MyRoutine.Service.Interfaces;
using MyRoutine.Web.Areas.Admin.ViewModels.Users;
using MyRoutine.Web.Controllers;
using MyRoutine.Web.Helpers;
using MyRoutine.Web.ViewModels;
using System.Linq;
using System.Web.Mvc;
using WebMatrix.WebData;
namespace MyRoutine.Web.Areas.Admin.Controllers... | davidtimovski/my-routine | MyRoutine.Web/Areas/Admin/Controllers/UsersController.cs | C# | mit | 4,329 |
package com.doctorAppointmentBookingSystem.repository;
import com.doctorAppointmentBookingSystem.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* Created by Edi on 16-Apr-17.
*/
@Repository
public interface RoleRepository extends JpaR... | eslavov11/Doctor-Appointment-Booking-System | src/main/java/com/doctorAppointmentBookingSystem/repository/RoleRepository.java | Java | mit | 393 |
import numpy
from chainer import cuda
from chainer import function
from chainer.utils import array
from chainer.utils import type_check
class BilinearFunction(function.Function):
def check_type_forward(self, in_types):
n_in = type_check.eval(in_types.size())
if n_in != 3 and n_in != 6:
... | kashif/chainer | chainer/functions/connection/bilinear.py | Python | mit | 6,625 |
import s from './Callouts.css';
import React, { PropTypes } from 'react';
import numbro from 'numbro';
function diversityAtParityOrGreater(conf) {
return conf.diversityPercentage >= 50;
}
function confFromCurrentYear(conf) {
return conf.year == (new Date()).getFullYear();
}
function diversityAccumulator(accumula... | andeemarks/conf-gen-div-react | components/Callouts/Callouts.js | JavaScript | mit | 2,762 |
# work-token
Simple proof of work generation and verification library based on [hashcachgen](https://github.com/carlos8f/node-hashcashgen). It works on node.js and in web browsers. The idea is that this can be used as an alternative to throttling on a web API. Instead of throttling, you give each client a challenge... | ForbesLindesay/work-token | README.md | Markdown | mit | 4,685 |
#!/bin/sh -e
prj_make=$( pwd )/.git/prj_make
bin_make=$( which make.sh )
schroot.sh $prj_make $bin_make "$@"
| ghub/bin | vm_make.sh | Shell | mit | 111 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/images/photo... | user-tony/photon-rails | lib/assets/images/photon/plugins/elrte/css/css_compiled/js/bootstrap/images/photon/js/plugins/jquery.flot.js.html | HTML | mit | 14,232 |
# coding: utf-8
import datetime
from sqlalchemy import bindparam
from sqlalchemy import Column
from sqlalchemy import DateTime
from sqlalchemy import func
from sqlalchemy import Integer
from sqlalchemy import MetaData
from sqlalchemy import Table
from sqlalchemy import testing
from sqlalchemy.dialects import mysql
fr... | graingert/sqlalchemy | test/dialect/mysql/test_dialect.py | Python | mit | 14,932 |
/*! simpler-sidebar v1.4.9 (https://github.com/dcdeiv/simpler-sidebar)
** Copyright (c) 2015 - 2016 Davide Di Criscito
** Dual licensed under MIT and GPL-2.0
*/
( function( $ ) {
$.fn.simplerSidebar = function( options ) {
var cfg = $.extend( true, $.fn.simplerSidebar.settings, options );
return this.each( function... | matrharr/first_aid | bower_components/simpler-sidebar/dist/jquery.simpler-sidebar.js | JavaScript | mit | 4,289 |
package com.github.niwaniwa.we.core.player;
import com.github.niwaniwa.we.core.api.callback.Callback;
import com.github.niwaniwa.we.core.twitter.TwitterManager;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import or... | niwaniwa/WhiteEggCore | src/main/java/com/github/niwaniwa/we/core/player/EggPlayer.java | Java | mit | 3,854 |
package mcjty.rftools.blocks.dimlets;
import mcjty.lib.container.GenericGuiContainer;
import mcjty.lib.gui.Window;
import mcjty.lib.gui.layout.PositionalLayout;
import mcjty.lib.gui.widgets.EnergyBar;
import mcjty.lib.gui.widgets.ImageLabel;
import mcjty.lib.gui.widgets.Panel;
import mcjty.lib.gui.widgets.Widget;
impo... | Elecs-Mods/RFTools | src/main/java/mcjty/rftools/blocks/dimlets/GuiDimletScrambler.java | Java | mit | 2,975 |
Symfony - Spotify (Academic Work)
========================
## Application demo
Display playlists, followed artists, albums and tracks
Use the Spotify credentials with token regeneration
### Installation
```bash
$ composer install
$ bower install
$ npm install
$ gulp
```
insert your privates spotify keys in :
```
a... | cbaconnier/symfony-spotify | README.md | Markdown | mit | 582 |
// Fill in topbar details.
$('header .right').append(Handlebars.templates.userTopbar(user));
// Fill in sidebar details.
user.created_at = moment(user.created_at).format('MMM DD, YYYY');
var userStars = {user: user, stars: stars};
$('aside').prepend(Handlebars.templates.userSidebar(userStars));
// Populate the organ... | bholben/GitHub | app/scripts/main.js | JavaScript | mit | 760 |
Här kommer snart min egen fina me-sida.
=
Hallå där! Jag heter Eric Nilsson född 11 december 1993, dvs att jag snart fyller 22. Jag är born and raised i Åhus och studerar för tillfället Webbprogrammering på bth. Det roliga är att jag aldrig har haft ett direkt intresse för programmering samt datorer, efter att jag läs... | ericN93/Anas-Mvc-Project | app/content/home_me.md | Markdown | mit | 1,890 |
//----------------------------------------------------------------------------
// error.h
//
// error reporting for pathed
//
// Copyright (C) 2011 Neil Butterworth
//----------------------------------------------------------------------------
#ifndef INC_PATHED_ERROR_H
#define INC_PATHED_ERROR_H
#include ... | mumblepins/pathed | inc/error.h | C | mit | 1,449 |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class ModelPersona extends YPS_Model {
CONST OBJETO = 'modelPersona';
CONST PK = 'idPersona';
CONST TABLA = 'personas';
private $idPersona;
private $sufijo_nombre;
private $prefijo_nombre;
pri... | QInfoDev/YPS | application/models/modelPersona.php | PHP | mit | 1,574 |
use File::Find;
use File::Basename;
use Win32::TieRegistry 0.20 ( KEY_READ );
# Gloabal registry access options
my $registry_options = {
Delimiter => '/',
Access => KEY_READ(),
};
# First, let's get location of ActivePerl
my $active_key = "LMachine/Software/ActiveState/ActivePerl";
my $perl_binary = get_pe... | uddhab/swish-e | swish-e-2.4.7/src/win32/fixperl.pl | Perl | mit | 3,234 |
import { faker } from 'ember-cli-mirage';
import lodash from 'npm:lodash';
export const CONTAINER_MEMORY = 8023089152;
export function getPorts(isContainer=false) {
let ports = [];
for (let j = 1; j <= faker.random.number({ max: 3 }); j++) {
let obj = {
name: faker.hacker.noun(),
protocol: 'TCP',
... | holandes22/kube-admin | app/mirage/factories/fakers.js | JavaScript | mit | 3,027 |
\begin{tabular}{c|llllll}
& \multicolumn{6}{|c}{\textbf{\textit{f}\raisebox{-0.35ex}{1}--\textit{f}\raisebox{-0.35ex}{24} in 5-D}, maxFE/D=112}\\
\#FEs/D & best & 10\% & 25\% & \textbf{med} & 75\% & 90\%\\
2 & ~\,0.61 & ~\,0.82 & \hspace*{1ex}1.2 & \hspace*{1ex}2.2 & \hspace*{1ex}4.7 & 10\\
10 & ~\,0.72 & \hspace*{1ex... | mklew/MEUM | doc/ppdata_unit50/pploglosstable_05D_noiselessall.tex | TeX | mit | 516 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct template external_transforms</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../index.ht... | djsedulous/namecoind | libs/boost_1_50_0/doc/html/boost/proto/external_transforms.html | HTML | mit | 12,264 |
module RubyHashcat
class API < Sinatra::Application
get '/location.json' do
content_type :json
if settings.debug
pp params
end
{:location => settings.ocl_location}.to_json
end
get '/rules.json' do
content_type :json
if settings.debug
pp params
... | dlister/ruby_hashcat | lib/ruby_hashcat/routes/settings.rb | Ruby | mit | 480 |
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("07... | SvetozarMateev/Programming-Fundamentals | ObjectsAndClassesExercises/07.AndreyAndBilliard/Properties/AssemblyInfo.cs | C# | mit | 1,416 |
module.exports = function () {
return {
templateUrl : './shared/partials/footer/directives/footer.html',
controller: require('./footerCtrl'),
restrict: 'E',
scope: {}
};
};
| Arodang/Moroja | app/shared/partials/footer/directives/footerDirective.js | JavaScript | mit | 214 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>Lavue</title>
<!-- fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600"
... | Rubemlrm/lavue | resources/views/layouts/no-auth.blade.php | PHP | mit | 652 |
<?php
/**
* Client object
*
* @package RpkUtils\Sysinfo
* @author Repkit <repkit@gmail.com>
* @copyright 2015 Repkit
* @license MIT <http://opensource.org/licenses/MIT>
* @since 2015-11-12
*/
namespace RpkUtils\Sysinfo;
class Client
{
/**
* Client ip
* @return string
*... | Repkit/php-utils | src/RpkUtils/Sysinfo/Client.php | PHP | mit | 907 |
<?php
require __DIR__.DIRECTORY_SEPARATOR.'includes.php';
if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
$Upload = new \Rundiz\Upload\Upload('filename');
$Upload->move_uploaded_to = __DIR__.DIRECTORY_SEPARATOR.'uploaded-files';
foreach ($_POST as $key => $value) {
$$key = $value;
}
... | OkveeNet/Vfileup | tests/via-http/test-full-customize-file-upload.php | PHP | mit | 14,779 |
// $Id: LSOCK_CODgram.cpp 79134 2007-07-31 18:23:50Z johnnyw $
#include "ace/LSOCK_CODgram.h"
#if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
#include "ace/Log_Msg.h"
ACE_RCSID(ace, LSOCK_CODgram, "$Id: LSOCK_CODgram.cpp 79134 2007-07-31 18:23:50Z johnnyw $")
#if !defined (__ACE_INLINE__)
#include "ace/LSOCK... | yuanxu/liveshow_r2 | P2pNet/ace/LSOCK_CODgram.cpp | C++ | mit | 1,814 |
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>{% block title %}ikeQuizGen{% endblock %}</title>
<link href="https://fonts.googleapis.c... | ikedumancas/ikequizgen | templates/base.html | HTML | mit | 2,028 |
from accounts.models import Practice
def create_practice(request, strategy, backend, uid, response={}, details={}, user=None, social=None, *args, **kwargs):
"""
if user has a practice skip else create new practice
"""
practice, created = Practice.objects.update_or_create(user=user)
return None... | TimothyBest/Appointment_Booking_drchrono | appointment_booking_drchrono/accounts/pipeline.py | Python | mit | 321 |
/*
* Copyright 2002 Sun Microsystems, Inc. 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, this list of con... | pitpitman/GraduateWork | petstore1.3_01/src/waf/src/view/taglibs/com/sun/j2ee/blueprints/taglibs/smart/QueryParameterTag.java | Java | mit | 2,690 |
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding yo... | diego-drese/swesat | database/factories/ModelFactory.php | PHP | mit | 1,360 |
import React from 'react';
import PropTypes from 'prop-types';
import ColumnChart from './columnChart';
import Tooltip from './../tooltip/tooltip';
import {dateFormats} from './../../utils/displayFormats';
import './columnWidget.css';
const ColumnWidget = ({
chartTitle,
chartDescription,
chartUpdatedDate,
... | govau/datavizkit | src/components/columnWidget/columnWidget.js | JavaScript | mit | 1,815 |
This folder contains all your exported files.
**NOTE**: The permissions for this folder *must* be `777`.
To do so navigate to the exports folder/directory
cd /exports
Then change the user permission using chmod.
chmod 777 -R ./
| mikethedj4/PHP-writeFile---Hello-World | exports/README.md | Markdown | mit | 244 |
<?php
namespace Tests\Behat\Gherkin\Node;
use Behat\Gherkin\Exception\NodeException;
use Behat\Gherkin\Node\TableNode;
use PHPUnit\Framework\TestCase;
class TableNodeTest extends TestCase
{
public function testConstructorExpectsSameNumberOfColumnsInEachRow()
{
$this->expectException(NodeException::cl... | Behat/Gherkin | tests/Behat/Gherkin/Node/TableNodeTest.php | PHP | mit | 10,770 |
from flask import Flask
from flask import render_template, request
app = Flask(__name__)
@app.route("/")
def main():
room = request.args.get('room', '')
if room:
return render_template('watch.html')
return render_template('index.html')
if __name__ == "__main__":
app.run(host='0.0.0.0', debug=True)
| victorpoluceno/webrtc-sample-client | app/__init__.py | Python | mit | 314 |
<!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 (1.8.0_31) on Wed Dec 17 20:48:31 PST 2014 -->
<title>Uses of Class org.omg.CORBA.NO_RESOURCES (Java Platform SE 8 )</title>
<meta name="date" content... | fbiville/annotation-processing-ftw | doc/java/jdk8/org/omg/CORBA/class-use/NO_RESOURCES.html | HTML | mit | 5,074 |
---
layout: tammo_main
title: Blog
---
<div class="posts">
{% for post in site.posts %}
<article class="post">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
<div class="entry">
{{ post.excerpt }}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class... | TammoR/bs_page | blog_test.html | HTML | mit | 384 |
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provide... | demones/react-guide | examples/react-redux-example/app/todomvc/index.js | JavaScript | mit | 363 |
package uk.gov.bis.levyApiMock.data
import uk.gov.bis.levyApiMock.auth.{TOTP, TOTPCode}
import scala.concurrent.{ExecutionContext, Future}
case class Application(name: String, applicationID: String, clientID: String, clientSecret: String, serverToken: String, privilegedAccess: Boolean)
trait ClientOps {
def timeS... | SkillsFundingAgency/das-alpha-hmrc-api-mock | src/main/scala/uk/gov/bis/levyApiMock/data/ClientOps.scala | Scala | mit | 1,004 |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>web2py.gluon.validators.IS_TIME</title>
<link rel="stylesheet" href="epydoc.css" type="text... | andersonsilvade/python_C | Python32/web2py/applications/examples/static/epydoc/web2py.gluon.validators.IS_TIME-class.html | HTML | mit | 14,081 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RemoveOddPosition
{
class RemoveOddPosition
{
static void Main(string[] args)
{
var words = Console.ReadLine().Split(' ').ToList();
var output =... | Tcetso/Fundamentals | 15-17_Lists/RemoveOddPosition/RemoveOddPosition.cs | C# | mit | 605 |
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
ActiveSupport::Inflector.inflections(:en) do |inflect|... | netguru/people | config/initializers/inflections.rb | Ruby | mit | 529 |
package jaist.css.covis.cls;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPopupMenu;
import jaist.css.covis.util.FramePopup;
public class ArrayPrimitiv... | miuramo/AnchorGarden | src/jaist/css/covis/cls/ArrayPrimitiveMenu.java | Java | mit | 1,372 |
//
// window.onload = function() {
// var data = {username:'52200', password:'123', remember:52200};
// fetch('/api/users/getUser?id=1').then(function(res) {
// console.log("请求的数据是", res);
// if (res.ok) {
// alert('Submitted!');
// } else {
// alert('Error!');
//... | Hitheworld/HelloKoa2 | public/javascript/data.js | JavaScript | mit | 466 |
Meteor.methods({
addAllUserToRoom(rid, activeUsersOnly = false) {
check (rid, String);
check (activeUsersOnly, Boolean);
if (RocketChat.authz.hasRole(this.userId, 'admin') === true) {
const userCount = RocketChat.models.Users.find().count();
if (userCount > RocketChat.settings.get('API_User_Limit')) {
... | flaviogrossi/Rocket.Chat | server/methods/addAllUserToRoom.js | JavaScript | mit | 1,600 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `enc_region` fn in crate `rustc_lint`.">
<meta name="keywor... | ArcherSys/ArcherSys | Rust/share/doc/rust/html/rustc_lint/metadata/tyencode/fn.enc_region.html | HTML | mit | 4,206 |
/// <reference path="../_references.d.ts" />
interface sage {
id: number;
name: string;
username: string;
email: string;
dateOfBirth: Date;
sayings?: saying[];
}
interface repositorySage {
getAll: () => ng.IPromise<sage[]>;
getById: (id: number, forceRemote?: boolean) => ng.IPromise<sag... | johnnyreilly/proverb-without-implicit-referencing | Proverb.Web/app/services/repository.sage.ts | TypeScript | mit | 2,507 |
<!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... | team-diana/nucleo-dynamixel | docs/html/struct_t_i_m___hall_sensor___init_type_def-members.html | HTML | mit | 6,431 |
<?php
$about = array(
'name' => 'Norsk bokmål',
'author' => array(
'name' => 'Frode Danielsen',
'email' => 'frode@danielsen.net',
'website' => 'http://frode.danielsen.net/'
),
'release-date' => '2011-02-09'
);
/**
* Subsection Manager
*/
$dictionary = array(
'%s Show thumbnail images' =>
... | fdanielsen/subsectionmanager | lang/lang.no.php | PHP | mit | 7,134 |
const HttpStatus = require('http-status-codes');
const build = status => {
return (ctx, message) => {
ctx.status = status
ctx.body = message || {message: HttpStatus.getStatusText(status)}
return ctx
}
}
module.exports = {
accepted: build(HttpStatus.ACCEPTED), // 202
badGateway... | lohanbodevan/http-responses | index.js | JavaScript | mit | 3,695 |
module.exports = function verify(check) {
if (typeof check !== 'object') {
throw new Error('check is not an object');
}
var errors = [];
Object.keys(check).forEach(_verify, check);
if (errors.length > 0) {
throw new Error('Health checks failed: '+ errors.join(', '));
}
re... | super-useful/su-healthcheck | lib/verify.js | JavaScript | mit | 644 |
<?php
namespace artworx\omegacp\Database\Types\Postgresql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use artworx\omegacp\Database\Types\Type;
class RealType extends Type
{
const NAME = 'real';
const DBTYPE = 'float4';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
... | carloquilala/omegacp | src/Database/Types/Postgresql/RealType.php | PHP | mit | 351 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.