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 |
|---|---|---|---|---|---|
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module FeatureTracker
class Application < Rails::Application
# Settings in config/environments/* tak... | maxkimambo/feature_tracker | config/application.rb | Ruby | mit | 1,121 |
package panels;
import javax.swing.JPanel;
import javax.swing.JTextArea;
public class EditPanel extends JPanel {
JTextArea srcEdit;
public EditPanel() {
srcEdit = new JTextArea(20, 30);
String src = ".data\n"
+ "a: .word 1, 2, 3\n";
srcEdit.setText(src);
add(srcEdit);
}
public JTextArea get... | mulderp/plutoasm | src/panels/EditPanel.java | Java | mit | 496 |
// # Ghost Configuration
// Setup your Ghost install for various environments
var path = require('path'),
config;
config = {
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
url: 'http://objectiveclem.local',
... | johnnyclem/blog | config.js | JavaScript | mit | 2,865 |
class Projects::UsersController < ApplicationController
include StaffPlan::SharedFinderMethods
before_filter :find_target_user
before_filter :find_project, :only => [:update, :destroy]
def update
if @project.users << @target_user
render(json: {
users: @project.users.map { |u| UserDecorat... | rescuedcode/StaffPlan | app/controllers/projects/users_controller.rb | Ruby | mit | 709 |
<?php
return array (
'id' => 'orange_spv_c500_ver1_subopver4125_subua',
'fallback' => 'orange_spv_c500_ver1_subopver4125',
'capabilities' =>
array (
'max_data_rate' => '40',
),
);
| cuckata23/wurfl-data | data/orange_spv_c500_ver1_subopver4125_subua.php | PHP | mit | 195 |
<?php
namespace TodoMove\Intercessor;
use TodoMove\Intercessor\Traits\Metable;
class Folder
{
use \TodoMove\Intercessor\Traits\Identifiable, Metable;
protected $name;
/** @var Folder */
protected $parent = null;
/** @var Folder[] */
protected $children = [];
/** @var Project[] */
... | TodoMove/intercessor | src/TodoMove/Intercessor/Folder.php | PHP | mit | 1,483 |
# Poetry
Out-of-the-box framework for NodeJS Microservices
## Edito
> _Todo_
## CLI
> _Todo_
## API
### Web routing (hapi)
#### Poetry.route(_object_ `routeOptions`, _function_ `handler`)
Register a new route handled by the MicroService. The `routeOptions` are used by the web server ([HAPI](http://hapijs.com/)) t... | Appliary/Poetry | readme.md | Markdown | mit | 3,149 |
#include <Rcpp.h>
using namespace Rcpp;
// underflow prevention: if the argument to log is so small
// we get -Inf, we just give back 0.
inline double xlogy(double x, double y) {
double lg = log(y);
return (lg == R_NegInf) ? 0 : x * lg;
}
// [[Rcpp::export]]
double jsdiv_v(NumericVector P, NumericVector Q) {
... | agoldst/dfrtopics | src/JS_divergence.cpp | C++ | mit | 1,214 |
<?php
namespace Hail\Debugger;
use Psr\Http\Message\ResponseInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LoggerTrait;
use Psr\Log\LogLevel;
/**
* ChromeLogger console logger.
*
* @see https://craig.is/writing/chrome-logger
* @see https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Console_messages#... | flyinghail/Hail-Framework | src/Debugger/ChromeLogger.php | PHP | mit | 12,162 |
#ifndef CUSTOMWINDOW_H
#define CUSTOMWINDOW_H
#include "DWindow.h"
#include <TextControl.h>
class CustomWindow : public DWindow
{
public:
CustomWindow(void);
void MessageReceived(BMessage *msg);
private:
void MakeNumberBox(BTextControl *box);
void CheckValues(void);
BTextControl *fWidth,
*fHeight,
... | HaikuArchives/BeMines | src/CustomWindow.h | C | mit | 340 |
+++
date = "2016-03-13T13:12:12Z"
title = "Pandas merge function"
tags = ['pandas', 'data-verbs']
+++
[merge](http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.merge.html)
is a lot like joining in SQL.
It lets you combine together different datasets.
The [full documentation](http://pandas... | dataewan/dataewan-hugo-blog | content/data-verb/merge.md | Markdown | mit | 451 |
module NIDAG
# Exports a set of Articles in different formats
class Exporter
end
end | NIDAG/ACE | lib/Exporter.rb | Ruby | mit | 101 |
gets;w=ARGF.read.split.sort;c=s="";w.map{|x|w.index(y=x.reverse)&&x<y&&s+=x;x==y&&c=x};$><<s+c*w.count(c)+s.reverse
| neetsdkasu/Paiza-POH-MyAnswers | POH6plus/test8b.rb | Ruby | mit | 116 |
/*
* FreeRTOS Kernel V10.2.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, includ... | thoralt/KCVGA | PIC32/firmware/src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MX/ISR_Support.h | C | mit | 4,905 |
<?php
class HeaderRequest{
public $id_user = null;
public $token = null;
public $businessRequest = null;
}
?> | miguelfreelancer56577/WineRestServicesPHP | application/beans/HeaderRequest.php | PHP | mit | 117 |
require 'httparty'
module DeepThought
module Notifier
def self.notify(user, message)
begin
HTTParty.post("#{user.notification_url}", :body => {:message => message}.to_json, :headers => {'Content-Type' => 'application/json'})
rescue
'poop'
end
end
end
end
| redhotvengeance/deep_thought | lib/deep_thought/notifier.rb | Ruby | mit | 302 |
<?php
namespace spec\Money\Provider;
use Money\Provider;
use Money\Currency;
use Money\Exception\UnsupportedCurrency;
use PhpSpec\ObjectBehavior;
class BatchSpec extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('Money\Provider\Batch');
$this->shouldHaveType('Mon... | indigophp/money | spec/Money/Provider/BatchSpec.php | PHP | mit | 2,484 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable... | anas-ambri/androidcompat | docs/org/w3c/dom/DOMImplementationSource.html | HTML | mit | 68,788 |
using Myxini.Recognition.Raw;
using System;
using System.Collections.Generic;
namespace Myxini.Recognition.Image
{
public class CellDescriptor
{
const int CELL_SIZE = 8;
private class Gradient
{
public static readonly int BIN = 9;
public static readonly double ORIENTATION = Math.PI / BIN;
public Gr... | myxini/block-program | block-program/Detection/Image/CellDescriptor.cs | C# | mit | 3,701 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cours-de-coq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.8.2/cours-de-coq/8.9.0.html | HTML | mit | 6,922 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>multiplier: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.11.1/multiplier/8.6.0.html | HTML | mit | 6,619 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>minic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.2-2.0.6/extra-dev/dev/minic/8.10.0.html | HTML | mit | 7,167 |
# agence-360
On utilise panolens.js
https://github.com/pchen66/panolens.js/tree/master
| saunierpurjus/agence-360 | README.md | Markdown | mit | 89 |
using System;
namespace Embark.Storage
{
internal sealed class DocumentKeySource
{
internal DocumentKeySource(long lastKey)
{
this.lastKey = lastKey;
}
long lastKey = 0;
object syncRoot = new object();
public long GetNewKey()
{
... | chasingbob/embark | Embark/Storage/DocumentKeySource.cs | C# | mit | 574 |
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@... | VanceKingSaxbeA/FTSE-Engine | App/BVIC.php | PHP | mit | 8,633 |
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("Nu... | DJBuro/Telerik | C#1/ConsoleInputOutput/NumberComparer/Properties/AssemblyInfo.cs | C# | mit | 1,404 |
import { Controller } from "./controller.js";
import { loadShaders, samples } from "./samples.js";
import { View } from "./view.js";
export function init() {
window.onload = () => doInit();
}
function doInit() {
const controller = new Controller();
const view = new View("canvas-gl", samples, {
lev... | ghadeeras/ghadeeras.github.io | src/webgl-lab/toy.ts | TypeScript | mit | 708 |
//
// UIDevice+WTRequestCenter.h
// WTRequestCenter
//
// Created by songwt on 14-8-12.
// Copyright (c) Mike song(mailto:275712575@qq.com). All rights reserved.
// site:https://github.com/swtlovewtt/WTRequestCenter
// install
// git clone https://github.com/swtlovewtt/WTRequestCenter
@import UIKit;
@interface ... | sunbrice/WTRequestCenter | UIKit+WTRequestCenter/UIDevice+WTRequestCenter.h | C | mit | 699 |
import { FETCH_AUTHOR, UPDATE_AUTHOR } from 'shared/constants/actions';
const INITIAL_STATE = {
author: {},
errorMessage: ''
};
export default function (state = INITIAL_STATE, action) {
switch (action.type) {
case FETCH_AUTHOR.SUCCESS:
// author -> { id, email, name, image, description, introductio... | tsurupin/portfolio | frontend/src/shared/reducers/authors.js | JavaScript | mit | 626 |
'use strict'
// Load requirements
const slack = require('slack')
const path = require('path')
// Load utilities
const i18n = require('../locale')
const logger = require('../log')
// Data directory
const dataDir = path.join(__dirname, '../../../data/')
// User tracking and handling
module.exports = {
// User flag... | jHoldroyd/trollmoji | app/libs/users/index.js | JavaScript | mit | 2,250 |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("globalboost-y-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
"%s\n"
"It is r... | GlobalBoost/GlobalBoostY | src/qt/bitcoinstrings.cpp | C++ | mit | 14,532 |
Function Get-ConfigurationData
{
[CmdletBinding()]
[OutputType([hashtable])]
Param (
[Parameter(Mandatory)]
[Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()]
[hashtable] $ConfigurationData
)
return $ConfigurationData
}
... | pvs043/cMDTBuildLab | src/Public/Get-ConfigurationData.ps1 | PowerShell | mit | 321 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using RobsonROX.Util.Collections;
namespace RobsonROX.Util.Extensions
{
// ReSharper disable once InconsistentNaming
// ReSharper disable PossibleMultipleEnumeration
/// <summary>
/// Métodos de extensão para... | RobsonROX/Util | Util/Extensions/IEnumerableExtensions.cs | C# | mit | 3,431 |
# This recipe configures the authentication type for the TeamCity server
# Prepare to restart the service if changes are instituted
service "TeamCity" do
action :nothing
supports :status => true, :start => true, :stop => true, :restart => true
end
# Set authentication configuration and restart the service
auth_ty... | CLEAResult/chef-teamcity | recipes/authentication.rb | Ruby | mit | 796 |
# Copyright (c) 2013-2014 Will Thames <will@thames.id.au>
#
# 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... | ansible/ansible-lint | src/ansiblelint/rules/MercurialHasRevisionRule.py | Python | mit | 1,951 |
#include <stdio.h>
#include "engine/game.c"
int main(int argc, char** argv) {
printf("hello world\n");
return 0;
}
| gluggs/untitledgame | src/main.c | C | mit | 118 |
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 24, 2015 at 04:41 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... | alvaro893/WordPracticeJavaEE | src/java/javaee.sql | SQL | mit | 5,500 |
//
// CoronaApplication.java
// TemplateApp
//
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
package com.wonhada.EnterpriseExample;
/**
* Extends the Application class to receive Corona runtime events and to extend the Lua API.
* <p>
* Only one instance of this class will be created by the An... | englekk/CoronaEnterpriseTemplate | src/android/src/com/wonhada/EnterpriseExample/CoronaApplication.java | Java | mit | 3,873 |
package iternada
import (
"errors"
)
var (
errNilReceiver = errors.New("Nil Receiver")
)
| reiver/go-iter | nada/errors.go | GO | mit | 95 |
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'asn_translate'
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| requ... | seeingidog/asn_translate | spec/spec_helper.rb | Ruby | mit | 363 |
/*
* Adjust display of page based on search results
*/
function findSearchResults(data, dataLength) {
$("#duplicate_box").remove();
var userString = $("#searchForm #searchField").val();
var minSearchLength = 1;
if (userString.length >= minSearchLength) {
//this calls search() inside itself
... | OpenTechStrategies/openhmis-intake | public/js/search.js | JavaScript | mit | 10,538 |
<!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">
<title>Julia Package Listing - Testing Information</title>
<style>
/* -- Mix of julialang.org, Bootstrap ... | phobon/packages.julialang.org | detail/LinearMaps.html | HTML | mit | 9,763 |
@extends('layouts.app')
@section('title')
Edit Ad
@endsection
@section('content')
<div class="row">
@include('ads._nav', ['_active' => null])
<div class="col-9">
<h2>Edit @null($ad) "{{ $ad->name }}" @else New @endnull</h2>
<div class="row mt-4">
<div cl... | CoasterPoll/CoasterPoll | resources/views/ads/ads/edit.blade.php | PHP | mit | 7,337 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... | coq-bench/coq-bench.github.io-old | clean/Linux-x86_64-4.02.1-1.2.0/unstable/8.4.5/contrib:qarith-stern-brocot/8.4.dev/2015-01-30_17-53-28.html | HTML | mit | 23,955 |
---
layout: page
title: Sphere Technologies Dinner
date: 2016-05-24
author: Rebecca Jimenez
tags: weekly links, java
status: published
summary: Duis purus elit, volutpat non augue aliquet, placerat.
banner: images/banner/leisure-02.jpg
booking:
startDate: 06/22/2016
endDate: 06/23/2016
ctyhocn: CASNCHX
groupCod... | KlishGroup/prose-pogs | pogs/C/CASNCHX/STD/index.md | Markdown | mit | 2,297 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View $this
* @var amnah\yii2\user\Module $module
* @var amnah\yii2\user\models\User $user
* @var amnah\yii2\user\models\Profile $profile
* @var amnah\yii2\user\models\Role $role
* @var yii\widgets\ActiveForm $form
*/
?>
<div class="us... | sokolby/skl-yii2-admin | views/points/_form.php | PHP | mit | 757 |
import { Component } from '@angular/core';
import { VideoPlayerService, VideoPlayerSignals } from '../video-player.service';
@Component({
moduleId: module.id,
selector: 'fo-video-controls-ws',
templateUrl: 'video-controls-ws.component.html',
styleUrls: ['video-controls-ws.component.css']
})
export class VideoC... | liveandie/angular-playground | src/client/app/videoPlayer/controls-w-service/video-controls-ws.component.ts | TypeScript | mit | 664 |
'use strict';
/**
* Module dependencies.
*/
import * as fs from 'fs';
import * as http from 'http';
import * as https from 'https';
import * as express from 'express';
import * as morgan from 'morgan';
import * as bodyParser from 'body-parser';
import * as session from 'express-session';
import * as compress from '... | tomymolina/typescript-rean-example | config/express.ts | TypeScript | mit | 5,368 |
# kontent
> A lightweight CMS based on Vue.js
## Features
* Live Markdown Editor
* Built-in User Authentication
* File-based Article CRUD
* Simple but fast article listing
## Demo
Visit a live demo [here](http://kontent.za-pt.org).
## Quick Start
You need NodeJS 6+, npm or yarn.
### 1 Clone repo
```bash
git cl... | Cubelrti/kontent | README.md | Markdown | mit | 1,437 |
# Computer_Concepts_2_Portfolio_Website
## Author
Dillon Downey
## Description
Portland Community College Computer Concepts II course portfolio website.
- Mobile First: Progressive Enhancement vs. Graceful Degredation
- LESS with parametric mixins
## Known Bug
Text editor Brackets.io has a bug where it creates a ... | downeyd27/Computer_Concepts_2_Portfolio_Website | README.md | Markdown | mit | 433 |
package hu.progtech.cd2t100.asm;
import java.lang.reflect.Type;
import com.google.gson.InstanceCreator;
class LocationInstanceCreator implements
InstanceCreator<Location> {
public Location createInstance(Type type) {
return new Location(0, 0);
}
}
| battila7/cd2t-100 | cd2t-100-core/src/test/java/hu/progtech/cd2t100/asm/LocationInstanceCreator.java | Java | mit | 262 |
#include "deps.h"
// Not implemented:
// SDL_ConvertSurface - need PixelFormat implementation
// SDL_CreateRGBSurfaceFrom - need to think about memory management? clone? keep reference?
// SDL_CreateRGBSurfaceWithFormatFrom - ditto
// SDL_LoadBMP_RW
// SDL_SaveBMP_RW
// SDL_SetSurfacePalette - need palette implementat... | jaz303/node-sdl2-bindings | src/functions/surface_drawing.cc | C++ | mit | 11,676 |
---
layout: post
date: '2015-10-10'
title: "Halter Alfred Sung by Dessy Bridesmaids Dress D607"
category: Halter
tags: [Halter]
---
### Halter Alfred Sung by Dessy Bridesmaids Dress D607
Just **$196.99**
###
<a href="https://www.eudances.com/en/halter/1780-alfred-sung-by-dessy-bridesmaids-dress-d607.html"><img... | lastgown/lastgown.github.io | _posts/2015-10-10-Halter-Alfred-Sung-by-Dessy-Bridesmaids-Dress-D607.md | Markdown | mit | 973 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>My Python Project</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
<link rel="stylesheet" href="m-dark+documentation.compiled.css" />
<meta n... | mosra/m.css | documentation/test_python/inspect_string/classes.html | HTML | mit | 4,229 |
<?php
namespace App;
class App
{
public $title = 'Mon super site';
private $db_instance;
private static $_instance;
public static function getInstance()
{
if (is_null(self::$_instance)) {
self::$_instance = new App();
}
return self::$_instance;
}
pu... | Julien35/dev-courses | CoursGrafikart/Blog/app/App.php | PHP | mit | 869 |
# frozen_string_literal: true
require 'test_helper'
class ExpectedRandomizationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| remomueller/slice | test/models/expected_randomization_test.rb | Ruby | mit | 166 |
<!DOCTYPE html>
<html>
<head>
<title>Энтони Тистудио</title>
<meta charset="utf-8" />
<link rel="stylesheet" media="all" href="/styles/style.css" type="text/css" />
</head>
<body>
<a name="top"></a>
<div class="at-wrap0">
<div class="at-left">
... | teestudio/anthony | tags/statique/1/index.html | HTML | mit | 4,734 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
public class OddLInes
{
static void Main()
{
string[] textLines = File.ReadAllLines("input.txt");
List<string> oddLines = new List<string>();
for (int i = 0; i < textLines.Length; i++)
{
... | komitoff/Softuni-Programming-Fundamentals | FilesAndExceptions_Lab/E1.OddLines/OddLInes.cs | C# | mit | 488 |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Random Design Co</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple... | bthoes/Initial-Commit | index.html | HTML | mit | 3,548 |
# v0.5.3
* Original: [Release atom-shell v0.5.3 - electron/electron](https://github.com/electron/electron/releases/tag/v0.5.3)
Changelog:
* Fix crash when sending http request.
* HTTP リクエスト送信時にクラッシュする問題を修正しました
* 特になし
| akabekobeko/electron-release-notes-ja-private-edition | v0.x/v0.5/v0.5.3.ja.md | Markdown | mit | 282 |
Rickshaw.namespace('Rickshaw.Graph.Axis.Y.Scaled');
Rickshaw.Graph.Axis.Y.Scaled = Rickshaw.Class.create( Rickshaw.Graph.Axis.Y, {
initialize: function($super, args) {
if (typeof(args.scale) === 'undefined') {
throw new Error('Scaled requires scale');
}
this.scale = args.scale;
if (typeof(a... | butterflyhug/rickshaw | src/js/Rickshaw.Graph.Axis.Y.Scaled.js | JavaScript | mit | 1,679 |
<div ng-controller="PaneController">
<div class="modal-header">
<h3 class="modal-title">Add person</h3>
</div>
<div class="modal-body" ng-controller="PersonController as personCtrl">
<div>
<div>
<form ng-model="poc">
<label>Person:<input type="text" ng-model="search... | brinxmat/rdf-data-entry | NTNU-example/app/templates/recipient-pane-data.html | HTML | mit | 1,018 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.0 [en]</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.c... | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/7d/e3/7de3554a-c85e-427a-a3d4-cf656e01fb1c.html | HTML | mit | 55,789 |
---
layout: page
title: Villanueva Alpha Air Dinner
date: 2016-05-24
author: Martha Bishop
tags: weekly links, java
status: published
summary: Cras laoreet tempor risus nec.
banner: images/banner/leisure-03.jpg
booking:
startDate: 06/09/2018
endDate: 06/13/2018
ctyhocn: HARNOHX
groupCode: VAAD
published: true
-... | KlishGroup/prose-pogs | pogs/H/HARNOHX/VAAD/index.md | Markdown | mit | 2,563 |
//Here is all the code that builds the list of objects on the right-hand
//side of the Labelme tool.
//The styles for this tools are defined inside:
//annotationTools/css/object_list.css
var IsHidingAllPolygons = false;
var ProgressChecking = false;
//var IsHidingAllFilled = true;
var ListOffSet = 0;
//This functi... | levan92/uLabel | annotationTools/js/object_list.js | JavaScript | mit | 8,435 |
<?php
namespace WebLoader\Nette;
use Nette\DI\Container;
use Nette\Http\IRequest;
use WebLoader\Compiler;
class LoaderFactory
{
/** @;var IRequest */
private $httpRequest;
/** @var Container */
private $serviceLocator;
/** @var array */
private $tempPaths;
/**
* @param array $tempPaths
* @param IReque... | Jecma/JecmaBlog | vendor/janmarek/webloader/WebLoader/Nette/LoaderFactory.php | PHP | mit | 1,559 |
// The MIT License (MIT)
//
// CoreTweet - A .NET Twitter Library supporting Twitter API 1.1
// Copyright (c) 2013-2015 CoreTweet Development Team
//
// 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... | haripo/CoreTweet | CoreTweet.Shared/Attribute.cs | C# | mit | 2,476 |
define([
"knockout",
// mappoint needs to be here first for addEventListener
"../modules/mappoint",
], function (ko) {
// create result object
var result = {
cityname : ko.observable(''),
citydata : ko.observableArray([])
};
// subscribe to custom event
window.addEventListener("getTitle", getWikipedia, fa... | JSchermers/neighborhoodmap | scripts/modules/api-call-wikipedia.js | JavaScript | mit | 2,610 |
require 'spec_helper'
describe Scraper do
describe "#todos" do
it "should return an array of Todo objects given a file" do
path = File.dirname(__FILE__) + '/example'
todos = Scraper.todos(path)
todos.length.should == 2
end
end
end
| Dillon-Benson/todo-reminder | spec/todo_reminder/scraper_spec.rb | Ruby | mit | 262 |
# Using a Condition
A condition is simple enough, it has some values of which are met from the parent call.
the `Condition()` has three base values.
+ Item to watch
first arg is the item to monitor on the network. This is a name or a node; something to monitor.
```python
c = Condition('TestNode')
c.watch
'TestNo... | Strangemother/python-state-machine | docs/book/condition/usage.md | Markdown | mit | 3,731 |
import path from 'path';
import os from 'os';
import { assert, test } from 'yeoman-generator';
describe('sails-rest-api:logger', () => {
describe('Should properly scaffold default configuration', () => {
before(done => test.run(path.join(__dirname, '../../src/logger')).on('end', done));
it('Should properly ... | konstantinzolotarev/generator-hapi-micro | test/unit/logger.test.js | JavaScript | mit | 1,746 |
class Solution {
public:
int minMoves(vector<int>& nums) {
sort(nums.begin(), nums.end());
int ans = 0;
for(int i = 1; i < nums.size(); i++){
ans += nums[i] - nums[0];
}
return ans;
}
};
| zfang399/LeetCode-Problems | 453.cpp | C++ | mit | 247 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./2ac1f38f6642fd3e1d4749b4b5c2eb811fc47273838e819f064d3c14a70d0bea.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/f332d8c341f21d167412913e57c3f720c8e14bdfdce343581e33c242c397052d.html | HTML | mit | 550 |
// Copyright 2012 Room77, Inc.
// Author: Uygar Oztekin
#include "base/common.h"
// intercept memory allocation failures and force a stack trace
struct InitNewHandler {
static void NewHandler () {
cout << "\n*** Memory allocation Failed! About to segfault ***" << endl;
// Cause a segfault.
void* ptr = n... | room77/77up | public/util/memory/new_handler.cc | C++ | mit | 514 |
namespace HockeyApp.DataExchange.Contracts
{
public interface IArenaImportService : IImportService
{
}
}
| ekonor/hokeyapp | net47/HockeyApp/HockeyApp.DataExchange/Contracts/IArenaImportService.cs | C# | mit | 120 |
angular.module( 'remote.xbmc-service' , [] )
.service( 'XBMCService', function( $log,$http,Storage ){
//http://kodi.wiki/view/JSON-RPC_API/v6
var XBMC = this,
settings = (new Storage("settings")).get();
url = 'http://' + settings.ip + '/',
command = {id: 1, jsonrpc: "2.0" };
//url = 'http://localhost:8200/... | jamesanewman/remote-control | src/app/shared/xbmc.js | JavaScript | mit | 1,448 |
#include "Calc.hpp"
#include <cmath>
#define PI 3.14159265
float Calc::radToDeg(float rad)
{
return rad * ( 180.f / PI);
}
float Calc::degToRad(float deg)
{
return deg * (PI / 180.f);
}
/*
* Rotation around origin:
* rotation matrix P
* ( x' ) = ( cos a -sin a ) * ( x ) = cos a * x - sin... | TmCrafz/ArenaSFML | src/Calc.cpp | C++ | mit | 2,165 |
oc-scripts
==========
OpenComputers Scripts!
Mostly has stuff in it useful on my server. Probably useful elsewhere, though.
MIT licenced! Do what you want, but if my code blows up your server it's not my fault!
(although I do my best to avoid server-blowy-uppy)
| Pwootage/oc-scripts | README.md | Markdown | mit | 266 |
# frozen_string_literal: true
# Migration to create the `schedules` table used by Schedulable
class CreateSchedules < ActiveRecord::Migration[5.1]
def self.up
create_table :schedules do |t|
t.references :schedulable, polymorphic: true
t.date :date
t.time :time
t.string :rule
t.str... | gemvein/date_book | db/migrate/20170807133847_create_schedules.rb | Ruby | mit | 514 |
import Ember from "ember";
import { module, test } from 'qunit';
import startApp from '../helpers/start-app';
import { authenticateSession } from 'code-corps-ember/tests/helpers/ember-simple-auth';
import indexPage from '../pages/index';
let application;
module('Acceptance: Logout', {
beforeEach: function() {
a... | eablack/code-corps-ember | tests/acceptance/logout-test.js | JavaScript | mit | 892 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NXDO.RJava.Attributes
{
/// <summary>
/// 标识 java 接口的类型名称。
/// </summary>
[AttributeUsage(AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
public class JInterfaceAttribute : JClassA... | javasuki/RJava | NXDO.Mixed.V2015/NXDO.RJava/Attributes/JInterfaceAttribute.cs | C# | mit | 1,248 |
//
// SJCheckButton.h
// vesta
//
// Created by Florent Segouin on 15/12/14.
// Copyright (c) 2014 utt. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SJCheckButton : UIButton
@property (nonatomic, getter = isEmphasized) BOOL emphasized;
@end
| fsegouin/vesta-ios-client | vesta/Models/SJCheckButton.h | C | mit | 263 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>gappa: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.11.2-2.0.7/released/8.11.2/gappa/1.4.2.html | HTML | mit | 6,848 |
<!DOCTYPE html>
<html lang="de">
<head>
<title>Feedback 5 – WPF Digitale Kommunikation – Medieninformatik am Campus Gummersbach</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initi... | th-koeln/mi-wpf-digitale-kommunikation | _site/lehrveranstaltungen/feedback-5/index.html | HTML | mit | 4,892 |
<?php
namespace Site\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Site\MainBundle\Entity\ModuleMap
*
* @ORM\Table(name="module_map")
* @ORM\Entity(repositoryClass="Site\MainBundle\Entity\Repository\ModuleMa... | olegfox/landing | src/Site/MainBundle/Entity/ModuleMap.php | PHP | mit | 2,549 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
Cu.import("resource://gre/modules/Services.jsm");
const TEST_DATA = "ftp://ftp.mozqa.com/";
var s... | lucashmorais/x-Bench | mozmill-env/msys/firefox/tests/remote/testLayout/testNavigateFTP.js | JavaScript | mit | 894 |
var data = {videos-content: {}} | ulabspro/ilq | markup/components/videos-content/data/data.js | JavaScript | mit | 31 |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from setuptools import setup
setup(
name='libipa',
version='0.0.6',
author='Andrew Udvare',
author_email='audvare@gmail.com',
packages=['ipa'],
scripts=['bin/ipa-unzip-bin', 'bin/ipa-dump-info'],
url='https://github.com/Tatsh/libipa',
licens... | Tatsh/libipa | setup.py | Python | mit | 555 |
(function ($) {
// Navigation scrolls
$('.navbar-nav li a').bind('click', function (event) {
$('.navbar-nav li').removeClass('active');
$(this).closest('li').addClass('active');
var $anchor = $(this);
var nav = $($anchor.attr('href'));
if (nav.length) {
$('... | danurwenda/mariteam | dist/js/public/custom.js | JavaScript | mit | 1,422 |
(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[23],{947:function(t,i,o){"use strict";jQuery("#posts-filter .tablenav.top").after('<div class="notice notice-info inline wpseo-filter-explanation"><p class="dashicons-before dashicons-lightbulb">'+yoastFilterExplanation.text+"</p></div>")}},[[947,0]]]); | agencja-acclaim/gulp-bower-webapp | wp-content/plugins/wordpress-seo/js/dist/wp-seo-filter-explanation-960.min.js | JavaScript | mit | 316 |
/*
* PhraseService.java
*
* Copyright (C) 2018 [ A Legge Up ]
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.content;
import java.util.List;
import java.util.UUID;
import com.aleggeup.confagrid.model.... | ALeggeUp/confagrid | application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/content/PhraseService.java | Java | mit | 514 |
import util from 'util'
import mongoose from 'mongoose'
import seedData from '../seedData'
const debug = require('debug')('api:server:db')
mongoose.Promise = require('bluebird')
const host = process.env.MONGO_HOST || 'localhost'
const database = process.env.MONGO_DATABASE || 'admin'
const port = process.env.MONGO_POR... | ameier38/mindhypertrophy-api | src/server/db.js | JavaScript | mit | 893 |
<HTML><HEAD>
<TITLE>Review for Mission: Impossible II (2000)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0120755">Mission: Impossible II (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/Rev... | xianjunzhengbackup/code | data science/machine_learning_for_the_web/chapter_4/movie/24990.html | HTML | mit | 5,539 |
---
title: Shell shock
description: After playing with ZSH and Tmux on Linux I felt left out on Windows. But, even if it goes against popular belief, it is possible to have an awesome shell!
permalink: /shell-shock
category: code
tags: [.NET, agnoster, chocolatey, cli, command line, conemu, git, github, posh-git, power... | JanJoris/blog | _posts/2016-03-19-shell-shock.md | Markdown | mit | 3,894 |
## 满足变化中存储需求的高效架构
原创 *2016-05-18* *EMC中文技术社区* [EMC易安信中国技术社区](https://mp.weixin.qq.com/s?__biz=MjM5NjY0NzAwMg==&mid=2651770905&idx=2&sn=718767e6d3da273d347dac6a066b6b49&scene=21##)
软件定义的存储的主要目标是将应用程序和数据与最适当的存储单元保持一致。而满足利用软件定义存储构建高效存储架构的关键是,从战略上制定政策来规划软件定义的存储解决方案需要整个存储基础架构的全面可见性。本文描述了一些实现软件定义存储高效架构的一些考虑。
... | tiansiyuan/storage | basics/5.4-满足变化中存储需求的高效架构.md | Markdown | mit | 5,823 |
<table>
<tbody>
<tr class="votable">
<td>
<div data-id="1">
<form action="/votes/1" class="formtastic vote" id="edit_vote_1">
<input name="_method" type="hidden" value="delete" />
<input class="unvote" name="commit" type="submit" value="Unvote" />
</form>
... | drucko/sched.do | spec/javascripts/templates/unvote.html | HTML | mit | 839 |
package cs2020;
public interface IMazeSolverWithPower extends IMazeSolver {
/**
* Finds the shortest path from a given starting coordinate to an
* ending coordinate with a fixed number of Powers given
*
* @param startRow
* @param startCol
* @param endRow
* @param endCol
* @param superp... | burnflare/cs2020 | Ps7/src/cs2020/IMazeSolverWithPower.java | Java | mit | 569 |
package com.lms.dao;
import java.util.List;
import com.lms.jpa.Person;
public interface DAOPerson {
public boolean personExist(long personId);
public void insertPerson(Person person);
public void updatePerson(Person person);
public void deletePerson(long personId);
public Pers... | deepshah22/spring-mvc | src/main/java/com/lms/dao/DAOPerson.java | Java | mit | 410 |
import * as type from '../../../src/validators/type';
describe('type Unit Tests', () => {
describe('isArray method', () => {
describe('when the node does not exist in the package.json file', () => {
test('true should be returned', () => {
const packageJson = {
name: ['awesome-module'],
... | tclindner/npm-package-json-lint | test/unit/validators/type.test.ts | TypeScript | mit | 6,774 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Sun Aug 01 21:54:59 BST 2004 -->
<TITLE>
RowSetDynaClass (Bean Introspection Utilities (Version 1.7))
</TITLE>
<META NAME="keywords" CONTENT="org.apache.com... | derekhu0002/myresources | resources/fileupdate_common_files/commons-beanutils-1.7.0/commons-beanutils-1.7.0/docs/api/org/apache/commons/beanutils/RowSetDynaClass.html | HTML | mit | 37,165 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.