id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
4bdb09ca6adb7bedc544ac9dbb194ac6aa5caa9e44bf5cfa3b6e960d716c83c4
/** * @file query.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2021 TileDB, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restri...
C++
tiledb/sm/query/query.cc
TileDB-Inc/TileDB
mit
69,785
2,117
codeparrot/github-code
a2e62e095f26d7c293cecb1ea8b3f40bd618db00c37b711e481a77c88d2d2374
<?php /** * [WeEngine System] Copyright (c) 2014 WE7.CC * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details. */ defined('IN_IA') or exit('Access Denied'); load()->func('file'); load()->model('article'); load()->model('account'); $dos = array('display', 'post', ...
PHP
web/source/site/article.ctrl.php
justzheng/test1
mit
9,277
261
codeparrot/github-code
dfb62f93a570eb815ff3076c3b17dac7df972eef2130771949c65eb43a251a22
<?php namespace Kr\OAuthClient\Credentials; class Client extends AbstractCredentials { protected $clientId, $clientSecret, $redirectUri; /** * Client constructor. * @param string $clientId * @param string $clientSecret * @param string $redirectUri */ public function __construct($c...
PHP
src/Credentials/Client.php
koenreiniers/oauth-client
mit
1,264
64
codeparrot/github-code
547f28d19064dff2139780b7230682d1c7be8787bebf0658460f2b26d2fef669
$(function () { $('.imageUploadMultiple').each(function (index, item) { var $item = $(item); var $group = $item.closest('.form-group'); var $innerGroup = $item.find('.form-group'); var $errors = $item.find('.errors'); var $input = $item.find('.imageValue'); var flow =...
JavaScript
resources/assets/js/form/image/initMultiple.js
Asvae/SleepingOwlAdmin
mit
2,178
63
codeparrot/github-code
067cf70e88b8da66435b3ca5745d9d9b1df2eb833c84e614785703c02f5ea0a1
/** * k-d Tree JavaScript - V 1.01 * * https://github.com/ubilabs/kd-tree-javascript * * @author Mircea Pricop <pricop@ubilabs.net>, 2012 * @author Martin Kleppe <kleppe@ubilabs.net>, 2012 * @author Ubilabs http://ubilabs.net, 2012 * @license MIT License <http://www.opensource.org/licenses/mit-license.p...
JavaScript
lib/kdTree.js
tsurantino/roadtrip
mit
13,331
468
codeparrot/github-code
2e5f1eb78af4855521fad8d1e62e9c9f2c8de0510a172a873cfb1e085700fad5
// function that finds the sum of two parameters function findSum(firstnr, secondnr){ return firstnr + secondnr; } //function that finds the product of two parameters function findProduct(firstnr, secondnr){ return firstnr * secondnr; } /* threeOperation calls the operation parameter as a function so it's able to r...
JavaScript
09-29-2016-Anonymous-Functions-Practice/Anonymous Functions Practice.js
InekeScheffers/NYCDA-individual-assignments
mit
1,060
30
codeparrot/github-code
7c1bd4dd25546fcfa1c1c1c33f2da19f288d0ed716e4dac7034db3d270acf029
""" train supervised classifier with what's cooking recipe data objective - determine recipe type categorical value from 20 """ import time from features_bow import * from features_word2vec import * from sklearn.preprocessing import StandardScaler from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifie...
Python
train_word2vec_rf.py
eifuentes/kaggle_whats_cooking
mit
1,909
48
codeparrot/github-code
ba416f2942a81273d91af61d108be09cee505a95b21c52939840dc980f3155a5
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Configuration options for Invenio-Search. The documentation for the configuration...
Python
invenio_search/config.py
inveniosoftware/invenio-search
mit
3,755
117
codeparrot/github-code
7f1560e489eba061c6da4c64ef1fe5bdcdc6a8bf5b71f497a4265f1e2cd8cabf
package net.robobalasko.dfa.gui; import net.robobalasko.dfa.core.Automaton; import net.robobalasko.dfa.core.exceptions.NodeConnectionMissingException; import net.robobalasko.dfa.core.exceptions.StartNodeMissingException; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.event.DocumentEve...
Java
src/main/java/net/robobalasko/dfa/gui/MainFrame.java
robobalasko/DFA-Simulator
mit
3,007
83
codeparrot/github-code
f215cf2fa569fed1df16aec00e09e248559d32676d3da46dd5cefc36bb0c1911
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" using name...
C++
src/rpcmining.cpp
frontibit/riestercoin
mit
21,117
589
codeparrot/github-code
d749bf344ff7621a30b118109064eb47d26230fbb8fa37e7c5e638da631449d1
<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <title>Interlude</title> </head> <link href="css/interlude.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script> <script src="http://ajax.googleapis.com/ajax/l...
HTML
index.html
Phalanstere/interlude
mit
1,138
74
codeparrot/github-code
549435d7c2c644f7b06b46fd74f29a600cc31e91d7d8f7821a9e8c47bb02e411
#ifndef _PARSER_HPP #define _PARSER_HPP #include <cassert> #include <iostream> #include <vector> #include <string> #include <cstdlib> #include "toyobj.hpp" #include "lexer.hpp" #include "toy.hpp" #include "ast.hpp" class ParserContext { public: explicit ParserContext(LexerContext &lexer) : lexer_(lexer)...
C++
src/parser.hpp
helgefmi/Toy
mit
1,288
52
codeparrot/github-code
0d2c9311983656efcea0102a249d62330c64bc094b79b7268da48e9a33faf7a6
<?php /** * summary */ class Product extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model('product_model'); } function index(){ $total = $this->product_model->get_total(); $this->data['total'] = $total; //load t...
PHP
application/controllers/admin/Product.php
mrthanhtan22/vemaybay
mit
11,467
342
codeparrot/github-code
c3685dd9d7a178fe34618bbd66aed1d4bad25ea8d0adf756adc4c8c4a58b522b
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import { Observable } from 'rxjs/Observable'; import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'; import { AngularFireAuth } from 'angularfire2/auth'; import * as firebase from 'firebase/app'; import {Ht...
TypeScript
src/services/auth.service.ts
alimcharaniya/uniformlab-v3
mit
1,321
47
codeparrot/github-code
d222e2810e97d39ae50bfec5b42f3cf3f73d6f00fda621054583dba03dfbb1ef
const should = require('should'), sinon = require('sinon'), _ = require('lodash'), settingsCache = require('../../../../server/services/settings/cache'), common = require('../../../../server/lib/common'), controllers = require('../../../../server/services/routing/controllers'), TaxonomyRouter = ...
JavaScript
core/test/unit/services/routing/TaxonomyRouter_spec.js
dbalders/Ghost
mit
3,184
84
codeparrot/github-code
c266555a7fd1aac2d21087f1cb842304a28590dd7e4b8183ae16b9b738b267ae
<?php /*============================================================================== * (C) Copyright 2016,2020 John J Kauflin, All rights reserved. *---------------------------------------------------------------------------- * DESCRIPTION: Functions to validate Admin operations (i.e. check permissions * par...
PHP
adminValidate.php
jkauflin/hoadb
mit
3,993
95
codeparrot/github-code
2e5e3abbb6271869898db4f0ab508835179b2abe5a11bbd846c791c69e4f2053
<!-- Copyright 2005-2008 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html) Some files are held under additional license. Please see "http://stlab.adobe.com/licenses.html" for more information. -->...
HTML
documentation/html/classadobe_1_1auto__ptr.html
brycelelbach/asl
mit
31,963
550
codeparrot/github-code
66549d9a3f681fb69eea411331ec0a002aefc3f87dc2c81bf6e9c21a04305502
import React from 'react'; import $ from 'jquery'; import _ from 'lodash'; import Block from './Block'; export default class BlockGrid extends React.Component { constructor() { super(); this.setDefaults(); this.setContainerWidth = this.setContainerWidth.bind(this); this.handleWindowResize = this.handleWind...
JavaScript
frontend/react/components/BlockGrid.js
Dishant15/TechIntrest
mit
4,139
151
codeparrot/github-code
a4c95d8b7df85799ddab47c9b2c7d44cdf7dd9dc95c60af80760d106040b8375
{% extends "layout.html" %} {% block page_title %} Add medication {% endblock %} {% block head %} {% include "includes/head.html" %} {% include "includes/scripts.html" %} {% endblock %} {% block after_header %} {{ banner.input() }} {% endblock %} {% block content %} <main id="content" role="main...
HTML
app/views/epilepsy/medication/your-medication.html
wayneddgu/fit2drive-ux
mit
5,263
125
codeparrot/github-code
f42551a3b35829613d1210ff95b49f54f4f58f7d7f6b8f0f1182e1a855594784
package com.exasol.adapter.dialects.bigquery; import java.sql.Connection; import java.sql.Types; import com.exasol.adapter.AdapterProperties; import com.exasol.adapter.dialects.IdentifierConverter; import com.exasol.adapter.jdbc.BaseColumnMetadataReader; import com.exasol.adapter.jdbc.JdbcTypeDescription; import com....
Java
src/main/java/com/exasol/adapter/dialects/bigquery/BigQueryColumnMetadataReader.java
EXASOL/virtual-schemas
mit
1,364
36
codeparrot/github-code
b116b7ac722711630d57952406dc33d2af7056127dd16a5c71cf1f41a7426793
using System; using Windows.Devices.Enumeration; using Windows.Devices.Spi; using Windows.Foundation.Metadata; namespace ABElectronics_Win10IOT_Libraries { /// <summary> /// Class for accessing the ADCDAC Pi from AB Electronics UK. /// </summary> public class ADCDACPi : IDisposable { p...
C#
ABElectronics_Win10IOT_Libraries/ADCDACPi.cs
abelectronicsuk/ABElectronics_Win10IOT_Libraries
mit
8,802
247
codeparrot/github-code
96791455585f95a2b9ea029e4ec1dc7dcc0dcd2812fda7f7d73834a7eec042f1
var system = require('system'); var args = system.args; var url = "http://"+args[1], filename = args[2]+".png", timeout = args[3], savePath = args[4], page = require('webpage').create(); //setTimeout(function(){phantom.exit();}, timeout) page.viewportSize = { width: 1200, height: 700 }; page.clipRect = { top: 0, le...
JavaScript
assets/rasterize.js
zhuharev/shot
mit
936
49
codeparrot/github-code
9ff74c025760f8577d36bd10d0a4ff40f33be5f4c20a02476b699b047f3111ae
/* globals describe, before, beforeEach, after, afterEach, it */ 'use strict'; const chai = require('chai'); const assert = chai.assert; const expect = chai.expect; chai.should(); chai.use(require('chai-things')); //http://chaijs.com/plugins/chai-things chai.use(require('chai-arrays')); describe('<%= pkgName %>', f...
JavaScript
app/templates/test/index.js
alykoshin/generator-mini-package
mit
666
44
codeparrot/github-code
30b75a39b6751c1ca3b16d2049f360b202766d4d6d5f76fedccea2ad1ec74b78
var _ = require("underscore"), Events = require("./Events"), querystring = require("querystring"), httpClient = require("./httpClient"), utils = require("./utils"), logger = require("config-logger"); var environments = { sandbox: { restHost: "api-sandbox.oanda.com", streamHost: ...
JavaScript
OandaAdapter.js
naddison36/oanda-adapter
mit
19,005
553
codeparrot/github-code
1a44559ccc39eefe7c5eb8cb9e07a995820e22bbc81eaa528a165996be20a49b
require "mscorlib" require "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" require "System.Collections.Generic, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" require "System.Linq, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" require "System.Text, V...
Ruby
CodeBuilder.Framework/Exporter/SQLServer/SqlServer2000Exporter.rb
xianrendzw/CodeBuilder.Ruby
mit
1,013
39
codeparrot/github-code
0863bbaf1e47cc3dad34237a8ab71369a137cdaf6f0562a1897bb66403cad16f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `Unsigned` trait in crate `num`."> <meta name="keywords" co...
HTML
doc/num/traits/trait.Unsigned.html
mcanders/bevy
mit
5,593
113
codeparrot/github-code
655fb91445319d517be84920de519a09cd77199eed1f8cc76768cb6dfe377365
package betterwithaddons.crafting.recipes; import betterwithaddons.crafting.ICraftingResult; import betterwithaddons.util.ItemUtil; import net.minecraft.block.state.IBlockState; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.Ingredient; import java.util.ArrayList; import java.util.Iterator; i...
Java
src/main/java/betterwithaddons/crafting/recipes/PackingRecipe.java
DaedalusGame/BetterWithAddons
mit
1,468
47
codeparrot/github-code
4d37551fdc04c655e81553ca30ac8d979f13b50271dd51c20e84def7ac66f54b
#pragma once #include "platform.h" #include "value.h" #include "vm.h" #include "result.h" #include <memory> #include <vector> namespace imq { class IMQ_API ScriptFunction : public QFunction { public: ScriptFunction(const String& funcName, Context* outerCtx, const std::shared_ptr<VBlock> block, const std::vector...
C
include/imq/scriptfunction.h
redxdev/imquery
mit
1,435
54
codeparrot/github-code
233a8c2bf7f5837e3bf427f330e632b92c6faf6fb66e44d741483a3436ed907e
#include "cf_internal.h" #define CACHE_SIZE 1024 #define INDEX(i) ((i) % CACHE_SIZE) static frame_cache_t* open_real_video_cache(cf_session_t* s) { frame_cache_t* cache = calloc(1, sizeof(frame_cache_t)); cache->wait_timer = s->proc->rtt + 2 * s->proc->rtt_val; cache->state = buffer_waiting; cache->frame_timer ...
C
sharing/buffer/cf_real_video.c
yuanrongxi/sharing
mit
10,971
480
codeparrot/github-code
b0c346c43ac418fee5de6d7c33337efdfe9f75a342227328c01352f423e7e078
#include <QDebug> #include <QFileDialog> #include <QListWidgetItem> #include <QMessageBox> #include <QProcess> #include <QWidget> #include "app.h" #include "import.h" #include "ui_import.h" Import::Import(App* app) : app(app), platform(-1) { this->ui.setupUi(this); connect(this->ui.toolFilepath, SIGNAL(clicked(...
C++
src/import.cpp
remeh/mehstation-config
mit
2,334
89
codeparrot/github-code
0860173b74f5124d2cf815fb8c3e1111442848c34d372d737e64a26948285f39
/** * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ package com.github.anba.es6draft.runtime.types.builtins; import java.lang.invoke.MethodHandle; import java.lang.reflect.Method; import com.github.anba.es6...
Java
src/main/java/com/github/anba/es6draft/runtime/types/builtins/BuiltinConstructor.java
anba/es6draft
mit
1,757
58
codeparrot/github-code
67516d1fea3ae64dd09cf53d736815762c24bbd1fc4c601136c32995d17e3d75
#include <iostream> #include <cstdio> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <string> #include <cstring> #include "../include/globals.hpp" #include "../include/classes.hpp" #include "../include/functions.hpp" struct cell{ double xStart; double yStart; double zSt...
C++
test/cell_list.cpp
homeslike/OpticalTweezer
mit
1,878
77
codeparrot/github-code
2f691367b8425f6d94c01b0917ef5c59b5d09fbfdc65bd82d5687c859bf6cc27
package de.codecentric.awesome.recommendation.core; import java.util.HashMap; import java.util.Map; /** * Created by afitz on 15.03.16. */ public class RecommendationLookup { private static RecommendationLookup ourInstance = new RecommendationLookup(); private String standardProductRecommendation = "P999";...
Java
recommendation/src/main/java/de/codecentric/awesome/recommendation/core/RecommendationLookup.java
cc-afitz/awesome-services
mit
979
35
codeparrot/github-code
034988ef5bafbc004057367b75c5d398c77e9059d98d2965f4ea31b291985397
import omit from 'lodash/omit'; import get from 'lodash/get'; import isFunction from 'lodash/isFunction'; import { bunyanLevelToRollbarLevelName } from '../common/rollbar'; // Rollbar script exposes this global immediately, whether or not its already initialized export const isGlobalRollbarConfigured = () => !!get(gl...
JavaScript
src/util/client/rollbarLogger.js
wework/we-js-logger
mit
1,896
57
codeparrot/github-code
42811ce077faaf40b6892da6a2e6e3b5ecabdbf32e14e8d72f49afcfb756032b
# coding: utf-8 """ General utilities. """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import collections import sys import logging import multiprocessing # Third-party import numpy as np __all__ = ['get_pool'] # Create logger logger = logging....
Python
gary/util.py
abonaca/gary
mit
3,607
139
codeparrot/github-code
f5438ad6a276316456bcaec5876030afa39a9927cacf6f21e70199bc67ca02ba
using System; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; using Dependinator.Common.ModelMetadataFolders; using Dependinator.Common.ModelMetadataFolders.Private; using Dep...
C#
Dependinator/Common/Installation/Private/LatestVersionService.cs
michael-reichenauer/Dependinator
mit
11,769
355
codeparrot/github-code
e43070341462211e57523d69700bbae2f89587f53a2c7d1a6c8b695b12f33b90
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../../lib'); // The contour extraction is great, except it totally fails for constraints bec...
JavaScript
src/traces/contourcarpet/convert_to_constraints.js
iongroup/plotly.js
mit
2,890
88
codeparrot/github-code
b9daea78fb27c27859a143897e18b782e4a918b9a8cd8223bb4392257d262b30
package net.tmachq.Ported_Blocks.tileentities.renderers; import java.io.DataInputStream; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.tileentity.TileEnt...
Java
src/net/tmachq/Ported_Blocks/tileentities/renderers/TileEntitySailRenderer.java
TMAC-Coding/Ported-Blocks
mit
2,561
72
codeparrot/github-code
709632845a079905a902268968b6d88b7b8948ec215451e84c0bcfd10cf04730
class DeviseCreateUsers < ActiveRecord::Migration def change create_table :users do |t| ## Database authenticatable t.boolean :admin t.string :email, null: false, default: "" t.string :encrypted_password, null: false, default: "" ## Recoverable t.string :reset_p...
Ruby
db/migrate/20161030044448_devise_create_users.rb
njazari/sef-founderwall
mit
1,378
44
codeparrot/github-code
486e791032b7239ed349fd3a1626e0cfbe5bbcd9e881373ad1162ba0093e1de6
var pub = {}, Q, Knex; module.exports = function ($inject) { $inject = $inject || {}; Q = $inject.Q; Knex = $inject.Knex; return pub; }; pub.get = function(tableName) { var q = Q.defer(); pub.getMetadata(tableName) .then(function(relations) { q.resolve(relations[...
JavaScript
lib/relations.js
heinzelmannchen/mysql2json
mit
1,909
45
codeparrot/github-code
df89eb20a705a0e7fe41dd66fd39149320f81adc3c0128c163edd8e93ba37d0b
using System.Web.Mvc; using FFLTask.SRV.ServiceInterface; using FFLTask.UI.PC.Filter; using FFLTask.SRV.ViewModel.Account; using FFLTask.SRV.ViewModel.Shared; namespace FFLTask.UI.PC.Controllers { public class RegisterController : BaseController { private IRegisterService _registerService; pub...
C#
UI/PC/Controllers/RegisterController.cs
feilang864/task.zyfei.net
mit
1,641
65
codeparrot/github-code
5e208d800f80596455a248ea72361f6913fac1f3401b1afac78722a3ee6bdce9
//--------------------------------------------------------------------------------------------------------------------- // <copyright company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //---------------------------------------------------------------------------------...
C#
CodeGraphModel/Symbol.cs
too4words/Call-Graph-Builder-DotNet
mit
1,852
79
codeparrot/github-code
980d91c4b385a1803cd041c307ef8401f2d0316f0cb7378ff59e567fcfe67f70
// Compiled by ClojureScript 1.7.170 {} goog.provide('figwheel.client.file_reloading'); goog.require('cljs.core'); goog.require('goog.string'); goog.require('goog.Uri'); goog.require('goog.net.jsloader'); goog.require('cljs.core.async'); goog.require('goog.object'); goog.require('clojure.set'); goog.require('clojure.st...
JavaScript
resources/public/js/compiled/out/figwheel/client/file_reloading.js
imaximix/om-tutorials
mit
99,819
2,462
codeparrot/github-code
bfd5843be5fe8b7222cccc993317e91a8d89244d54519b7011c3e73b05fe88e3
var request = require('request'); var Client = (function () { function Client() { this.options = { "url": "", "method": "GET", "bodyParams": {}, "gzip": true, "json": true }; } Client.prototype.connect = function (parent) { ...
JavaScript
lib/client.js
marinvvasilev/appc.googlesearch
mit
4,155
123
codeparrot/github-code
ea476b8940a2ed4287d6ffe224ef00845eafe48264c6d385a86fc3340bc9a008
#pragma once #include "animations/display.h" #include "animations/AnimationProgram.h" #include "animations/PaintPixel.h" #include "blewiz/BLECharacteristic.h" #include "freertos/task.h" class BadgeService : public BLEService { public: BadgeService(Display &display, AnimationProgram &animationProgram); virtu...
C
main/BadgeService.h
fweiss/badge
mit
1,174
44
codeparrot/github-code
90eb4b34e93967990183a3e1f0786e7a5ecf9e950df472a7c6c0ce40552022b2
package uk.gov.prototype.vitruvius.parser.validator; import java.util.List; public class ValidationMessage { private String message; private ValidationType type; public ValidationMessage() { } public ValidationMessage(String message, ValidationType type) { this.message = message; ...
Java
vitruvius.markdown/src/main/java/uk/gov/prototype/vitruvius/parser/validator/ValidationMessage.java
alphagov/vitruvius
mit
1,327
58
codeparrot/github-code
f8cba6b699679cf392e417f92d58074fa31108c3155090fa49558e1580d05ba2
/* global Cervus */ const material = new Cervus.materials.PhongMaterial({ requires: [ Cervus.components.Render, Cervus.components.Transform ], texture: Cervus.core.image_loader('../textures/4.png'), normal_map: Cervus.core.image_loader('../textures/normal2.jpg') }); const phong_material = new Cervus.ma...
JavaScript
_example/5/game.js
michalbe/cervus
mit
1,969
63
codeparrot/github-code
44dd26bab39783003983dfcc7010be4341bc35648d8036d1ccbbe7f5934715ad
#!/bin/mksh # (c) alexh 2016 set -eu printf "%s\n\n" 'Content-type: text/plain' # Optional with use of 'check_interval' WANTED_INTERVAL='10' USER="$( /usr/bin/whoami )" HOMES_DIR='/home' WWW_DIR="/var/www/virtual/${USER}" HOME="${HOMES_DIR}/${USER}" VAR_DIR="${HOME}/var/git-publish" SRC_DIR="${HOME}/git" function...
Shell
git-publish.sh
alexh-name/git-publish
mit
3,479
143
codeparrot/github-code
1d78964acea75a41a0037b9723dad166646e8cbc447848c846819df891ae5405
// // Copyright(c) 2017-2018 Paweł Księżopolski ( pumexx ) // // 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, m...
C
include/pumex/Resource.h
pumexx/pumex
mit
3,286
79
codeparrot/github-code
d9ac5ed285b6c2acbbb178ce92de881c16fd17e785885e6e0bd45a89110a9093
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `from_u32_unchecked` fn in crate `std`."> <meta name="keywo...
HTML
tmp/rust/inline-sidebar-items/std/char/fn.from_u32_unchecked.html
liigo/liigo.github.io
mit
7,061
154
codeparrot/github-code
5116c0d1b3687ea8bc6e478b08955244c3da35d9cf9951bbdb2998d225a5747f
/* Zepto v1.1.4 - zepto event ajax form ie - zeptojs.com/license */ var Zepto = (function() { var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, document = window.document, elementDisplay = {}, classCache = {}, cssNumber = { 'column-count': 1, 'column...
JavaScript
photoGallery/flux/js/zepto.js
picacure/_sandBox
mit
62,392
1,746
codeparrot/github-code
d33babf50cf74d6adcbdba5510e52a05446ae499c55ee5554d1a6324dde1eafd
import asyncio import asyncio.subprocess import datetime import logging from collections import OrderedDict, defaultdict from typing import Any, Awaitable, Dict, List, Optional, Union # noqa from urllib.parse import urlparse from aiohttp import web import yacron.version from yacron.config import ( JobConfig, p...
Python
yacron/cron.py
gjcarneiro/yacron
mit
16,835
462
codeparrot/github-code
5a84a2295f3863cc03406413f2d2bc4eebbd1b85699e992cad175fde3b57377d
const SELECTOR_BOOK_IMAGE = '#default > div > div > div > div > section > div:nth-child(2) > ol > li:nth-child(1) > article > div.image_container > a > img'; const puppeteer = require('puppeteer'); let scrapeSite1 = async (browser) => { const page = await browser.newPage(); await page.goto('http://books.toscrape.c...
JavaScript
source/_posts/2017/10/28/puppeteer-no-strings-attached/scrape-multi.js
yogendra/yogendra.me
mit
1,035
38
codeparrot/github-code
eecd8133cecc5a21bb9163f5462adf6b7a7910b1c73f0be030eadd1b8b3112cb
<?php class Symfony2EpamCi_Sniffs_Functions_DisallowedFunctionsSniff implements PHP_CodeSniffer_Sniff { private static $disallowedFunctionNames = array( 'var_dump', 'print_r', 'var_export', 'trigger_error', 'header', 'fastcgi_finish_request', 'xdebug_debug_zv...
PHP
Resources/configs/phpcs/Standards/Symfony2EpamCi/Sniffs/Functions/DisallowedFunctionsSniff.php
epam-php-solutions/EpamCiBundle
mit
1,954
62
codeparrot/github-code
3c35c68fc7f0c3691471cfc4eb723c087a0d8b83f1b8ebad829e76649ef79130
using System; using System.Globalization; using System.IO; using System.Windows.Data; namespace MailUI.Converters { [ValueConversion(typeof(DirectoryInfo), typeof(FileInfo[]))] public class FilesInDirectoryConverter : IValueConverter { public object Convert(object value, Type targetType, object pa...
C#
MailUI/Converters/FilesInDirectoryConverter.cs
ALEX-ANV/GSMail
mit
793
31
codeparrot/github-code
04e4255c4340ea82dc4c36d76cc2db5e94f571e13c9f641aeffb57d33203d20f
package com.longluo.demo.widget.swipelistview; import android.content.Context; import android.content.res.TypedArray; import android.database.DataSetObserver; import android.support.v4.view.MotionEventCompat; import android.support.v4.view.ViewConfigurationCompat; import android.util.AttributeSet; import android.view....
Java
app/src/main/java/com/longluo/demo/widget/swipelistview/SwipeListView.java
longluo/AndroidDemo
mit
20,482
692
codeparrot/github-code
93e42d864318450f01477562d9013863e8288ac8d01548139d6038c6f9fda46d
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"> <meta name=viewport content="width=device-width, initial-scale=1"> <title>Hisabo &#8211; Borker dot co</title> <me...
HTML
_site/project-hisabo/index.html
borker-co/borker-co.github.io
mit
5,565
139
codeparrot/github-code
69b73d9de78060f70f61030fd934d9729426602e47397dc95374fb37ce6221be
// "horizontalaxis" : { // "id" : STRING, "type" : DATATYPE(number), "length" : RELLEN(1.0), "base" : POINT(-1,1), "anchor" : DOUBLE(-1), "position" : POINT(0,0), // "min" : DATAVALUEORAUTO(auto), "max" : DATAVALUEORAUTO(auto), "minposition" : RELPOS(-1.0), "maxposition" : RELPOS(1.0), "color" : COLOR(black), "...
JavaScript
src/parser/json/axis.js
multigraph/js-multigraph
mit
10,515
239
codeparrot/github-code
dfda68247b6ec2368e0411882a85a0ad727a7ca0e5e0ab59821719e155174834
/** * Filtering sensitive information */ const _ = require('lodash'); /** * reset option * @param {string|object|array} opt filter option * @param {array} filterKeys filter keys * @param {string|function} replaceChat replace chat or function * @param {boolean} recursion whether recursive , true of false */ c...
JavaScript
lib/filter.js
baijijs/logger
mit
3,846
130
codeparrot/github-code
7afc9756c8cee3001ce25e96803e5e6da4f80324b687a3dd3e082b7ba92f993d
package com.github.pineasaurusrex.inference_engine; import java.util.HashMap; /** * Partially or fully assigned model * A model represents a possible representation of the propositional symbol states in the KB */ public class Model { private HashMap<PropositionalSymbol, Boolean> symbolValues = new HashMap<>();...
Java
src/com/github/pineasaurusrex/inference_engine/Model.java
pineasaurusrex/inference-engine
mit
1,821
52
codeparrot/github-code
aa38e3053939b8641ebf5528439b2a6e73377fe1dd98f7c9010973c9e05624b9
#ifndef LWEXML_H #define LWEXML_H #include <LWCore/LWText.h> #include <functional> #include "LWETypes.h" #define LWEXMLMAXNAMELEN 32 #define LWEXMLMAXVALUELEN 256 #define LWEXMLMAXTEXTLEN 1024 struct LWXMLAttribute { char m_Name[LWEXMLMAXNAMELEN]; char m_Value[LWEXMLMAXVALUELEN]; }; struct LWEXMLNod...
C
Engine/Includes/C++11/LWEXML.h
slicer4ever/Lightwave
mit
3,001
103
codeparrot/github-code
ae05d2aa91036d6edd553ae87d665b266434d6e0af97a1b0647e1c2086b3ce08
<?php /** * [PHPFOX_HEADER] */ defined('PHPFOX') or exit('NO DICE!'); /** * * * @copyright [PHPFOX_COPYRIGHT] * @author Raymond Benc * @package Module_Mail * @version $Id: index.class.php 4378 2012-06-27 08:44:47Z Raymond_Benc $ */ class Mail_Component_Controller_Index extends Phpfox_Component { /*...
PHP
module/mail/include/component/controller/index.class.php
edbiler/BazaarCorner
mit
11,278
388
codeparrot/github-code
29464d514f46ded649bde5e11eca452d9189d2e27efb33434bb6e132e57e5513
"""Classification-based test and kernel two-sample test. Author: Sandro Vega-Pons, Emanuele Olivetti. """ import os import numpy as np from sklearn.metrics import pairwise_distances, confusion_matrix from sklearn.metrics import pairwise_kernels from sklearn.svm import SVC from sklearn.cross_validation import Stratifi...
Python
classif_and_ktst.py
emanuele/jstsp2015
mit
9,044
262
codeparrot/github-code
b7d87d48fe3abb2fb2ee2a1f5cb03df5ea9904fd7bea67fe764b84d585f4c2f3
<?php class kml_Overlay extends kml_Feature { protected $tagName = 'Overlay'; var $color; var $drawOrder; var $Icon; /* Constructor */ function kml_Overlay() { parent::kml_Feature(); } /* Assignments */ function set_color($color) { $this->color = $color; } function...
PHP
libs/php-kml/kml_Overlay.php
lifelink1987/old.life-link.org
mit
908
41
codeparrot/github-code
cde7e3398266bd8cc7b6ba4333a124698ca26e6c91e855a1f877d89f508a5e4b
require "importeer_plan/version" require 'importeer_plan/configuration' module ImporteerPlan class Importeer attr_accessor :path, :name, :dir, :size_batch, :sep, :initial, :options #call importeer("filename") to import the file in batches of 1000, optional importeer("filename", size_) def initialize(n...
Ruby
lib/importeer_plan.rb
l-plan/importeer_plan
mit
1,598
85
codeparrot/github-code
a1870732b031b66cd94c37299b9c37c7684a2cfc816c7231fc502818099f493e
from collections import namedtuple Resolution = namedtuple('Resolution', ['x', 'y']) class Resolutions(object): resolutions = [ (1920, 1200), (1920, 1080), (1680, 1050), (1440, 900), (1360, 768), (1280, 800), (1024, 640) ] @classmethod ...
Python
config.py
cessor/gameoflife
mit
2,820
76
codeparrot/github-code
7b1e524b272aea51be0b2b48c3f1d5bd665ca8ec2fb83660c5623f82e6a7229a
using System.Diagnostics; namespace AdventOfCode.Day07.SignalProviders { [DebuggerDisplay("{DebuggerDisplay}")] public class Wire : SignalProvider { #region | Properties & fields private readonly Circut _parentCircut; private readonly string _rawProvider; public string ID...
C#
AdventOfCode/Day07/SignalProviders/Wire.cs
vatioz/AdventOfCode
mit
1,265
57
codeparrot/github-code
482ea41c4be85363f2e6d093c8273230de8a81527be89027c886382e7ca47384
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class TestModel extends CI_Model { public function popular_merchants(){ //include total reviews, sum of reviews, mp_id, unit, building, street, city name, region name, merchant name, merchant image, date and time of application approval, sub cat...
PHP
application/models/TestModel.php
shiranui03/-_-
mit
3,940
92
codeparrot/github-code
e0a1eea7ae354d2e72cd7f4cb55943ea9684755af5f3af9e3c18042d4e2e347f
using System; using System.Collections.Generic; using System.Text; namespace Light.Data.Mysql.Test { class BaseFieldSelectModelNull { #region "Data Property" private int id; /// <summary> /// Id /// </summary> /// <value></value> public int Id { ...
C#
test/Light.Data.Mysql.Test/Model/BaseFieldSelectModelNull.cs
aquilahkj/Light.Data2
mit
6,700
296
codeparrot/github-code
6cee53b931576900de5001db49a0bb12ed42822dc7b27fc6dcedb95bfe8a46f6
#include <stdio.h> #include <set> #include <utility> #include <vector> using namespace std; const int MAXN = 1e+2; int n, x0, y0; typedef pair<int, int> point; set<point> s; int cross(int x0, int y0, const point &a, const point &b) { return (a.first - x0) * (b.second - y0) - (a.second - y0) * (b.first - x0); ...
C++
and/semana_i2018/dia_3/han_solo_lazer_gun.cpp
aLagoG/kygerand
mit
967
47
codeparrot/github-code
2f0f50fdb0334288da8f02728fadda27978141f7e6541f51f9f5e7068c795f8d
<?php class ProvinceModel extends CI_Model { function __construct() { parent::__construct(); } /** * 插入数据 * @param $insertRows * @return mixed */ function insert_entry($insertRows) { foreach ($insertRows as $key => $val) { $this->$key = $v...
PHP
application/models/provinceModel.php
onlySun/daxue
mit
1,501
72
codeparrot/github-code
9bbd620acfe8e647d1fd09851a089fe5036b4ed0b4dc5c5d48b4fb9018451913
<?php namespace APP\AppBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use APP\AppBundle\Entity\Cliente; use APP\AppBundle\Form\ClienteType; /** * Cliente controller. * */ class ClienteController extends Controller { /** * Lists ...
PHP
src/APP/AppBundle/Controller/ClienteController.php
alegperea/cmsgabriel
mit
6,480
219
codeparrot/github-code
eeff8e6b92aefbf05aef06ab8ca3f1279ad4d6ad8d6abb533be0337337cf3620
require "presigner/version" require 'aws-sdk-v1' class Presigner DEFAULT_DURATION = 60 * 30 def initialize(options) @bucket = options[:bucket] @key = options[:key] @duration = options[:duration] || DEFAULT_DURATION @region = options[:region] || "us-east-1" @base = Time.now.to_i end attr...
Ruby
lib/presigner.rb
masaomoc/presigner
mit
1,127
50
codeparrot/github-code
da01c755eab76fc670412aea55ef50bea8f884bcbbc935dded400dc4492747c1
/** * Created by lee on 10/13/17. */ import React, { Component } from 'react'; export default class PlacesItem extends Component { constructor(props) { super(props); this.config = this.config.bind(this); this.rateStars = this.rateStars.bind(this); this.startBounce = this.startB...
JavaScript
src/components/places_item.js
LEEwith/google-map-react
mit
1,854
63
codeparrot/github-code
2df1ac2374b32ea724ab3582bf8f05d79bbf310b5a7278a51bbd6bb6ee150606
package com.sms4blood.emergencyhealthservices.util; import android.content.Intent; import android.location.Location; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.widget.Toast; import com.sms4blood.emergencyhealthservices.Sms; import com.sms4blood.emergencyhealthservi...
Java
app/src/main/java/com/sms4blood/emergencyhealthservices/util/AppUtil.java
VishnuPrabhu/EHS
mit
5,042
130
codeparrot/github-code
2c398cf6781eccce5bc9bcb4323b9c72c725e2ab938df60372f8afb364cdf86e
package miwax.java_conf.gr.jp.frugalitycalc.view; import android.app.AlertDialog; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import miwax.java_conf.gr.jp.frugalitycalc.R; import miwax.java_conf.gr.jp.frugalitycalc.databinding.ActivityMainBind...
Java
app/src/main/java/miwax/java_conf/gr/jp/frugalitycalc/view/MainActivity.java
tomoya0x00/FrugalityCalc
mit
2,393
69
codeparrot/github-code
ed09255f4d3e2223de1574b204bd96815bcb286a679fe4e9d4b8a94bd9070060
<HTML><HEAD> <TITLE>Review for Timecode (2000)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0220100">Timecode (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Frankie+Paiva">Franki...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/24925.html
xianjunzhengbackup/code
mit
6,641
100
codeparrot/github-code
772690436d397f422a4bf8013930d3ff93b5ba566cb47ac23e20b9a0924f4023
using SharpDX; using SharpDX.Direct3D11; using System; using System.Runtime.InteropServices; using System.Windows; using System.Xml; using System.IO; using System.Reflection; namespace Profiler.DirectX { public class TextManager : IDisposable { [StructLayout(LayoutKind.Sequential)] ...
C#
Brofiler/DirectX/TextManager.cs
galek/brofiler
mit
9,429
260
codeparrot/github-code
a4afad4ad4a8eb8b36d05be8fb482198f0560e58f556ae5f7a6c3648e6a5c808
/////////////////////////////////////////////////////////////// // This is generated code. ////////////////////////////////////////////////////////////// // Code is generated using LLBLGen Pro version: 4.2 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates...
C#
AdventureWorks.Dal/DatabaseGeneric/RelationClasses/WorkOrderRoutingRelations.cs
net-industry/llblgen-training
mit
4,087
93
codeparrot/github-code
366dd6b3108f32f3e45cb7f4fccb91c5c4e7c70f17f7340b850fe01472b332d8
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include "search.h" #include "marcov.h" #define ORDER 2 int main(int argc, char **argv) { int limit = 128; if(argc > 1) { limit = atoi(argv[1]); } void *strings = NULL; struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); srand...
C
run-lines.c
Cat-Ion/marcov
mit
745
43
codeparrot/github-code
e01a1edb04be592d97c0976e2d5dca62ec49b5ccd9bcf37b11e5313595ce4435
#if UNITY_EDITOR using UnityEngine; using UnityEditor; using System.IO; public class CreateAssetbundle : MonoBehaviour { [MenuItem("Fineness/Build AssetBundle From Select Resource")] static void SelectResourceAndBuildAB() { UnityEngine.Object[] selecteds = Selection.GetFiltered(typeof(UnityEngin...
C#
Framework/Editer/AssetBundle/CreateAssetbundle.cs
firefishes/ShipDockU3D
mit
2,997
89
codeparrot/github-code
485caebf3941733cce3fe193cdbc555d80ff434f7171739c6c4250f57976cfd1
import http from "http"; import express from "express"; import cors from "cors"; import morgan from "morgan"; import bodyParser from "body-parser"; import initializeDb from "./db"; import middleware from "./middleware"; import api from "./api"; import config from "config"; //we load the db location from the JSON files...
JavaScript
src/index.js
Hackstr/my-express-boilerplate
mit
1,034
51
codeparrot/github-code
02e5d9f318acfcda12542293e9623a076618077cd760e842aca5566981e023c9
'use strict'; var gulp = require('gulp'); var autoprefixer = require('jstransformer')(require('jstransformer-stylus')); var autoprefixer = require('autoprefixer-stylus'); var browserSync = require('browser-sync').create(); var changed = require('gulp-changed'); var concat = require('gulp-concat'); var cssbeautify = re...
JavaScript
gulpfile.js
cloud00/fast-front
mit
9,271
391
codeparrot/github-code
ca4cd4f86305a09e48abe4a710ab831a57bedf655e7d9cfa8ffa7e877464b7fe
import clearSuggestedActions from './actions/clearSuggestedActions'; import connect from './actions/connect'; import createStore, { withDevTools as createStoreWithDevTools } from './createStore'; import disconnect from './actions/disconnect'; import dismissNotification from './actions/dismissNotification'; import emitT...
JavaScript
packages/core/src/index.js
billba/botchat
mit
2,160
63
codeparrot/github-code
a740dd8af9daa43772460a56d10df55a1ae80f31d03b45cf5ebfd12d077412a2
var assert = require('assert'); var listXf = require('./helpers/listXf'); var R = require('..'); describe('any', function() { var odd = function(n) {return n % 2 === 1;}; var T = function() {return true;}; var intoArray = R.into([]); it('returns true if any element satisfies the predicate', function...
JavaScript
test/any.js
megawac/ramda
mit
2,480
65
codeparrot/github-code
6e97daa49ac9409682624e780e33d134b259bf3ed1f85aa091c3aa1c60057b30
{% extends 'layouts/base.html' %} {% block title %} {% endblock %} {% block content %} <div class="row"> <div class="col-lg-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Question Details</h3> </div> ...
HTML
qa/templates/question_answer_response.html
thebenwaters/openclickio
mit
3,065
77
codeparrot/github-code
3d7d6cfd154fb0c0d3ee1fc2a77e094bb9d6ebc9d04b8ea1d704fcf2f99dc1bc
<?php namespace Kids\Controller; use Silex\Application; use Silex\ControllerProviderInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Kids\Entity\Workshop; use Kids\Entity\Establishment; use Kids\Entity\PublicAge; use Kids\Entity\WorkshopCategory; use Kids\Ent...
PHP
src/Controller/WorkshopController.php
AshvinPainiaye/simplon-kids
mit
8,313
291
codeparrot/github-code
c75a97be9ba95384714e25eed56e5180f002c44b59b65ce7fc0562df4d31b425
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AuthorizeNet.Api.Contracts.V1; using AuthorizeNet.Api.Controllers; using AuthorizeNet.Api.Controllers.Bases; namespace net.authorize.sample { public class GetAccountUpdaterJobSummary { ...
C#
TransactionReporting/GetAccountUpdaterJobSummary.cs
AuthorizeNet/sample-code-csharp
mit
2,680
68
codeparrot/github-code
9b874bc54646c009714316a3c2b695072ac2346e603fcb48e051a496d1f0b2bd
// Copyright(c) 2013 GROWTH XPARTNERS, Incorporated. // // package junit.tutorial.calculator; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public class CalculatorTest { ...
Java
src/test/java/junit/tutorial/calculator/CalculatorTest.java
hosaka893/junit-tutorial
mit
1,287
50
codeparrot/github-code
ef481baf657ab20b1753f16779d7c6c16e0b13ec2a450353dd7c808209bc534d
import {Vec3f} from "./Vec3f"; import {Quaternion} from "./Quaternion"; import {MathUtils} from "./MathUtils"; import {Vec4f} from "./Vec4f"; /** * Created by r3f on 7/1/2016. */ export class Mat4f{ // Matrix row & column values as in i,j m:Float32Array; /* * Constructor Mat4f() * @info: Rows ...
TypeScript
src/parallelpath/util/math/Mat4f.ts
01alchemist/ParallelPathTracerJS
mit
11,955
367
codeparrot/github-code
9d6947c8b4bf1c09aa8dbb7f6ebb41aedc9e7dc950d55c1158fad453920b61c6
from math import floor def score_syntax_errors(program_lines): points = {')': 3, ']': 57, '}': 1197, '>': 25137} s = 0 scores_auto = [] for line in program_lines: corrupted, stack = corrupted_character(line) if corrupted: s += points[corrupted] else: s...
Python
adventofcode2021/day10.py
matslindh/codingchallenges
mit
2,156
77
codeparrot/github-code
c966fc456f83092349845a5f35426afbd306dfea91568d8c4e8cf577c636a088
using System; using App.Common.Extensions; namespace App.Core.Elements { /// <summary> /// Класс для описания списка заявлений по оплате по типам служб. /// </summary> public class Declaration { /// <summary> /// Расчетный период. /// </summary> public string Settle...
C#
App.Core/Elements/Declaration.cs
Digiman/AzureBillingViewer
mit
4,629
145
codeparrot/github-code
6b584694074cd83a8ea10b59450c7be04dab23ea0c80d7d9414f85509bc8ebb7
module TinyMVC class BaseModel attr_reader :id def initialize(options = {}) parameters = self.class.stored_parameters + [:id] parameters.each do |attr| instance_variable_set(:"@#{attr}", options[attr.to_s] || options[attr.to_sym]) end end def self.stored_parameters(*args) ...
Ruby
lib/tiny_mvc/mvc/model/base_model.rb
DordovskyDmitry/tiny_mvc
mit
1,309
65
codeparrot/github-code
f1acc7cea021827295b70169ad2e278b3426ad731b1264dac904e4e6f36076e0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>nlocks</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc"> </head> <body bgcolor="white"> <div class="navbar"><a name="#navbar_top"></a>...
HTML
doc/overview-summary.html
g-andrade/nlocks
mit
4,285
86
codeparrot/github-code
5d83ce5d1daf9d67c5f83a249e45b31ddb69b35895e658e0c057e524eeea04ef
/* * main.c * * Created on: 31 May 2016 * Author: ajuaristi <a@juaristi.eus> */ #include <stdio.h> #include <signal.h> #include <getopt.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <linux/videodev2.h> #include <sys/stat.h> #include "utils.h" #include "appbase.h" #include "uvc.h" #...
C
daemon-main.c
juaristi/appbase-cctv
mit
5,533
265
codeparrot/github-code
55a700ca5b9e94aa06b6e7de36b363af18fb48b841d2a981798ae6bf476474e5
package builtins import ( "fmt" "net/mail" "net/url" "regexp" "strings" u "github.com/araddon/gou" "github.com/mssola/user_agent" "github.com/araddon/qlbridge/expr" "github.com/araddon/qlbridge/value" "github.com/araddon/qlbridge/vm" ) var _ = u.EMPTY // email a string, parses email and makes sure it is ...
GO
expr/builtins/url_email.go
araddon/qlbridge
mit
23,042
858
codeparrot/github-code
6507a20cd820aa58f2b49e209836004fc4c760b3cbd56e0de6f7fa275eac0182
//estrutura com os dados lidos struct { float tensao; float corrente; float temperaturaBaterias; float temperaturaCockpit; float velocidade; //velocidade calculada do carro double hodometro; //armazena a quantidade de metros percorridos } dados; //estrutura com as configuracoes do controlador struct { lo...
C
Arduino/telemetriaSerialSIMPLIFICADA/telemetria.h
tiagopossato/telemetria
mit
1,144
45
codeparrot/github-code
f22e692a9a313509dbc5de0d0ef20c3e7178eb46fa72d73d027715bc7f105458
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Web.Script.Serialization; ...
C#
CommonHelperLibrary/WEB/HttpWebDealer.cs
HansHuang/MusicFM
mit
9,281
230
codeparrot/github-code
920512df1ba69cc95128c1ff52bdb64c0600468660ac6d5fded471ad969c56b1
<?php namespace AppBundle\Security\Core\User; use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface; use HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass; use Symfony\Component\Security\Core\User\UserInterface; class FOSUBUserProvider extends BaseClass { /** * {@inheritDoc} ...
PHP
src/AppBundle/Security/Core/User/FOSUBUserProvider.php
lahiiru/Quota
mit
2,811
80
codeparrot/github-code
8c61f24963b1d1915f46f8220e6bd0a10b53b1c3cd35011d2ce7374348afa1a4
'use strict'; /** * Module dependencies. */ var express = require('express'), mean = require('meanio'), consolidate = require('consolidate'), mongoStore = require('connect-mongo')(express), flash = require('connect-flash'), helpers = require('view-helpers'), config = require('./config'), ...
JavaScript
server/config/express.js
tmcelreath/meanCity
mit
5,758
181
codeparrot/github-code