code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
<?php namespace Wallabag\CoreBundle\Event\Subscriber; use Doctrine\Bundle\DoctrineBundle\Registry; use Doctrine\Common\EventSubscriber; use Doctrine\ORM\Event\LifecycleEventArgs; use Wallabag\CoreBundle\Entity\Entry; /** * SQLite doesn't care about cascading remove, so we need to manually remove associated stuf for...
wallabag/wallabag
src/Wallabag/CoreBundle/Event/Subscriber/SQLiteCascadeDeleteSubscriber.php
PHP
mit
1,862
<?php namespace Fnetwork\TPL\Templates; use Fnetwork\TPL\Template; class TemplatePhp extends Template { protected $language = 'php'; }
tpl42/tpl
templates/TemplatePhp.php
PHP
mit
140
class Solution(object): def isPalindrome(self, s): """ :type s: str :rtype: bool """ if not s: return True start = 0 end = len(s)-1 s = s.lower() while start < end: while start < end and not s[start].isalnum(): ...
tedye/leetcode
Python/leetcode.125.valid-palindrome.py
Python
mit
594
export const sampleIds = ["bass", "snare", "cymbal", "hihat"]; import { Direction, SliderOptions } from "../../../lib/slider/Slider"; export function RowConfig(rowIndex: number): Array<number> { switch (rowIndex) { case 0: //bass return [0, 10]; case 1: //snare return [4, 12]...
dakom/sodium-typescript-playground
src/app/modules/drum_machine/DrumMachine_Config.ts
TypeScript
mit
1,205
// getPostsParameters gives an object containing the appropriate find and options arguments for the subscriptions's Posts.find() getPostsParameters = function (terms) { var maxLimit = 200; // console.log(terms) // note: using jquery's extend() with "deep" parameter set to true instead of shallow _.ext...
haribabuthilakar/fh
lib/parameters.js
JavaScript
mit
2,548
#include <boost\math\special_functions.hpp> #include "common.h" #include "cusolverOperations.h" namespace matCUDA { template< typename TElement> cusolverStatus_t cusolverOperations<TElement>::ls( Array<TElement> *A, Array<TElement> *x, Array<TElement> *C ) { cusolverDnHandle_t handle; CUSOLVER_CALL( cusolverD...
leomiquelutti/matCUDA
matCUDA lib/src/cusolverOperations.cpp
C++
mit
37,887
// ==UserScript== // @name Kiss Simple Infobox hider // @description Hides the infobox on kissanime.com, kisscartoon.me and kissasian.com player sites // @include https://kissanime.ru/Anime/*/* // @include https://kimcartoon.to/Cartoon/*/* // @include https://k...
Playacem/KissScripts
kiss-simple-infobox-hider/kiss-simple-infobox-hider.user.js
JavaScript
mit
1,191
'use strict'; const fs = require('fs'); const Q = require('q'); const exec = require('child_process').exec; const searchpaths = ["/bin/xset"]; class XSetDriver { constructor(props) { this.name = "Backlight Control"; this.devicePath = "xset"; this.description = "Screensaver control via Xwi...
flyingeinstein/tread-station
nodejs/drivers/output/screensaver/xset.js
JavaScript
mit
3,736
<?php /* FOSUserBundle:Registration:register.html.twig */ class __TwigTemplate_b2e8a5a7d2f16905904154af2ea8a628b3260186e3b1e28bf7f63c56eb0b951d extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 try { $this->par...
kkuga/sfweb
app/cache/dev/twig/b2/e8/a5a7d2f16905904154af2ea8a628b3260186e3b1e28bf7f63c56eb0b951d.php
PHP
mit
1,481
#include <bits/stdc++.h> using namespace std; #ifndef int64 #define int64 long long #endif int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); #endif int64 h1, h2, a, b; cin >> h1 >> h2 >> a >> b; h1 += a * 8; if (a <= b && h1 < h2) { puts("-1"); } else if (h1 >= h2) ...
bolatov/contests
codeforces.ru/contest652/a.cpp
C++
mit
514
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis; using System.Collections.Immutable; using System.T...
tastott/AnalyzeThis
src/AnalyzeThis/ReadonlyField/ReadonlyFieldRule.cs
C#
mit
7,557
# coding: utf-8 """ ORCID Member No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: Latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import si...
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
orcid_api_v3/models/work_title_v30_rc2.py
Python
mit
4,930
var fs = require("fs"); var longStr = (new Array(10000)).join("welefen"); while(true){ fs.writeFileSync("1.txt", longStr); }
welefen/node-test
file/a.js
JavaScript
mit
125
package commenttemplate.expressions.exceptions; /** * * @author thiago */ // @TODO: RuntimeException? public class FunctionWithSameNameAlreadyExistsException extends RuntimeException { /** * Justa a custom mensage. * * @param msg A custom mensage. */ public FunctionWithSameNameAlreadyExistsException(St...
thiagorabelo/CommentTemplate
src/commenttemplate/expressions/exceptions/FunctionWithSameNameAlreadyExistsException.java
Java
mit
351
<?php include ('conexion/conexion.php'); if (empty($_REQUEST["nombreActividad"]) or empty($_REQUEST["idMateria"]) or empty($_REQUEST["evidencia"])or empty($_REQUEST["unidad"])){ echo "sin datos"; } else{ $idMateria = $_REQUEST["idMateria"]; $nombreActividad = $_REQUEST["nombreActividad"]; $evidencia = $_REQ...
UniversidadPolitecnicaBacalar/web
SISCA_V1/modulos/guardarActividad.php
PHP
mit
655
/** * Copyright (c) 2011 Bruno Jouhier <bruno.jouhier@sage.com> * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, ...
doowb/grunttest
node_modules/azure/node_modules/streamline/lib/compiler/register.js
JavaScript
mit
2,722
/* * The MIT License (MIT) * * Copyright (c) 2015 Curt Binder * * 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, ...
curtbinder/AndroidStatus
app/src/main/java/info/curtbinder/reefangel/phone/MainActivity.java
Java
mit
17,315
using CoreTweet; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TweetArea.NETFramework.Core.Structures { public class MediaInfo { public string OriginalURL { get; internal set; } } public class Tweet { ...
joy1192/TweetAreas
source/TweetAreas/TweetArea.NETFramework.Core/Structures/Tweet.cs
C#
mit
839
/* * Copyright 2016 Joyent, Inc., All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mod...
joyent/node-smartdc-auth
lib/keypair.js
JavaScript
mit
7,717
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var DropdownMenuItemType; (function (DropdownMenuItemType) { DropdownMenuItemType[DropdownMenuItemType["Normal"] = 0] = "Normal"; DropdownMenuItemType[DropdownMenuItemType["Divider"] = 1] = "Divider"; DropdownMenuItemType[DropdownM...
SpatialMap/SpatialMapDev
node_modules/office-ui-fabric-react/lib/components/Dropdown/Dropdown.Props.js
JavaScript
mit
499
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( "H...
HellBrick/HellBrick.Refactorings
HellBrick.Refactorings.Vsix/Properties/AssemblyInfo.cs
C#
mit
1,291
module WinFFI module User32 # Windowstation creation flags. # https://msdn.microsoft.com/en-us/library/windows/desktop/ms682496 CreateWindowStationFlag = enum :create_window_station_flag, [:CREATE_ONLY, 0x00000001] define_prefix(:CWF, CreateWindowStationFlag) end end
P3t3rU5/win-ffi-user32
lib/win-ffi/user32/enum/window_station/create_window_station_flag.rb
Ruby
mit
288
/** * Export exceptions * @type {Object} */ module.exports = { Schema: require('./Schema'), Value: require('./Value') }
specla/validator
lib/exceptions/index.js
JavaScript
mit
127
import collections import json import unittest import responses from requests import HTTPError from mock import patch from batfish import Client from batfish.__about__ import __version__ class TestClientAuthorize(unittest.TestCase): def setUp(self): with patch('batfish.client.read_token_from_conf', ...
kura/batfish
tests/test_client_authorize.py
Python
mit
1,645
package org.workcraft.plugins.policy.commands; import org.workcraft.commands.AbstractConversionCommand; import org.workcraft.plugins.petri.Petri; import org.workcraft.plugins.petri.VisualPetri; import org.workcraft.plugins.policy.Policy; import org.workcraft.plugins.policy.PolicyDescriptor; import org.workcraft.plugin...
tuura/workcraft
workcraft/PolicyPlugin/src/org/workcraft/plugins/policy/commands/PetriToPolicyConversionCommand.java
Java
mit
1,471
using Xunit; namespace ZabbixApiTests.Integration { public class EventServiceIntegrationTest : IntegrationTestBase { [Fact] public void MustGetAny() { var result = context.Events.Get(); Assert.NotNull(result); } } }
HenriqueCaires/ZabbixApi
ZabbixApiTests/Integration/EventServiceIntegrationTest.cs
C#
mit
288
var express = require('express'); var userRouter = express.Router(); var passport = require('passport'); var Model = require('../models/user'); var authenticate = require('./auth'); /* GET all the users */ exports.getAll = function(req, res, next) { Model.Users.forge() .fetch({ columns: ['_id', 'username', '...
TheKiqGit/TimeTracker
src/server/routes/userController.js
JavaScript
mit
2,707
import Float from 'ember-advanced-form/components/float'; export default Float;
jakkor/ember-advanced-form
app/components/advanced-form/float.js
JavaScript
mit
81
/** * @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 */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js const u = undefined; fun...
vikerman/angular
packages/common/locales/ccp-IN.ts
TypeScript
mit
3,581
document.getElementsByTagName('body')[0].style.overflow = 'hidden'; window.scrollTo(70, 95);
nash716/SandanshikiKanpan
src2/inject/scroll.js
JavaScript
mit
92
package main import ( "github.com/emicklei/go-restful" "io" "net/http" ) // This example shows how to create a (Route) Filter that performs Basic Authentication on the Http request. // // GET http://localhost:8080/secret // and use admin,admin for the credentials func main() { ws := new(restful.WebSe...
spacexnice/ctlplane
Godeps/_workspace/src/github.com/emicklei/go-restful/examples/restful-basic-authentication.go
GO
mit
1,025
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /* * Auditore * * @author sanik90 * @copyright Copyright (c) 2017 sanik90 * @license https://github.com/sanik90/auditore/blob/master/LICENSE.txt * @link https://github.com/sanik90/auditore */ /** * Class Custom_Fields */ class Custom...
sanik90/auditore
application/modules/custom_fields/controllers/Custom_fields.php
PHP
mit
2,385
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\XMPCrs; use JMS\Serializer\Annotation\ExclusionPolicy; ...
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/XMPCrs/PerspectiveHorizontal.php
PHP
mit
829
var url = args.url; var limit = args.limitl; var defaultWaitTime = Number(args.wait_time_for_polling) uuid = executeCommand('urlscan-submit-url-command', {'url': url})[0].Contents; uri = executeCommand('urlscan-get-result-page', {'uuid': uuid})[0].Contents; var resStatusCode = 404 var waitedTime = 0 while(resStatusCo...
demisto/content
Packs/UrlScan/Scripts/UrlscanGetHttpTransactions/UrlscanGetHttpTransactions.js
JavaScript
mit
963
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Nucleo.Services { public class WebStaticInstanceManager : IStaticInstanceManager { private HttpContextBase _context = null; #region " Properties " private HttpContextBase Context { get { if (_conte...
brianmains/Nucleo.NET
src_wip/Nucleo.ApplicationServices.Web/Services/WebStaticInstanceManager.cs
C#
mit
4,777
import User from '../models/user.model'; import Post from '../models/post.model'; import UserPost from '../models/users_posts.model'; import fs from 'fs'; import path from 'path'; /** * Load user and append to req. */ function load(req, res, next, id) { User.get(id) .then((user) => { req.user = user; // eslint-...
kenectin215/kenectin
server/controllers/user.controller.js
JavaScript
mit
8,464
import { formValueSelector, getFormValues } from 'redux-form'; import { createSelector } from 'reselect'; import { BookingProps } from '@waldur/booking/types'; import { getOfferingComponentsFilter } from '@waldur/marketplace/common/registry'; import { OfferingComponent } from '@waldur/marketplace/types'; import { Root...
opennode/waldur-homeport
src/marketplace/offerings/store/selectors.ts
TypeScript
mit
3,938
namespace SharpCompress.Common.Zip.Headers { using System; using System.Runtime.CompilerServices; internal class ExtraData { [CompilerGenerated] private byte[] _DataBytes_k__BackingField; [CompilerGenerated] private ushort _Length_k__BackingField; [CompilerGenera...
RainsSoft/sharpcompress
SharpCompressForUnity3D/SharpCompress/Common/Zip/Headers/ExtraData.cs
C#
mit
1,330
//package org.grain.mongo; // //import static org.junit.Assert.assertEquals; // //import java.util.ArrayList; //import java.util.List; //import java.util.UUID; // //import org.bson.conversions.Bson; //import org.junit.BeforeClass; //import org.junit.Test; // //import com.mongodb.client.model.Filters; // //public class ...
dianbaer/grain
mongodb/src/test/java/org/grain/mongo/MongodbManagerTest.java
Java
mit
2,935
// SharpMath - C# Mathematical Library // Copyright (c) 2016 Morten Bakkedal // This code is published under the MIT License. using System; using System.IO; using System.Text; namespace SharpMath.Samples { public static class ImportIpopt { public static void Import() { // Rename 32/64-bit files...
mortenbakkedal/SharpMath
SharpMath.Samples/ImportIpopt.cs
C#
mit
2,274
# encoding: utf-8 require "aws-sdk" # require "aws_ec2_config" class Amazon::SesAdapter < Amazon::AwsAdapter def verify_email_identity(email_address) Rails.logger.debug "do verify_email_identity params=#{email_address}" create_client.verify_email_identity({email_address: email_address}) end def delet...
yasuhisa1984/jins_common_rails
app/adapters/amazon/ses_adapter.rb
Ruby
mit
2,878
/** * The MIT License * * Copyright (C) 2012 KK.Kon * * 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, mo...
kkkon/job-strongauth-simple-plugin
src/main/java/org/jenkinsci/plugins/job_strongauth_simple/JobStrongAuthSimpleBuilder.java
Java
mit
31,334
/* * The MIT License * * Copyright 2016 Matthias. * * 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...
lutana-de/easyflickrbackup
src/main/java/de/lutana/easyflickrbackup/ImageSizes.java
Java
mit
2,063
/** * Copyright (c) 2011 Prashant Dighe * * 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, ...
pdd/mongoj
test/src/java/custom/com/example/demo/model/impl/RegisteredDriverImpl.java
Java
mit
2,066
<?php return array( 'friends:all' => 'Wszyscy znajomi', 'notifications:subscriptions:personal:description' => '', 'notifications:subscriptions:personal:title' => 'Powiadomienia osobiste', 'notifications:subscriptions:friends:title' => 'Znajomi', 'notifications:subscriptions:friends:description' => '', 'notifi...
Srokap/polish_translation
mod/notifications/languages/pl.php
PHP
mit
866
 namespace _03EmployeeData { using System; public class Program { public static void Main() { var name = Console.ReadLine(); var age = int.Parse(Console.ReadLine()); var employeeID = int.Parse(Console.ReadLine()); var monthlySalary = double.P...
DannyBerova/Exercises-Programming-Fundamentals-Extended-May-2017
ExerciseIntroAndBasicSyntax/03EmployeeData/03EmployeeData.cs
C#
mit
588
define(function (require) { require('plugins/timelion/directives/expression_directive'); const module = require('ui/modules').get('kibana/timelion_vis', ['kibana']); module.controller('TimelionVisParamsController', function ($scope, $rootScope) { $scope.vis.params.expression = $scope.vis.params.expression ||...
istresearch/PulseTheme
kibana/src/core_plugins/timelion/public/vis/timelion_vis_params_controller.js
JavaScript
mit
507
using System; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using SData.Internal; namespace SData.Compiler { internal static class CSEX { internal static readonly string[] SchemaNames...
knat/SData
Src/SData.Compiler/CSEX.cs
C#
mit
22,229
#include <bits/stdc++.h> using namespace std; void solve() { string s; cin >> s; reverse(s.begin(), s.end()); vector<string> pre = {"dream", "dreamer", "erase", "eraser"}; for (auto& x: pre) { reverse(x.begin(), x.end()); } int i = 0, n = s.size(); while (i < n) { if (s.su...
sogapalag/problems
atcoder/arc065c.cpp
C++
mit
706
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Ask My Doctors | Pasien</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <!-- Bootstrap 3.3.2 --> <link href="<?php echo base_url('assets/admin/css/boots...
meliafitriawati/askmydoctors
application/views/admin/pertanyaan.php
PHP
mit
8,869
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("12...
ReniGetskova/CSharp-Part-2
Arrays/12IndexOfletters/Properties/AssemblyInfo.cs
C#
mit
1,408
using System; using System.Drawing; using System.Linq; using System.Threading; using Emgu.CV.Structure; using System.Threading.Tasks; namespace Pentacorn { static class IObservableEx { public static async Task<T> TakeNext<T>(this IObservable<T> observable) { return (await observabl...
JaapSuter/Pentacorn
Backup/Pentacorn/IObservableEx.cs
C#
mit
2,968
require 'active_support/core_ext/class/attribute' module Travis module Github module Sync # Fetches all repositories from Github which are in /user/repos or any of the user's # orgs/[name]/repos. Creates or updates existing repositories on our side and adds # it to the user's permissions. Also ...
travis-repos/travis-core
lib/travis/github/sync/repositories.rb
Ruby
mit
2,707
import sys import petsc4py petsc4py.init(sys.argv) from ecoli_in_pipe import head_tail # import numpy as np # from scipy.interpolate import interp1d # from petsc4py import PETSc # from ecoli_in_pipe import single_ecoli, ecoliInPipe, head_tail, ecoli_U # from codeStore import ecoli_common # # # def call_head_tial(uz_f...
pcmagic/stokes_flow
ecoli_in_pipe/wrapper_head_tail.py
Python
mit
1,450
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
purdy/cachestatus-firefox
chrome/content/cachestatus.js
JavaScript
mit
15,267
#include <cstdio> int main(int argc, char** argv) { printf ("Hello World"); for (int i=0; i < 10; ++i) { j = i && i; } return 0; }
PatrickTrentin88/intro_cpp_qt
examples/xml/domwalker/testhello.cpp
C++
mit
155
<?php class Controller { }
ejacky/honji
framework/Controller.php
PHP
mit
28
require 'spec_helper' describe Compose do it 'should compose multiple procs/symbols' do expect(Compose[[:upcase,:reverse,:*.(2)]].('hello')).to eq("OLLEHOLLEH") expect(Compose[[:*.(2), :**.(3), :+.(10)]].(4)).to eq(522) end it 'should compose fns' do init_prime = Compose2[Compose2[Reverse,Tail], Rev...
jweissman/functionalism
spec/compose_spec.rb
Ruby
mit
656
/// @file aStarNode.hpp /// @brief Contains the class of nodes use by the astar pathfinder. /// @author Enrico Fraccaroli /// @date Nov 11 2016 /// @copyright /// Copyright (c) 2016 Enrico Fraccaroli <enrico.fraccaroli@gmail.com> /// Permission is hereby granted, free of charge, to any person obtaining a /// copy ...
Galfurian/RadMud
src/structure/algorithms/AStar/aStarNode.hpp
C++
mit
3,686
require_dependency 'query' module DefaultCustomQuery module QueryPatch extend ActiveSupport::Concern included do scope :only_public, -> { where(visibility: Query::VISIBILITY_PUBLIC) } end end end DefaultCustomQuery::QueryPatch.tap do |mod| Query.send :include, mod unless Query.include?(mod) e...
hidakatsuya/redmine_default_custom_query
app/patches/models/query_patch.rb
Ruby
mit
323
(function() { 'use strict'; angular.module('newApp') .controller('newAppCtrl', newAppCtrl); function newAppCtrl() { } })();
ekrtf/angular-express-starter
client/index.controller.js
JavaScript
mit
156
let upath = require('upath'), through2 = require('through2'), paths = require('../../project.conf.js').paths, RegexUtil = require('../util/RegexUtil'); module.exports = class StreamReplacer { constructor(replacements = {}) { this.replacements = replacements; } /** * Add a transf...
tniswong/web-build
build/support/stream/StreamReplacer.js
JavaScript
mit
1,719
import { InternalMethods } from './types' import fetch from 'node-fetch' import HttpError from './http-error' import { PAUSE_REPLICATION, RESUME_REPLICATION, } from '@resolve-js/module-replication' const setReplicationPaused: InternalMethods['setReplicationPaused'] = async ( pool, paused ) => { const endpoi...
reimagined/resolve
packages/runtime/adapters/replicators/replicator-via-api-handler/src/set-replication-paused.ts
TypeScript
mit
637
using System.ComponentModel; namespace LinqAn.Google.Metrics { /// <summary> /// The total numeric value for the requested goal number. /// </summary> [Description("The total numeric value for the requested goal number.")] public class Goal1Value: Metric<decimal> { /// <summary> /// Instantiates a <seealso...
kenshinthebattosai/LinqAn.Google
src/LinqAn.Google/Metrics/Goal1Value.cs
C#
mit
443
namespace UnityEditor.ShaderGraph { interface IPropertyFromNode { AbstractShaderProperty AsShaderProperty(); int outputSlotId { get; } } }
Unity-Technologies/ScriptableRenderLoop
com.unity.shadergraph/Editor/Data/Nodes/IPropertyFromNode.cs
C#
mit
167
/** * WebCLGLVertexFragmentProgram Object * @class * @constructor */ WebCLGLVertexFragmentProgram = function(gl, vertexSource, vertexHeader, fragmentSource, fragmentHeader) { this.gl = gl; var highPrecisionSupport = this.gl.getShaderPrecisionFormat(this.gl.FRAGMENT_SHADER, this.gl.HIGH_FLOAT); this.precision = (hi...
stormcolor/stormenginec
StormEngineC/WebCLGLVertexFragmentProgram.class.js
JavaScript
mit
19,084
"use strict"; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), interval: 200, jshint: { options: { curly: true, eqeqeq: true, immed: true, latedef: false, newcap: true, noarg: ...
ahultgren/presspress
Gruntfile.js
JavaScript
mit
943
namespace _04.Hotel { using System; public class Hotel { public static void Main() { string month = Console.ReadLine(); int nightsCount = int.Parse(Console.ReadLine()); if (month == "May" || month == "October") { double disco...
TsvetanNikolov123/CSharp---Programming-Fundamentals
06 Conditional Statements And Loops - Exercises/04.Hotel/Hotel.cs
C#
mit
2,718
# Python Code From Book # This file consists of code snippets only # It is not intended to be run as a script raise SystemExit #################################################################### # 3. Thinking in Binary #################################################################### import magic print magic.f...
0ppen/introhacking
code_from_book.py
Python
mit
16,192
class ConferenceController < ApplicationController before_filter :respond_to_options load_and_authorize_resource find_by: :short_title def index @current = Conference.where('end_date >= ?', Date.current).order('start_date ASC') @antiquated = @conferences - @current end def show; end def schedule ...
raluka/osem
app/controllers/conference_controller.rb
Ruby
mit
834
//borrowed from stefanocudini bootstrap-list-filter (function($) { $.fn.btsListFilterContacts = function(inputEl, options) { var searchlist = this, searchlist$ = $(this), inputEl$ = $(inputEl), items$ = searchlist$, callData, callReq; //last callData execution function tmpl(str, data) { retu...
navroopsingh/HepBProject
app/assets/javascripts/bootstrap-list-filter-contacts.js
JavaScript
mit
3,485
/*! * jquery.initialize. An basic element initializer plugin for jQuery. * * Copyright (c) 2014 Barış Güler * http://hwclass.github.io * * Licensed under MIT * http://www.opensource.org/licenses/mit-license.php * * http://docs.jquery.com/Plugins/Authoring * jQuery authoring guidelines * * Launch : July 201...
hwclass/jquery.initialize
jquery.initialize-0.1.0.js
JavaScript
mit
1,101
package com.mdg.droiders.samagra.shush; import android.Manifest; import android.app.NotificationManager; import android.content.ContentValues; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.database.Cursor; import android.net.Uri; impor...
samagra14/Shush
app/src/main/java/com/mdg/droiders/samagra/shush/MainActivity.java
Java
mit
10,861
<?php # -*- coding: utf-8 -*- /* * This file is part of the wp-nonce-wrapper package. * * (c) 2017 Brandon Olivares * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Devbanana\WPNonceWrapper; /** * Wordpress nonce attach...
devbanana/wp-nonce-wrapper
src/Devbanana/WPNonceWrapper/WPNonceField.php
PHP
mit
1,417
/** * utility library */ var basicAuth = require('basic-auth'); var fs = require('fs'); /** * Simple basic auth middleware for use with Express 4.x. * * @example * app.use('/api-requiring-auth', utils.basicAuth('username', 'password')); * * @param {string} username Expected username * @param {string}...
scwissel/garagepi
utils.js
JavaScript
mit
1,421
version https://git-lfs.github.com/spec/v1 oid sha256:5f5740cfcc24e2a730f7ea590ae0dc07d66d256fd183c46facf3fdfeb0bd69d2 size 3654
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.16.0/io-queue/io-queue.js
JavaScript
mit
129
version https://git-lfs.github.com/spec/v1 oid sha256:467bccdb74ef62e6611ba27f338a0ba0c49ba9a90ef1facb394c14de676318cf size 1150464
yogeshsaroya/new-cdnjs
ajax/libs/vis/3.12.0/vis.js
JavaScript
mit
132
version https://git-lfs.github.com/spec/v1 oid sha256:4f8b1998d2048d6a6cabacdfb3689eba7c9cb669d6f81dbbd18156bdb0dbe18f size 1880
yogeshsaroya/new-cdnjs
ajax/libs/uikit/2.5.0/js/addons/form-password.js
JavaScript
mit
129
<TS language="cs" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Pravým kliknutím upravte adresu nebo popisek</translation> </message> <message> <source>Create a new address</source> <tran...
neoscoin/neos-core
src/qt/locale/neos_cs.ts
TypeScript
mit
86,643
from django.contrib.auth import get_user_model from rest_framework.authentication import SessionAuthentication, BasicAuthentication from rest_framework import routers, serializers, viewsets, permissions from rest_framework_jwt.authentication import JSONWebTokenAuthentication from rest_framework.reverse import reve...
climberwb/video-api
src/comments/serializers.py
Python
mit
2,962
import React from 'react' import { FormControl } from 'react-bootstrap' import './@FilterListInput.css' const FilterListInput = ({onFilter, searchValue}) => { let handleFilter = e => { onFilter(e.target.value) } return (<FormControl className='FilterListInput' type='text' defaultValue={searchValue} placehold...
DataSF/open-data-explorer
src/components/FilterListInput/index.js
JavaScript
mit
425
class CreateRemexifyLogowners < ActiveRecord::Migration def self.up create_table :<%= table_name %>_owners do |t| t.string :log_md5, null: false t.string :identifier_id, null: false # this can be used to store additional info, such as the class of identifier_id above, or anything else # y...
saveav/Remexify
lib/generators/active_record/templates/create_remexify_logowners.rb
Ruby
mit
743
<?php /* * $Id: Groupby.php 3884 2008-02-22 18:26:35Z jwage $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. ...
nbonamy/doctrine-0.10.4
lib/Doctrine/Query/Groupby.php
PHP
mit
1,870
#ifndef NNTPCHAN_LINE_HPP #define NNTPCHAN_LINE_HPP #include "server.hpp" #include <stdint.h> #include <sstream> namespace nntpchan { /** @brief a buffered line reader */ class LineReader { public: /** @brief queue inbound data from connection */ void Data(const char *data, ssize_t s); protected: /** @brief h...
majestrate/nntpchan
contrib/backends/nntpchan-daemon/include/nntpchan/line.hpp
C++
mit
487
package jenkins.plugins.http_request; import static com.google.common.base.Preconditions.checkArgument; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import javax.annotation.Nonnull; import org.kohsuke.s...
martinda/http-request-plugin
src/main/java/jenkins/plugins/http_request/HttpRequest.java
Java
mit
15,118
package by.bsuir.verkpavel.adb.data; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.ArrayList; import by.bsuir.verkpavel.adb.data.entity.Account; import by.bsuir.verkpavel.adb.data.entity.Client; import by.bsuir.verkpavel.adb.data.entity.Deposit; import by.bs...
VerkhovtsovPavel/BSUIR_Labs
Labs/ADB/ADB-2/src/by/bsuir/verkpavel/adb/data/DataProvider.java
Java
mit
4,665
/*! * ear-pipe * Pipe audio streams to your ears * Dan Motzenbecker <dan@oxism.com> * MIT Licensed */ "use strict"; var spawn = require('child_process').spawn, util = require('util'), Duplex = require('stream').Duplex, apply = function(obj, method, args) { return obj[method].apply(obj, args...
dmotz/ear-pipe
index.js
JavaScript
mit
1,304
<?php /* Plugin Name: Collapsing Categories Plugin URI: http://blog.robfelty.com/plugins Description: Uses javascript to expand and collapse categories to show the posts that belong to the category Author: Robert Felty Version: 2.0.3 Author URI: http://robfelty.com Tags: sidebar, widget, categories, menu, navigation, ...
mandino/emergingprairie.misfit.co
wp-content/plugins/collapsing-categories/collapscat.php
PHP
mit
5,550
<?php namespace Field\Providers; use Pluma\Support\Providers\ServiceProvider; class FieldServiceProvider extends ServiceProvider { /** * Array of observable models. * * @var array */ protected $observables = [ [\Field\Models\Field::class, '\Field\Observers\FieldObserver'], ]; ...
lioneil/pluma
core/submodules/Form/submodules/Field/Providers/FieldServiceProvider.php
PHP
mit
967
/** * @description - The purpose of this model is to lookup various Drinking activities for a user */ var baseModel = require('./base'); var Drink; Drink = baseModel.Model.extend({ tableName: 'drink' }); module.exports = baseModel.model('Drink', Drink);
salimkapadia/dating-with-node-api
database/models/drink.js
JavaScript
mit
260
module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module', ecmaFeatures: { 'jsx': true }, }, globals: { enz: true, xhr_calls: true, }, plugins: [ 'react' ], extends: 'react-app', rules: { 'semi': [2, 'never'], // allow paren-le...
tutorcruncher/socket-frontend
.eslintrc.js
JavaScript
mit
653
define(['jquery'], function ($) { if (!Array.prototype.reduce) { /** * Array.prototype.reduce polyfill * * @param {Function} callback * @param {Value} [initialValue] * @return {Value} * * @see http://goo.gl/WNriQD */ Array.proto...
czajkowski/sunnynote
src/js/core/agent.js
JavaScript
mit
2,766
<<<<<<< HEAD <<<<<<< HEAD """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP852.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_map) def decode(self,...
ArcherSys/ArcherSys
Lib/encodings/cp852.py
Python
mit
105,146
package com.lfk.justweengine.Utils.tools; import android.content.Context; import android.content.SharedPreferences; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; impo...
Sonnydch/dzwfinal
AndroidFinal/engine/src/main/java/com/lfk/justweengine/Utils/tools/SpUtils.java
Java
mit
8,126
<?php return array ( 'id' => 'samsung_z130_ver1', 'fallback' => 'generic_android_ver4_2', 'capabilities' => array ( 'model_name' => 'Z130', 'brand_name' => 'Acer', 'release_date' => '2013_september', 'physical_screen_height' => '74', 'physical_screen_width' => '50', ), );
cuckata23/wurfl-data
data/samsung_z130_ver1.php
PHP
mit
304
import processing.core.*; import processing.data.*; import processing.event.*; import processing.opengl.*; import ddf.minim.spi.*; import ddf.minim.signals.*; import ddf.minim.*; import ddf.minim.analysis.*; import ddf.minim.ugens.*; import ddf.minim.effects.*; import codeanticode.syphon.*; import java.uti...
joseflamas/zet
variaciones/antesFestival/ANTES01/build-tmp/source/ANTES01.java
Java
mit
11,561
ml.module('three.scenes.Fog') .requires('three.Three', 'three.core.Color') .defines(function(){ /** * @author mrdoob / http://mrdoob.com/ * @author alteredq / http://alteredqualia.com/ */ THREE.Fog = function ( hex, near, far ) { this.color = new THREE.Color( hex ); this.near = ( near !== undefined )...
zfedoran/modulite-three.js
example/js/threejs/src/scenes/Fog.js
JavaScript
mit
390
<?php /** * Copyright (c) 2012 - 2017, COOPATTITUDE. Tous droits réservés. * * * @author COOPATTITUDE * @copyright Copyright (c) 2012 - 2017, COOPATTITUDE */ class IrCssClassBody extends \IrCssClassFather { function __construct ($className) { parent::__construct ('body', $className) ; } function setFon...
coopattitude/coopgui
system/Css/IrCssClassBody.php
PHP
mit
1,148
require "sampler/engine" module Sampler end
kikonen/sampler
lib/sampler.rb
Ruby
mit
45
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
dwivivagoal/KuizMilioner
application/libraries/php-google-sdk/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistory.php
PHP
mit
2,197