repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kobtea/go-todoist
cmd/todoist/cmd/completion.go
5866
package cmd import ( "fmt" "github.com/spf13/cobra" "os" ) const ( bashCompletionFunc = ` __todoist_select_one() { fzf } __todoist_select_multi() { fzf -m } __todoist_filter_ids() { COMPREPLY=( $(todoist filter list | __todoist_select_multi | awk '{print $1}' | tr '\n' ' ') ) } __todoist_item_id() { COMPRE...
mit
tjs101/QBFramework_IOS
QBFramework_IOS/Utility/QBSystem.h
8437
// // QBSystem.h // QBFramework // // Created by quentin on 16/7/21. // Copyright © 2016年 Quentin. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, QB_CheckNumAndLetter) { QB_CheckNumAndLetter_Letter,// 全部字母 QB_CheckNumAn...
mit
HearstCorp/SamlSPBundle
src/AerialShip/SamlSPBundle/Error/EmptySamlResponseException.php
112
<?php namespace AerialShip\SamlSPBundle\Error; class EmptySamlResponseException extends \RuntimeException { }
mit
penguinboy/kayako-api
src/test/java/org/penguin/kayako/domain/NoteCollectionTests.java
878
package org.penguin.kayako.domain; import org.junit.Test; import org.penguin.kayako.UnmarshallerFactory; import org.penguin.kayako.domain.NoteCollection; import org.penguin.kayako.util.ContentLoader; import javax.xml.bind.Unmarshaller; import java.io.StringReader; import static org.junit.Assert.assertEquals; import ...
mit
EENielsen/school-python
ascii-tabel.py
222
__author__ = 'Emil E Nielsen' start = 1 end = 17 for i in range (8): for x in range(start, end): print chr(x), if x >= 128: break print "\n" start = end + 1 end = start + 16
mit
itarverne/generator-itarverne-landing-page
public/en/OLDnode_modules/vanilla-lazyload/demos/multiple_container.html
8317
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title> Lazyload tests </title> <style type="text/css"> ul, li { list-style-type: none; margin: 0; padding: 0; } a, img { display: block; } img { border: 0; } img:not([src]) { visibility: hidden; } .results { ...
mit
CinemaPress/CinemaPress-ACMS
routes/rss.js
8046
'use strict'; /** * Module dependencies. */ var CP_cache = require('../lib/CP_cache'); var CP_get = require('../lib/CP_get.min'); var CP_regexp = require('../lib/CP_regexp'); /** * Configuration dependencies. */ var config = require('../config/production/config'); var modules = require('../config/productio...
mit
raubana/AttackOfTheMimics
gamemodes/attack_of_the_mimics/gamemode/mode_echolocation/cl_init.lua
7365
include("shared.lua") -- local MODE_ENABLED = GetConVar("aotm_mode_echolocation") local MODE_ENABLED = false -- because convar replication is apparently broken, we have to instead use a -- global variable. local sound_detail_var = CreateClientConVar("aotm_mode_echolocation_sound_detail", "3", true, false, "How det...
mit
henry-gobiernoabierto/geomoose
htdocs/libs/dojo/dojox/grid/enhanced/nls/el/Filter.js
3906
({ "clearFilterDialogTitle": "Εκκαθάριση φίλτρου", "filterDefDialogTitle": "Φίλτρο", "ruleTitleTemplate": "Κανόνας ${0}", "conditionEqual": "ίσο", "conditionNotEqual": "όχι ίσο", "conditionLess": "είναι μικρότερο από", "conditionLessEqual": "μικρότερο ή ίσο", "conditionLarger": "είναι μεγαλύτερο από", "condi...
mit
hovsepm/azure-libraries-for-net
src/ResourceManagement/AppService/Generated/Models/CloneAbilityResult.cs
2076
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // </auto-generated> namespace Microsoft.Azure.Management.AppService.Fluent....
mit
andrewls/affiliator
lib/affiliator/version.rb
42
module Affiliator VERSION = "0.2.1" end
mit
OpenTl/OpenTl.Schema
docs/api/OpenTl.Schema.Serialization/Serializer/5E4B9650.html
11174
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta n...
mit
OpenTl/OpenTl.Schema
docs/api/OpenTl.Schema/TUpdateInlineBotCallbackQuery/E107C9B3.html
11156
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta n...
mit
dehnhardt/mioconfig
src/widgets/portremapsettingswidget.cpp
10679
#include "portremapsettingswidget.h" #include "controls/midichannelcombodelegate.h" #include "controls/midicontrollercombodelegate.h" #include "ui_portremapsettingswidget.h" #include <QLabel> PortRemapSettingsWidget::PortRemapSettingsWidget(PortDirection direction, QWidget *parent) : QWidget(parent), ui...
mit
abogdan/dotfiles
setup/misc.sh
893
#!/usr/bin/env bash cd "$(dirname "${BASH_SOURCE[0]}")" \ && . "../utils.sh" install_apps() { brew_install "FFmpeg" "ffmpeg" brew_install "Git" "git" brew_install "Yarn" "yarn" brew_install "MidnightCommander" "mc" brew_install "tmux" "tmux" brew_install "tmux (pasteboard)" "reattach-to-user-name...
mit
aldoms/vsts-tasks
Tasks/Kubernetes/Tests/L0.ts
34309
import * as path from 'path'; import * as assert from 'assert'; import * as ttm from 'vsts-task-lib/mock-test'; import tl = require('vsts-task-lib'); import * as shared from './TestShared'; describe('Kubernetes Suite', function() { this.timeout(30000); before((done) => { process.env[shared.TestEnvVars....
mit
azusanakano/rails-devise-ja
config/environments/development.rb
2070
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
mit
Toilal/showcase-ng-routers
ng-route-app/src/app/about/about.controller.js
182
(function() { 'use strict'; angular .module('ngRouteApp') .controller('AboutController', AboutController); /** @ngInject */ function AboutController() { } })();
mit
CradlePHP/packages
test/Sql/AbstractSql.php
15278
<?php namespace Cradle\Sql; use StdClass; use PHPUnit_Framework_TestCase; use Cradle\Resolver\ResolverHandler; use Cradle\Profiler\InspectorHandler; /** * Generated by PHPUnit_SkeletonGenerator on 2016-07-27 at 02:11:02. */ class Cradle_Sql_AbstractSql_Test extends PHPUnit_Framework_TestCase { /** * @var...
mit
agileapes/dragonfly
dragonfly-core/src/main/java/com/mmnaseri/dragonfly/metadata/PagingMetadata.java
1516
/* * The MIT License (MIT) * * Copyright (c) 2013 Milad Naseri. * * 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...
mit
contentful/contentful-management.php
src/Resource/BaseResource.php
1597
<?php /** * This file is part of the contentful/contentful-management package. * * @copyright 2015-2022 Contentful GmbH * @license MIT */ declare(strict_types=1); namespace Contentful\Management\Resource; use Contentful\Core\Api\Link; use Contentful\Core\Resource\SystemPropertiesInterface; use Contentful\Man...
mit
z3r0zh0u/pyole
pydoc.py
14460
# A simple DOC file parser based on pyole import os import struct import logging import datetime from pyole import * class FIBBase(OLEBase): wIdent = 0 nFib = 0 unused = 0 lid = 0 pnNext = 0 Flags1 = 0 fDot = 0 fGlsy = 0 fComplex = 0 fHasPic = 0 cQuickSaves = 0 fEncry...
mit
sjohnr/behaviors.js
src/main/js/lib/Relative.js
852
"use strict"; var $ = require("jquery"); var _ = require("underscore"); /** * Adds relative attribute functions: minimum, maximum, equals. * * @param c The comparator function * @param a The attribute name * @param e1 The first element (the element to act upon) * @param s The selector to evaluate as an element ...
mit
ultimo/tr
app/cache/dev/jms_diextra/doctrine/EntityManager_50f974421cab3.php
16022
<?php namespace EntityManager50f974421cab3_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM; /** * CG library enhanced proxy class. * * This code was generated automatically by the CG library, manual changes to it * will be lost upon next generation. */ class EntityManager extends \Doctrine\ORM\Entit...
mit
tscibilia/tscibilia.github.io
assets/css/style.css
3237
/* ==== Google font ==== */ @import url('http://fonts.googleapis.com/css?family=Lato:400,300,700,900'); body { background: #394864; font-family: 'Lato', sans-serif; font-weight: 300; font-size: 16px; color: #555; line-height: 1.6em; -webkit-font-smoothing: antialiased; -webkit-overflow-scr...
mit
utilForever/CubbyFlow
search/defines_0.js
1278
var searchData= [ ['cubbyflow_5fdebug',['CUBBYFLOW_DEBUG',['../_core_2_utils_2_logging_8hpp.html#a9444ed1f5c44b8cfafc48c0b4e1adccb',1,'Logging.hpp']]], ['cubbyflow_5ferror',['CUBBYFLOW_ERROR',['../_core_2_utils_2_logging_8hpp.html#aedc411509ba3159ad14bcfd303f64049',1,'Logging.hpp']]], ['cubbyflow_5fgrid_5ftype_5f...
mit
AZMAG/map-Developments
Gruntfile.js
8849
module.exports = function(grunt) { "use strict"; require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), bannercss: "/*! =============================================================\n" + "...
mit
mrkirby153/KirBotPanel
resources/assets/js/components/dashboard/permissions/reducer.ts
2674
import {Reducer} from "redux"; import {ActionType, getType} from "typesafe-actions"; import * as Actions from './actions'; import ld_filter from 'lodash/filter'; import ld_find from 'lodash/find'; import {PanelPermission, RoleClearance} from "./types"; export interface PermissionReducerState { panelPermissions: Pa...
mit
nikitadyumin/tetris
src/app/game_ui/UIModule.js
427
/** * Created by ndyumin on 29.05.2015. * @exports UIModule */ define(function(require) { require('./styles/field.less'); var Wreqr = require('backbone.wreqr'); var globalBus = Wreqr.radio.channel('global'); var UIController = require('./UIController'); return function(app) { var contr...
mit
harrymule/nairobi-webportal
framework/control/RequestProcessor.php
823
<?php /** * @package framework * @subpackage control */ class RequestProcessor { private $filters = array(); public function __construct($filters = array()) { $this->filters = $filters; } public function setFilters($filters) { $this->filters = $filters; } public function preRequest(SS_HTTPRequest $req...
mit
mtoto/mtoto.github.io
tags/skipgram/index.html
4501
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="referrer" content="no-ref...
mit
andersfrank/BracketBoxExamples
Classes/Shared/Views/BAThinLineView.h
412
// // BAThinLineView.h // BracketApp // // Created by Anders Frank on 09/10/15. // Copyright © 2015 Pakten. All rights reserved. // #import <UIKit/UIKit.h> @interface BAThinLineView : UIView @property (nonatomic) UIColor *lineColor; // Default is black. @property (nonatomic) CGRectEdge lineAligmentEdge; // Defau...
mit
backuporg/Witchworks
src/main/java/com/witchworks/common/brew/GrassGrowBrew.java
1298
package com.witchworks.common.brew; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import javax.annotation.Nullable; /** * This class was created by Arekkuusu on 11/06/20...
mit
team-diana/nucleo-dynamixel
docs/latex/group___t_i_m___lock__level.tex
1639
\hypertarget{group___t_i_m___lock__level}{}\section{T\+IM Lock level} \label{group___t_i_m___lock__level}\index{T\+I\+M Lock level@{T\+I\+M Lock level}} \subsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bfseries T\+I\+M\+\_\+\+L\+O\+C\+K\+L\+E\+V\+E\+L\+\_\+\+O\+FF}~((uint32\+\_\+t)0x0000)\hypertarget{g...
mit
LuRsT/datdash
setup.py
825
from setuptools import setup from os.path import join as join_path from os import walk def files_in(package, directory): paths = [] for root, dirs, files in walk(join_path(package, directory)): for file in files: paths.append(join_path(root, file)[(len(package) + 1):]) return paths a...
mit
mrnugget/micktagger
lib/micktagger/file_store.rb
716
module MickTagger class FileStore attr_reader :content def initialize(content) @content = content end def files_for(tag) @content.select {|file, tags| tags.include?(tag) }.keys end def add_tag_to(file, tag) @content[file] ||= [] @content[file] << tag @content[f...
mit
plotly/dash
tests/unit/development/test_generate_class.py
4761
import json import os from collections import OrderedDict from difflib import unified_diff import pytest from dash.development._py_components_generation import generate_class from dash.development.component_generator import reserved_words from . import _dir, expected_table_component_doc @pytest.fixture def componen...
mit
dalek2point3/wikibaseball
writing/tables/reg_chart_qual.tex
1644
{ \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} \begin{tabular*}{\hsize}{@{\hskip\tabcolsep\extracolsep\fill}l*{2}{c}} \toprule &\multicolumn{1}{c}{Images}&\multicolumn{1}{c}{Traffic}\\ \midrule \emph{post} & 0.851 & 49.39 \\ & (0.0758)\sym{***}& (5.556)\sym{***}\...
mit
acloudburo/dognews
2016/01/25.html
13600
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta content="IE=edge;chrome=1" http-equiv="X-UA-Compatible" /> <title>dognews</title> <meta content="width=device-width, initial-scale=1" name="viewport" /> <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xml...
mit
azaars/vuetify
src/components/VDialog/VDialog.js
4409
require('../../stylus/components/_dialogs.styl') // Mixins import Dependent from '../../mixins/dependent' import Detachable from '../../mixins/detachable' import Overlayable from '../../mixins/overlayable' import Stackable from '../../mixins/stackable' import Toggleable from '../../mixins/toggleable' // Directives im...
mit
camillescott/boink
include/goetia/sketches/sketch/vec/blaze/blaze/math/Math.h
2549
//================================================================================================= /*! // \file blaze/math/Math.h // \brief Math module documentation // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or modi...
mit
fotanus/rails-maps
test/dummy/db/schema.rb
986
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative sou...
mit
mmsikora/gogo-service
service/service.go
691
package service import ( "net/http" "github.com/codegangsta/negroni" "github.com/gorilla/mux" "github.com/unrolled/render" ) func NewServer() *negroni.Negroni { formatter := render.New(render.Options{ IndentJSON:true, }) n := negroni.Classic() mx := mux.NewRouter() initRoutes(mx, formatter) ...
mit
KevinSmall/HanaShine3d
Epm3d/Assets/_Scripts/Po/PoManager.cs
8495
using UnityEngine; using System.Collections; using System; using Epm3d; /// <summary> /// Manages a single PO. Calls GameManager to update PO approval status, waits for response. /// Listens to highlight events, does other highlight stuff like PO display (via script PoGui), halting /// movement, everything not relat...
mit
techmatt/d3d11-interceptor
mLib/include/core-mesh/pointCloud.h
1706
#ifndef CORE_MESH_POINTCLOUD_H_ #define CORE_MESH_POINTCLOUD_H_ namespace ml { template <class FloatType> class PointCloud { public: PointCloud() {} PointCloud(const std::vector < vec3<FloatType>>& points) { m_points = points; } //!conversion from a binary voxel grid PointCloud(const BinaryGrid3& grid, Float...
mit
DeFraises/placeholder
README.md
34
# placeholder just somethign here
mit
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/712c009af6646d823a7f1c71e516aac34cdbbcd59f8e2eaebd3f2e575c117981.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="./2b46b3d923be1af1bf3b38923802bd74cd78f7e5ad327bf297bf255a7b433226.html">Teleport</a> <hr> ...
mit
seclorum/ios-go-ipfs
ipfsios/ipfsios/AppDelegate.h
279
// // AppDelegate.h // ipfsios // // Created by Jay Vaughan on 4/22/15. // Copyright (c) 2015 Jay Vaughan. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
mit
diplomacy/research
diplomacy_research/models/policy/order_based/model.py
28290
# ============================================================================== # Copyright 2019 - Philip Paquette # # NOTICE: 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 rest...
mit
hofa/vue-st
src/quote/assets/record-detail.html
12655
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="robots" content="all" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="email=no...
mit
CurrencyCloud/currencycloud-java
src/main/java/com/currencycloud/client/model/Iban.java
4309
package com.currencycloud.client.model; import com.currencycloud.client.Utils; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.PropertyNamingStrategy; import com.fas...
mit
kaoscript/kaoscript
test/fixtures/compile/for/for.block.in.from.asc.wbn.wep.ns.js
319
module.exports = function() { let heroes = ["leto", "duncan", "goku", "batman", "asterix", "naruto", "totoro"]; for(let index = Math.max(0, heroes.length - 5), __ks_0 = Math.min(heroes.length, 3), hero; index < __ks_0; ++index) { hero = heroes[index]; console.log("The hero at index %d is %s", index, hero); } };
mit
deathly809/azure-rest-api-specs
specification/edgegateway/resource-manager/readme.md
3818
# DataBox > see https://aka.ms/autorest This is the AutoRest configuration file for DataBox. --- ## Getting Started To build the SDK for DataBox, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` To see additional help and options, run: > `autorest --help` --- ## ...
mit
MarianVasilca/The100DayProject
nrcuv/Makefile
161
CFLAGS = -Wall -Wmaybe-uninitialized -Wextra CC = g++ build: nrcuv nrcuv: nrcuv.cpp $(CC) -o $@ $^ $(CFLAGS) .PHONY: clean clean: rm -f *~ nrcuv nrcuv.out
mit
Tyriar/abbr-touch
README.md
1643
# abbr-touch [![Build Status](https://api.travis-ci.org/Tyriar/abbr-touch.svg)](https://travis-ci.org/Tyriar/abbr-touch) [![Code Climate](https://codeclimate.com/github/Tyriar/abbr-touch/badges/gpa.svg)](https://codeclimate.com/github/Tyriar/abbr-touch) abbr-touch is a tiny JavaScript library that makes the title att...
mit
yisimeng/Pieces
开源库/ProtocolBuffer.md
475
# protocol buffer 使用PB比JSON好的一点是PB数据中没有键,所以PB的数据包应该要比JSON更小一点。PB是将数据对象转换为二进制格式进行,不需要key,是因为它的每一个属性的位置是确定的,不可随意修改的。这样设计的原因是它会通过计算得出每一个属性的大小,然后再根据大小去数据流中获取数据,转化成属性赋值。所以从model的顺序是必须要和后台一致的。
mit
Vrturo/Algo-Gem
Algorithms/JS/trees/binaryLvlOrderTraverse.js
1066
// Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). // For example: // Given binary tree {3,9,20,#,#,15,7}, // 3 // / \ // 9 20 // / \ // 15 7 // return its level order traversal as: // [ // [3], // [9,20], // [15,7] // ] ...
mit
purplestencil/project-huebrew
LICENSE.md
1068
MIT License Copyright (c) 2017 Richa Mehta 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, publish, distr...
mit
luissiqueira/sippa-no-api
sippa/settings.py
4223
""" Django settings for sippa project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os i...
mit
yizhang82/corert
src/ILCompiler.Compiler/src/Compiler/Compilation.cs
20193
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using ILCompil...
mit
olsh/serilog-sinks-sentry
demos/SentryWeb/Scrubbing/DivisionByZeroFilter.cs
519
using System.Text.RegularExpressions; using SharpRaven.Logging; namespace SentryWeb.Scrubbing { /// <summary> /// Silly example of replacing zero with hero when the divide by zero exception is thrown. /// </summary> public class DivisionByZeroFilter : IFilter { private static readonly Regex...
mit
site5/lumberg
spec/whm/cert_spec.rb
3549
require 'spec_helper' require 'lumberg/whm' CERT = File.read('./spec/sample_certs/main.crt') SELF_CERT = File.read('./spec/sample_certs/sample.crt') SELF_KEY = File.read('./spec/sample_certs/sample.key') module Lumberg describe Whm::Cert do before(:each) do @login = { host: @whm_host, hash: @whm_hash } ...
mit
luis-teixeira/react-twilio-webphone
app/containers/CallLogs/tests/index.test.js
266
// import { CallLogs } from '../index'; import expect from 'expect'; // import { shallow } from 'enzyme'; // import React from 'react'; describe('<CallLogs />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(false); }); });
mit
Yaxuan/BookApp
BookClient/Controllers/BookController.cs
4685
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using BookClient.Enum; using BookClient.Interface; using BookClient.Models; using BookClient.ViewModels; namespace BookClient.Controllers { ...
mit
mvidacovich/EntityFrameworkFkNull
EntityFrameworkFkNull/Migrations/201407291814368_Init.Designer.cs
805
// <auto-generated /> namespace EntityFrameworkFkNull.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.1-30610")] public sealed parti...
mit
niaher/kanbang
Kanbang.Core/Events/EventTypes.cs
210
namespace Kanbang.Core.Events { using System; internal static class EventTypes { public static readonly EventType<Exception> ExceptionOccured = new EventType<Exception>(1000, "Exception occured"); } }
mit
seemaullal/Go-techtalk
index.html
6654
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>A Short Presentation on Go</title> <meta name="description" content="A short introduction to the Go programming language"> <meta name="author" content="Seema Ullal"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta na...
mit
Schibsted-Tech-Polska/stp.project_analysis
reports/files/node_modules_findit_node_modules_seq_node_modules_hashish_index_js/report.history.js
209
__history = [{"date":"Fri, 12 Jul 2013 08:56:51 GMT","sloc":253,"lloc":175,"functions":56,"deliveredBugs":2.4294367467276246,"maintainability":77.09782649151177,"lintErrors":22,"difficulty":83.76923076923076}]
mit
zdizzle6717/battle-comm
src/services/GameSystemRankingService.js
496
'use strict'; import axios from 'axios'; export default { search: (criteria) => { return axios.post('/gameSystemRankings/search', criteria) .then(function(response) { return response.data; }); }, createOrUpdate: (data) => { return axios.post('/gameSystemRankings', data) .then(function(response) { ...
mit
aquilahkj/Light.Data2
src/Light.Data/DataField/LightStringMatchDataFieldInfo.cs
1919
namespace Light.Data { internal class LightStringMatchDataFieldInfo : LightDataFieldInfo, ISupportNotDefine, IDataFieldInfoConvert { private bool _isNot; private readonly bool _starts; private readonly bool _ends; private readonly object _left; private readonly object _right; public LightStringMatch...
mit
pengxiaohua/baiduNews-by-PHP
server/delete.php
450
<?php header("Content-type:application/json; charset=utf-8"); require_once('db.php'); if($link){ @$newsId = $_POST['newsId']; mysqli_query($link,'SET NAMES utf8'); //防止中文变成问号或乱码 $sql = "DELETE FROM `news` WHERE `news`.`id` = {$newsId}"; mysqli_query($link,$sql); ec...
mit
gabrielecker/DogAdoption-Backend
project/urls.py
467
# encoding: utf-8 from views import dogs, breeds, users urls = [ ('/dogs/', dogs.DogAPI.as_view('dog_api')), ('/user_dogs/', dogs.UserDogsAPI.as_view('user_dogs_api')), ('/breeds/', breeds.BreedAPI.as_view('breed_api')), ('/breed_dogs/', breeds.BreedDogsAPI.as_view('breed_dogs_api')), ('/users/', u...
mit
FrontISTR/FrontISTR
hecmw1/src/solver/las/hecmw_solver_las_11.f90
3110
!------------------------------------------------------------------------------- ! Copyright (c) 2019 FrontISTR Commons ! This software is released under the MIT License, see LICENSE.txt !------------------------------------------------------------------------------- module hecmw_solver_las_11 private public :: ...
mit
RodolfoSilva/Klass
README.md
748
# Klass.js Baseado parcialmente no (https://code.google.com/p/inheritance/) ```javascript Person = Class.extend({ // adding a mixin include: Sortable, // initializer function initialize: function(name) { this.name = name; }, // ... methods ... toString: function() { return this.name; } }); ...
mit
Spomky-Labs/IpFilterBundle
Model/IpManager.php
2234
<?php /* * The MIT License (MIT) * * Copyright (c) 2014-2015 Spomky-Labs * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace SpomkyLabs\IpFilterBundle\Model; use Symfony\Bridge\Doctrine\RegistryInterface; class IpManager impl...
mit
fujiwara/consul-kv-dashboard
assets/scripts/dashboard.js
7248
var StatusSelector = React.createClass({ handleChange: function(event) { this.props.updateStatusFilter(event.target.value) }, handleNodeGrep: function(event) { this.props.updateNodeFilter(event.target.value) }, handleKeyGrep: function(event) { this.props.updateKeyFilter(event.target.value) }, ...
mit
webcollective/simple_salesforce
lib/simple_salesforce/salesforce_object/creators_and_updaters.rb
2391
module SimpleSalesforce module SalesforceObject # :nodoc: module CreatorsAndUpdaters def self.included(klass) klass.class_eval do extend ClassMethods include InstanceMethods end end module ClassMethods # Create a new SalesforceObject fr...
mit
jodier/tmpdddf
web/private/tine20/library/Zend/InfoCard/Xml/Assertion/Interface.php
2251
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
mit
Shoptotalk/SHOPTOTALK
application/controllers/Comments.php
3085
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Comments extends MY_Shoptotalk { public $blockCommentsDelta = 0; public function __construct() { parent::__construct(); } public function index() { $post_id = $this->input->post('post_id'); $this...
mit
destiny1020/java-learning-notes-cn
Elasticsearch/4 - distributed document store/2 - how primary and replica shards interact.md
997
## 主要分片(Primary Shard)和副本分片(Replica Shard)是如何交互的 ## 为了解释这个问题,假设我们有一个包含3个节点(Node)的集群(Cluster)。它含有一个拥有2个主要分片的名为blogs的索引。每个主要分片有2个副本分片。拥有相同数据的两个分片绝不会被分配到同一个节点上,所以这个集群的构成可能会像下图这样: ![](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/images/04-01_index.png) 我们可以向集群中的任意一个节点发送请求。每个节点都有足够的能力来处理请求。每个节点都知道集群中...
mit
messier51a/ChronicNetCore
src/ChronicNetCore/Handlers/RmnSdSyHandler.cs
911
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using ChronicNetCore.Tags.Repeaters; using ChronicNetCore; namespace ChronicNetCore.Handlers { public class RmnSdSyHandler : IHandler { public Span Handle(IList<Token> tokens, Options options) { ...
mit
jjflyx/zybs
WebRoot/public/res/default/css/main.css
10808
/* CSS Document */ html, body, div, span, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code,del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,img{ margin:0px; padding:0px;} ul,li,dl,dt,dd,ol{ list-sty...
mit
hezahran/he-source
_includes/portfolio-covers/slimsons-club.html
370
<article class="col-md-4 col-xs-12 mix brand"> <a href="{{ "/portfolio/slimsons-club/" | prepend: site.baseurl }}"> <img src="{{ "/assets/img/portfolio/slimsonsclub/logo_display.jpg" | prepend: site.baseurl }}" alt="Slimsons Club" class="img-responsive img-rounded" /> <h4>Slimsons Club</h4> </a> <p>June 2014</p>...
mit
shirasagi/ss-handson
spec/support/ss/tmp_dir_support.rb
1917
module SS module TmpDirSupport def self.extended(obj) obj.before(:example) do obj.metadata[:tmpdir] = ::Dir.mktmpdir end obj.after(:example) do tmpdir = obj.metadata[:tmpdir] obj.metadata[:tmpdir] = nil ::FileUtils.rm_rf(tmpdir) if tmpdir end obj.cla...
mit
lucasosouza/harvardcs50
pset2/vigenere.c
2331
#include <stdio.h> #include <stdlib.h> void decode(char* text, char* key); char toUpperCase(char c); int main(int argc, char* argv[]) { //exit if argc != 2 or contains any non-alphabetic char if (argc != 2){ printf("You should enter a valid string as an argument\n"); return 1; } char* ...
mit
whothat-dk/Slagelse-Lift
wp-content/themes/whothat/composer/socialFacebook.php
3239
<?php /* Element Description: VC Image Box */ // Element Class class vc_facebook_button extends WPBakeryShortCode { // Element Init function __construct() { add_action( 'init', array( $this, 'vc_facebook_button_mapping' ) ); add_shortcode( 'vc_facebook_button', array( $this, 'vc_render_facebook_button' ) ); ...
mit
izabelk/CinemaWorld
CinemaWorldProject/CinemaWorld.Web/Properties/AssemblyInfo.cs
1361
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("Cin...
mit
storycraft/storyboard
readme.md
256
# Storyboard Fast, Flexible GPU accelerated 2D rendering engine using Wgpu ## TODO (Milestone 1) 1. [ ] Layout system 2. [x] Component system 3. [x] Threaded rendering 4. [x] Primitive(Triangle, Rect) rendering 5. [x] Path rendering 6. [ ] Text rendering
mit
pgmanutd/clogy
extensions/logger-with-metadata/index.spec.js
928
/* TDD style with BDD statements */ import LoggerWithMetadata from './index'; import clogy from '../../lib/clogy.js'; // Passing arrow functions to Mocha is discouraged. Their lexical binding of the // this value makes them unable to access the Mocha context, and statements like // this.timeout(1000); will not work i...
mit
venmo/slouch
slouch/testing.py
1912
import json from unittest import TestCase from mock import Mock, patch, create_autospec class CommandTestCase(TestCase): """A TestCase for unit testing bot requests and responses. To use it: * provide your bot in *bot_class* (and optionally a config). * use self.send_message inside your test ca...
mit
ember-fastboot/ember-cli-fastboot
packages/ember-cli-fastboot/test/fastboot-config-test.js
1367
'use strict'; const expect = require('chai').use(require('chai-string')).expect; const RSVP = require('rsvp'); const request = RSVP.denodeify(require('request')); const AddonTestApp = require('ember-cli-addon-tests').AddonTestApp; describe('FastBoot config', function () { this.timeout(400000); let app; befor...
mit
mrecondo/linguagem_php
src/lacos.php
586
<?php include 'functions.php'; // laços (for,while,do..while,foreach) // for for ($i=0; $i < 10; $i++) { echo "ola for $i".linha(); } // while (testa sempre antes de entrar no bloco) $j = 11; while ($j <= 10) { echo "ola while $j".linha(); $j++; } // do..while (executa ao menos uma vez antes de t...
mit
bhurivaj/erp
resources/views/Project/pdf/project_schedule.blade.php
3610
@extends('pdf_layout') @section('style') <style> th{ padding: 5px; } .rotate { text-align: center; white-space: nowrap; vertical-align: middle; width: 1.5em; } .rotate div{ /* FF3.5+ */ -moz-transform: rotate(-90.0deg); /* Opera 10.5 */ -o-transform: rotate(-90.0deg); /* Saf3.1...
mit
JamesRandall/AccidentalFish.Commanding
Samples/InMemoryCommanding/Commands/CommandWithoutResult.cs
207
using AzureFromTheTrenches.Commanding.Abstractions; namespace InMemoryCommanding.Commands { public class CommandWithoutResult : ICommand { public string DoSomething { get; set; } } }
mit
weaondara/BungeePerms
src/main/java/net/alpenblock/bungeeperms/TabCompleter.java
12243
/* * Copyright (C) 2020 wea_ondara * * BungeePerms 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 3 of the License, or * (at your option) any later version. * * BungeePerms is distribu...
mit
mbjordan/grunt-contrib-docco
README.md
903
> This is a beta release and should not be used in it's current state. # grunt-contrib-docco Grunt task to create [Docco](http://jashkenas.github.io/docco/) documentation. ## Getting Started If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/gettin...
mit
htdangkhoa/chat
public/www/views/reset_password.html
425
<title>Reset password</title> <center> <div class="sign_form"> <h2>Reset password</h2> <form action="" method="post"> <input class="form-control" required type="password" name="new_password" placeholder="New password"> <input class="form-control" required type="password" name="confirm_new_password"...
mit
wesen/wesen.github.io
_posts/2017-02-18--sound-design-2.md
6061
--- layout: post title: Sound design notes (2) category: articles --- # Serum vs Massive Massive has become my go-to synth, but I got tempted by the rent-to-buy splice offer for Serum. Serum is touted as a better sounding Massive, with high-quality oscillators and all that funky talk about aliasing and oversampling a...
mit
Politbook/politbook_server
EleicaoBrasil.Web/Util/HttpUtil.cs
744
using EleicaoBrasil.Web.ModelView; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web; namespace EleicaoBrasil.Web.Util { public class HttpUtil { public static HttpResponseMessage TrataException(Exception e, HttpRequestMessage r...
mit
abonec/model_id
lib/model_id.rb
71
require 'model_id/version' require 'model_id/base' module ModelId end
mit