repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
ds82/partial2js | index.js | 4307 | //
// partial2js
// Copyright (c) 2014 Dennis Sänger
// Licensed under the MIT
// http://opensource.org/licenses/MIT
//
"use strict";
var glob = require('glob-all');
var fs = require('fs');
var path = require('path');
var stream = require('stream');
var htmlmin = require('html-minifier').minify;
var escape... | mit |
mcansky/mcansky.github.io | _posts/2013-11-26-Creating-a-gem-with-minitest.md | 10874 | ---
layout: post
title: Creating a gem with bundler
date: 2013-11-26 10:48:31
disqus: n
---
A trick I am learning since 2 years ago : splitting up even more of the main code base into smaller parts. The ideas behind this are numerous : from speeding up tests to keeping things simple.
Defining sub parts of the product... | mit |
imyuvii/concrete | application/files/cache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/2ddb27c5cdf0b672/745d4c64665be841/6a8ae9bbe8c71756/ee7cd192ca4a73e0.php | 307 | <?php
/* Cachekey: cache/stash_default/doctrine/doctrinenamespacecachekey[dc2_b1b70927f4ac11a36c774dc0f41356a4_]/ */
/* Type: array */
$loaded = true;
$expiration = 1425255999;
$data = array();
/* Child Type: integer */
$data['return'] = 1;
/* Child Type: integer */
$data['createdOn'] = 1424843731;
| mit |
OSU-Infovis/BlocksAndGuides | ui.html | 1378 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blocks & Guidelines</title>
<link rel="stylesheet" type="text/css" href="./css/ui.css">
<script... | mit |
ata/kkn | protected/models/AsuransiForm.php | 910 | <?php
class AsuransiForm extends CFormModel
{
public $stringNIM;
public $arrayNIM;
public function rules()
{
return array(
array('stringNIM', 'required'),
);
}
public function attributeLabels()
{
return array(
'stringNIM' => Yii::t('app','NIM'),
);
}
protected function beforeValidate()
{
p... | mit |
escuccim/LaraBlog | LICENSE.md | 1136 | # The MIT License (MIT)
Copyright (c) 2017 Eric Scuccimarra <skooch@gmail.com>
> 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
>... | mit |
zentner-kyle/lua-live | example/hello1.lua | 105 | function main()
while true do
print('Hello')
end
end
live.patch('main', main)
live.start(main)
| mit |
DotNetAnalyzers/StyleCopAnalyzers | StyleCop.Analyzers/StyleCop.Analyzers/OrderingRules/SA1203ConstantsMustAppearBeforeFields.cs | 6370 | // 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.OrderingRules
{
using System;
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;... | mit |
polosskevin/zia | src/modules/server/lw_network/ReactiveSocketBase.h | 5070 | //
// Created by Kévin POLOSSAT on 14/01/2018.
//
#ifndef LW_TCP_SERVER_SOCKET_H
#define LW_TCP_SERVER_SOCKET_H
#include <memory>
#include <type_traits>
#include "Socket.h"
#include "Reactor.h"
#include "Buffer.h"
#include "Operation.h"
#include "SSLSocket.h"
namespace lw_network {
template<typename Sock = Socket>
... | mit |
Xcoder1011/OC_StudyDemo | OC与JS互调/WebView-JS/WebView-JS/加载本地的js,html,css/js/test.js | 248 | var testLogin = function(){
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
alert("username="+username+" , password="+password);
}
window.onload = function (){
}
| mit |
smarkets/smk_python_sdk | smarkets/statsd.py | 2824 | from __future__ import absolute_import, division, print_function, unicode_literals
# Statsd client. Loosely based on the version by Steve Ivy <steveivy@gmail.com>
import logging
import random
import socket
import time
from contextlib import contextmanager
log = logging.getLogger(__name__)
class StatsD(object):
... | mit |
quartz-software/kephas | src/Kephas.Core/Diagnostics/Profiler.cs | 19835 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Profiler.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root ... | mit |
SolidEdgeCommunity/docs | docfx_project/snippets/SolidEdgePart.RevolvedCutout.TopCap.cs | 1741 | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace Examples
{
class Program
{
[STAThread]
static void Main(string[] args)
{
SolidEdgeFramework.Application application = null;
SolidEdgePart.PartDocument partDocument = ... | mit |
jaylane/nycdispensary | app/controllers/my_sessions_controller.rb | 206 | class MySessionsController < ApplicationController
prepend_before_filter :stop_tracking, :only => [:destroy]
def stop_tracking
current_user.update_attributes(:current_sign_in_ip => nil)
end
end
| mit |
kenshinthebattosai/LinqAn.Google | src/LinqAn.Google/Metrics/Goal19Completions.cs | 490 | using System.ComponentModel;
namespace LinqAn.Google.Metrics
{
/// <summary>
/// The total number of completions for the requested goal number.
/// </summary>
[Description("The total number of completions for the requested goal number.")]
public class Goal19Completions: Metric<int>
{
/// <summary>
/// Inst... | mit |
lindexi/lindexi_gd | WemkuhewhallYekaherehohurnije/WemkuhewhallYekaherehohurnije/Program.cs | 2129 | using Silk.NET.Input;
using Silk.NET.Maths;
using Silk.NET.Windowing;
namespace WemkuhewhallYekaherehohurnije
{
class Program
{
private static IWindow _window;
private static void Main(string[] args)
{
//Create a window.
var options = WindowOptions.Default;
... | mit |
cmeon/Simplex | lib/unsupported/test/CMakeFiles/polynomialutils_4.dir/cmake_clean.cmake | 297 | FILE(REMOVE_RECURSE
"CMakeFiles/polynomialutils_4.dir/polynomialutils.cpp.o"
"polynomialutils_4.pdb"
"polynomialutils_4"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang CXX)
INCLUDE(CMakeFiles/polynomialutils_4.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
| mit |
ICJIA/icjia-public-website | _content/55-publications/2021-03-15-overdose-fatality-review-teams-literature-review.html | 1987 | ---
title: Overdose Fatality Review Teams Literature Review
_template: publication
area:
- Criminal Justice System
pubtype:
- Research Report
pubstatatus: 'true'
summary: States and localities across the United States have implemented overdose fatality review teams to address the impact of the opioid crisis on thei... | mit |
BaisicaSAS/LibreameBE | src/Libreame/BackendBundle/Helpers/GestionEjemplares.php | 38081 | <?php
namespace Libreame\BackendBundle\Helpers;
use Libreame\BackendBundle\Controller\AccesoController;
use Libreame\BackendBundle\Repository\ManejoDataRepository;
use Libreame\BackendBundle\Entity\LbIdiomas;
use Libreame\BackendBundle\Entity\LbUsuarios;
use Libreame\BackendBundle\Entity\LbEjemplares;
use Libreame... | mit |
jhelbig/postman-linux-app | app/resources/app/node_modules/8fold-marked/lib/marked.js | 29680 | /**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
;(function() {
/**
* Block-Level Grammar
*/
var block = {
newline: /^\n+/,
code: /^( {4}[^\n]+\n*)+/,
fences: noop,
hr: /^( *[-*_]){3,} *(?:\n+|$)/,
heading: /^ *(#{1,6}... | mit |
nmakimoto/nmlib | test/gtest_diff.cpp | 2456 | // Unit Test (numerical differentiation)
#include <gtest/gtest.h>
#include <cmath>
#include "diff.h"
#include "matrix.h"
using namespace nmlib;
static double f_11(double x){ return cos(x); }
static double f_n1(const Matrix& x){ return cos(x(0))*cos(2*x(1)); }
static Matrix f_nm(const Matrix& x){ Matrix y(3); y(0)=... | mit |
socialgorithm/ultimate-ttt-web | src/components/Lobby/Tournament/types/Brackets/index.js | 1151 | import React from "react";
import { Message } from "semantic-ui-react";
import Bracket from "./Bracket";
import "./index.scss";
import parseStats from './parseStats';
export default class Brackets extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
data: this.updateStats(p... | mit |
simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/b27a49775c444cb482bdd5ad724ef29021224f933713fb663dba33bd34c415e1.html | 550 | <!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="./41814c947891496a1acc2233f71c55d6d8d51db20b34ea7b2815cc76b4bf13c8.html">Teleport</a>
<hr>
... | mit |
simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/37b93c337d764afc6c82c4a0e3a29ac3eb67cfb701bc613645d1067f200bb816.html | 550 | <!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="./d2fe18e71c8455c6ae9719209877704ba01fd0b8a3641bcff330a4d9c8a66210.html">Teleport</a>
<hr>
... | mit |
AjaxJackjia/TGA | WebContent/module/view/tools/MotivationBtnView.js | 4112 | define([ 'backbone', 'metro', 'util' ], function(Backbone, Metro, Util) {
var MotivationBtnView = Backbone.View.extend({
className: 'motivation-btn-view menu-btn',
events: {
'click': 'toggle',
'mouseover': 'over',
'mouseout': 'out',
},
initialize: function(){
//ensure correct scope
_.... | mit |
justinslee/robocode-jsl-EasyKillBot | doc/index-files/index-9.html | 6055 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_11) on Wed Mar 06 13:52:23 HST 2013 -->
<title>S-Index</title>
<meta name="date" content="2013-03-06">
<link rel="stylesheet" type="tex... | mit |
neutroncoin/neutron | src/netaddress.h | 6442 | // Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_NETADDRESS_H
#define BITCOIN_NETADDRESS_H
#include "compat.h"
#include "serialize.h"
#include <stdint.h>
#i... | mit |
tpkemme/tacticalwp-theme | library/shortcode/switch.php | 1075 | <?php
/**
* Switch shortcode
*
* @category TacticalWP-Theme
* @package TacticalWP
* @author Tyler Kemme <dev@tylerkemme.com>
* @license MIT https://opensource.org/licenses/MIT
* @version 1.0.4
* @link https://github.com/tpkemme/tacticalwp-theme
* @since 1.0.0
*/
/**
* Outputs an switch when the [twp-switc... | mit |
kjchalup/dtit | setup.py | 2610 | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='fcit',
# Versions... | mit |
PythonProgramming/Support-Vector-Machines---Basics-and-Fundamental-Investing-Project | p10.py | 4949 | import pandas as pd
import os
import time
from datetime import datetime
import re
from time import mktime
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import style
style.use("dark_background")
# path = "X:/Backups/intraQuarter" # for Windows with X files :)
# if git clone'ed then use relative path... | mit |
madHEYsia/Muzk | app/containers/App/actions.js | 1581 | /*
* App Actions
*
* Actions change things in your application
* Since this boilerplate uses a uni-directional data flow, specifically redux,
* we have these actions which are the only way your application interacts with
* your application state. This guarantees that your state is up to date and nobody
* messes ... | mit |
nuintun/oninput-fix | README.md | 587 | # oninput-fix
>Fix input event in jquery, support low version of ie.
### Introduction:
Default is CommonJS module
If not CommonJS you must do this:
>1.Remove first and last line of the code
>
>2.Wrap code useing:
```js
(function ($){
// the code of remove first and last line
}(jQuery));
```
### API:
Sample:
>
``... | mit |
cretz/go-safeclient | cmd/ls.go | 804 | package cmd
import (
"errors"
"github.com/cretz/go-safeclient/client"
"github.com/spf13/cobra"
"log"
"os"
)
var lsShared bool
var lsCmd = &cobra.Command{
Use: "ls [dir]",
Short: "Fetch directory information",
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) != 1 {
return errors.New("... | mit |
mattgraham/play-graham | vendor/gems/ruby/1.8/gems/rb-appscript-0.6.1/doc/aem-manual/03_packingandunpackingdata.html | 4487 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>rb-aem manual | 3. Packing and unpacking data</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" ... | mit |
resistdesign/incarnate | docs/index.html | 7614 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl">
<title data-ice="title">Home | incarnate</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
<script src="script/prettify/prettify.js"></sc... | mit |
stevegood/tython | util/sorting.js | 348 | const simple_sort = (key, a, b) => {
if (a[key] < b[key]) return -1
if (a[key] > b[key]) return 1
return 0
}
const name_sort = (a, b) => simple_sort('name', a, b)
const skill_sort = (a, b) => simple_sort('skill', a, b)
const speed_sort = (a, b) => simple_sort('speed', a, b)
export {
simple_sort,
name_sort,
... | mit |
caspg/datamaps.co | src/pages/Editor/pages/MapEditor/pages/EditData/index.js | 38 | export { default } from './EditData';
| mit |
saey55/hugo-elate-theme | layouts/partials/footer.html | 647 | <footer id="footer" role="contentinfo">
<a href="#" class="gotop js-gotop"><i class="icon-arrow-up2"></i></a>
<div class="container">
<div class="">
<div class="col-md-12 text-center">
<p>{{ with .Site.Params.footer.copyright }}{{ . | markdownify }}{{ end }}</p>
</div>
</div>
<div cla... | mit |
LazyTarget/Lux | src/Lux/Serialization/Xml/Interfaces/IXmlConfigurable.cs | 154 | using System.Xml.Linq;
namespace Lux.Serialization.Xml
{
public interface IXmlConfigurable
{
void Configure(XElement element);
}
} | mit |
mpopp75/db4free-net-l10n | hu/signup.php | 3111 | <?php
/*
Section: signup
Language: Hungarian
Translator: uno20001 <regisztralo111@gmail.com>
*/
$translations = array(
'h1' => 'Regisztráció',
'mysql-db-name' => 'MySQL adatbázis név',
'mysql-user-name' => 'MySQL felhasználónév',
'mysql-user-password' => 'MySQL jelszó',
'mysql-user-password-ver... | mit |
concord-consortium/codap | apps/dg/components/graph/plots/scatter_plot_model.js | 31775 | // ==========================================================================
// DG.ScatterPlotModel
//
// Author: William Finzer
//
// Copyright (c) 2014 by The Concord Consortium, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... | mit |
lwdgit/chrome-automator | examples/screenshot/index.js | 710 | const Koa = require('koa')
const screenshot = require('./screenshot')
const app = new Koa()
app.use(async ctx => {
var url = ctx.query.url
console.log('goto:', url)
if (!/^https?:\/\/.+/.test(url)) {
ctx.body = 'url 不合法'
} else {
if (!isNaN(ctx.query.wait)) {
ctx.query.wait = ~~ctx.query.wait
... | mit |
sdierauf/laundrytime | spec/getMachinesSpec.js | 4145 | // Test get machiens
var fs = require('fs');
try {
fs.accessSync('testdb.json', fs.F_OK);
fs.unlinkSync('testdb.json');
// Do something
} catch (e) {
// It isn't accessible
console.log(e);
}
var server = require('../server.js').createServer(8000, 'testdb.json');
var addTestMachine = function(name)... | mit |
MontrealNewTech/website | app/fields/enum_field.rb | 109 | require "administrate/field/base"
class EnumField < Administrate::Field::Base
def to_s
data
end
end
| mit |
arjunmehta/react-frontend-template | src/index.js | 25 | require('./loader.jsx');
| mit |
neville1/MSPaint | MsPaint Sub/PaintToolbar.vb | 4078 | Imports System
Imports System.Drawing
Imports System.Windows.Forms
Public Class PaintToolBar
'¦¹Ãþ§O©w¸qÃö©ó¤u¨ã¦C¥~Æ[¤Î¦æ¬°
Inherits PaintWithRegistry
Protected ToolBarCommand As Integer = 7 '¨Ï¥ÎªÌ¤u¨ã¦C©R¥O¿ï¾Ü
Protected LastCommand As Integer '¤W¤@Ó©R¥O
Protecte... | mit |
Smart-Pix/Kanban | resources/views/emails/subscribe.blade.php | 121 | Vous êtes invité par {{ $user->name }} à rejoindre le projet {{$kanban->title}} sur <a href="google.com">kaban.com</a> | mit |
naturecloud/docs | pages/02.img/02.imgBuild/01.sourceBuild/docs.md | 1037 | ---
title: 代码构建
taxonomy:
category: docs
---
代码构建获取源码、编译、打包,最终生成docker镜像。
代码构建之前需要做好如下准备工作:
1. 代码已经托管在“代码托管平台”(目前平台支持github、bitbucket)
2. 源代码中包含项目对应的[Dockerfile](../dockerfile)。
## 创建构建 ##
1. 打开“代码构建“子页面
2. 点击“创建构建”
3. 选择代码源(github、bitbucket等),点击“获取代码列表”
4. 假定选定的bitbucket,此时可能会跳出bitbucket的登录页面,登陆之后会跳出如下页面。点击Gran... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.11.2-2.0.7/released/8.11.1/sudoku/8.8.0.html | 6861 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>sudoku: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | mit |
KnockSoftware/whitenoise | whitenoise/__init__.py | 118 | from __future__ import absolute_import
from .base import WhiteNoise
__version__ = '2.0.3'
__all__ = ['WhiteNoise']
| mit |
romulus1/FinalAwesomauts | js/entities/entities.js | 8421 | game.PlayerEntity = me.Entity.extend ({ //builds the player class
init: function(x, y, settings){
this.setSuper(x, y);
this.setPlayerTimer();
this.setAttributes();
this.type="PlayerEntity";
this.setFlags();
me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH); //locks camera on the character
thi... | mit |
kuhlenh/port-to-core | Reports/ne/netcdf-ikvm.4.1.0/IKVM.OpenJDK.Beans-Net40.html | 15187 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | mit |
childmodel/child | src/errors/errors.h | 492 | //-*-c++-*-
/****************************************************************/
/**
** @file errors.h
** @brief Header file for CHILD error-handling routines.
**
** Created Dec. 97
** $Id: errors.h,v 1.11 2004-01-07 10:53:25 childcvs Exp $
*/
/****************************************************************/
#ifn... | mit |
dvsa/mot | mot-selenium/src/main/java/uk/gov/dvsa/ui/pages/vehicleinformation/VehicleMakePage.java | 1635 | package uk.gov.dvsa.ui.pages.vehicleinformation;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import uk.gov.dvsa.domain.model.vehicle.Make;
import uk.gov.dvsa.domain.navigation.PageNavigator;
import uk.gov.dvsa.framework.config.webdriver.MotAppDrive... | mit |
Reikerseiffe/Website-New-Format | README.md | 131 | # New Format site for Reiker Seiffe
### A simple resume site build off of SCSS, running on a Node.JS server with express and twig. | mit |
mqmtech/Tecnokey | src/Tecnokey/ShopBundle/Controller/Frontend/User/OrderController.php | 6501 | <?php
namespace Tecnokey\ShopBundle\Controller\Frontend\User;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Tecnokey\S... | mit |
zhuzhiqiang/tianyingqing | src/app/app.component.ts | 1412 | import {Component, ViewChild} from '@angular/core';
import { Platform, MenuController, NavController} from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { HomeComponent } from './pages/home-page/home.component';
import {CityLis... | mit |
96467840/AspNetCore | src/AspNetCore/PublishOutput/wwwroot/lib/unobtrusive-typescript/dist/utils/ajax.ts | 1767 | import { Log } from './log';
//import Url = require('./url');
import { Url } from './url';
import { HashString } from './lib';
/**
* Делаем HTTP (Ajax) запрос.
*
* @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(... | mit |
javulorg/javul | resources/views/admin/partials/area_of_interest_browse.blade.php | 1334 | <div class="all_levels_area_of_interest @if($from == "account") account_listing_skills @endif">
@if(count($firstBox_areaOfInterest) > 0)
<div class="hierarchy_parent">
<select name="title" id="area_of_interest_firstbox" class="first_level hierarchy" size="5" data-number="1">
@for... | mit |
rubymonsters/speakerinnen_liste | spec/controllers/contact_controller_spec.rb | 1042 | # frozen_string_literal: true
describe ContactController, type: :controller do
include AuthHelper
let!(:ada) { create(:published_profile, email: "ada@mail.org", main_topic_en: 'math') }
describe 'create action' do
it 'when profile active' do
get :create, params: { id: ada.id, message: { name: "Maxi"}... | mit |
latviancoder/blog | src/LCoder/Bundle/BlogBundle/DependencyInjection/Configuration.php | 885 | <?php
namespace LCoder\Bundle\BlogBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://... | mit |
thelazier/dash | src/qt/macnotificationhandler.h | 806 | // Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_MACNOTIFICATIONHANDLER_H
#define BITCOIN_QT_MACNOTIFICATIONHANDLER_H
#include <QObject>
/** Macintosh-sp... | mit |
fgrid/iso20022 | tsmt/FullPushThroughReportV05.go | 5855 | package tsmt
import (
"encoding/xml"
"github.com/fgrid/iso20022"
)
type Document01800105 struct {
XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:tsmt.018.001.05 Document"`
Message *FullPushThroughReportV05 `xml:"FullPushThrghRpt"`
}
func (d *Document01800105) AddMessage() *FullPushThroug... | mit |
odises/kondor | src/Kondor.Data/Migrations/201610060535379_ExampleChangedEntityChanged.cs | 1810 | namespace Kondor.Data.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class ExampleChangedEntityChanged : DbMigration
{
public override void Up()
{
AddColumn("dbo.Cards", "RowStatus", c => c.Int(nullable: false));
AddColumn("dbo... | mit |
sinfin/folio | test/dummy/app/cells/dummy/ui/card_list_cell.rb | 129 | # frozen_string_literal: true
class Dummy::Ui::CardListCell < ApplicationCell
def show
render if model.present?
end
end
| mit |
mhenrixon/sidekiq-unique-jobs | spec/support/workers/unique_job_without_unique_args_parameter.rb | 450 | # frozen_string_literal: true
# :nocov:
class UniqueJobWithoutUniqueArgsParameter
include Sidekiq::Worker
sidekiq_options backtrace: true,
lock: :until_executed,
queue: :customqueue,
retry: true,
lock_args_method: :unique_args
def perform(... | mit |
arvinddoraiswamy/LearnPython | 17.py | 867 | import struct
''' Refer to docs for all the exact formats. There are many so check them out before converting things yourself '''
''' If there's a specific offset you want to do things from, use pack_into and unack_into from the docs '''
#Integer to string
i1= 1234
print "Int to string as 8 byte little endian", repr(... | mit |
Jwely/pivpr | texdocs/figs/run_1/run_1_turb_visc_reynolds_vs_r_meshscatter.tex | 288 | \begin{figure}[H]
\centering
\includegraphics[width=6in]{figs/run_1/run_1_turb_visc_reynolds_vs_r_meshscatter}
\caption{Scatter plot of $
u_T$ reynolds stress term vs radius at $z/c$=5.37, $V_{free}$=15.22, station 1.}
\label{fig:run_1_turb_visc_reynolds_vs_r_meshscatter}
\end{figure}
| mit |
ewgenius/fastlane-plugin-mobile_center | lib/generated/mobile_center_api/models/event.rb | 2868 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module MobileCenterApi
module Models
#
# Model object.
#
#
class Event
# @return [String]
attr_accessor :id
... | mit |
AyeshJayasekara/User-Management-System | readme.md | 235 |
## About This Project
This Software licensed under the [MIT license](http://opensource.org/licenses/MIT).
This is developed as a part of home automation system. This project addesses the user management capability of that project.
| mit |
JuanitoFatas/licensee | test/test_licensee_matcher.rb | 172 | require 'helper'
class TestLicenseeMatcher < Minitest::Test
should "match the license without raising an error" do
assert_nil Licensee::Matcher.match(nil)
end
end
| mit |
freshbooks/ember-responsive | addon/helpers/media.js | 395 | import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { get } from '@ember/object';
export default class MediaHelper extends Helper {
@service() media;
constructor() {
super(...arguments);
this.media.on('mediaChanged', () => {
this.recompute();
... | mit |
mt830813/code | Project/HTML5Test/Test1/Scripts/Customer/Setting/Enum.js | 1263 | Enum = {
BarDrawDirect: {
Horizontal: "Horizontal",
Vertical: "Vertical"
},
PowerType: {
MP: 0,
Angery: 1
},
EffectType: {
StateChange: "StateChange",
HpChange: "HpChange",
Timing: "Timing",
Control: "Control"
},
EffectControlT... | mit |
prajesh-ananthan/spring-playfield | spring-core/src/main/java/io/prajesh/config/HelloConfig.java | 980 | package io.prajesh.config;
import io.prajesh.domain.HelloWorld;
import io.prajesh.service.HelloWorldService;
import io.prajesh.service.HelloWorldServiceImpl;
import io.prajesh.service.factory.HelloWorldFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configurat... | mit |
Magicking/neucoin | src/main.cpp | 146265 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2013 The PPCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "checkpoints.h"
#include... | mit |
mottihoresh/nodarium-web | packages/custom/nodarium/server/controllers/index.js | 627 | 'use strict';
console.log('TESTTTT');
var mean = require('meanio');
exports.render = function (req, res) {
function isAdmin() {
return req.user && req.user.roles.indexOf('admin') !== -1;
}
// Send some basic starting info to the view
res.render('index', {
user: req.user ? {
... | mit |
nbarrett/ekwg | dist/app/js/ekwg.js | 405222 | /* concatenated from client/src/app/js/globals.js */
(function () {
if (!window.console) {
window.console = {};
}
var m = [
"log", "info", "warn", "error", "debug", "trace", "dir", "group",
"groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd",
"dirxml", "assert", "count", "mar... | mit |
frotunato/MEANcraft | client/app/app.js | 1953 | angular.module('MEANcraftApp', ['ngRoute', 'MEANcraftApp.login', 'MEANcraftApp.overview', 'btford.socket-io'/*,'socket-io', 'flow'*/])
.config(function ($httpProvider, $routeProvider) {
$httpProvider.interceptors.push('TokenInterceptor');
$routeProvider
.when('/login', {
templateUrl: '... | mit |
mikebranstein/NativeScriptInAction | AppendixB/PetScrapbook/app/views/shared/scrapbook-list/scrapbook-list.js | 3048 | var GridLayout = require("ui/layouts/grid-layout").GridLayout;
var ListView = require("ui/list-view").ListView;
var StackLayout = require("ui/layouts/stack-layout").StackLayout;
var Image = require("ui/image").Image;
var Label = require("ui/label").Label;
var ScrapbookList = (function (_super) {
global.__e... | mit |
jdsimcoe/symphony-boilerplate | symphony/lib/toolkit/class.datasource.php | 19238 | <?php
/**
* @package toolkit
*/
/**
* The Datasource class provides functionality to mainly process any parameters
* that the fields will use in filters find the relevant Entries and return these Entries
* data as XML so that XSLT can be applied on it to create your website. In Symphony,
* there are four Datasou... | mit |
airdock-io/docker-redis | 2.8/Makefile | 1137 | NAME = airdock/redis
VERSION = dev-2.8
.PHONY: all clean build tag_latest release debug run run_client
all: build
clean:
@CID=$(shell docker ps -a | awk '{ print $$1 " " $$2 }' | grep $(NAME) | awk '{ print $$1 }'); if [ ! -z "$$CID" ]; then echo "Removing container which reference $(NAME)"; for container in $(CID)... | mit |
jffifa/algo-solution | ural/1093.cpp | 2211 | #include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
const double EPS = 1e-9;
inline char DBLCMP(double d)
{
if (fabs(d) < EPS) return 0;
return d>0 ? 1 : -1;
}
struct spoint
{
double x, y, z;
spoint() {}
spoint(double xx, double yy, double zz): x(xx), y(yy), z(zz) {}
... | mit |
dominikbulaj/shares-counter-php | examples/index.php | 1282 | <?php
/**
* Examples of ShareCouners usage
* @author Dominik Bułaj <dominik@bulaj.com>
*/
include '../src/SharesCounter.php';
include '../src/Networks.php';
include '../src/Exception.php';
$url = 'http://www.huffingtonpost.com';
// 1. return shares from Facebook and Twitter
$shares = new \SharesCounter\SharesCount... | mit |
Truemedia/regeneration-character | src/database/migrations/2015_05_16_174527_create_characters_lang_table.php | 981 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCharactersLangTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Create the characters_lang table
Schema::create('characters_lang', function($table)
... | mit |
andrewdefries/ToxCast | Figure3/Tox21_nnm/WorkHere/124-10-7.smi.png.html | 1675 | <!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' xml:lang='en' lang='en'><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>124-10-7.smi.png.html</title>
</head>
<... | mit |
haniotak/oscars-frontend | src/main/js/components/eroTypeahead.js | 3673 | import React, {Component} from 'react';
import {Typeahead} from 'react-bootstrap-typeahead';
import {inject, observer} from 'mobx-react';
import {action, toJS, autorunAsync} from 'mobx';
import myClient from '../agents/client'
require('react-bootstrap-typeahead/css/ClearButton.css');
require('react-bootstrap-typeahead... | mit |
justin-lai/hackd.in | compiled/client/lib/lodash/fp/lt.js | 778 | 'use strict';
var convert = require('./convert'),
func = convert('lt', require('../lt'));
func.placeholder = require('./placeholder');
module.exports = func;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL2x0LmpzIl0sIm5hbWVzIjpbXSwibW... | mit |
zenkovnick/pfr | lib/model/doctrine/UserAccount.class.php | 299 | <?php
/**
* UserAccount
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package blueprint
* @subpackage model
* @author Your name here
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
*/
class UserAccount extends BaseUserAccount
{
}
| mit |
WolfgangAxel/Random-Projects | Streaming/Rounded Button Twitch Chat/README.md | 1418 | # Rounded Button Twitch Chat

This CSS file overrides the Twitch chat popout window to make the chat slightly more visually appealing. It was created to be used with the OBS
plugin Linux Browser, and pre... | mit |
anthoq88/purescript-three | README.md | 615 | purescript-three
================
Purescript bindings for Threejs
# Build purescript-three
```
bower install
pulp build
bower link
```
# Build examples
```
cd examples/
bower link purescript-three
pulp browserify --main Examples.CircleToSquare --to output/circleToSquare.js
pulp browserify --main Examples.LineArray... | mit |
kbase/handle_mngr | Makefile | 13184 | TOP_DIR = ../..
LIB_DIR = lib/
DEPLOY_RUNTIME ?= /kb/runtime
TARGET ?= /kb/deployment
include $(TOP_DIR)/tools/Makefile.common
SPEC_FILE = handle_mngr.spec
SERVICE_NAME = HandleMngr
SERVICE_CAPS = HandleMngr
SERVICE_PORT = 9001
SERVICE_DIR = handle_mngr
SERVICE_CONFIG = HandleMngr
ifeq ($(SELF_URL),)
SELF_U... | mit |
pdffiller/pdffiller-php-api-client | examples/token/3_get_token.php | 164 | <?php
use PDFfiller\OAuth2\Client\Provider\Token;
$provider = require_once __DIR__ . '/../bootstrap/initWithFabric.php';
$e = Token::one($provider, 3329);
dd($e);
| mit |
hulmen/SQLAdmin | src/fredy/sqltools/XLSExport.java | 23048 | package sql.fredy.sqltools;
/**
XLSExport exports the result of a query into a XLS-file. To do this it is
using HSSF from the Apache POI Project: http://jakarta.apache.org/poi
Version 1.0 Date 7. aug. 2003 Author Fredy Fischer
XLSExport is part of the Admin-Suite
Once instantiated there are the ... | mit |
jeremiedecock/tictactoe-py | jdhp/tictactoe/player/greedy.py | 1951 | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Jérémie DECOCK (http://www.jdhp.org)
# 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 right... | mit |
vinexs/extend-enhance-base | eeb-core/src/main/java/com/vinexs/view/ScalableLinearLayout.java | 3281 | /*
* Copyright (c) 2015. Vin @ vinexs.com (MIT License)
*
* 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, co... | mit |
SerDIDG/BattlelogServersBlacklist | src/styles/options.css | 293 | /* ******* TAGS ******* */
body {
margin: 0;
padding: 32px;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #333333;
}
/* ******* COMPONENTS ******* */
/* Gridlist */
.gridlist {
margin: 0;
}
.gridlist .control .icon {
vertical-align: top;
} | mit |
Tanglo/TAFPLOTer | TAFPlotter/DRHMotorUnitData.h | 1203 | //
// DRHMotorUnitData.h
// TAFPlotter
//
// Created by Lee Walsh on 9/01/2014.
// Copyright (c) 2014 Lee Walsh. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DRHMotorUnitData : NSObject <NSCoding>{
NSNumber *unitNumber;
NSNumber *unitSet;
NSString *unitType;
NSNumber *onset... | mit |
alphaCoder/DollarTracker | DollarTracker.Net/DollarTracker.Core/Properties/AssemblyInfo.cs | 1412 | 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("Do... | mit |
KeserOner/puissance4 | bestaplayer.py | 9518 | __author__ = 'besta'
class BestaPlayer:
def __init__(self, fichier, player):
self.fichier = fichier
self.grille = self.getFirstGrid()
self.best_hit = 0
self.players = player
def getFirstGrid(self):
"""
Implements function to get the first grid.
:retur... | mit |
PhilCK/mermaid-game | game_over.rb | 102 | # Game Over screen.
class GameOver
def initialize(game)
end
def udpate
end
def draw
end
end | mit |