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 |
|---|---|---|---|---|---|
# Testing en Rails con minitest
Este es el material de apoyo de una charla que sobre testing de Rails con Minitest.
| imobach/charla-minitest-rails | README.md | Markdown | mit | 117 |
<?php
namespace PHPAPILibrary\Core\Data\Out\ResponseTranslator;
use PHPAPILibrary\Core\Data\DataInterface;
use PHPAPILibrary\Core\Data\ResponseInterface as DataResponseInterface;
use PHPAPILibrary\Core\Network\ResponseInterface as NetworkResponseInterface;
use PHPUnit\Framework\TestCase;
class AbstractResponseTransla... | johnvandeweghe/php-api-library-core | tests/Data/Out/ResponseTranslator/AbstractResponseTranslatorTest.php | PHP | mit | 1,430 |
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
// GA tracking
document.write('<s... | engagementgamelab/hygiene-with-chhota-bheem | website/client/src/main.ts | TypeScript | mit | 669 |
<!DOCTYPE html>
<html lang="en-us">
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=devic... | webgrower/webgrower.github.io | _site/404.html | HTML | mit | 3,390 |
\documentclass[dvips, 12pt]{article}
% Any percent sign marks a comment to the end of the line
% Every latex document starts with a documentclass declaration like this
% The option dvips allows for graphics, 12pt is the font size, and article
% is the style
\newcommand*{\TitleFont}{%
\usefont{\encodingd... | yipenghuang0302/csee4840_14 | doc/proposal/proposal.tex | TeX | mit | 1,536 |
package com.valarion.gameengine.events.menu.battlemenu;
public interface ToolTip {
public String getToolTip();
}
| valarion/JAGE | JAGEgradle/JAGEmodules/src/main/java/com/valarion/gameengine/events/menu/battlemenu/ToolTip.java | Java | mit | 120 |
//
// LoginViewController.cs
//
// Author: Jeffrey Stedfast <jeff@xamarin.com>
//
// Copyright (c) 2013-2022 Xamarin Inc. (www.xamarin.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 Softw... | jstedfast/MailKit | samples/ImapClientDemo.iOS/ImapClientDemo.iOS/LoginViewController.cs | C# | mit | 3,892 |
require 'test_helper'
class PageTest < Test::Unit::TestCase
context "A page" do
setup do
@page = Trample::Page.new(:get, "http://google.com/", :username => "joetheuser")
end
should "have a request_method" do
assert_equal :get, @page.request_method
end
should "have a url" do
as... | jumph4x/trample | test/page_test.rb | Ruby | mit | 2,340 |
<div class="container">
<div class="row">
<div class="box">
<div class="col-sm-3 text-left">
<h3><?php echo $results; ?></h3>
<p><?php echo $totalvotes.": ".$kokku_haali ?></p>
<div class="btn-group-vertical" role="group" aria-label="Verti... | Kaspar94/evalimised2016 | application/views/tulemused.php | PHP | mit | 4,256 |
/*
by larry pavanery
2015
*/
* {
padding: 0;
margin: 0;
text-align: center;
}
body {
background: url("../images/Z1000.jpg") 25% center no-repeat #000;
}
marquee {
color: #ffffff;
font-size: 0.5em;
padding: 50px 0 0 0;
padding: 0 0 0 10px;
}
img {
margin-top: 5px;
im... | LarryPavanery/tap | HelloWorld/web/assets/css/hm.css | CSS | mit | 1,442 |
# encoding: utf-8
@via=#TODO your Username on the Twitter
@link='#TODO your link to be shared'
@title=#TODO your message title
@message=#TODO your message on the share
@hash_tags=#TODO your HashTags references
JustShare.via=@via
JustShare.link=CGI::unescape(@link)
JustShare.title=@title
JustShare.message=@message
Just... | TonFw/just_share | lib/generators/templates/just_share.rb | Ruby | mit | 346 |
# Mentor
## Nome
Erik Figueiredo
## Perfil
Desenvolvimento Web em geral (Full Stack)
* PHP
* Orientação a Objetos
* CakePHP
* Laravel
* Slim Framework
* Zend Framework
* Javascript
* Angularjs
* Angular 2
* Vue
* Node.js
* Express
## Links
* [Facebook](https://www.facebook.com/erikfigueiredods)
* [GitHub](https:... | jessuircleydson/mentoria | profiles/mentors/profiles/erik_figueiredo.md | Markdown | mit | 791 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\CoreBundle\Model;
use Doctrine\Common\Collections\Collection;
use Sylius\Bund... | JRomeoSalazar/ktsport | src/Sylius/Bundle/CoreBundle/Model/ProductInterface.php | PHP | mit | 3,931 |
$(function() {
$(".ajax_filter_choice").click(function() {
$(this).parent().siblings().css("font-weight", "normal");
$(this).parent().css("font-weight","bold");
})
});
ajax_filtered_fields = {
request_url: "/ajax_filtered_fields/json_index/",
data_loaded: "data_loaded",
_appendO... | jlzeller/django-ajax-filtered-fields | media/js/ajax_filtered_fields.js | JavaScript | mit | 3,652 |
<TS language="sr@latin" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klikni desnim tasterom za uređivanje adrese ili oznake</translation>
</message>
<message>
<source>Create a new address</sour... | egoldchain/egoldchain-master | src/qt/locale/bitcoin_sr@latin.ts | TypeScript | mit | 15,120 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Codezu.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------... | rocky0904/mozu-dotnet | Mozu.Api/Resources/Commerce/Catalog/Admin/Pricelists/PriceListEntryResource.cs | C# | mit | 10,696 |
/* -LICENSE-START-
** Copyright (c) 2020 Blackmagic Design
**
** Permission is hereby granted, free of charge, to any person or organization
** obtaining a copy of the software and accompanying documentation (the
** "Software") to use, reproduce, display, distribute, sub-license, execute,
** and transmit the Softw... | MyCometG3/DLABridging | DeckLink API/DeckLinkAPI_v11_5.h | C | mit | 9,565 |
"""
Support to interface with Sonos players (via SoCo).
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.sonos/
"""
import datetime
import logging
from os import path
import socket
import urllib
import voluptuous as vol
from homeassistant.com... | betrisey/home-assistant | homeassistant/components/media_player/sonos.py | Python | mit | 20,355 |
<?php
/*
* This file is part of jwTauth.
*
* (c) Afroware <contact@afroware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Afroware\JwTauth\Test\Providers\JwT;
use Mockery;
use Exception;
use Namshi\JOSE\JWS;
use... | afroware/jwtauth | tests/Providers/JwT/NamshiTest.php | PHP | mit | 8,044 |
=begin
give highest possible product out of three integers in a given array
input: array of integers (will always have at least three integers)
output: highest product, integer
PSEUDOCODE
int_array.combination(3) => gives array of combinations of all possible groups of three
array_combos.each do |group|
products_arr... | mairene/interviewpractice | interviewcake/highest_product_of_array.rb | Ruby | mit | 824 |
'use strict';
var type = require('type-detect');
var path = require('path');
var removeTrailingSeparator = require('remove-trailing-path-separator');
var errors = require('common-errors');
var prettyFormat = require('pretty-format');
module.exports = function (input, cb) {
if (type(input) !== 'string') {
cb(new ... | togusafish/pandawing-_-node-run-yo | lib/pick-target.js | JavaScript | mit | 731 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="bl... | arthurjamain/factory-template-sleek | app/index.tv.html | HTML | mit | 12,664 |
We can easily come out an algorithm using the formular which is proved in Ex5. And here comes out of a theorem proved below.
\begin{theorem}
Let $p$ represents the maximum $2^d$ which is less than $n$, then either $m > n - p$ or $m - p \leq 0$ holds.
\end{theorem}
\begin{proof}
It is obvirusly that $p \geq \dfrac{n}{2... | PrayStarJirachi/Algorithm-Homework | Week 1/source/yjc/ex5.tex | TeX | mit | 1,357 |
const test = require('tape')
const nlp = require('../_lib')
test('before-basic', function(t) {
let doc = nlp('one two three four five. one three four')
let arr = doc.before('three four').out('array')
t.equal(arr.length, 2, 'two-matches')
t.equal(arr[0], 'one two', 'first-match')
t.equal(arr[1], 'one', 'secon... | nlp-compromise/compromise | tests/match/before-after.test.js | JavaScript | mit | 2,214 |
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>string rect</title>
</head>
<script type="text/javascript" src="string_rect.js"></script>
<body>
<div id="string_rect">js-string-rect A Simple Demo.</div>
<script type="text/javascript">
(function(doc) {
var rects = doc.getElementById("s... | mattatz/js-string-rect | sample.html | HTML | mit | 922 |
"""
"""
import logging
import time
import hiro
import mock
from flask import Flask, request
from werkzeug.exceptions import BadRequest
from flask_limiter.extension import C, Limiter
from flask_limiter.util import get_remote_address
def test_reset(extension_factory):
app, limiter = extension_factory({C.DEFAULT_... | alisaifee/flask-limiter | tests/test_flask_ext.py | Python | mit | 20,218 |
---
layout: post
title: 博客支持评论
---
一直想给自己的博客加个评论,方便交流,今天终于抽出时间搞一下,如果顺利的话就不会有这篇博客了。下面看我遇到的坑。
我选的是[Disqus](https://disqus.com/)
注册账号什么的就不说了,说说评论的设置
https://quangeblog.disqus.com/admin/settings/advanced/
这个页面下一定要设置Trusted Domains,即哪些网站可以用你的评论功能,如果不设置的话是用不了的。
然后就是博客项目里的`_config.yml`文件的配置了
{% highlight objc %}
# Enter... | QuanGe/QuanGe.github.io | _posts/2016-3-24-blog-disqus.md | Markdown | mit | 866 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | v8-dox/v8-dox.github.io | c17ff62/html/functions_e.html | HTML | mit | 8,652 |
<?php
/**
* Transformer.php.
*
* Part of EasyWeChat.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author overtrue <i@overtrue.me>
* @copyright 2015 overtrue <i@overtrue.me>
*
* @link https://github.com/overtrue
*... | TheNorthMemory/wechat | src/EasyWeChat/Staff/Transformer.php | PHP | mit | 2,874 |
#!/usr/bin/env python
##############################################
#
# This module contains some utilities
#
##############################################
class argpasser(object):
"""
ComEst use the arguments that are almost repeatedly. Therefore, it will be useful to create a customized arguemnt passer ... | inonchiu/ComEst | comest/utils.py | Python | mit | 4,398 |
#!/bin/bash
cd ./log_reg/src/
python main.py
cd ../..
| bt3gl/MLNet-Classifying-Complex-Networks | MLNet-2.0/classifiers/run_log_reg.sh | Shell | mit | 58 |
Cách cài jekyll và viết bài cho Việt on Rails
===
# Jekyll
https://jekyllrb.com/
jekyll là 1 tool sinh ra các file static HTML từ file markdown. Jekyll được viết bằng Ruby và dành cho dân IT thôi, không phải IT thì cứ wordpress cho nhanh :D.
Nói 1 cách đơn giản về jekyll thì mình sẽ làm như sau :
1. install jekyll
... | vietonrails/vietonrails.github.com | README.md | Markdown | mit | 1,224 |
import { Component } from '@angular/core';
// Visual Recognition
import { VisualRecognitionService } from './visual-recognition.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'CyberusAI';
sources: Ar... | jeremy091/cyberusAI | cyberus/container/src/app/app.component.ts | TypeScript | mit | 746 |
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-email-subscription',
url='https://github.com/MagicSolutions/django-email-subscrip... | MagicSolutions/django-email-subscription | setup.py | Python | mit | 888 |
#ifndef _OPERATIONS_HPP
#define _OPERATIONS_HPP
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#include <CL/cl.h>
#include "matrix.hpp"
#include "mem.hpp"
class Operations
{
public:
virtual ~Operations(void) { }
virtual Matrix multiply(const Matrix& lhs, const Matrix& rhs... | elecro/opencl_matrix_mul | operations.hpp | C++ | mit | 1,887 |
module ListTool
module App
class UseCommand < Command
class << self
def match? arg
['u', 'use'].include? arg
end
def parse argv
fail_if_not_an_array(argv)
list = argv.shift
{ list: parse_list_number!(list) }
end
... | Vizvamitra/list-tool | lib/list_tool/app/commands/use_command.rb | Ruby | mit | 582 |
<?php
namespace LegalThings\DataEnricher\Processor;
use LegalThings\DataEnricher\Node;
use LegalThings\DataEnricher\Processor;
/**
* Equal processor
*/
class Equal implements Processor
{
use Processor\Implementation;
/**
* Apply processing to a single node
*
* @param Node $node
*/... | legalthings/data-enricher | src/DataEnricher/Processor/Equal.php | PHP | mit | 707 |
///<reference path="../../../lib/RTCPeerConnection.d.ts"/>
///<reference path="WebRtcCommons.ts"/>
"use strict";
class WebRtcProducer {
private _id : string;
private _debugMode : boolean = false;
private _successCalled : boolean = false;
private connection: RTCPeerConnection = null;
private channel: RTCDa... | twerno/CardGameJS | CardGameJS/src/utils/WebRtc/WebRtcProducer.ts | TypeScript | mit | 6,411 |
//*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: David Burken
//
// Description:
//
// Contains class definition for JpegWriter.
//
//*******************************************************************
// $Id: ossimJpegWriter.h 16597 2... | ossimlabs/ossim | include/ossim/imaging/ossimJpegWriter.h | C | mit | 3,142 |
# ~*~ encoding: utf-8 ~*~
from pymongo import MongoClient
from pandas import read_csv
from datetime import date
mongodb = MongoClient('192.168.178.82', 9999)
db = mongodb['dev']
drug_collection = db['drug']
drugs = read_csv('~/Dokumente/bfarm_lieferenpass_meldung.csv', delimiter=';', encoding='iso8859_2').to_dict()
... | schenkd/webdev-project | data_import.py | Python | mit | 1,815 |
<!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_25) on Sun Dec 08 14:57:16 UTC 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class org.n... | danielmorozoff/taste-rna-db | lib/neo4j-community-2.0.0/doc/java/api/org/neo4j/graphdb/index/class-use/UniqueFactory.UniqueEntity.html | HTML | mit | 7,431 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {AotCompilerHost, EmitterVisitorContext, ExternalReference, GeneratedFile, ParseSourceSpan, TypeScriptEmitter... | gjungb/angular | packages/compiler-cli/src/transformers/compiler_host.ts | TypeScript | mit | 24,590 |
/**
* @author fengchen, Dongyun Jin, Patrick Meredith, Michael Ilseman
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package llvmmop;
import java.io.File;
import java.io.FileWriter;
import java.io.Filena... | runtimeverification/llvmmop | src/llvmmop/LLVMMOPMain.java | Java | mit | 17,124 |
/**
* The DOM Element unit handling
*
* Copyright (C) 2008-2011 Nikolay Nemshilov
*/
var Element = RightJS.Element = new Class(Wrapper, {
/**
* constructor
*
* NOTE: this constructor will dynamically typecast
* the wrappers depending on the element tag-name
*
* @param String element tag n... | rightjs/rightjs-core | src/dom/element.js | JavaScript | mit | 2,291 |
// dear imgui, v1.71 WIP
// (main code and documentation)
// Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp for demo code.
// Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase.
// Get latest version at https://github.com/ocornut/imgui
// Releases change-log at http... | sherief/ImGuizmo | example/imgui.cpp | C++ | mit | 483,056 |
using System.Runtime.InteropServices;
using System;
using OpenGL;
namespace Rox.Geom {
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct Quad {
public UvVertex V0 { get; private set; }
public UvVertex V1 { get; private set; }
public UvVertex V2 { get; private set; }
... | mbolt35/Rox | Rox/Rox/Geom/Quad.cs | C# | mit | 1,017 |
# typed: strict
# frozen_string_literal: true
module Ffprober
module Parsers
class FileParser
extend T::Sig
sig do
params(
file_to_parse: String,
exec: T.any(Ffprober::Ffmpeg::Exec, T.untyped)
).void
end
def initialize(file_to_parse, exec = Ffprober::F... | beanieboi/ffprober | lib/ffprober/parsers/file.rb | Ruby | mit | 662 |
# clopure
Pythonで実装されたマルチプロセッシング対応関数型言語
## インストール
```
$ sudo pip3 install clopure
```
または
```
$ git clone https://github.com/vbkaisetsu/clopure.git
$ cd clopure
$ ./setup.py test
$ ./setup.py build
$ sudo ./setup.py install
```
## clopure を対話型コンソールで起動する
引数無しで clopure を起動します:
```
$ clopure
```
`>>>` に続けてコードを入力します。<... | vbkaisetsu/clopure | README-ja.md | Markdown | mit | 3,019 |
<!doctype html>
<html>
<head>
<title>spectralpool</title>
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script src="https://code.jquery.com/pep/0.4.0/pep.js"></script>
<script src="apps/spectralpool/app/teoria.js"></script>
<s... | wtandt/spectralpool | index.html | HTML | mit | 21,935 |
"""Molt Web API with Interface."""
import re
import redis
import docker
import subprocess
import os
import shlex
import requests
import sys
import argparse
from flask import Flask, Response, render_template, abort, request
from molt import Molt, MoltError
app = Flask(__name__)
# コマンドライン引数のパース
parser = argparse.Argum... | swkoubou/molt | molt_app.py | Python | mit | 5,850 |
<!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>
... | kuhlenh/port-to-core | Reports/np/nperf.fixtures.1.0.1/NPerf.Fixture.IDictionary-NET45.html | HTML | mit | 9,665 |
package com.sdl.selenium.extjs6.form;
import com.sdl.selenium.InputData;
import com.sdl.selenium.TestBase;
import com.sdl.selenium.extjs6.panel.Panel;
import com.sdl.selenium.web.SearchType;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.time.Duration;
import static org.ha... | sdl/Testy | src/test/functional/java/com/sdl/selenium/extjs6/form/RadioGroupIntegrationTest.java | Java | mit | 1,813 |
using System;
using System.Collections.Generic;
using Ghpr.Core.Core.Common;
using Ghpr.Core.Core.Extensions;
using Ghpr.Core.Core.Processors;
using NUnit.Framework;
namespace Ghpr.Tests.Core.Processors
{
[TestFixture]
public class TestRunDtoProcessorTests
{
[Test]
public void TestProcessR... | GHPReporter/Ghpr.Core | Ghpr.Tests/Core/Processors/TestRunDtoProcessorTests.cs | C# | mit | 7,577 |
<!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>
... | kuhlenh/port-to-core | Reports/se/servicestack.ormlite.4.0.40/ServiceStack.OrmLite-net45.html | HTML | mit | 119,364 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cours-de-coq: 20 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.0-2.0.5/released/8.9.1/cours-de-coq/8.9.0.html | HTML | mit | 11,858 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>matrices: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.0/matrices/8.10.0.html | HTML | mit | 7,598 |
/**
* codebook.runtime.io.TLSAdaptor
*
* Copyright (c) 2016-2017 Osamu Takahashi
* Copyright (c) 2016-2017 Rusty Raven Inc.
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*
* @author Osamu Takahashi
*/
package codebook.runtime.io
import java.ni... | RustyRaven/CodebookRuntime | scala/src/main/scala/codebook/runtime/io/TLSAdaptor.scala | Scala | mit | 10,076 |
require "rails_helper"
RSpec.describe UserMailer, type: :mailer do
# describe "follow_up_email" do
# let(:mail) { UserMailer.follow_up_email }
#
# it "renders the headers" do
# expect(mail.subject).to eq("Follow up email")
# expect(mail.to).to eq(["to@example.org"])
# expect(mail.from).to... | kirbrown/movies_sherlock_rails | spec/mailers/user_mailer_spec.rb | Ruby | mit | 463 |
// server.js
// BASE SETUP
// =============================================================================
// call the packages we need
var express = require('express'); // call express
var app = express(); // define our app using express
var bodyParser = require('body-parser');
var... | vilaskumkar/test-jenkins | API/server.js | JavaScript | mit | 6,479 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Pentax;
use JMS\Serializer\Annotation\ExclusionPolicy... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/Pentax/DigitalFilter01.php | PHP | mit | 2,944 |
/**
* @fileoverview
* Base types and classes used by chem editor.
* @author Partridge Jiang
*/
/*
* requires /lan/classes.js
* requires /chemDoc/issueCheckers/kekule.issueCheckers.js
* requires /widgets/operation/kekule.operations.js
* requires /render/kekule.render.base.js
* requires /render/kekule.render.bo... | partridgejiang/Kekule.js | src/widgets/chem/editor/kekule.chemEditor.baseEditors.js | JavaScript | mit | 258,521 |
export interface DragDelta {
x: number
y: number
}
let targets: HTMLElement[] = []
export function getDragDeltas (
onDragDelta: (d: DragDelta) => void,
onMouseDown?: (e?: MouseEvent) => void
) {
let oldX = 0
let oldY = 0
let target: HTMLElement
function onmousedown (e: MouseEvent) {
target = e.currentTar... | trivial-space/flow-tools | lib/utils/component-helpers.ts | TypeScript | mit | 984 |
package com.kensenter.p2poolwidget;
import android.content.Context;
import android.content.SharedPreferences;
public class GetPrefs {
public static final String PREFS_NAME = "p2poolwidgetprefs";
public String GetWidget(Context ctxt, int WidgetId){
SharedPreferences settings = ctxt.getSharedPreference... | ksenter/P2PoolWidget | src/com/kensenter/p2poolwidget/GetPrefs.java | Java | mit | 3,843 |
# react-pill-selector [](https://travis-ci.org/BI/react-pill-selector)
Pill Selector is a type of control that allows you to select one item at a time. For an example, see [this demo](http://yeahbuthats.github.io/react-pill-selector/).
Usage
-----
Pill... | BI/react-pill-selector | README.md | Markdown | mit | 2,860 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - clipIntersection</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
background-color: #000000;
overflow: hidden;
... | mese79/three.js | examples/webgl_clipping_intersection.html | HTML | mit | 3,988 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_listen_socket_popen_06.c
Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml
Template File: sources-sink-06.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data using a... | maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_listen_socket_popen_06.c | C | mit | 7,110 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>itree: 4 m 31 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.8.2/itree/2.0.0.html | HTML | mit | 25,023 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>min-imports: 17 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/extra-dev/dev/min-imports/1.0.1.html | HTML | mit | 6,931 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>menhirlib: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.14.0/menhirlib/20200211.html | HTML | mit | 7,258 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>DejaViewer</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript">
const { ipcRenderer } = require("electron");
const { dialog } = require("electron").remote;
ipcRenderer.on("err... | Jann3/DejaViewer | src/index.html | HTML | mit | 2,939 |
<?php
namespace OC\PlatformBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use OC\PlatformBundle\Entity\Advert;
/** Une annonce peut contenir plusieurs candidatures, alors qu'une candidature n'appartient qu'à une seule annonce */
/**
* @ORM\Table(name="application")
* @ORM\Entity(repositoryClass="OC\PlatformBundl... | walter-da-costa/sf2project | src/OC/PlatformBundle/Entity/Application.php | PHP | mit | 1,858 |
layout:
- post
title: 'Pingly'
date: 2014-07-25 00:00:00
categories: 网摘
tags: 创意事物
---
<a href="http://xinpinla.com/product/232" title="查看产品详情">
一个新的基于邮件的信息平台 </a>
更多详情请参考相关网站 [Pingly](http://pingly.me/)
本站数据以 [新品啦](http://xinpinla.com/) 作为入口点进行爬取! 并自动发布于github pages上。
| buf1024/xinpinla-crawler | hexo/source/_posts/2014-07-25-Pingly.md | Markdown | mit | 424 |
// @flow
import type { ConfigSparseWithSource } from '../../';
import configResolve from '../';
type Fixture = {
name: string,
in: ConfigSparseWithSource,
};
const fixtures: Fixture[] = [
{
name: '01 empty input config',
in: {},
},
{
name: '02 empty input config with conf... | avaragado/riw | src/lib/config/resolve/__tests__/index.test.js | JavaScript | mit | 966 |
package com.gulj.common.util;
import java.io.UnsupportedEncodingException;
public enum FeijianCode {
SAVE_SUCCESS("0001","保存成功"),
SAVE_ERROR("0002","保存失败"),
UPDATE_SUCCESS("0003","修改成功"),
UPDATE_ERROR("0004","修改失败"),
DELETE_SUCCESS("0005","删除成功"),
DELETE_ERROR("0006","删除失败")... | gulijian/joingu | gulj-common-util/src/main/java/com/gulj/common/util/FeijianCode.java | Java | mit | 1,732 |
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Model as Eloquent;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'username', 'email', 'passwor... | Pelkar/Timeo | laravel/app/User.php | PHP | mit | 522 |
#region MIT
// /*The MIT License (MIT)
//
// Copyright 2016 lizs lizs4ever@163.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 limitat... | lizs/Pi | Pi.Framework/ecs/entity/IProperty.cs | C# | mit | 2,676 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-solvable: 4 m 57 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.0-2.0.5/released/8.9.0/mathcomp-solvable/1.8.0.html | HTML | mit | 14,872 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>weak-up-to: 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.05.0-2.0.1/released/8.13.2/weak-up-to/8.8.0.html | HTML | mit | 7,754 |
---
layout: year
title: Limpopo Provincial Gazettes 2008
jurisdiction: ZA-LP
jurisdiction_name: Limpopo
provincial: true
year: "2008"
---
| Code4SA/opengazettes | _gazettes/ZA-LP/2008.md | Markdown | mit | 138 |
from django.contrib import admin
try:
from django.contrib.auth import get_permission_codename
except ImportError: # pragma: no cover
# Django < 1.6
def get_permission_codename(action, opts):
return '%s_%s' % (action, opts.object_name.lower())
class ObjectPermissionsModelAdminMixin(object):
d... | smcoll/django-rules | rules/contrib/admin.py | Python | mit | 1,879 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Comparing the performance of a single int_ generator</title>
<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="... | davehorton/drachtio-server | deps/boost_1_77_0/libs/spirit/doc/html/spirit/karma/performance_measurements/numeric_performance/int_performance.html | HTML | mit | 15,830 |
/*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
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, modi... | looker-open-source/components | packages/components/src/Form/Inputs/Slider/index.ts | TypeScript | mit | 1,135 |
--- === hs.mouse ===
---
--- Inspect/manipulate the position of the mouse pointer
---
--- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/).
---
--- This module uses ManyMouse by Ryan C. Gordon.
---
--- MANYMOUSE LICENSE:
---
--- Copyright ... | cmsj/hammerspoon | extensions/mouse/init.lua | Lua | mit | 6,311 |
using Google.Protobuf;
using PoGo.ApiClient.Authentication;
using PoGo.ApiClient.Enums;
using PoGo.ApiClient.Exceptions;
using PoGo.ApiClient.Helpers;
using PoGo.ApiClient.Interfaces;
using PoGo.ApiClient.Rpc;
using POGOProtos.Networking.Envelopes;
using POGOProtos.Networking.Requests;
using POGOProtos.Networking.Requ... | PoGo-Devs/PoGo | src/PoGo.ApiClient/PokemonGoApiClient.cs | C# | mit | 19,829 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-algebra: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.0/mathcomp-algebra/1.7.0.html | HTML | mit | 7,512 |
---
layout: archive
permalink: /cacti/
---
# Posts about cacti
<div class="tiles">
{% for post in site.categories.cacti %}
{% include archive-single.html %}
{% endfor %}
</div><!-- /.tiles -->
| jengalas/jengalas.github.io | _pages/cacti.md | Markdown | mit | 197 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Shell - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Colin Bull">
... | carsales/haxl.net | tools/FAKE/docs/apidocs/fake-processhelper-shell.html | HTML | mit | 9,297 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>goedel: 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.06.1-2.0.5/released/8.10.1/goedel/8.7.0.html | HTML | mit | 7,094 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-field: 12 m 55 s</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.05.0-2.0.6/released/8.9.1/mathcomp-field/1.7.0.html | HTML | mit | 11,729 |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.3; TM-7025 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link... | ThaDafinser/UserAgentParserComparison | v4/user-agent-detail/08/1c/081c05e7-7932-41a5-9629-06fd2aeeba5c.html | HTML | mit | 46,287 |
# Test
This is for testing only
Some modifications
| HansJM/Test | Dir/README.md | Markdown | mit | 52 |
FROM ruby:2.7.4
WORKDIR /app
COPY . .
RUN script/bootstrap
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost:5000/ || exit 1
EXPOSE 5000
ENTRYPOINT ["script/server"]
| mikemcquaid/strap | Dockerfile | Dockerfile | mit | 192 |
//
// AppDelegate.h
// storyboard-plus-xib
//
// Created by Ian Donaldson on 25/08/2014.
//
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| exidy/storyboard-plus-xib | storyboard-plus-xib/storyboard-plus-xib/AppDelegate.h | C | mit | 240 |
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h4>Play the Story</h4>
<div class="form-group">
<input type="text" ng-model="current.title" />
<textarea type="text" ng-model="current.content" rows="10"></textarea>
<div class="btn-group" role="group" aria... | sampathweb/storyapp | pages/playback.html | HTML | mit | 681 |
var sys = require('pex-sys');
var glu = require('pex-glu');
var geom = require('pex-geom');
var gen = require('pex-gen');
var materials = require('pex-materials');
var color = require('pex-color');
var gui = require('pex-gui');
var Cube = gen.Cube;
var Sphere = gen.Sphere;
var Mesh = glu.Mesh;
var TexturedCubeMap = ma... | szymonkaliski/pex-examples | src/glu.TextureCube.mipmap/main.js | JavaScript | mit | 1,828 |
// namespace line first
import * as XA from "X";
import XD, { X2 } from "X";
import { X3 } from "X";
| r-murphy/babel-plugin-ui5 | packages/plugin/__test__/fixtures/imports/import-duplicate-src-1.js | JavaScript | mit | 101 |
<?php
namespace ONGR\CookiesBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use ONGR\CookiesBundle\DependencyInjection\Compiler\CookieCompilerPass;
/**
* This class is used to register component into Symfony app kernel.
*/
class ONGRCookiesBundle ... | ongr-io/CookiesBundle | ONGRCookiesBundle.php | PHP | mit | 542 |
#!/bin/bash
set -e
rm -rf .git
git init
git clean -dfx
git remote add origin https://github.com/emdaer/emdaer.git
git fetch origin
git clone https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
git checkout $TRAVIS_BRANCH
git config credential.helper store
echo "https://${RELEASE_GH_USERNAME}:${RELEASE_GH_TOKEN... | emdaer/emdaer | .travis/after_success.sh | Shell | mit | 858 |
<!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=ISO-8859-1" /><title>DiskFileItemSerializeTest xref</title>
<li... | derekhu0002/myresources | resources/fileupdate_common_files/commons-fileupload-1.2-bin/commons-fileupload-1.2/site/xref-test/org/apache/commons/fileupload/DiskFileItemSerializeTest.html | HTML | mit | 21,919 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bertrand: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.1/bertrand/8.7.0.html | HTML | mit | 7,140 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.