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 |
|---|---|---|---|---|---|
// MIT License
// Copyright (c) 2017 Simon Pettersson
// 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... | simonvpe/cmap | include/cmap.hpp | C++ | mit | 5,268 |
/* MicroJava Parser Semantic Tester
*
* Test only semantics. The grammar in all tests are correct.
*/
package MicroJava;
import java.io.*;
public class TestParserSemantic {
public static void main(String args[]) {
if (args.length == 0) {
executeTests();
} else {
for (in... | gabrielnobregal/mjcide | src/MicroJava/TestParserSemantic.java | Java | mit | 13,139 |
.typeahead-container {
width: 240px;
position: relative;
margin-top: 10px;
margin-left: 10px;
}
.typeahead-container.show .dropdown-menu {
display: block;
}
.dropdown-menu {
display: none;
} | JlineZen/angularComponents | typeahead/src/typeahead.css | CSS | mit | 216 |
import os
#Decoration Starts
print """
+=============================================================+
|| Privilege Escalation Exploit ||
|| +===================================================+ ||
|| | _ _ _ ____ _ __ ____ ___ _____ | ||
|| | | | | | / \ / ___| |/ / ... | Yadnyawalkya/hackRIT | hackRIT.py | Python | mit | 3,140 |
# pi
### Simple implementation of Pi calculation
### Calculates Pi by the infinite series:
```
4 * Pi = 1 - 1/3 + 1/5 - 1/7 + ...
```
For simplicity of implementation, I have converted this to the equivalent formulation:
```
Pi = 4 - 4/3 + 4/5 - 4/7 + ...
```
The code algorithm is implemented in iterative st... | adampwells/pi | README.md | Markdown | mit | 886 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqoban: 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.07.1-2.0.6/extra-dev/8.11.dev/coqoban/dev.html | HTML | mit | 6,590 |
package fi.helsinki.cs.okkopa.main.stage;
import fi.helsinki.cs.okkopa.mail.read.EmailRead;
import fi.helsinki.cs.okkopa.main.ExceptionLogger;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javax.mail.Message;
import javax.mail.MessagingException;
import org.apache.commons.io.IOU... | ohtuprojekti/OKKoPa_all | OKKoPa_core/src/main/java/fi/helsinki/cs/okkopa/main/stage/GetEmailStage.java | Java | mit | 2,409 |
<!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/mi/microsoft.net.http.2.2.29/System.Net.Http-net40.html | HTML | mit | 91,378 |
import codecs
unicode_string = "Hello Python 3 String"
bytes_object = b"Hello Python 3 Bytes"
print(unicode_string, type(unicode_string))
print(bytes_object, type(bytes_object))
#decode to unicode_string
ux = str(object=bytes_object, encoding="utf-8", errors="strict")
print(ux, type(ux))
ux = bytes_object.dec... | thedemz/python-gems | bitten.py | Python | mit | 978 |
package simple.practice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import simple.practice.service.GreetingService;
@Component
public class Greeting {
@Autowired
private GreetingService greetingService;
public String printGreeting(String name... | blackphenol/SimpleSpring | src/main/java/simple/practice/Greeting.java | Java | mit | 438 |
"""Class to perform random over-sampling."""
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
# Christos Aridas
# License: MIT
from collections.abc import Mapping
from numbers import Real
import numpy as np
from scipy import sparse
from sklearn.utils import check_array, check_random_state
from sklear... | scikit-learn-contrib/imbalanced-learn | imblearn/over_sampling/_random_over_sampler.py | Python | mit | 9,497 |
StockPredict
============
Predict stock market prices based on discovered patterns
| ozzioma/StockPredict | README.md | Markdown | mit | 84 |
# Source Generated with Decompyle++
# File: session_recording.pyc (Python 2.5)
from __future__ import absolute_import
from pushbase.session_recording_component import FixedLengthSessionRecordingComponent
class SessionRecordingComponent(FixedLengthSessionRecordingComponent):
def __init__(self, *a, **k):
... | phatblat/AbletonLiveMIDIRemoteScripts | Push2/session_recording.py | Python | mit | 842 |
# Generated by Django 2.1 on 2018-08-26 00:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('model_filefields_example', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='book',
name='cover',
... | victor-o-silva/db_file_storage | demo_and_tests/model_filefields_example/migrations/0002_auto_20180826_0054.py | Python | mit | 1,197 |
\begin{figure}[H]
\centering
\includegraphics[width=6in]{figs/run_29/run_29_ctke_vs_r_mesh_scatter}
\caption{Scatter plot of turbulent kinetic energy vs radius at $z/c$=7.75, $V_{free}$=31.26, station3}
\label{fig:run_29_ctke_vs_r_mesh_scatter}
\end{figure}
| Jwely/pivpr | texdocs/figs/run_29/run_29_ctke_vs_r_mesh_scatter.tex | TeX | mit | 260 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensio... | JohanPeeters/REST-IAM-demo | SpaClient/Startup.cs | C# | mit | 1,770 |
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging an... | mohabusama/ci-rest-api | index.php | PHP | mit | 6,890 |
require 'active_service/model/attributes/nested_attributes'
require 'active_service/model/attributes/attribute_map'
require 'active_service/model/attributes/serializer'
module ActiveService
module Model
# This module handles attribute methods not provided by ActiveAttr
module Attributes
extend ActiveSu... | zacharywelch/activeservice | lib/active_service/model/attributes.rb | Ruby | mit | 6,526 |
require 'corelib/numeric'
require 'corelib/rational/base'
class ::Rational < ::Numeric
def self.reduce(num, den)
num = num.to_i
den = den.to_i
if den == 0
::Kernel.raise ::ZeroDivisionError, 'divided by 0'
elsif den < 0
num = -num
den = -den
elsif den == 1
return new(num,... | opal/opal | opal/corelib/rational.rb | Ruby | mit | 7,210 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Anarian.Interfaces;
using Anarian.Events;
namespace Anarian.DataStructures.Input
{
public class Controller : IUpdatable
{
PlayerIndex... | KillerrinStudios/Anarian-Game-Engine-MonoGame | Anarian Game Engine.Shared/DataStructures/Input/Controller.cs | C# | mit | 10,322 |
package api2go
import (
"context"
"time"
)
// APIContextAllocatorFunc to allow custom context implementations
type APIContextAllocatorFunc func(*API) APIContexter
// APIContexter embedding context.Context and requesting two helper functions
type APIContexter interface {
context.Context
Set(key string, value inte... | manyminds/api2go | context.go | GO | mit | 1,793 |
/**************************
GENERAL
***************************/
body {
background-color: #151515;
color: #999;
}
a {
text-decoration: none;
color: #4db8ff;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%;
}
img {
max-width: 100%;
}
h3{
margin: 0 0 1em 0;
}
/**********************... | juanAlvarezM/vrExperiences | css/main.css | CSS | mit | 4,980 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fcsl-pcm: 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.7.1+2/fcsl-pcm/1.2.0.html | HTML | mit | 7,473 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>relation-algebra: 4 m 10 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.11.2/relation-algebra/1.7.3.html | HTML | mit | 27,183 |
<!-- HTML header for doxygen 1.8.6-->
<!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" conte... | lucasbrsa/OpenCV-3.2 | docs/3.2/d6/d26/classcv_1_1videostab_1_1IDenseOptFlowEstimator-members.html | HTML | mit | 9,021 |
/*
HEZahran CSS v1.0
----------------------------------------------------------
Copyright (c) 2014, HEZahran.com. All rights reserved.
Coded and Authored with all the love in the world.
Coder: Hashem Zahran @antikano || @hezahran
------------------------------------------------------------*/
/*-- custom fonts
... | hezahran/hezahran.github.io | assets/css/resume.css | CSS | mit | 10,914 |
Network module for Go (UDP broadcast only)
==========================================
See [`main.go`](main.go) for usage example. The code is runnable with just `go run main.go`
Features
--------
Channel-in/channel-out pairs of (almost) any custom or built-in datatype can be supplied to a pair of transmitter/receiv... | Adriabs/heisSquad | Network-go/README.md | Markdown | mit | 1,310 |
//
// ISNetworkingResponse.h
// InventorySystemForiPhone
//
// Created by yangboshan on 16/4/28.
// Copyright © 2016年 yangboshan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ISNetworkingConfiguration.h"
@interface ISNetworkingResponse : NSObject
@property (nonatomic, assign, readonly) ISUR... | yangboshan/InventorySystemForiPhone | InventorySystemForiPhone/Networking/ISNetworkingResponse.h | C | mit | 1,617 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
typedef int (WINAPIV *PSYM_ENUMERATESYMBOLS_CALLBACK)(_SYMBOL_INFO *, unsigned int, void *);
END_ATF_NAMESPACE
| goodwinxp/Yorozuya | library/ATF/PSYM_ENUMERATESYMBOLS_CALLBACK.hpp | C++ | mit | 287 |
/*
* Copyright (C) 2013 Joseph Mansfield
*
* 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, merge, pu... | sftrabbit/StackAnswers | src/uk/co/sftrabbit/stackanswers/fragment/AuthInfoFragment.java | Java | mit | 1,678 |
# Entity Framwork Guidelines
Entity Framework (EF) is the recommended ORM to use these days. There
are other options, but most documentation (read: stackoverflow posts)
use EF.
In EF, you make C# objects to represent your table, use special
attributes or naming conventions to tell the EF database generator
what table... | AccelerationNet/adwcodebase.net | doc/EF.md | Markdown | mit | 5,177 |
Set-StrictMode -Version 2
function Test-SqlServer {
<#
.SYNOPSIS
Tests if a SQL Server exists and can be connected to. Optonally checks for a specific database or table.
.PARAMETER Server
The SQL Server to test
.PARAMETER Database
The database to test exists on the SQL Server ... | afscrome/TelligentInstanceManager | TelligentInstall/sql.ps1 | PowerShell | mit | 13,166 |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>bartpy.node — BartPy 0.0.1 documentati... | JakeColtman/bartpy | docs/_modules/bartpy/node.html | HTML | mit | 21,467 |
<?php
namespace moonland\phpexcel;
use yii\helpers\ArrayHelper;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\i18n\Formatter;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
/**
* Excel Widget for generate Excel File or for load Excel File.
*
* Usage
* -----
*
* Exporting data into... | moonlandsoft/yii2-phpexcel | Excel.php | PHP | mit | 33,886 |
module Text
class Sorter
def self.sort(text_components)
components = text_components.clone
components = components.shuffle
nil_priorities, components = components.partition {|c| c.priority.nil? }
components = components.sort_by(&:priority_index)
components = components.reverse
... | roschaefer/story.board | app/lib/text/sorter.rb | Ruby | mit | 379 |
<?php
require_once('../../global_functions.php');
require_once('../../connections/parameters.php');
try {
if (!isset($_SESSION)) {
session_start();
}
$s2_response = array();
$db = new dbWrapper_v3($hostname_gds_site, $username_gds_site, $password_gds_site, $database_gds_site, true);
if (e... | GetDotaStats/site | site_files/s2/my/mod_request_ajax.php | PHP | mit | 6,730 |
module Prawn
module Charts
class Bar < Base
attr_accessor :ratio
def initialize pdf, opts = {}
super pdf, opts
@ratio = opts[:ratio] || 0.75
end
def plot_values
return if series.nil?
series.each_with_index do |bar,index|
point_x = first_x_point i... | cajun/prawn-charts | lib/prawn/charts/bar.rb | Ruby | mit | 1,724 |
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@韩雨"/>
... | samrain/NewBlog | tags/msbuild/index.html | HTML | mit | 3,796 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open... | GoC-Spending/data-corporations | html/234567032346.html | HTML | mit | 30,653 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paco: 3 m 36 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="st... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.0/paco/2.0.3.html | HTML | mit | 22,489 |
package com.swfarm.biz.product.dao.impl;
import com.swfarm.biz.product.bo.SkuSaleMapping;
import com.swfarm.biz.product.dao.SkuSaleMappingDao;
import com.swfarm.pub.framework.dao.GenericDaoHibernateImpl;
public class SkuSaleMappingDaoImpl extends GenericDaoHibernateImpl<SkuSaleMapping, Long> implements SkuSaleM... | zhangqiang110/my4j | pms/src/main/java/com/swfarm/biz/product/dao/impl/SkuSaleMappingDaoImpl.java | Java | mit | 419 |
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class ProfileFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('name');
}
public function getParent... | efalder413/PKMNBreeder | src/AppBundle/Form/ProfileFormType.php | PHP | mit | 586 |
using Nethereum.Generators.Model;
using Nethereum.Generators.Net;
namespace Nethereum.Generator.Console.Models
{
public class ContractDefinition
{
public string ContractName { get; set; }
public ContractABI Abi { get; set; }
public string Bytecode { get; set; }
public Contra... | Nethereum/Nethereum | generators/Nethereum.Generator.Console/Models/ContractDefinition.cs | C# | mit | 450 |
'use strict';
module.exports = require('./toPairsIn');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2VudHJpZXNJbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCxHQUFpQixRQUFRLGFBQVIsQ0FBakIiLCJmaWxlIjoiZW50cmllc0luLmpzIiwic291cmNlc0... | justin-lai/hackd.in | compiled/client/lib/lodash/entriesIn.js | JavaScript | mit | 394 |
""" -*- coding: utf-8 -*- """
from python2awscli import bin_aws
from python2awscli.error import AWSNotFound, ParseError, AWSDuplicate
from python2awscli import must
class BaseSecurityGroup(object):
def __init__(self, name, region, vpc, description, inbound=None, outbound=None):
"""
:param name: S... | jhazelwo/python-awscli | python2awscli/model/securitygroup.py | Python | mit | 6,235 |
<!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="./533b52ee4ec32c5f9daf62ace85296f6775b00542726cad61b6612cd9767a7a6.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/5be570b311dc13765fe469225bb34b19f7f076e3512ac2141933a657720fd9b3.html | HTML | mit | 550 |
#
# Copyright (c) Microsoft Corporation.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR AN... | devrandorfer/ScorchDev | PowerShellModules/PackageManagementProviderResource/1.0.2/Examples/Sample_PSModule.ps1 | PowerShell | mit | 1,551 |
/*
The MIT License (MIT)
Copyright (c) 2014 Manni Wood
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, merge, pu... | manniwood/cl4pg | src/test/java/com/manniwood/cl4pg/v1/test/types/IntegerSmallIntTest.java | Java | mit | 5,707 |
package com.fqc.jdk8;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
public class test06 {
public static void main(String[] args) {
int[] arr = {1, 2, 3, 4, 5};
ArrayList<Integer> list = Arrays.stream(arr).collec... | fqc/Java_Basic | src/main/java/com/fqc/jdk8/test06.java | Java | mit | 927 |
// Deprecated: use github.com/multiformats/go-multiaddr-fmt instead.
package mafmt
import (
nmafmt "github.com/multiformats/go-multiaddr-fmt"
)
// Deprecated: use github.com/multiformats/go-multiaddr-fmt instead.
var IP = nmafmt.IP
// Deprecated: use github.com/multiformats/go-multiaddr-fmt instead.
var TCP = nmafm... | whyrusleeping/mafmt | patterns.go | GO | mit | 1,274 |
# gofmt package
An [Atom](http://atom.io) package for running `gofmt` on your buffer.
Hit Ctrl-Alt-G to run it on the current file,
or use command `gofmt:gofmt`,
or remap to whatever keybinding you like.
TODO:
* Error highlighting
* Flexible configuration
## Licensing and Copyright
Copyright 2014 Christopher Swe... | swenson/atom-gofmt | README.md | Markdown | mit | 390 |
USE [ANTERO]
GO
/****** Object: View [dw].[v_koski_lukio_opiskelijat_netto] Script Date: 1.2.2021 14:00:39 ******/
DROP VIEW IF EXISTS [dw].[v_koski_lukio_opiskelijat_netto]
GO
/****** Object: View [dw].[v_koski_lukio_opiskelijat_netto] Script Date: 1.2.2021 14:00:39 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_I... | CSCfi/antero | db/sql/4384__create_view_v_koski_lukio_opiskelijat_netto.sql | SQL | mit | 4,414 |
var chalk = require('chalk');
var safeStringify = require('fast-safe-stringify')
function handleErrorObject(key, value) {
if (value instanceof Error) {
return Object.getOwnPropertyNames(value).reduce(function(error, key) {
error[key] = value[key]
return error
}, {})
}
return value
}
function... | lazywithclass/winston-cloudwatch | lib/utils.js | JavaScript | mit | 806 |
#pragma once
#include "toolscollector.h"
#include "widgetsettings.h"
#include "toolbase.h"
namespace Engine {
namespace Tools {
struct GuiEditor : public Tool<GuiEditor> {
SERIALIZABLEUNIT(GuiEditor);
GuiEditor(ImRoot &root);
virtual Threading::Task<bool> init() override;
vi... | MadManRises/Madgine | plugins/core/widgets/tools/Madgine_Tools/guieditor/guieditor.h | C | mit | 1,140 |
<?php if (isset($consumers) && is_array($consumers)){ ?>
<?php $this->load->helper('security'); ?>
<tbody>
<?php foreach($consumers as $consumer){ ?>
<tr>
<td>
<a data-toggle="modal" data-target="#dynamicModal" href="<?php echo site_url("consumers/edit/$consumer->id");?>"><span ... | weslleih/almoxarifado | application/views/tbodys/consumers.php | PHP | mit | 848 |
package rholang.parsing.delimc.Absyn; // Java Package generated by the BNF Converter.
public class TType2 extends TType {
public final Type type_1, type_2;
public TType2(Type p1, Type p2) { type_1 = p1; type_2 = p2; }
public <R,A> R accept(rholang.parsing.delimc.Absyn.TType.Visitor<R,A> v, A arg) { return v.vis... | rchain/Rholang | src/main/java/rholang/parsing/delimc/Absyn/TType2.java | Java | mit | 753 |
require 'rubygems'
require 'test/unit'
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'sinatra'
require 'sinatra/path'
class Test::Unit::TestCase
end
| JunKikuchi/sinatra-path | test/helper.rb | Ruby | mit | 241 |
"use strict"
const createTileGridConverter = require(`./createTileGridConverter`)
const colorDepth = require(`./colorDepth`)
module.exports = ({palette, images}) => {
const converter = createTileGridConverter({
tileWidth: 7,
tileHeight: 9,
columns: 19,
tileCount: 95,
raw32bitData: colorDepth.con... | chuckrector/mappo | src/converter/createVerge1SmallFntConverter.js | JavaScript | mit | 426 |
import * as EventLogger from './'
const log = new EventLogger()
log.info('Basic information')
log.information('Basic information')
log.warning('Watch out!')
log.warn('Watch out!')
log.error('Something went wrong.')
log.auditFailure('Audit Failure')
log.auditSuccess('Audit Success')
// Configurations
new EventLogger(... | DenisCarriere/eventlogger | types.ts | TypeScript | mit | 446 |
# cactuscon2015
Badge design for CactusCon 2015
| erikwilson/cactuscon2015 | README.md | Markdown | mit | 48 |
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_imdbc_session'
| chi-bobolinks-2015/imdbc | config/initializers/session_store.rb | Ruby | mit | 137 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>Class: HTML::Sanitizer</title>
<meta http-equiv="Content... | ecoulthard/summitsearch | doc/api/classes/HTML/Sanitizer.html | HTML | mit | 9,325 |
# -*- coding: utf-8 -*-
"""urls.py: messages extends"""
from django.conf.urls import url
from messages_extends.views import message_mark_all_read, message_mark_read
urlpatterns = [
url(r'^mark_read/(?P<message_id>\d+)/$', message_mark_read, name='message_mark_read'),
url(r'^mark_read/all/$', message_mark_all_r... | AliLozano/django-messages-extends | messages_extends/urls.py | Python | mit | 358 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$(document).ready(function(){
var oldAction = $('#comment-form').attr("action");
hljs.initHighlightingOnLoad();
$('#coolness div').hover(function(){
$('#coolness .second').fadeOut(50... | mzj/yabb | src/MZJ/YabBundle/Resources/public/js/bootstrap.js | JavaScript | mit | 683 |
#include "Sound.h"
#include <Windows.h>
#include "DigitalGraffiti.h"
Sound::Sound(void)
{
// Find music and sound files
std::string exeDir = DigitalGraffiti::getExeDirectory();
DigitalGraffiti::getFileList(exeDir + "\\sound\\instructions\\*", instructionsMusicList);
DigitalGraffiti::getFileList(exeDir + "... | nbbrooks/digital-graffiti | DigitalGraffiti/Sound.cpp | C++ | mit | 1,924 |
using System.Collections.ObjectModel;
using AppStudio.Common;
using AppStudio.Common.Navigation;
using Windows.UI.Xaml;
namespace WindowsAppStudio.Navigation
{
public abstract class NavigationNode : ObservableBase
{
private bool _isSelected;
public string Title { get; set; }
... | wasteam/WindowsAppStudioApp | WindowsAppStudio.W10/Navigation/NavigationNode.cs | C# | mit | 2,027 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>canon-bdds: 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.07.1-2.0.6/released/8.10.0/canon-bdds/8.5.0.html | HTML | mit | 6,962 |
# AndSpecification(*T*) Constructor
Additional header content
Initializes a new instance of the <a href="T_iTin_Export_ComponentModel_Patterns_AndSpecification_1">AndSpecification(T)</a> class
**Namespace:** <a href="N_iTin_Export_ComponentModel_Patterns">iTin.Export.ComponentModel.Patterns</a><br />**Assembly... | iAJTin/iExportEngine | source/documentation/iTin.Export.Documentation/Documentation/M_iTin_Export_ComponentModel_Patterns_AndSpecification_1__ctor.md | Markdown | mit | 2,028 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CRecallRequest.hpp>
START_ATF_NAMESPACE
namespace Info
{
using CRecallRequestctor_CRecallRequest2_ptr = void (WINAPIV*)(struct CRecal... | goodwinxp/Yorozuya | library/ATF/CRecallRequestInfo.hpp | C++ | mit | 3,442 |
class DiscountTechnicalTypesController < ApplicationController
before_action :set_discount_technical_type, only: [:show, :edit, :update, :destroy]
# GET /discount_technical_types
# GET /discount_technical_types.json
def index
@discount_technical_types = DiscountTechnicalType.all
end
# GET /discount_te... | maxjuniorbr/mobSeg | app/controllers/discount_technical_types_controller.rb | Ruby | mit | 2,523 |
using System.Net.Sockets;
namespace VidereLib.EventArgs
{
/// <summary>
/// EventArgs for the OnClientConnected event.
/// </summary>
public class OnClientConnectedEventArgs : System.EventArgs
{
/// <summary>
/// The connected client.
/// </summary>
public TcpClient... | Wolf-Code/Videre | Videre/VidereLib/EventArgs/OnClientConnectedEventArgs.cs | C# | mit | 610 |
require 'rubygems'
require 'net/dns'
module Reedland
module Command
class Host
def self.run(address)
regular = Net::DNS::Resolver.start address.join(" ")
mx = Net::DNS::Resolver.new.search(address.join(" "), Net::DNS::MX)
return "#{regular}\n#{mx}"
end
end
end
end | reedphish/discord-reedland | commands/host.rb | Ruby | mit | 291 |
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>onSupportNavigateUp</title>
</head><body><link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script>
<script type="text/javascript" src="../..... | stripe/stripe-android | docs/payments-core/com.stripe.android.view/-payment-methods-activity/on-support-navigate-up.html | HTML | mit | 3,722 |
# Set up gems listed in the Gemfile.
# See: http://gembundler.com/bundler_setup.html
# http://stackoverflow.com/questions/7243486/why-do-you-need-require-bundler-setup
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
# Require ge... | ckammerl/LilTwitter | config/environment.rb | Ruby | mit | 1,387 |
#!/bin/bash
STEP=$1
TEST=$2
case "$STEP" in
install)
echo "Installing..."
if [ -d vendor ]; then
chmod 777 -R vendor
rm -r vendor
fi
COMPOSER=dev.json composer install
;;
script)
echo "Run tests...";
if [ ! -d vendor ]; then
... | vtsykun/redis-message-queue | .builds/travis.sh | Shell | mit | 845 |
(function(Object) {
Object.Model.Background = Object.Model.PresentationObject.extend({
"initialize" : function() {
Object.Model.PresentationObject.prototype.initialize.call(this);
}
},{
"type" : "Background",
"attributes" : _.defaults({
"skybox" : {
"type" : "res-texture",
"name" : "... | larsrohwedder/scenepoint | client_src/modules/object/model/Background.js | JavaScript | mit | 532 |
<div class="mini-graph clearfix">
<div class="nav"><nav><a class="breadcrumb" href="/">Offices</a> > <span>{{office}}</span></nav></div>
<h3>NYC Campaign Contributions: {{office}}</h3>
<hr>
<ul>
<li ng-click="byTotal($event)" class="chart-option active-option">Total Funds</li>
<li ng-cli... | akilism/nyc-campaign-finance | site_code/views/partials/candidate_list.html | HTML | mit | 2,346 |
<?php
namespace HsBundle;
use HsBundle\DependencyInjection\Compiler\ReportsCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class HsBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($cont... | deregenboog/ecd | src/HsBundle/HsBundle.php | PHP | mit | 401 |
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link href="../style/campfire.css" rel="stylesheet">
<link href="../style/bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="chart" id="wall"></div>
</body>
<script src="../script/campfire-wall.js" charset="utf-8"></script>
</html>
| mpoegel/SemNExT-Visualizations | public/campfire/wall.html | HTML | mit | 315 |
import './Modal.scss'
import pugTpl from './Modal.pug'
import mixin from '../../mixin'
import alert from '@vue2do/component/module/Modal/alert'
import confirm from '@vue2do/component/module/Modal/confirm'
export default {
name: 'PageCompModal',
template: pugTpl(),
mixins: [mixin],
data() {
return {
... | zen0822/vue2do | app/doc/client/component/page/Component/message/Modal/Modal.js | JavaScript | mit | 995 |
package com.igonics.transformers.simple;
import java.io.PrintStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
imp... | gggordon/JavaCSVTransform | src/com/igonics/transformers/simple/JavaCSVTransform.java | Java | mit | 4,527 |
require 'test_helper'
module ContentControl
class UploadsHelperTest < ActionView::TestCase
end
end
| mikedhart/ContentControl | test/unit/helpers/simple_cms/uploads_helper_test.rb | Ruby | mit | 104 |
/*
* JDIVisitor
* Copyright (C) 2014 Adrian Herrera
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This... | adrianherrera/jdivisitor | src/main/java/org/jdivisitor/debugger/launcher/RemoteVMConnector.java | Java | mit | 2,991 |
# The MIT License (MIT)
#
# Copyright (c) 2016 Frederic Guillot
#
# 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, ... | kanboard/kanboard-cli | kanboard_cli/shell.py | Python | mit | 3,401 |
<div>
<h1 class="page-header">项目详情</h1>
<form class="form-horizontal" name="project" role="form">
<div class="form-group">
<label for="projectName" class="col-sm-2 control-label">选择项目</label>
<div class="col-sm-5">
<select class="form-control" ng-model="projectName" name="projectName" id="p... | lszhu/dataManager | app/partials/search/queryProjectDetail.html | HTML | mit | 7,951 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cShART
{
public class ARTFlystick : ARTObject
{
private bool visible;
private int numberOfButtons;
private int numberOfControllers;
... | schMarXman/cShART | ARTFlystick.cs | C# | mit | 4,744 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>PruneCluster - Realworld 50k</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />
<link rel="stylesheet" href="https://cdnj... | SINTEF-9012/PruneCluster | examples/random.1000.html | HTML | mit | 1,726 |
using System;
using System.Text.RegularExpressions;
namespace _07_Hideout
{
class Hideout
{
static void Main()
{
string input = Console.ReadLine();
while (true)
{
string[] parameters = Console.ReadLine().Split();
string key ... | nellypeneva/SoftUniProjects | 01_ProgrFundamentalsMay/32_Strings-and-Regular-Expressions-More-Exercises/07_Hideout/Hideout.cs | C# | mit | 795 |
using System.ComponentModel.DataAnnotations;
namespace JezekT.AspNetCore.IdentityServer4.WebApp.Models.AccountSettingsViewModels
{
public class ConfirmEmailViewModel
{
[Display(Name = "Email", ResourceType = typeof(Resources.Models.AccountSettingsViewModels.ConfirmEmailViewModel))]
public stri... | jezekt/AspNetCore | JezekT.AspNetCore.IdentityServer4.WebApp/Models/AccountSettingsViewModels/ConfirmEmailViewModel.cs | C# | mit | 354 |
require "rails_helper"
describe "announcements/_public_announcement" do
it "renders nothing when announcements are not visible" do
allow(view).to receive(:announcement_visible?).and_return(false)
render
expect(rendered).to eq ""
end
it "renders the announcement when announcements are visible" do
... | thoughtbot/paul_revere | spec/views/announcements/_public_announcement.html.erb_spec.rb | Ruby | mit | 610 |
var a;function SongView(){ListView.call(this);this.name="SongView";this.allDataLoaded=this.songsLoaded=false;this.sortVariable="bezeichnung"}Temp.prototype=ListView.prototype;SongView.prototype=new Temp;songView=new SongView;a=SongView.prototype;
a.getData=function(d){if(d){var c=[];allSongs!=null&&$.each(churchcore_so... | isbm/churchtools | system/churchservice/cs_songview.js | JavaScript | mit | 12,398 |
"use strict";
var i = 180; //3分固定
function count(){
if(i <= 0){
document.getElementById("output").innerHTML = "完成!";
}else{
document.getElementById("output").innerHTML = i + "s";
}
i -= 1;
}
window.onload = function(){
setInterval("count()", 1000);
}; | Shin-nosukeSaito/elctron_app | ramen.js | JavaScript | mit | 280 |
class IE
@private
def ie_config
@client = Selenium::WebDriver::Remote::Http::Default.new
@client.read_timeout = 120
@caps = Selenium::WebDriver::Remote::Capabilities.ie('ie.ensureCleanSession' => true,
:javascript_enabled => true,
... | krupani/testnow | lib/testnow/ie.rb | Ruby | mit | 1,583 |
#include <fstream>
#include <iostream>
#include <vector>
int main(int argc, char **argv) {
std::vector<std::string> args(argv, argv + argc);
std::ofstream tty;
tty.open("/dev/tty");
if (args.size() <= 1 || (args.size() & 2) == 1) {
std::cerr << "usage: maplabel [devlocal remote]... remotedir\n";
retur... | uluyol/tools | maplabel/main.cc | C++ | mit | 804 |
package com.catsprogrammer.catsfourthv;
/**
* Created by C on 2016-09-14.
*/
public class MatrixCalculator {
public static float[] getRotationMatrixFromOrientation(float[] o) {
float[] xM = new float[9];
float[] yM = new float[9];
float[] zM = new float[9];
float sinX = (float)... | CatsProject/CycleAssistantTools | mobile/src/main/java/com/catsprogrammer/catsfourthv/MatrixCalculator.java | Java | mit | 2,238 |
default_app_config = "gallery.apps.GalleryConfig"
| cdriehuys/chmvh-website | chmvh_website/gallery/__init__.py | Python | mit | 50 |
import { browser, by, element } from 'protractor';
export class Angular2Page {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
}
| deepak1725/django-angular4 | users/static/ngApp/angular2/e2e/app.po.ts | TypeScript | mit | 213 |
<!-- START LEFT SIDEBAR NAV-->
<?php
$role = "";
switch($this->session->userdata('ROLE_ID')){
case 1:
$role = "Administrator";
break;
case 2:
$role = "Adopting Parent";
break;
case 3:
$role = "Biological Parent/Guardian";
break;
}
?>
<aside id="left-sideb... | ushangt/FosterCare | application/views/front/adopting_parent/menu.php | PHP | mit | 2,980 |
package es.sandbox.ui.messages.argument;
import es.sandbox.ui.messages.resolver.MessageResolver;
import es.sandbox.ui.messages.resolver.Resolvable;
import java.util.ArrayList;
import java.util.List;
class LinkArgument implements Link, Resolvable {
private static final String LINK_FORMAT = "<a href=\"%s\" title... | jeslopalo/flash-messages | flash-messages-core/src/main/java/es/sandbox/ui/messages/argument/LinkArgument.java | Java | mit | 2,828 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os, sys
import tempfile
from winsys._compat import unittest
import uuid
import win32file
from winsys.tests.test_fs import utils
from winsys import fs
class TestFS (unittest.TestCase):
filenames = ["%d" % i for i in range (5)]
def setUp (se... | operepo/ope | laptop_credential/winsys/tests/test_fs/test_fs.py | Python | mit | 1,100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.