code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/**
* Created by gkarak on 28/7/2016.
*/
'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var lodash = require('lodash');
var prompts = require('../../services/prompts');
var buildContext = require('../../services/build-context');
var pathNames = require('../../services/path-names... | Wtower/generator-makrina | generators/model/index.js | JavaScript | mit | 2,151 |
<?php
$color = strip_tags(htmlspecialchars($_POST['color']));
$age = strip_tags(htmlspecialchars($_POST['age']));
$industry = strip_tags(htmlspecialchars($_POST['industry']));
$message = strip_tags(htmlspecialchars($_POST['message']));
$to = 'christina.ccicolor@gmail.com';
$email_subject = "Feedback From Fundamental C... | KarismaSoni/CCI-Rewrite | app/bin/fundamental_contact.php | PHP | mit | 785 |
using System;
using System.Collections.Generic;
using System.IO;
namespace Yu_Gi_Oh.Save_File
{
public class Stat_Save : Save_Data_Chunk
{
private const int NumberOfSaveStats = 43;
public Stat_Save()
{
Stats = new Dictionary<StatSaveType, long>();
}
... | Arefu/Wolf | Yu-Gi-Oh/Save File/Stat_Save.cs | C# | mit | 1,779 |
using System.Reflection;
[assembly: AssemblyVersion("1.3.6")]
[assembly: AssemblyFileVersion("1.3.6")]
[assembly: AssemblyInformationalVersion("1.3.6")]
| rbouallou/Zebus | src/SharedVersionInfo.cs | C# | mit | 157 |
module ApiHelper
private
def authenticate!(client = @client || :spy)
client = shipit_api_clients(client) if client.is_a?(Symbol)
@client ||= client
request.headers['Authorization'] = "Basic #{Base64.encode64(client.authentication_token)}"
end
end
| perobertson/shipit-engine | test/helpers/api_helper.rb | Ruby | mit | 266 |
<?php
/* @WebProfiler/Profiler/toolbar_js.html.twig */
class __TwigTemplate_6fb18f7e22ead7a1441adb0d4a6862fe4242ea7db82b2678bdfd08825c836861 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = a... | ProgrammeurAlpha/symfonyDemo | app/cache/dev/twig/7/f/7f05cc4652ffdaba5085bcba2a5647af8ca31a7b143c0d2fc3447f282b11e28f.php | PHP | mit | 10,693 |
# coding: utf-8
module Contentr
class HeadlineParagraph < Paragraph
COLORS = { 'Schwarz' => :black, 'Grau' => :grey, 'Blau' => :blue}
LEVELS = {
'Hauptüberschrift' => 1,
'Unterüberschrift Ebene 2' => 2,
'Unterüberschrift Ebene 3' => 3
}
field :headline, type: :string
field :colo... | metaminded/contentr-default-paragraphs | app/models/contentr/headline_paragraph.rb | Ruby | mit | 548 |
require_relative 'spec_helper'
describe "Spring" do
before(:each) do
set_java_version(app.directory, jdk_version)
end
["1.6", "1.7", "1.8"].each do |version|
context "on jdk-#{version}" do
let(:jdk_version) { version }
context "spring-boot-webapp-runner" do
let(:app) { Hatchet::Runn... | vbansal22/paas_devbox | spec/spring_spec.rb | Ruby | mit | 1,948 |
package com.jakub.ajamarks.controllers;
import com.jakub.ajamarks.entities.Classroom;
import com.jakub.ajamarks.entities.Mark;
import com.jakub.ajamarks.entities.Student;
import com.jakub.ajamarks.services.showdataservices.StudentService;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.... | ajakuba/AJAmarks | AJAmarksWeb/src/test/java/com/jakub/ajamarks/controllers/StudentControllerTest.java | Java | mit | 13,384 |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Timers;
using Timer = System.Timers.Timer;
namespace Peace.Message_Queue
{
public interface IMessageQueue
{
void Load(IEnumerable<QueueMessage> messages);
void Enqueue(QueueMessage message);
QueueMessa... | Khadron/Peace | Peace/Message Queue/MQ.cs | C# | mit | 6,652 |
<?php
/**
*
* Selector lists.
*
*/
namespace CssCrush;
class SelectorList extends Iterator
{
public function __construct($selectorString, Rule $rule)
{
parent::__construct();
$selectorString = trim(Util::stripCommentTokens($selectorString));
foreach (Util::splitDelimList($selector... | peteboere/css-crush | lib/CssCrush/SelectorList.php | PHP | mit | 4,370 |
(function ($) {
var theForm;
var theBox;
var theTypeTarget;
var settings;
$.fn.tagbox = function(options) {
var defaults = {
typeTargetNameAndId : "type_target",
tagInputsArrayName : "tag_list",
includeExampleTag : true
};
settings = $.... | tompave/tagbox | scripts/tagbox.js | JavaScript | mit | 5,917 |
package com.github.neunkasulle.chronocommand.model;
import com.github.neunkasulle.chronocommand.control.UeberTest;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Janze on 28.02.2016.
*
*/
public class CategoryTest extends UeberTest {
@Test
public void testSetName() throws Exce... | neunkasulle/ChronoCommand | code/src/test/java/com/github/neunkasulle/chronocommand/model/CategoryTest.java | Java | mit | 891 |
'use strict';
var _interopRequireDefault = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
exports.__esModule = true;
var _co... | AMGTestOrg/templating | dist/commonjs/bindable-property.js | JavaScript | mit | 7,942 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NegativeFirstDimensionOfArray
{
class Program
{
static void Main(string[] args)
{
int neg = -7;
int pos = 15;
int sum = 7;
... | vladislav-karamfilov/TelerikAcademy | C# Projects/TempSolution-Exam/NegativeFirstDimensionOfArray/Program.cs | C# | mit | 787 |
const BaseXform = require('../base-xform');
/** https://en.wikipedia.org/wiki/Office_Open_XML_file_formats#DrawingML */
const EMU_PER_PIXEL_AT_96_DPI = 9525;
class ExtXform extends BaseXform {
constructor(options) {
super();
this.tag = options.tag;
this.map = {};
}
render(xmlStream, model) {
x... | guyonroche/exceljs | lib/xlsx/xform/drawing/ext-xform.js | JavaScript | mit | 1,011 |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Balanced
{
public class Order : Resource
{
[JsonIgnore]
public static string resource_href
{
get { return "/orders"; }
... | balanced/balanced-csharp | Balanced/Order.cs | C# | mit | 2,724 |
package Is_test
import "testing"
import "is.go/src"
func TestLowercase(t *testing.T) {
message := Is.Lowercase("NOT Lower")
if message {
t.Error("It's lowercase text")
}
message = Is.Lowercase("yes lower")
if !message {
t.Error("Yes it's not lowercase text")
}
}
func TestUppercase(t *testing.T){
... | c1982/is.go | src/is_strings_test.go | GO | mit | 1,224 |
<form role="search" method="get" class="woocommerce-product-search" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="screen-reader-text sr-only" for="s"><?php _e( 'Search for:', 'woocommerce' ); ?></label>
<div class="input-group">
<input type="search" class="search-field form-control" placeholder=... | harrygr/samarkand-2 | woocommerce/product-searchform.php | PHP | mit | 779 |
import angular from "angular";
import DefinitionCreatorComponent from "./definitionCreator.component";
let DefinitionCreatorModule = angular.module("DefinitionCreatorModule", [])
.directive("sgDefinitionCreatorModal", DefinitionCreatorComponent);
export default DefinitionCreatorModule;... | booknds/sge | src/app/components/modals/definitionCreator/definitionCreator.js | JavaScript | mit | 321 |
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"path/filepath"
"strings"
)
type Language struct {
Image string `json:"image"`
Command string `json:"command"`
Format string `json:"format"`
}
var Extensions map[string]Language
func ValidLanguage(ext string) bool {
for k, _ := range Extensions {
... | lanastasov/bitrun-api | lang.go | GO | mit | 791 |
module StyleguideHelper
##
# Render a styleguide block
def styleguide_block section, styleguide = @styleguide, &block
section = styleguide.section section
render :partial => 'styleguide/block', :locals => { :section => section, :example_html => capture(&block) }
end
end
| cbeer/rails-styleguide | app/helpers/styleguide_helper.rb | Ruby | mit | 288 |
<?php
namespace AD7six\Dsn\Db;
use AD7six\Dsn\DbDsn;
/**
* MongodbDsn
*
*/
class MongodbDsn extends DbDsn
{
/**
* defaultPort
*
* @var int 27017
*/
protected $defaultPort = 27017;
}
| AD7six/php-dsn | src/Db/MongodbDsn.php | PHP | mit | 197 |
from random import random
from functools import partial
import csv
import json
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.button import Button
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.spinner import S... | romanchom/GestureRecognitionVR | MouseGestures/App.py | Python | mit | 8,792 |
/// <reference path="../Interfaces/IDisposable.ts" />
/// <reference path="../Interfaces/ITyped.ts" />
/// <reference path="LooperCallback.ts" />
| NTaylorMullen/EndGate | EndGate/EndGate.Core.JS/Loopers/ILooper.js | JavaScript | mit | 146 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-02-22 15:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | cloudcomputinghust/IoT | co-ordinator/api/migrations/0002_auto_20170222_1514.py | Python | mit | 664 |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("path", {
d: "M5 19h14V5H5v14zm5-11l5 4-5 4V8z",
opacity: ".3"
}), h("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM10 8v8l5-4z"
})), ... | AlloyTeam/Nuclear | components/icon/esm/slideshow-two-tone.js | JavaScript | mit | 340 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
typedef unsigned __int16 PROPVAR_PAD1;
END_ATF_NAMESPACE
| goodwinxp/Yorozuya | library/ATF/PROPVAR_PAD1.hpp | C++ | mit | 233 |
<?php
namespace Skalda\TestLinkAPI;
class TestLinkAPIException extends \Exception
{
} | Skalda/TestLinkAPI | src/TestLinkAPIException.php | PHP | mit | 88 |
module MigrateSafely
class MigrationOutliner
Action = Struct.new(:version, :action, :name)
def self.pending_actions(target_version = nil)
current_version = ActiveRecord::Migrator.current_version
return [] if current_version == 0 && target_version == 0
direction = case
when target_ver... | remind101/migrate_safely | lib/migrate_safely/migration_outliner.rb | Ruby | mit | 796 |
<?php
/*
* This file is part of the CRUDlex package.
*
* (c) Philip Lehmann-Böhm <philip@philiplb.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CRUDlexTests;
use CRUDlexTestEnv\TestDBSetup;
use CRUDlex\EntityVali... | philiplb/CRUDlex | tests/CRUDlexTests/EntityValidatorTest.php | PHP | mit | 6,726 |
<?php
// src/Clc/TodosBundle/Controller/TodosController.php
namespace Clc\TodosBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Clc\TodosBundle\Form\Type\TaskType;
use Clc\TodosBundle\E... | JulesMarcil/colocall | src/Clc/TodosBundle/Controller/TodosController.php | PHP | mit | 5,807 |
<?php
namespace Heyday\Beam;
use Heyday\Beam\Config\ValueInterpolator;
use Heyday\Beam\DeploymentProvider\DeploymentProvider;
use Heyday\Beam\DeploymentProvider\DeploymentResult;
use Heyday\Beam\Exception\Exception;
use Heyday\Beam\Exception\InvalidArgumentException;
use Heyday\Beam\Exception\RuntimeException;
use He... | stevie-mayhew/beam | src/Beam.php | PHP | mit | 28,568 |
/*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.home.config;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.se... | OblivionNW/Nucleus | src/main/java/io/github/nucleuspowered/nucleus/modules/home/config/HomeConfig.java | Java | mit | 1,269 |
package net.ilexiconn.magister.handler;
import com.google.gson.Gson;
import net.ilexiconn.magister.Magister;
import net.ilexiconn.magister.container.Response;
import net.ilexiconn.magister.exeption.PrivilegeException;
import net.ilexiconn.magister.util.GsonUtil;
import net.ilexiconn.magister.util.HttpUtil;
import net.... | iLexiconn/Magister.java | src/main/java/net/ilexiconn/magister/handler/PasswordHandler.java | Java | mit | 2,839 |
const debug = require('debug')('stuco:web:middleware:error')
let errorCodes = {
'User Not Found': 0,
'Requesting User Not Found': 1,
'Event Not Found': 2,
'Invalid Location Data': 3,
'Google Token Validation Failed': 4,
'TokenIssuer is Invalid': 5,
'Invalid Token Certificate': 6,
'UserToken Has Expired... | RSCodingClub/STUCO-Backend | web/middleware/error.js | JavaScript | mit | 1,622 |
require 'spec_helper'
require 'flico/flickr_command'
describe Flico::FlickrCommand do
let(:search_results) {[{"id"=>"33472607802", "owner"=>"78759190@N05", "secret"=>"42e011bcf5", "server"=>"2805", "farm"=>3, "title"=>"Volkswagen Golf in Luxembourg", "ispublic"=>1, "isfriend"=>0, "isfamily"=>0}]}
let(:sizes_resul... | amandeepbhamra/flico | spec/flickr_command_spec.rb | Ruby | mit | 1,520 |
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#nullable disable
namespace StyleCop.Analyzers.Status.Generator
{
using System;
using System.Collections.Generic;
using System.Collections.Imm... | DotNetAnalyzers/StyleCopAnalyzers | StyleCop.Analyzers/StyleCop.Analyzers.Status.Generator/SolutionReader.cs | C# | mit | 15,020 |
import org.basesource.reservoir.Streamer;
import org.basesource.reservoir.impl.BaseStreamer;
import org.basesource.reservoir.impl.HttpStreamer;
import org.basesource.reservoir.impl.RandomSampler;
import org.basesource.reservoir.impl.RandomStreamer;
public class Main {
public static void main(String[] args) {
... | leventgunay/experimental | reservoir-sampling/src/Main.java | Java | mit | 1,083 |
package pow.backend.action;
import pow.backend.GameBackend;
import pow.backend.actors.Actor;
import pow.backend.event.GameEvent;
import java.util.Collections;
public class Log implements Action {
public Log() { }
@Override
public ActionResult process(GameBackend backend) {
return ActionResult.s... | jonathanacross/pow | src/main/java/pow/backend/action/Log.java | Java | mit | 516 |
// RECEIVING USERNAME & PASSWORD DATA
//var data = require('../public/js/data.json');
//var projects = require('../projects.json');
var global_datajson = require('../globaldata.json');
var models = require('../models');
// MAIN FUNCTION - RENDERS/SHOWS HTML
exports.delMeal = function(req, res){
var type;
var proje... | srishtyagrawal/joy4-add1 | routes/del.js | JavaScript | mit | 1,176 |
import { ScrollGeomCache } from '../ScrollGeomCache'
import { ElementScrollGeomCache } from '../ElementScrollGeomCache'
import { WindowScrollGeomCache } from '../WindowScrollGeomCache'
interface Edge {
scrollCache: ScrollGeomCache
name: 'top' | 'left' | 'right' | 'bottom'
distance: number // how many pixels the ... | oleg-babintsev/fullcalendar | packages/interaction/src/dnd/AutoScroller.ts | TypeScript | mit | 6,439 |
package com.sunny.grokkingalgorithms.fasttrack.week1;
/**
* Created by sundas on 6/20/2018.
*/
public class SumOfUpperPyramindInAMatrix {
/*
Find sum of upper pyramid ina matrix
*/
/**
*
* @param matrix
* @return
*/
public static int findSUmOfUpperPyramid(int[][] matrix){
int sum = 0;
... | sunnydas/grokkingalgos | src/main/java/com/sunny/grokkingalgorithms/fasttrack/week1/SumOfUpperPyramindInAMatrix.java | Java | mit | 1,149 |
module ActiveReloader
class Configuration
@@paths = ["app"]
def self.paths=(value)
@@paths = value
end
def self.paths
if @@paths.is_a?(String)
@@paths = [@@paths]
end
@@paths
end
def self.update(&block)
yield self
end
end
end | ilatif/active_reloader_rb | lib/active_reloader/configuration.rb | Ruby | mit | 265 |
<?php
/**
* Template Name: Contact Page
*/
if ( have_posts() ) the_post();
$errors = array();
$bot = false;
if ( isset($_POST['gpk_cabatcha']) && $_POST['gpk_cabatcha'] ) {
/**
* Collect quick info
*/
$quickInfo = array(
'IP' => $_SERVER['REMOTE_ADDR'],
'USER_AGENT' => $_SERVER['USER_AGENT']
);
... | pkgeography/geography.pk | wordpress/wp-content/themes/pkgeography/page-templates/contact-page.php | PHP | mit | 5,073 |
import datetime
from django.conf import settings
from django import template
from django.core.urlresolvers import reverse
from django.utils.dateformat import format
from schedule.conf.settings import CHECK_PERMISSION_FUNC
from schedule.models import Calendar
from schedule.periods import weekday_names, weekday_abbrs, M... | tscholze/py-hasi-home-analytical-system-interface | hasi/schedule/templatetags/scheduletags.py | Python | mit | 11,258 |
# -*- test-case-name: xmantissa.test.test_sharing -*-
"""
This module provides various abstractions for sharing public data in Axiom.
"""
import os
import warnings
from zope.interface import implementedBy, directlyProvides, Interface
from twisted.python.reflect import qual, namedAny
from twisted.protocols.amp impor... | twisted/mantissa | xmantissa/sharing.py | Python | mit | 30,864 |
using Microsoft.Extensions.Logging;
using Orleans;
using Presence.Grains.Models;
namespace Presence.Grains;
/// <summary>
/// Represents a game in progress and holds the game's state in memory.
/// Notifies player grains about their players joining and leaving the game.
/// Updates subscribed observers about the prog... | dotnet/orleans | samples/Presence/src/Grains/GameGrain.cs | C# | mit | 4,214 |
<?php
namespace App\Controllers\Sites;
use \Psr\Http\Message\ServerRequestInterface as request;
use App\Source\Factory\PageFactory;
use App\Source\Factory\SectionFactory;
use App\Models\Pages;
use App\Models\Sections;
class UniversalPageController extends BaseController
{
public function homeAction(request $req, $r... | svncao/Ulan | app/Controllers/Sites/UniversalPageController.php | PHP | mit | 1,671 |
namespace Web.Controllers
{
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Models.Identity;
using Web.ViewModels.Account;
[Au... | webdude21/ContentRocks | Web/Controllers/AccountController.cs | C# | mit | 17,936 |
using System.Net;
namespace MailRuCloudApi.Api.Requests
{
class EnsureSdcCookieRequest : BaseRequest<string>
{
public EnsureSdcCookieRequest(CloudApi cloudApi) : base(cloudApi)
{
}
public override HttpWebRequest CreateRequest(string baseDomain = null)
{
var... | yar229/Mail.Ru-.net-cloud-client | MailRuCloudApi/Api/Requests/EnsureSdcCookieRequest.cs | C# | mit | 698 |
class RemoveArtistCompleteFromUsers < ActiveRecord::Migration
def change
remove_column :users, :artist_complete
end
end
| 9577/gart360-web | db/migrate/20140218195338_remove_artist_complete_from_users.rb | Ruby | mit | 128 |
/*
LedDisplay -- controller library for Avago HCMS-297x displays -- version 0.2
Copyright (c) 2009 Tom Igoe. Some right reserved.
Revisions on version 0.2 and 0.3 by Mark Liebman, 27 Jan 2010
* extended a bit to support up to four (4) 8 character displays.
vim: set ts=4:
Controls an Avago HCM... | Pocketart/typhoonclawvex | Musical_Instruments_2017_2018/Musical_Glove/OLD CODE/gloves/Gloves_R/teensy/avr/libraries/LedDisplay/LedDisplay.cpp | C++ | mit | 8,815 |
<?php
namespace SamIT\TransIP;
class BaseFactory
{
private $defaultOptions;
public function __construct($userName, $privateKey, $mode = 'readonly', $defaultOptions = [])
{
$this->defaultOptions = array_merge([
'privateKey' => $privateKey,
'userName' => $userName,
... | SAM-IT/transip-api | src/BaseFactory.php | PHP | mit | 526 |
namespace _06_SumReversedNumbers
{
using System;
using System.Collections.Generic;
using System.Linq;
public class StartUp
{
public static void Main()
{
List<string> numbers = Console.ReadLine()
.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEn... | MrPIvanov/SoftUni | 02-Progr Fundamentals/16-Lists - Exercises/16-ListsExercises/06-SumReversedNumbers/StartUp.cs | C# | mit | 1,051 |
package com.example.app_indicator_1;
public class Constants {
public static final String LOGTAG = "NetworkExplorer";
}
| TSPZ/HelloGit | App_Indicator_1/src/com/example/app_indicator_1/Constants.java | Java | mit | 125 |
import React from 'react';
import Header from './Header';
import Copyright from './Copyright';
import PCHeader from './PCHeader';
class App extends React.Component {
componentDidMount() {
$("#back-to-top").headroom({
tolerance: 2,
offset: 50,
classes: {
initial: "animated",
pinned: "fadeIn",
u... | kongchun/BigData-Web | app/components/App.js | JavaScript | mit | 1,790 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class C_escribano extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->library('session');
$this->load->model('M_escribano');
}
public function index()
{
if($this->se... | marcespinoza/proyecto | application/controllers/C_escribano.php | PHP | mit | 66,704 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.Its.Recipes;
using Newtonsoft.Json.Linq;
using Vipr.Core.CodeModel;
using Vipr.Core.CodeModel.Vocabularies.Capabilities;
using Vipr.Writer.CSharp.Lite;
namespace CSharpLiteWriterUnitTests
{
public static cl... | v-am/Vipr | test/CSharpLiteWriterUnitTests/OdcmTestExtensions.cs | C# | mit | 6,764 |
$(document).ready(function() {
CKEDITOR.replace("sl_content", {
fullPage: true,
allowedContent: true,
filebrowserUploadUrl: '/ckeditor/upload'
});
$(".poll_delete").click(function(){
if($("#poll_title li").length<=2) {
alert('항목은 최소 두개는 입력되어야 합니다.')
return false;
}
$(this).parent().... | sleeping-lion/slboard_codeigniter | public/js/boards/add.js | JavaScript | mit | 481 |
// Copyright (c) Rotorz Limited. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root.
"use strict";
| webreed/webreed | test/fakes/plugins/fake-plugin-without-setup.js | JavaScript | mit | 142 |
<?php
/**
* Phossa Project
*
* PHP version 5.4
*
* @category Library
* @package Phossa\Query
* @author Hong Zhang <phossa@126.com>
* @copyright 2015 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa\Query... | phossa/phossa-query | src/Phossa/Query/Clause/AliasTrait.php | PHP | mit | 1,173 |
//
// Created by Alexandre Sejournant on 09/06/2016.
//
#ifndef DUNJONEER_OBJECT_HPP
#define DUNJONEER_OBJECT_HPP
#include <IEntity.hpp>
#include <Settings.hpp>
class Object : public IEntity
{
private:
Object(); //Illegal call
protected:
//SETTINGS
Settings *_config;
//ID stuff
std::st... | sejour-a/dunjoneer | headers/Object.hpp | C++ | mit | 2,449 |
namespace BingRestServices.Traffic
{
public class Severity : KeyType
{
public static readonly Severity LowImpact = Create<Severity>("1");
public static readonly Severity Minor = Create<Severity>("2");
public static readonly Severity Moderate = Create<Severity>("3");
public static... | ivanovvitaly/BingRestServices.Net | BingRestServices/Traffic/Severity.cs | C# | mit | 379 |
<?php
class ConfBase extends Conf {
function getHost () {
return $this->databaseHost;
}
function getPort () {
return $this->databasePort;
}
function getName () {
return $this->databaseName;
}
function getUser () {
return $this->databaseUser;
}
function getPassword () {
return $this->databasePas... | w-jerome/focus | app/config/config.php | PHP | mit | 452 |
function scrollDistanceFromBottom() {
return pageHeight() - (window.pageYOffset + self.innerHeight);
}
function pageHeight() {
return $("body").height();
} | bloopletech/pictures | public/javascripts/application.js | JavaScript | mit | 160 |
/* global chrome */
(function contentScript() {
function onPageMessage(event) {
const message = event.data;
if (event.source !== window) {
return;
}
// Only accept messages that we know are ours
if (typeof message !== 'object' || message === null ||
message.source !== 'react-rpm') {
... | mkawauchi/react-rpm | chrome/extension/content/contentScript.js | JavaScript | mit | 814 |
'use strict';
const path = require('path');
const should = require('should');
const Nconfetti = require('./../../index.js');
describe('Nconfetti#loadSync', () => {
it('should loadSync all config files of given directory', (done) => {
const nconfetti = new Nconfetti({path: path.join(__dirname, '..', 'configs'... | 5minds/nconfetti | tests/nconfetti/test_load_sync.js | JavaScript | mit | 684 |
<?php
namespace Formapro\Yadm;
use MongoDB\BSON\Binary;
class Uuid
{
private $binary;
public function __construct($data)
{
if (is_string($data) && false !== strpos($data, '-')) {
$bytes = \Ramsey\Uuid\Uuid::fromString($data)->getBytes();
} elseif ($data instanceof Binary) ... | makasim/yadm | src/Uuid.php | PHP | mit | 1,083 |
# -*- coding: utf-8 -*-
from jinja2 import Environment, FileSystemLoader, Template, TemplateNotFound
import jinja2.ext
import os
class TemplateProvider(object):
_template_dirs = []
def __init__(self, *args, **kwargs):
self._env = self._create_env(*args, **kwargs)
def _create_env(self, *args, **... | ra2er/templateit | templateit/providers.py | Python | mit | 3,011 |
#!/usr/bin/env node
/*
* rapò
* https://github.com/leny/rapo
*
* JS/COFFEE Document - /cli.js - cli entry point, commander setup and runner
*
* Copyright (c) 2014 Leny
* Licensed under the MIT license.
*/
"use strict";
var chalk, error, pkg, program, rapo, sURL, spinner;
pkg = require("../package.json");
rapo... | leny/rapo | lib/cli.js | JavaScript | mit | 937 |
<?php
namespace Clocanth;
use Clocanth\RouteManager;
class App
{
protected function __construct() { }
public static function run()
{
return RouteManager::instance()->routeRequest();
}
}
| fallenby/clocanth | clocanth/framework/App.php | PHP | mit | 293 |
<div class="row">
<div class="col-sm-12">
<section class="panel">
<header class="panel-heading wht-bg">
<h4 class="gen-case"><img src="<?php echo theme_url('icon_vlb/customer-black.png') ?>" class="img-icon">
<b>Add Customer Group</b>
... | chintan21191/vlb | application/modules/customer/views/admin/group/edit.php | PHP | mit | 3,654 |
#!/usr/bin/python
# load all opp file, store in a matrix, and print to files for significant interactions
import os, sys
import psyco
psyco.full()
class PW:
def __init__(self):
self.pw={}
self.pw={}
self.pw={}
self.pw={}
self.opps=[]
return
def get_opp_names(self):
fname... | MarilyGunnersLab/MCCE | mcce_stable/bin/thinopp.py | Python | mit | 1,775 |
#if (TARGETS_NETCOREAPP && LESSTHAN_NET50) || NETSTANDARD20_OR_GREATER
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma warning disable CA2217 // Do not mark enums with FlagsAttribute
#pragma warning disabl... | rsdn/CodeJam | CodeJam.Main/Targeting/CodeAnalysis/DynamicallyAccessedMemberTypes.cs | C# | mit | 2,543 |
/**
* IP blocker extension for frontend HTTPD
*
* (C) 2021 TekMonks. All rights reserved.
* License: See enclosed file.
*/
const utils = require(conf.libdir+"/utils.js");
let ipblacklist = [];
exports.name = "ipblocker";
exports.initSync = _ => utils.watchFile(`${conf.confdir}/ipblacklist.json`, data=>ipblackl... | TekMonks/monkshu | frontend/server/ext/ipblocker.js | JavaScript | mit | 925 |
using System;
using System.Reflection;
namespace ForSerial.Objects
{
[AttributeUsage(AttributeTargets.Method)]
public abstract class PreBuildAttribute : Attribute
{
private readonly Type requiredReaderType;
private readonly Type preBuildContextType;
protected PreBuildAtt... | soxtoby/ForSerial | Serializer/Objects/PreBuildAttribute.cs | C# | mit | 1,660 |
# 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/v2019_12_01/operations/_load_balancer_load_balancing_rules_operations.py | Python | mit | 8,924 |
guru_view | abhu66/sekolah | application/views/admin/guru/guru_view.php | PHP | mit | 9 |
require "application_system_test_case"
class RequestsTest < ApplicationSystemTestCase
# test "visiting the index" do
# visit requests_url
#
# assert_selector "h1", text: "Request"
# end
end
| adp90/cwrubeta-services | test/system/requests_test.rb | Ruby | mit | 205 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Security::Mgmt::V2018_06_01
module Models
#
# Azure Security Center is provided in two pricing tiers: free and
# standard, with ... | Azure/azure-sdk-for-ruby | management/azure_mgmt_security/lib/2018-06-01/generated/azure_mgmt_security/models/pricing.rb | Ruby | mit | 2,961 |
namespace StringBuilder.Substring
{
using System;
using System.Text;
public static class Extension
{
public static StringBuilder Substring(this StringBuilder sb, int startIndex, int length)
{
if (startIndex < 0 || startIndex >= sb.Length || length < 0 || startIndex + length... | danisio/CSharpOOP-Homeworks | Extension-Methods-Delegates-Lambda-LINQ/01.StringBuilder.Substring/Extension.cs | C# | mit | 646 |
( function ( root, factory ) {
if ( typeof define === 'function' && define.amd ) {
define( [ 'ko' ], factory );
} else {
root.router = factory( root.ko );
};
}( this, function ( ko ) {
"use strict";
var router = {
on404: function ( rt, e ) {
throw new Error( [
... | qwemaze/ko-router | ko-router.js | JavaScript | mit | 9,328 |
namespace WhatThe.Mods.CitiesSkylines.ServiceDispatcher.SerializableSettings
{
/// <summary>
/// The different service types.
/// </summary>
public enum ServiceType
{
/// <summary>
/// Not a service.
/// </summary>
None = 0,
/// <summary>
/// The dea... | DinkyToyz/wtmcsServiceDispatcher | wtmcsServiceDispatcher/SerializableSettings/SimpleTypes.cs | C# | mit | 1,975 |
package com.ssh.action;
import org.hibernate.sql.Update;
import org.springframework.beans.factory.annotation.Autowired;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.ssh.bean.Department;
import com.ssh.service.Depart... | mahongliang/ssh_employee | src/main/java/com/ssh/action/DepartmentAction.java | Java | mit | 1,766 |
const RATING_CHANGED = 'RATING_CHANGED';
const Rating = function(model, context) {
var stars = [];
for (var i = 1; i <= model.top; i++) {
let star = model.rating < i ? '☆' : '★';
let prevRating = (model.rating == model.prevRating) ? '' : ` (was ${model.prevRating}/${model.top})`;
let title = `${model.r... | dncrht/mical | app/javascript/packs/rating.js | JavaScript | mit | 948 |
//= require ./templates/uploading
//= require ./templates/complete
//= require ./s3_fileupload | allen13/s3_fileupload_rails | app/assets/javascripts/s3_fileupload/index.js | JavaScript | mit | 94 |
package treap
import (
"fmt"
"testing"
)
func StringLess(p, q interface{}) bool {
return p.(string) < q.(string)
}
func IntLess(p, q interface{}) bool {
return p.(int) < q.(int)
}
func TestEmpty(t *testing.T) {
tree := NewTree(StringLess)
if tree.Len() != 0 {
... | stathat/treapold | treap_test.go | GO | mit | 7,171 |
# -*- encoding : utf-8 -*-
module CommentHelper
end
| grigio/opentalk | app/helpers/comment_helper.rb | Ruby | mit | 52 |
// @ts-ignore mocked (original defined in webdriver package)
import got from 'got'
import { remote } from '../../../src'
import { ELEMENT_KEY } from '../../../src/constants'
describe('element', () => {
it('should fetch an element', async () => {
const browser = await remote({
baseUrl: 'http://f... | webdriverio/webdriverio | packages/webdriverio/tests/commands/browser/$.test.ts | TypeScript | mit | 2,233 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure end
module Azure::Network end
module Azure::Network::Mgmt end
module Azure::Network::Mgmt::V2016_06_01 end
| Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/module_definition.rb | Ruby | mit | 284 |
var five = require("johnny-five");<%
if (projectType === "useParticle") { %>
var Spark = require("spark-io");
var board = new five.Board({
// Create Johnny-Five board connected via Spark.
// Assumes access tokens are stored as environment variables
// but you can enter them directly below instead.
io: new Spark... | pierceray/generator-johnny-five | generators/app/templates/_index.js | JavaScript | mit | 2,333 |
/**
* Particle
*/
(function()
{
var nspace = this.Particle;
/**
*
* @type Particle
*/
var Particle = nspace.Particle = function(spin, energy)
{
this.spin = spin;
this.energy = energy;
};
Particle.SPIN_HALF = 0.5;
Particle.SPIN_ONE = 1;
Particle.prototype = {
spin: null,
... | bjester/quantum-probability | lib/particle/Particle.js | JavaScript | mit | 1,080 |
<div class="row">
<div class ="col-md-12">
<form method ="Post" action = "<?php echo base_url(); ?>Lektori/post_delete_lektor" enctype="multipart/form-data">
<div class ="row">
<div class ="col-md-12">
<div class ="form-group">
<input t... | JohnnySima/Agentura | application/modules/Lektori/views/delete_lektor_v.php | PHP | mit | 1,007 |
/**
* A script that will read all users from one Auth0 tenant and create new users
* in another Auth0 tenant. The existing users' metadata will be ready and only
* those users with a matching datatools client_id will be copied over. The new
* users will have new passwords set, so the users will have to reset their
... | conveyal/datatools-manager | scripts/migrate-auth0-users.js | JavaScript | mit | 9,303 |
<?php
return array (
'id' => 'lg_kf350_ver1',
'fallback' => 'lg_generic_obigo_q7',
'capabilities' =>
array (
'mobile_browser' => 'Teleca-Obigo',
'mobile_browser_version' => '7.0',
'can_skip_aligned_link_row' => 'true',
'uaprof' => 'http://gsm.lge.com/html/gsm/LG-KF350.xml',
'model_name' => ... | cuckata23/wurfl-data | data/lg_kf350_ver1.php | PHP | mit | 1,705 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Orinoco Framework, a lightweight PHP framework.">
<meta name="author" content=... | rawswift/Orinoco | src/Default/view/layout/error.php | PHP | mit | 568 |
var LocalStrategy = require('passport-local').Strategy;
var User = require('../models/user.js');
var Rider = require('../models/rider.js');
module.exports = function(passport) {
passport.serializeUser(function(user, done) {
done(null, user.id);
});
passport.deserializeUser(function(id, done) {
... | arodrig1/disgo | config/passport.js | JavaScript | mit | 1,048 |
module Clusta
module Geometry
class Edge < Element
abbreviate 'E'
key :source_label
key :target_label
field :weight, :optional => true
def weighted?
self.weight
end
def directed?
false
end
def joins? label
source_label ==... | strategist922/clusta | lib/clusta/geometry/edge.rb | Ruby | mit | 1,123 |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
let Dial = React.createClass({
displayName: "Dial",
_normalizeDegrees(degrees) {
// Normalize to a positive value between 0 and 360
return (360 + degrees) % 360;
},
_getDegrees() {
return this._normalizeDegre... | staab/staab.github.io | src/js/components/features.js | JavaScript | mit | 3,002 |